fold-const.c (build_zero_vector): Use build_vector_from_val.
[gcc.git] / gcc / ChangeLog
1 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
2
3 * fold-const.c (build_zero_vector): Use build_vector_from_val.
4 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
5 (get_initial_def_for_reduction): Likewise.
6 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
7 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
8 * tree.c (build_one_cst): Likewise.
9 (build_vector_from_val): Use types_compatible_p for assert.
10
11 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
12
13 * emit-rtl.c (mark_used_flags): New function.
14 (set_used_flags, reset_used_flags): Call it.
15
16 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
17
18 PR middle-end/44569
19 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
20 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
21
22 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
23
24 PR target/46195
25 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
26 (ix86_compat_aligned_value_p): This.
27 (ix86_old_function_arg_boundary): Renamed to ...
28 (ix86_compat_function_arg_boundary): This. Updated.
29 (ix86_contains_aligned_value_p): New.
30 (ix86_function_arg_boundary): Align long double parameters on
31 stack to 4byte in 32bit.
32
33 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
34
35 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
36 * c-parser.c (c_parser_objc_at_property_declaration): Removed
37 parsing of RID_COPIES and RID_IVAR. Updated call to
38 objc_add_property_declaration.
39 * c-typecheck.c (build_component_ref): Call
40 objc_maybe_build_component_ref instead of objc_build_setter_call.
41 Use objc_is_property_ref to improve Objective-C checks.
42 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
43 of objc_build_getter_call.
44
45 2010-10-29 Paul Koning <ni1d@arrl.net>
46
47 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
48 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
49 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
50 (REG_OK_STRICT): Move description.
51
52 2010-10-29 Paul Koning <ni1d@arrl.net>
53
54 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
55
56 2010-10-29 Paul Koning <ni1d@arrl.net>
57
58 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
59
60 2010-10-29 Paul Koning <ni1d@arrl.net>
61
62 PR/41822
63 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
64
65 2010-10-29 Richard Henderson <rth@redhat.com>
66
67 PR rtl-opt/46226
68 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
69 for asm goto.
70
71 2010-10-29 Paul Koning <ni1d@arrl.net>
72
73 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
74 register to register move.
75
76 2010-10-29 Paul Koning <ni1d@arrl.net>
77
78 * config/pdp11/pdp11.c (print_operand_address): Correct handling
79 of integer constant addresses, delete vax-only logic.
80
81 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
82
83 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
84 a conditional expression.
85
86 2010-10-29 Paul Koning <ni1d@arrl.net>
87
88 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
89 instruction encoding.
90
91 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
92 Andrew Pinski <pinskia@gmail.com>
93
94 * tree.h (build_vector_from_val): Declare.
95 * tree.c (build_vector_from_val): New function.
96 * c-typeck.c (build_binary_op): Handle vector shifting.
97 * doc/extend.texi: Description of the vector shifting operation.
98
99 2010-10-29 Paul Koning <pkoning@equallogic.com>
100
101 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
102 pdp11_secondary_memory_needed): Declare.
103 * config/pdp11/predicates.md (float_operand): New predicate.
104 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
105 (cbranchdf4, movdf): Change predicate.
106 (movsf): Handle FPU register case.
107 (truncdfsf2, extendsfdf2): Add FPU register case.
108 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
109 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
110 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
111 (pdp11_register_move_cost): Update cost matrix.
112 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
113 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
114 pdp11_secondary_memory_needed): New function.
115 (pdp11_return_in_memory): Add other float types.
116 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
117 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
118 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
119 REGISTER_MOVE_COST): Delete.
120 (BASE_RETURN_VALUE_REG): Add other float types.
121
122 2010-10-29 Nick Clifton<nickc@redhat.com>
123
124 * doc/invoke.texi: Document -mam34 and -mtune options.
125 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
126 (mn10300_tune_cpu): New variable.
127 (mn10300_handle_option): Handle -mam34 and -mtune options.
128 (mn10300_option_override): Convert tune string into tune cpu variable.
129 (mn10300_legitimate_constant_p): Delete unused local variable.
130 (is_load_insn): New function.
131 (is_store_insn): New function.
132 (mn10300_adjust_schedule_cost): New function.
133 (TARGET_SCHED_ADJUST_COST): Define.
134 * config/mn10300/mn10300.opt (mam34): New option.
135 (mtune): New option.
136 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
137 (enum processor_type): Add AM34.
138 (TARGET_AM34): Define.
139 * config/mn10300/mn10300.md (attr cpu): Add am34.
140 Add pipeline description.
141 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
142 Remove unneeded alternatives. Add timing attribute.
143 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
144 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
145 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
146 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
147 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
148 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
149 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
150 float_conditional_branch, jump, indirect_jump, tablejump,
151 call_internal, call_value_internal, zero_extendqisi2_am33,
152 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
153 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
154 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
155 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
156 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
157 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
158 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
159 return_internal_regs, store_movm, return, call_next_insn):
160 Add timing attribute.
161 (am33_subsi3): Add missing clobber of CC_REG.
162 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
163 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
164 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
165 extendqisi2): Fix predicates.
166 (call_internal, call_internal_value): Separate alternatives.
167 * config/mn10300/t-mn10300: Add AM34 multilib.
168
169 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
170
171 * config/sh/sh.c (sh_promote_function_mode): Use
172 default_promote_function_mode if !sh_promote_prototypes.
173
174 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
175
176 * recog.c (split_all_insns): Remove dead code.
177
178 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
179
180 * config/microblaze/microblaze-protos.h (function_arg): Delete.
181 (function_arg_advance): Delete.
182 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
183 (FUNCTION_ARG): Delete.
184 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
185 (microblaze_function_arg_advance): ...this. Make static. Take a
186 const_tree and a bool.
187 (function-arg): Rename to...
188 (microblaze_function_arg): ...this. Make static. Take a const_tree
189 and a bool.
190 (microblaze_expand_prologue): Call targetm.calls.function_arg and
191 targetm.calls.function_arg_advance.
192 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
193
194 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
195
196 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
197
198 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
199
200 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
201 (FUNCTION_ARG_ADVANCE): Delete.
202 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
203 functions.
204 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
205 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
206 (TARGET_FUNCTION_ARG_ADVANCE): Define.
207
208 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
209
210 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
211 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
212 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
213 Take a const_tree and a bool.
214 (mcore_function_arg_advance): New function.
215 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
216
217 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
218
219 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
220 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
221 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
222 Take a const_tree and a bool.
223 (mcore_function_arg_advance): New function.
224 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
225
226 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
227
228 * config/h8300/h8300-protos.h (function_arg): Delete.
229 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
230 * config/h8300/h8300.c (function_arg): Rename to...
231 (h8300_function_arg): ...this. Make static. Take a const_tree and
232 a bool.
233 (h8300_function_arg_advance): New function.
234 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
235
236 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
237
238 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
239 to...
240 * config/arc/arc.c (arc_function_arg): ...here and...
241 (arc_function_arg_advance): ...here. New functions.
242 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
243
244 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
245
246 * config/crx/crx-protos.h (crx_function_arg): Delete.
247 (crx_function_arg_advance): Delete.
248 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
249 * config/crx/crx.c (crx_function_arg): Make static. Take a
250 const_tree and a bool.
251 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
252 (enough_regs_for_param): Take a const_tree.
253 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
254
255 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
256
257 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
258 (m68hc11_function_arg_advance): Delete.
259 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
260 (FUNCTION_ARG_ADVANCE): Delete.
261 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
262 Take a const_tree and a bool.
263 (m68hc11_function_arg_advance): Likewise.
264 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
265
266 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
267
268 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
269 (xstormy16_function_arg_advance): Delete.
270 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
271 (FUNCTION_ARG_ADVANCE): Delete.
272 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
273 Take a const_tree and a bool.
274 (xstormy16_function_arg_advance): Likewise. Return void, updating
275 the CUM parameter instead.
276 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
277
278 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
279
280 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
281 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
282 (MOXIE_FUNCTION_ARG_SIZE): Move to...
283 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
284 (moxie_function_arg): Make static. Take a const_tree and a bool.
285 (moxie_function_arg_advance): New function.
286 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
287
288 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
289
290 * config/mn10300/mn10300-protos.h (function_arg): Delete.
291 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
292 (FUNCTION_ARG_ADVANCE): Delete.
293 * config/mn10300/mn10300.c (function_arg): Rename to...
294 (mn10300_function_arg): ...this. Make static. Take a const_tree
295 and a bool.
296 (mn10300_function_arg_advance): New function.
297 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
298
299 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
300
301 * config/iq2000/iq2000-protos.h (function_arg): Delete.
302 (function_arg_advance): Delete.
303 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
304 * config/iq2000/iq2000.c (function_arg): Rename to...
305 (iq2000_function_arg): ...this. Make static. Take a const_tree and
306 a bool.
307 (function_arg_advance): Rename to...
308 (iq2000_function_arg_advance): ...this. Make static. Take a
309 const_tree and a bool.
310 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
311 iq2000_function_arg.
312 (iq2000_pass_by_reference): Call iq2000_function_arg).
313 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
314
315 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
316
317 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
318 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
319 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
320 const_tree.
321 (fr30_function_arg): New function.
322 (fr30_function_arg_advance): New function.
323 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
324
325 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
326
327 * config/frv/frv-protos.h (frv_function_arg): Delete.
328 (frv_function_arg_advance): Delete.
329 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
330 * config/frv/frv.c (frv_function_arg): Rename to...
331 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
332 (frv_function_arg, frv_function_incoming_arg): New functions.
333 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
334 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
335 (TARGET_FUNCTION_ARG_ADVANCE): Define.
336
337 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
338
339 PR target/46153
340 * config/i386/sse.md (sse_movhlps_exp): Use destination
341 returned from ix86_fixup_binary_operands to expand insn.
342 (sse_movlhps_exp): Ditto.
343 (sse_loadhps_exp): Ditto.
344 (sse_loadlps_exp): Ditto.
345 (sse2_loadhpd_exp): Ditto.
346 (sse2_loadlpd_exp): Ditto.
347
348 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
349
350 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
351 constants in thumb2.
352
353 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
354
355 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
356 arithmetics in masking operations.
357 (contains_muldiv): Likewise.
358 (try_combine): Likewise.
359 (find_split_point): Likewise.
360 (combine_simplify_rtx): Likewise.
361 (simplify_if_then_else): Likewise.
362 (simplify_set): Likewise.
363 (expand_compound_operation): Likewise.
364 (expand_field_assignment): Likewise.
365 (make_extraction): Likewise.
366 (extract_left_shift): Likewise.
367 (make_compound_operation): Likewise.
368 (force_to_mode): Likewise.
369 (make_field_assignment): Likewise.
370 (reg_nonzero_bits_for_combine): Likewise.
371 (simplify_shift_const_1): Likewise.
372 (simplify_comparison): Likewise.
373
374 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
375
376 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
377 (ia64_function_arg_advance): Delete.
378 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
379 (FUNCTION_ARG_ADVANCE): Delete.
380 * config/ia64/ia64.c (ia64_function_arg): Rename to...
381 (ia64_function_arg_1): ...this. Make static. Take const_tree and
382 bool arguments.
383 (ia64_function_arg, ia64_function_incoming_arg): New functions.
384 (ia64_function_arg_advance): Make static. Take a const_tree and
385 a bool.
386 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
387 (TARGET_FUNCTION_ARG_ADVANCE): Define.
388
389 2010-10-27 Steve Ellcey <sje@cup.hp.com>
390
391 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
392 (TARGET_GET_RAW_ARG_MODE): New.
393 * doc/tm.texi: Regenerate.
394 * target.def (get_raw_result_mode): New.
395 (get_raw_arg_mode): New.
396 * targhooks.c (default_get_reg_raw_mode): New.
397 * targhooks.h (default_get_reg_raw_mode): New.
398 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
399 (apply_result_size): Ditto.
400 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
401 (TARGET_GET_RAW_RESULT_MODE): Define.
402 (TARGET_GET_RAW_ARG_MODE): Ditto.
403
404 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
405
406 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
407 for newer Solaris 10 release.
408 (sparc_fallback_frame_state): Likewise.
409
410 2010-10-27 Jason Merrill <jason@redhat.com>
411
412 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
413 variables sooner.
414
415 2010-10-27 Jie Zhang <jie@codesourcery.com>
416 Maxim Kuvyrkov <maxim@codesourcery.com>
417
418 * haifa-sched.c (ISSUE_POINTS): Remove.
419 (max_issue): Don't issue more than issue_rate instructions.
420
421 2010-10-27 Ian Lance Taylor <iant@google.com>
422
423 PR target/46197
424 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
425 (split_stack_return): Replace UNSPEC_STACK_CHECK with
426 UNSPECV_SPLIT_STACK_RETURN.
427
428 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
429
430 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
431
432 * config/i386/i386.c (block_info): New.
433 (BLOCK_INFO): Likewise.
434 (call_avx256_state): Likewise.
435 (check_avx256_stores): Likewise.
436 (move_or_delete_vzeroupper_2): Likewise.
437 (move_or_delete_vzeroupper_1): Likewise.
438 (move_or_delete_vzeroupper): Likewise.
439 (use_avx256_p): Likewise.
440 (function_pass_avx256_p): Likewise.
441 (flag_opts): Add -mvzeroupper.
442 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
443 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
444 is disabled.
445 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
446 generate vzeroupper.
447 (init_cumulative_args): Add an int to indicate caller. Set
448 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
449 based on return type.
450 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
451 caller_pass_avx256_p based on argument type.
452 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
453 is used, but not returned by caller.
454 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
455 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
456 is used.
457 (ix86_minimum_alignment): Likewise.
458 (ix86_expand_special_args_builtin): Set target to
459 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
460 (ix86_reorg): Run the vzeroupper optimization if needed.
461
462 * config/i386/i386.h (ix86_args): Add caller.
463 (INIT_CUMULATIVE_ARGS): Updated.
464 (machine_function): Add use_vzeroupper_p, use_avx256_p,
465 caller_pass_avx256_p, caller_return_avx256_p,
466 callee_pass_avx256_p and callee_return_avx256_p.
467
468 * config/i386/i386.opt (-mvzeroupper): New.
469
470 * config/i386/predicates.md (vzeroupper_operation): Removed.
471
472 * config/i386/sse.md (avx_vzeroupper): Removed.
473 (*avx_vzeroupper): Removed.
474 (avx_vzeroupper): New.
475
476 * doc/invoke.texi: Document -mvzeroupper.
477
478 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
479
480 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
481 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
482 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
483
484 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
485 Olivier Hainque <hainque@adacore.com>
486
487 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
488 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
489 fs->signal_frame instead.
490
491 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
492
493 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
494 parsing of RID_COPIES and RID_IVAR.
495
496 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
497
498 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
499 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
500 Do not use objc_set_property_attr, but use local variables
501 instead. Detect repeated usage of setter, getter and ivar
502 attributes. Improved error processing when a setter name does not
503 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
504 that the token is a keyword. Updated call to
505 objc_add_property_declaration.
506
507 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
508
509 * c-parser.c (c_parser_objc_at_property): Renamed to
510 c_parser_objc_at_property_declaration. Updated calls to
511 objc_add_property_variable, now objc_add_property_declaration.
512 Code rewritten to be much more robust in recovering from syntax
513 errors. Added comments.
514 (c_parser_objc_property_attrlist): Removed.
515 (c_parser_external_declaration): Updated calls to
516 c_parser_objc_at_property, now
517 c_parser_objc_at_property_declaration.
518 (c_parser_objc_methodprotolist): Same change.
519
520 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
521
522 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
523
524 2010-10-26 Jan Hubicka <jh@suse.cz>
525
526 * ipa.c (process_references): Enqueue all referenced nodes;
527 mark as reachable only non-external nodes.
528 (cgraph_remove_unreachable_nodes): All referenced nodes should
529 be enqueued; remove bogues node->needed check.
530
531 2010-10-26 Jan Hubicka <jh@suse.cz>
532
533 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
534 to represent OMP.
535
536 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
537
538 * config/i386/i386.md (split_stack_return): Replace
539 unspec_volatile with unspec.
540
541 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
542
543 * doc/install.texi: Fix typo in --with-sysroot description.
544
545 2010-10-26 Jan Hubicka <jh@suse.cz>
546
547 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
548 Use info provided by linker plugin.
549
550 2010-10-26 Jason Merrill <jason@redhat.com>
551
552 * varasm.c (constructor_static_from_elts_p): Don't require a
553 CONSTRUCTOR to have elements to be suitable for static
554 initialization. Allow ARRAY_TYPE as well.
555
556 2010-10-26 Jan Hubicka <jh@suse.cz>
557
558 PR middle-end/45736
559 * cgraph.c (cgraph_set_readonly_flag): Rename to...
560 (cgraph_set_const_flags) ... this one; get also looping argument;
561 clear constructor/destructor flags.
562 (cgraph_set_pure_flag): Likewise.
563 (cgraph_set_looping_const_or_pure_flag): Remove.
564 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
565 to optimize away static ctors/dtors; it does not work on inline clones;
566 external functions can always be rmeoved.
567 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
568 inline clones; in LTO external functions always can go.
569 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
570 (cgraph_mark_address_taken_node): Assert that we are not taking
571 address of inline clone.
572 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
573 external functions.
574 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
575 address taken.
576 (ipcp_initialize_node_lattices): Only local functions can be
577 handled without cloning.
578 * cgraph.h (cgraph_set_readonly_flag,
579 cgraph_set_looping_const_or_pure_flag): Remove.
580 (cgraph_set_const_flag): Declare.
581 (cgraph_set_pure_flag): Update.
582 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
583 flags setting code.
584 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
585 look at inline clones; fix handling of external definitions.
586 (cgraph_postorder): Do not look at inline clones in the first pass.
587 (function_and_variable_visibility): Drop constructors/destructor
588 flags at pure and const functions.
589 * tree-profile.c (tree_profiling): Update.
590 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
591 address taken; external functions do not account to whole program size.
592 (cgraph_decide_inlining): Likewise; do not try to inline
593 functions already inlined.
594
595 2010-10-26 Jie Zhang <jie@codesourcery.com>
596
597 * doc/invoke.texi: Improve documentation of
598 -fstrict-volatile-bitfields.
599
600 2010-10-26 Ira Rosen <irar@il.ibm.com>
601
602 PR tree-optimization/46167
603 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
604 is basic block for the statement.
605
606 2010-10-26 Paul Koning <ni1d@arrl.net>
607
608 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
609 current definition of struct_real_format.
610
611 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
612
613 PR target/44948
614 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
615 (ix86_function_arg_boundary): Always align parameters on stack
616 in 64bit and align parameters with alignment >= 16byte on stack
617 in 32bit. Warn alignment change.
618
619 2010-10-26 Ian Lance Taylor <iant@google.com>
620
621 PR middle-end/45687
622 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
623 offset.
624
625 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
626
627 Implement opaque-enum-specifiesr for C++0x
628 * tree.h (ENUM_IS_OPAQUE): New.
629 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
630
631 2010-10-26 Jie Zhang <jie@codesourcery.com>
632
633 * stor-layout.c (layout_decl): Use the field's type to
634 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
635 * config/arm/arm.c (arm_override_options): Default to
636 -fstrict-volatile-bitfields.
637
638 2010-10-25 Paul Koning <ni1d@arrl.net>
639
640 * config/pdp11/pdp11.md: Add define_constants for register
641 numbers, branch offset limits.
642 * config/pdp11/pdp11.c: Use named constants instead of numbers.
643 * config/pdp11.pdp11.h: Ditto.
644
645 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
646
647 * configure.ac: Use $cpu_type instead of $target to define the nop.
648 * configure: Regenerate.
649
650 2010-10-25 Jie Zhang <jie@codesourcery.com>
651
652 * combine.c (try_combine): If insns need to be kept around, check that
653 they can be copied in the merged instruction.
654
655 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
656
657 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
658 has been modified.
659 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
660 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
661 it has been modified.
662
663 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
664
665 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
666
667 2010-10-24 Paul Koning <ni1d@arrl.net>
668
669 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
670 * config/pdp11/pdp11.c (output_jump): Ditto.
671
672 2010-10-24 Ian Lance Taylor <iant@google.com>
673
674 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
675
676 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
677
678 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
679 least one insn with a locus corresponding to an edge's goto_locus,
680 disregard non-fallthru edges to the exit block and merge the blocks
681 created for the same goto_locus.
682
683 2010-10-23 Joseph Myers <joseph@codesourcery.com>
684
685 * gcc.c (n_switches_alloc_debug_check): New.
686 (set_option_handlers): New.
687 (process_command): Use set_option_handlers.
688 (do_self_spec): Pass spec-generated options through option handlers.
689 (main): Also save and restore n_switches_alloc when swapping
690 switch arrays.
691
692 2010-10-23 Richard Henderson <rth@redhat.com>
693
694 PR target/46144
695 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
696 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
697 Honor matching operands when splitting to XOR.
698
699 2010-10-23 Ian Lance Taylor <iant@google.com>
700
701 * tree-vrp.c (extract_range_from_binary_expr): If
702 flag_non_call_exceptions don't eliminate division by zero.
703 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
704
705 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
706
707 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
708 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
709 __ORDER_PDP_ENDIAN__.
710 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
711 (struct DWstruct): Define based on __BYTE_ORDER__.
712 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
713 (struct INTstruct): Define based on __BYTE_ORDER__.
714 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
715 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
716 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
717 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
718 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
719 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
720 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
721 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
722 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
723 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
724 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
725 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
726 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
727 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
728 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
729 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
730 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
731 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
732 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
733 * doc/tm.texi: Regenerate.
734 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
735 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
736
737 2010-10-23 Jie Zhang <jie@codesourcery.com>
738
739 PR rtl-optimization/37360
740 * config/mips/mips.c (cached_can_issue_more): New local variable.
741 (mips_sched_reorder_1): New.
742 (mips_sched_reorder): Use mips_sched_reorder_1.
743 (mips_sched_reorder2): New.
744 (mips_variable_issue): Set cached_can_issue_more.
745 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
746 instead of mips_sched_reorder.
747
748 Revert:
749 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
750 PR rtl-optimization/37360
751 * haifa-sched.c (max_issue): Do not assert that we never issue more
752 insns than issue_rate. Add comment.
753
754 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
755
756 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
757 location info of the expression.
758
759 2010-10-22 DJ Delorie <dj@redhat.com>
760
761 * doc/extend.texi (Named Address Spaces): Document the M32C named
762 address space.
763
764 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
765 __far address space.
766 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
767 "__far" address space for R8C and M16C processor variants.
768 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
769 (far_addr_space_p): New.
770 (encode_pattern_1): Add sign and zero extend support.
771 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
772 (m32c_extra_constraint_p2): Add SF constraint.
773 (m32c_legitimate_address_p): Support __far addresses.
774 (m32c_addr_space_pointer_mode): New.
775 (m32c_addr_space_address_mode): New.
776 (m32c_addr_space_legitimate_address_p): New.
777 (m32c_addr_space_legitimize_address): New.
778 (m32c_addr_space_subset_p): New.
779 (m32c_addr_space_convert): New.
780 (conversions): Add __far operand patterns.
781 (m32c_prepare_move): Force constants into registers for __far moves.
782 (m32c_split_move): __far moves are always split.
783 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
784 * config/m32c/mov.md (mov<mode>_far_op1): New.
785 (mov<mode>_far_op2): New.
786 (movqi_op): Add __far (SF) support.
787 (movhi_op): Likewise.
788 (movsi_splittable): Split A1A0 also.
789
790 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
791 Andrew Pinski <pinskia@gmail.com>
792
793 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
794 * doc/extend.texi: New paragraph
795
796 2010-10-22 Paul Koning <ni1d@arrl.net>
797
798 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
799
800 2010-10-22 DJ Delorie <dj@redhat.com>
801
802 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
803
804 2010-10-22 Paul Koning <ni1d@arrl.net>
805
806 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
807
808 2010-10-22 Richard Henderson <rth@redhat.com>
809
810 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
811 cases for __builtin_fma and __builtin_fmaf.
812
813 2010-10-22 Richard Henderson <rth@redhat.com>
814
815 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
816 NEG+USE for vectors as well.
817 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
818 and splitter.
819
820 2010-10-22 Joseph Myers <joseph@codesourcery.com>
821
822 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
823 SWITCH_CURTAILS_COMPILATION): Remove.
824 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
825 * doc/tm.texi: Regenerate.
826 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
827
828 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
829
830 * config/i386/bdver1.md: New file.
831 * config/i386/i386.md (include "bdver1.md"): Invoke the
832 pipeline description for bdver1.
833 (x86_sahf_1): Add "bdver1_decode" attribute.
834 (*cmpfp_i_mixed): Likewise.
835 (*cmpfp_i_sse): Likewise.
836 (*cmpfp_i_i387): Likewise.
837 (*cmpfp_iu_mixed): Likewise.
838 (*cmpfp_iu_sse): Likewise.
839 (*cmpfp_iu_387): Likewise.
840 (*swap<mode>,*swap<mode>_1): Likewise.
841 (fixuns_trunc<mode>hi2): Likewise.
842 (fix_trunc<mode>si_sse): Likewise.
843 (x86_fnstcw_1): Likewise.
844 (x86_fldcw_1): Likewise.
845 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
846 (*floatsi<mode>2_vector_mixed): Likewise.
847 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
848 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
849 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
850 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
851 (*floatsi<mode>2_vector_sse): Likewise.
852 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
853 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
854 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
855 (*mul<mode>3_1): Likewise.
856 (*mulsi3_1_zext): Likewise.
857 (*mulhi3_1): Likewise.
858 (*mulqi3_1): Likewise.
859 (*<u>mul<mode><dwi>3_1): Likewise.
860 (*<u>mulqihi3_1): Likewise.
861 (*<s>muldi3_highpart_1): Likewise.
862 (*<s>mulsi3_highpart_1): Likewise.
863 (*<s>mulsi3_highpart_zext): Likewise.
864 (x86_64_shld): Likewise.
865 (x86_shld): Likewise.
866 (x86_64_shrd): Likewise.
867 (x86_shrd): Likewise.
868 (sqrtxf2): Likewise.
869 (sqrt_extend<mode>xf2_i387): Likewise.
870 (*sqrt<mode>2_sse): Likewise.
871 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
872 (sse_cvtsi2ssq): Likewise.
873 (sse_cvtss2si): Likewise.
874 (sse_cvtss2si_2): Likewise.
875 (sse_cvtss2siq): Likewise.
876 (sse_cvtss2siq_2): Likewise.
877 (sse_cvttss2si): Likewise.
878 (sse_cvttss2siq): Likewise.
879 (sse2_cvtpi2pd): Likewise.
880 (sse2_cvttpd2pi): Likewise.
881 (sse2_cvtsi2sd): Likewise.
882 (sse2_cvtsi2sdq): Likewise.
883 (sse2_cvtsd2si): Likewise.
884 (sse2_cvtsd2si_2): Likewise.
885 (sse2_cvtsd2siq): Likewise.
886 (sse2_cvtsd2siq_2): Likewise.
887 (sse2_cvttsd2si): Likewise.
888 (sse2_cvttsd2siq): Likewise.
889 (*sse2_cvtpd2dq): Likewise.
890 (*sse2_cvttpd2dq): Likewise.
891 (sse2_cvtsd2ss): Likewise.
892 (sse2_cvtss2sd): Likewise.
893 (*sse2_cvtpd2ps): Likewise.
894 (sse2_cvtps2pd): Likewise.
895
896 2010-10-22 Richard Guenther <rguenther@suse.de>
897
898 PR middle-end/46137
899 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
900 remove the virtual operands if they are not needed.
901
902 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
903
904 * config/i386/i386.c (processor_costs bdver1_cost): Update
905 insn costs and architectural parameters for bdver1.
906
907 2010-10-22 Richard Guenther <rguenther@suse.de>
908
909 * gimple.h (gimple_register_canonical_type): Declare.
910 * gimple.c (gimple_canonical_types): New global hashtable.
911 (struct gimple_type_leader_entry_s): New type.
912 (gimple_type_leader): New global cache.
913 (gimple_lookup_type_leader): New function.
914 (gtc_visit): Query the proper cache.
915 (gimple_types_compatible_p): Likewise.
916 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
917 (gimple_canonical_type_eq): New function.
918 (gimple_register_canonical_type): Likewise.
919 (print_gimple_types_stats): Adjust for gimple_canonical_types.
920 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
921 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
922 gimple_types_compatible_p for LTO.
923
924 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
925
926 PR target/46098
927 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
928 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
929 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
930 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
931 (<sse>_movu<ssemodesuffix>): New expander.
932 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
933 (avx_movdqu<avxmodesuffix>): New expander.
934 (*sse2_movdqu): Rename from sse2_movdqu.
935 (sse2_movdqu): New expander.
936
937 2010-10-22 Richard Guenther <rguenther@suse.de>
938
939 PR tree-optimization/45720
940 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
941 Handle negative step.
942 (vect_enhance_data_refs_alignment): Likewise.
943 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
944 (vect_create_cond_for_align_checks): Likewise.
945 (vect_create_cond_for_alias_checks): Likewise.
946
947 2010-10-22 Ira Rosen <irar@il.ibm.com>
948
949 PR tree-optimization/46126
950 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
951 vectorizable_shift in case of basic block vectorization.
952
953 2010-10-22 Joseph Myers <joseph@codesourcery.com>
954
955 * target.h (enum opt_levels, struct default_options): New.
956 * target.def (handle_ofast): Remove hook.
957 (target_option.optimization): Change to
958 target_option.optimization_table.
959 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
960 TARGET_OPTION_OPTIMIZATION_TABLE.
961 (CAN_DEBUG_WITHOUT_FP): Remove.
962 * doc/tm.texi: Regenerate.
963 * opts.c (maybe_default_option, maybe_default_options,
964 default_options_table): New.
965 (default_options_optimization): Take extra parameters. Don't
966 assert that global_options and global_options_set are in use. Use
967 maybe_default_options.
968 (decode_options): Pass extra parameters to
969 default_options_optimization.
970 * common.opt (falign-loops): Use value 0 with Var.
971 (frerun-cse-after-loop, ftree-ter): Remove Init.
972 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
973 TARGET_OPTION_OPTIMIZATION): Remove.
974 * targhooks.c (empty_optimization_table): New.
975 * targhooks.h (empty_optimization_table): Declare.
976 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
977 * config/alpha/alpha.c (alpha_option_optimization_table,
978 TARGET_OPTION_OPTIMIZATION_TABLE): New.
979 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
980 * config/arm/arm.c (arm_option_optimization: Change to
981 arm_option_optimization_table.
982 (TARGET_OPTION_OPTIMIZATION): Change to
983 TARGET_OPTION_OPTIMIZATION_TABLE.
984 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
985 * config/avr/avr.c (avr_option_optimization_table,
986 TARGET_OPTION_OPTIMIZATION_TABLE): New.
987 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
988 * config/cris/cris.c (cris_option_optimization): Change to
989 cris_option_optimization_table.
990 (TARGET_OPTION_OPTIMIZATION): Change to
991 TARGET_OPTION_OPTIMIZATION_TABLE.
992 * config/crx/crx.c (crx_option_optimization): Change to
993 crx_option_optimization_table.
994 (TARGET_OPTION_OPTIMIZATION): Change to
995 TARGET_OPTION_OPTIMIZATION_TABLE.
996 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
997 * config/fr30/fr30.c (fr30_option_optimization_table,
998 TARGET_OPTION_OPTIMIZATION_TABLE): New.
999 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
1000 * config/frv/frv.c (frv_option_optimization_table,
1001 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1002 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
1003 * config/h8300/h8300.c (h8300_option_optimization): Change to
1004 h8300_option_optimization_table.
1005 (TARGET_OPTION_OPTIMIZATION): Change to
1006 TARGET_OPTION_OPTIMIZATION_TABLE.
1007 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1008 * config/i386/i386.c (ix86_option_optimization): Change to
1009 ix86_option_optimization_table.
1010 (TARGET_OPTION_OPTIMIZATION): Change to
1011 TARGET_OPTION_OPTIMIZATION_TABLE.
1012 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
1013 as initializer.
1014 * config/ia64/ia64.c (ia64_option_optimization): Change to
1015 ia64_option_optimization_table.
1016 (TARGET_OPTION_OPTIMIZATION): Change to
1017 TARGET_OPTION_OPTIMIZATION_TABLE.
1018 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
1019 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
1020 initializer.
1021 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1022 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1023 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1024 * config/lm32/lm32.c (lm32_option_optimization_table,
1025 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1026 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
1027 * config/m32r/m32r.c (m32r_option_optimization): Change to
1028 m32r_option_optimization_table.
1029 (TARGET_OPTION_OPTIMIZATION): Change to
1030 TARGET_OPTION_OPTIMIZATION_TABLE.
1031 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
1032 CAN_DEBUG_WITHOUT_FP): Remove.
1033 * config/mcore/mcore.c (mcore_option_optimization): Change to
1034 mcore_option_optimization_table.
1035 (TARGET_OPTION_OPTIMIZATION): Change to
1036 TARGET_OPTION_OPTIMIZATION_TABLE.
1037 * config/mep/mep.c (mep_option_optimization): Change to
1038 mep_option_optimization_table.
1039 (TARGET_OPTION_OPTIMIZATION): Change to
1040 TARGET_OPTION_OPTIMIZATION_TABLE.
1041 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
1042 * config/microblaze/microblaze.c
1043 (microblaze_option_optimization_table,
1044 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1045 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
1046 * config/mips/mips.c (mips_option_optimization_table,
1047 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1048 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
1049 * config/mmix/mmix.c (mmix_option_optimization): Change to
1050 mmix_option_optimization_table.
1051 (TARGET_OPTION_OPTIMIZATION): Change to
1052 TARGET_OPTION_OPTIMIZATION_TABLE.
1053 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
1054 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1055 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1056 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1057 * config/pa/pa.c (pa_option_optimization_table,
1058 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1059 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1060 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
1061 pdp11_option_optimization_table.
1062 (TARGET_OPTION_OPTIMIZATION): Change to
1063 TARGET_OPTION_OPTIMIZATION_TABLE.
1064 * config/picochip/picochip.c (picochip_option_optimization_table,
1065 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1066 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
1067 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
1068 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1069 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1070 * config/rx/rx.c (rx_option_optimization_table,
1071 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1072 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1073 * config/s390/s390.c (s390_option_optimization): Change to
1074 s390_option_optimization_table.
1075 (s390_option_override): Update comment.
1076 (TARGET_OPTION_OPTIMIZATION): Change to
1077 TARGET_OPTION_OPTIMIZATION_TABLE.
1078 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
1079 * config/score/score.c (score_option_optimization_table,
1080 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1081 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
1082 * config/sh/sh.c (sh_option_optimization): Change to
1083 sh_option_optimization_table.
1084 (TARGET_OPTION_OPTIMIZATION): Change to
1085 TARGET_OPTION_OPTIMIZATION_TABLE.
1086 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
1087 (sh_option_override, expand_block_move, multcosts, find_barrier,
1088 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
1089 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
1090 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
1091 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
1092 instead of TARGET_SMALLCODE.
1093 * config/sh/sh.opt (mspace): Make into an alias for -Os.
1094 * config/sparc/sparc.c (sparc_option_optimization_table,
1095 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1096 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
1097 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1098 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1099 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
1100 * config/v850/v850.c (v850_option_optimization): Change to
1101 v850_option_optimization_table.
1102 (TARGET_OPTION_OPTIMIZATION): Change to
1103 TARGET_OPTION_OPTIMIZATION_TABLE.
1104 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
1105 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
1106 xtensa_option_optimization_table.
1107 (TARGET_OPTION_OPTIMIZATION): Change to
1108 TARGET_OPTION_OPTIMIZATION_TABLE.
1109 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1110
1111 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
1112
1113 Based on the CFString implementation in FSF apple/trunk branch.
1114
1115 * target.def (objc_construct_string): New Hook.
1116 * doc/tm.texi (objc_construct_string): Document.
1117 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
1118 * config/t-darwin: Amend build rules for darwin.o.
1119 * config/darwin.opt: Add cfstrings flags.
1120 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
1121 (darwin_objc_construct_string): New.
1122 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
1123 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
1124 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
1125 (darwin_fold_builtin): Likewise.
1126 (darwin_build_constant_cfstring): Likewise.
1127 (darwin_objc_construct_string): Likewise.
1128 (darwin_cfstring_p): Likewise.
1129 (darwin_enter_string_into_cfstring_table): Likewise.
1130 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
1131 * config/darwin.c (darwin_running_cxx): New var.
1132 (machopic_select_section): Return cfstring_constant_object_section.
1133 (darwin_override_options): Set darwin_running_cxx.
1134 (add_builtin_field_decl): New.
1135 (darwin_init_cfstring_builtins): New.
1136 (darwin_build_constant_cfstring): New.
1137 (darwin_fold_builtin): New.
1138 (cfstring_hash): New.
1139 (cfstring_eq): New.
1140 (darwin_enter_string_into_cfstring_table): New.
1141 * config/darwin-sections.def (cfstring_constant_object_section): New.
1142 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
1143 (TARGET_OBJC_CONSTRUCT_STRING): Define.
1144
1145 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1146
1147 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
1148 TYPE_STUB_DECL instead of TREE_CHAIN.
1149 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
1150 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
1151 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
1152 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
1153 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
1154 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
1155 Likewise.
1156 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
1157
1158 2010-10-22 Jie Zhang <jie@codesourcery.com>
1159
1160 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
1161 (copy_blkmode_from_reg): Likewise.
1162 (read_complex_part): Likewise.
1163 (expand_expr_real_1): Calculate packedp and pass it to
1164 extract_bit_field.
1165 * expr.h (extract_bit_field): Update declaration.
1166 * calls.c (store_unaligned_arguments_into_pseudos): Update call
1167 to extract_bit_field.
1168 * expmed.c (extract_fixed_bit_field): Update calls to
1169 extract_fixed_bit_field.
1170 (store_split_bit_field): Likewise.
1171 (extract_bit_field_1): Add new argument packedp.
1172 (extract_bit_field): Add new argument packedp.
1173 (extract_fixed_bit_field): Add new argument packedp and let
1174 packed attribute override volatile.
1175 * stmt.c (expand_return): Update call to extract_bit_field.
1176
1177 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1178
1179 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
1180
1181 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1182
1183 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
1184 of gcc_checking_assert.
1185 * sel-sched.c (code_motion_process_successors): Likewise.
1186
1187 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
1188
1189 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
1190 when stopping because of a different locus on edge or insn.
1191 (try_optimize_cfg): Add comment.
1192 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
1193 block is a forwarder block, propagate locus on the edge.
1194 (cfg_layout_merge_blocks): Likewise.
1195
1196 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
1197
1198 PR target/45946
1199 * config/i386/i386.md (*pushti2): New insn pattern.
1200 (pushti2 splitter): New insn splitter.
1201 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
1202 DWI mode iterator.
1203
1204 2010-10-21 Paul Koning <ni1d@arrl.net>
1205
1206 * config/pdp11/pdp11-protos.md (arith_operand,
1207 const_immediate_operand, expand_shift_operand,
1208 immediate15_operand): Delete
1209 * config/pdp11/pdp11.c: Ditto.
1210 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
1211 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
1212 EXTRA_CONSTRAINT): Delete.
1213 * config/pdp11/pdp11.md (various): Use standard constraints
1214 instead of removed ones.
1215 * config/pdp11/constraints.md: New file.
1216 * config/pdp11/predicates.md: New file.
1217
1218 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
1219
1220 PR c/45834
1221 * alias.c (true_dependence_1): Remove obsolete check for QImode.
1222 (may_alias_p): Ditto.
1223
1224 2010-10-21 Martin Jambor <mjambor@suse.cz>
1225
1226 PR tree-optimization/45875
1227 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
1228
1229 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1230
1231 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
1232 variables.
1233 (create_new_def_for): Likewise.
1234
1235 2010-10-21 Nick Clifton <nickc@redhat.com>
1236
1237 * config/mn10300/mn10300.c: Fold code to 80-character width.
1238 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1239 MEM, CONST_INT and CONST_DOUBLE.
1240 (targetm): Move initialization to end of file.
1241 (print_operand): Rename to mn10300_print_operand.
1242 (print_operand_address): Rename to mn10300_print_operand_address.
1243 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
1244 (expand_prologue): Rename to mn10300_expand_prologue.
1245 (expand_epilogue): Rename to mn10300_expand_epilogue.
1246 (initial_offset): Rename to mn10300_initial_offset.
1247 (function_arg): Rename to mn10300_function_arg.
1248 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
1249 (symbolic_operand): Rename to mn10300_symbolic_operand.
1250 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
1251 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
1252 * config/mn10300/mn10300-protos.h: Update prototypes.
1253 * config/mn10300/mn10300.h: Fold code to 80-character width.
1254 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1255 MEM, CONST_INT and CONST_DOUBLE.
1256 (CPP_SPEC): Move to...
1257 (TARGET_CPU_CPP_BUILTINS): ... here.
1258 * config/mn10300/mn10300.md: Fold code to 80-character width.
1259 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1260 MEM, CONST_INT and CONST_DOUBLE.
1261
1262 2010-10-21 Ira Rosen <irar@il.ibm.com>
1263
1264 PR tree-optimization/46049
1265 PR tree-optimization/46052
1266 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
1267 (vect_get_slp_defs): Add arguments.
1268 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
1269 operands to vect_get_slp_defs.
1270 (vectorizable_reduction): Fix comment, pass scalar operands to
1271 vect_get_slp_defs.
1272 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
1273 type to determine number of units in the created vector.
1274 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
1275 (vectorizable_conversion): Fix comment.
1276 (vectorizable_shift): New function.
1277 (vectorizable_operation): Move code that handles shifts to
1278 vectorizable_shift.
1279 (vectorizable_type_demotion): Fix comment, pass scalar operands to
1280 vect_get_slp_defs.
1281 (vectorizable_type_promotion, vectorizable_store): Likewise.
1282 (vectorizable_condition): Fix comment.
1283 (vect_analyze_stmt): Call vectorizable_shift.
1284 (vect_transform_stmt): Likewise.
1285 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
1286 Use it as the operand to create vectors for, except reduction
1287 initial definition and store. Use operands type.
1288 (vect_get_slp_defs): Add new arguments. Pass them to
1289 vect_get_constant_vectors.
1290
1291 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1292
1293 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
1294 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
1295 * cfghooks.c (fixup_reorder_chain): Likewise.
1296 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
1297 * cgraph.c (cgraph_add_thunk): Likewise.
1298 (cgraph_create_edge_1): Likewise.
1299 (cgraph_create_virtual_clone): Likewise.
1300 * ddg.c (add_cross_iteration_register_deps): Likewise.
1301 * dwarf2out.c (modified_type_die): Likewise.
1302 * emit-rtl.c (set_mem_alias_set): Likewise.
1303 * ggc-zone.c (zone_allocate_marks): Likewise.
1304 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
1305 * gimple.c (iterative_hash_gimple_type): Likewise.
1306 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
1307 (create_single_exit_edge): Likewise.
1308 * haifa-sched.c (choose_ready): Likewise.
1309 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1310 * passes.c (execute_todo): Likewise.
1311 * sched-ebb.c (begin_schedule_ready): Likewise.
1312 * sel-sched.c (code_motion_process_successors): Likewise.
1313 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
1314 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
1315 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
1316 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
1317 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
1318 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
1319 (ssa_conflicts_add): Likewise.
1320 * tree-ssa-copy.c (replace_exp): Likewise.
1321 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
1322 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
1323 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1324 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
1325 (compute_antic): Likewise.
1326 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
1327 (add_dependence): Likewise.
1328 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
1329 * tree-vrp.c (supports_overflow_infinity): Likewise.
1330 (make_overflow_infinity, negative_overflow_infinity): Likewise.
1331 (avoid_overflow_infinity, register_new_assert_for): Likewise.
1332 (process_assert_insertions_for): Likewise.
1333 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
1334 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
1335 (intersect_loc_chains, variable_merge_over_cur): Likewise.
1336
1337 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1338
1339 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
1340 * reload1.c (has_nonexceptional_receiver): Likewise.
1341 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
1342 (create_new_def_for): Likewise.
1343 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1344 (merge_phi_nodes): Likewise.
1345 (has_abnormal_incoming_edge_p): Delete.
1346
1347 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
1348
1349 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
1350
1351 2010-10-21 Richard Guenther <rguenther@suse.de>
1352 Michael Matz <matz@suse.de>
1353
1354 PR tree-optimization/45764
1355 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1356 Adjust initial misalignment for negative DR_STEP.
1357 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
1358 do not have the same alignment over the whole iteration domain.
1359
1360 2010-10-21 Richard Guenther <rguenther@suse.de>
1361
1362 PR tree-optimization/46111
1363 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
1364
1365 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1366
1367 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
1368
1369 2010-10-21 Tristan Gingold <gingold@adacore.com>
1370
1371 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
1372 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
1373
1374 2010-10-21 Tristan Gingold <gingold@adacore.com>
1375
1376 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
1377 signal_frame.
1378 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
1379
1380 2010-10-21 Tristan Gingold <gingold@adacore.com>
1381
1382 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
1383 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
1384
1385 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
1386
1387 * basic-block.h (find_fallthru_edge): Define.
1388 * cfgcleanup.c (merge_blocks_move): Use it.
1389 (try_crossjump_bb): Likewise.
1390 * cfglayout.c (fixup_reorder_chains): Likewise.
1391 (fixup_fallthru_exit_predecessor): Likewise.
1392 * cfgrtl.c (rtl_split_edge): Likewise.
1393 (rtl_verify_flow_info): Likewise.
1394 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1395 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
1396 * ifcvt.c (block_fallthru): Likewise.
1397 * reload1.c (fixup_abnormal_edges): Likewise.
1398 * sched-ebb.c (being_schedule_ready): Likewise.
1399 (schedule_ebb): Likwise.
1400 * sched-rgn.c (find_single_block_region): Likewise.
1401 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
1402 * tree-complex.c (expand_complex_move): Likewise.
1403 * sched-int.h (find_fallthru_edge): Rename to...
1404 (find_fallthru_edge_from): ...this.
1405 * haifa-sched.c (find_fallthru_edge): Rename to...
1406 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
1407 (init_before_recovery): Call find_fallthru_edge_from.
1408 * sel-sched-ir.c (merge_fences): Likewise.
1409 * sel-sched.c (in_fallthru_bb_p): Likewise.
1410 (move_cond_jump): Likewise.
1411
1412 2010-10-20 Paul Koning <ni1d@arrl.net>
1413
1414 * config/pdp11/pdp11.md (various): Fix conditions on a number of
1415 insn to check for target 11/40 or higher.
1416
1417 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1418
1419 * parser.c (c_parser_objc_method_type): Mark inline. Return a
1420 bool instead of a tree.
1421 (c_parser_objc_method_decl): Added bool argument. Updated call to
1422 objc_build_method_signature.
1423 (c_parser_objc_method_definition): Do not call
1424 objc_set_method_type. Updated calls to c_parser_objc_method_type,
1425 c_parser_objc_method_decl and objc_start_method_definition.
1426 (c_parser_objc_methodproto): Do not call objc_set_method_type.
1427 Updated calls to c_parser_objc_method_type,
1428 c_parser_objc_method_decl and objc_add_method_declaration.
1429
1430 2010-10-20 Jakub Jelinek <jakub@redhat.com>
1431
1432 PR tree-optimization/45919
1433 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
1434 array members.
1435
1436 PR tree-optimization/46066
1437 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
1438 instead of gsi_last_bb.
1439
1440 2010-10-20 DJ Delorie <dj@redhat.com>
1441
1442 * config/m32c/m32c.c (m32c_option_override): Always disable
1443 function-cse in 16-bit mode. Indirect calls are always worse than
1444 direct calls as there is no 16-bit indirect call opcode.
1445 (m32c_override_options_after_change): New, likewise.
1446
1447 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
1448
1449 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
1450 emitting the conditional move in the inner mode of the SUBREG.
1451
1452 2010-10-20 Anatoly Sokolov <aesok@post.ru>
1453
1454 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
1455 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
1456 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1457 (ia64_preferred_reload_class): Make static. Change rclass argument
1458 and result types from enum reg_class to reg_class_t.
1459
1460 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
1461
1462 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
1463 call for single operand expression.
1464
1465 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
1466
1467 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
1468 if there is a call statement to pure or const function in the block.
1469
1470 2010-10-20 Paul Koning <pkoning@equallogic.com>
1471
1472 Fix several build errors for pdp11 target.
1473 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
1474 (cbranchdf4): Conditional on TARGET_FPU.
1475 (movdf): Ditto; correct alternatives check.
1476 (movmemhi): Fix predicate and constraint.
1477 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
1478
1479 2010-10-20 Richard Guenther <rguenther@suse.de>
1480
1481 PR lto/45667
1482 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
1483 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
1484 (verify_gimple_assign_single): Disable ADDR_EXPR type check
1485 when in LTO.
1486
1487 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
1488
1489 PR fortran/42169
1490 * ira-emit.c (store_can_be_removed_p): Return false instead of
1491 gcc_unreachable.
1492
1493 2010-10-20 Dmitry Melnik <dm@ispras.ru>
1494
1495 * fold-const.c (fold_binary_loc): New transformation.
1496
1497 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
1498
1499 PR target/46085
1500 * config/i386/sse.md (reduc_splus_v8sf): Updated.
1501 (reduc_splus_v4df): Likewise.
1502
1503 2010-10-20 Richard Guenther <rguenther@suse.de>
1504
1505 PR tree-optimization/45860
1506 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
1507 conditional store replacement for non-register type stores.
1508
1509 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
1510
1511 * stor-layout.c (skip_simple_constant_arithmetic): New function.
1512 (self_referential_size): Use it instead of skip_simple_arithmetic.
1513
1514 2010-10-20 Olivier Hainque <hainque@adacore.com>
1515
1516 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
1517 If the current function calls eh_return, claim live all registers
1518 that we need to check for liveness otherwise.
1519
1520 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1521
1522 * c-decl.c (c_write_global_declarations): Call
1523 objc_write_global_declarations when compiling Objective-C.
1524 * c-lang.c (finish_file): Removed.
1525
1526 2010-10-19 DJ Delorie <dj@redhat.com>
1527
1528 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
1529 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
1530 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
1531 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
1532 * doc/tm.texi: Regenerate.
1533 * targhooks.h (default_label_align_after_barrier_max_skip,
1534 default_loop_align_max_skip, default_label_align_max_skip,
1535 default_jump_align_max_skip): Declare.
1536 * target.def (label_align_after_barrier_max_skip): New.
1537 (loop_align_max_skip): New.
1538 (label_align_max_skip): New.
1539 (jump_align_max_skip): New.
1540 * system.h (poison): Add those macros to the list.
1541 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
1542 (LOOP_ALIGN_MAX_SKIP): Remove.
1543 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
1544 (JUMP_ALIGN_MAX_SKIP): Remove.
1545 (default_label_align_after_barrier_max_skip): New.
1546 (default_loop_align_max_skip): New.
1547 (default_label_align_max_skip): New.
1548 (default_jump_align_max_skip): New.
1549 (compute_alignments): Use the new hooks.
1550 (shorten_branches): Likewise.
1551
1552 2010-10-19 Richard Henderson <rth@redhat.com>
1553
1554 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
1555 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
1556 (fma4i_fmadd_<mode>): New.
1557 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
1558 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
1559 standard fma patterns.
1560 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
1561 enable for FMA.
1562 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
1563 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
1564 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
1565
1566 2010-10-19 Paul Koning <pkoning@equallogic.com>
1567
1568 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
1569 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
1570
1571 2010-10-19 Richard Henderson <rth@redhat.com>
1572
1573 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
1574 (fmadf4, *fmsdf4, *nfmadf4): New.
1575 (fmaxf4, *fmsxf4, *nfmaxf4): New.
1576
1577 2010-10-19 Michael Eager <eager@eagercon.com>
1578
1579 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
1580 Use sjlj unwind info for exceptions.
1581
1582 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
1583
1584 PR fortran/43414
1585 * dwarf2out.c (add_calling_convention_attribute): Flag main
1586 Fortran subroutine with DW_AT_main_subprogram.
1587
1588 2010-10-19 Nick Clifton <nickc@redhat.com>
1589
1590 * config/rx/rx.c (rx_function_value): Small integer types are
1591 promoted to SImode.
1592 (rx_promote_function_mode): New function.
1593 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1594
1595 2010-10-19 Nick Clifton <nickc@redhat.com>
1596
1597 * config/mep/mep.c (mep_print_operand): Use
1598 targetm.strip_name_encoding.
1599 (mep_output_aligned_common): Likewise.
1600
1601 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
1602
1603 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
1604
1605 2010-10-18 Richard Henderson <rth@redhat.com>
1606
1607 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
1608 (fma (neg a) (neg b) c) and (fma a (neg b) c).
1609
1610 2010-10-18 Richard Henderson <rth@redhat.com>
1611
1612 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
1613 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
1614 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
1615 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
1616 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
1617 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
1618 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
1619 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
1620 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
1621 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
1622 (bdesc_multi_arg): Remove the corresponding builtins.
1623 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
1624 (UNSPEC_FMA4_FMSUBADD): Remove.
1625 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
1626 * config/i386/sse.md (FMA4MODEF4): Remove.
1627 (FMAMODE): Add.
1628 (fma<mode>4): New expander.
1629 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
1630 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
1631 (*fma4i_fmsub_<mode>): Similarly.
1632 (*fma4i_fnmadd_<mode>): Similarly.
1633 (*fma4i_fnmsub_<mode>): Similarly.
1634 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
1635 with the first operand.
1636 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
1637 of explicit arithmetic. Macroize with AVXMODEF2P.
1638 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
1639 (xop_frcz<mode>2): Macroize with FMAMODE.
1640 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
1641 the first operand.
1642 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
1643 extra negations.
1644 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
1645 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
1646 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
1647 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
1648 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
1649 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
1650 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
1651 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
1652
1653 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
1654
1655 PR rtl-optimization/45966
1656 * combine.c (try_combine): If added_sets_2, deal with the case
1657 where i0 feeds i1 and i1 feeds i2.
1658
1659 2010-10-18 Jan Hubicka <jh@suse.cz>
1660
1661 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
1662 preserve flags before trying to guess on visibility.
1663 (varpool_externally_visible_p): New function.
1664 (function_and_variable_visibility): Use it.
1665
1666 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1667
1668 Implemented parsing @synthesize and @dynamic for Objective-C.
1669 * c-parser.c (c_parser_external_declaration): Recognize
1670 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1671 (c_parser_objc_at_synthesize_declaration): New.
1672 (c_parser_objc_at_dynamic_declaration): New.
1673
1674 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1675
1676 * c-parser.c (c_parser_objc_class_declaration): After finding an
1677 error, parse the whole declaration then reset parser->error.
1678
1679 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1680
1681 PR target/46041
1682 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
1683 * builtins.c (mode_has_fma): Ditto.
1684
1685 2010-10-18 Steve Ellcey <sje@cup.hp.com>
1686
1687 PR target/36898
1688 PR middle-end/43760
1689 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
1690
1691 2010-10-18 Joseph Myers <joseph@codesourcery.com>
1692
1693 * config/i386/i386.c (ix86_option_override_internal): Define and
1694 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
1695 default.
1696 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1697 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
1698
1699 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1700
1701 Merge from 'apple/trunk' branch on FSF servers.
1702 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
1703 following Objective-C change:
1704
1705 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
1706
1707 Radar 4301047
1708 * c-parse.in (objc_quals): Build objc qualifier list same way
1709 as gcc-3.3
1710
1711 2010-10-18 Jan Hubicka <jh@suse.cz>
1712
1713 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
1714 function_and_variable_visibility): Revert accidental commit.
1715
1716 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1717
1718 Merge from 'apple/trunk' branch on FSF servers.
1719 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
1720 the following Objective-C change:
1721
1722 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
1723
1724 Radar 4204796
1725 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
1726 'volatilized' type used in a typeof operator.
1727
1728 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1729
1730 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
1731 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
1732 rewrite modelled on gimple_purge_dead_eh_edges.
1733 (gimple_purge_all_dead_abnormal_call_edges): New function.
1734 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
1735 directly instead of through gimple_purge_dead_abnormal_call_edges.
1736 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
1737 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
1738 removed AB side-effects from one of its statements.
1739 (init_pre): Initialize need_ab_cleanup.
1740 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
1741 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
1742
1743 2010-10-18 Jakub Jelinek <jakub@redhat.com>
1744
1745 PR c/46015
1746 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
1747 on computed goto argument.
1748
1749 2010-10-18 Richard Guenther <rguenther@suse.de>
1750
1751 PR tree-optimization/45967
1752 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
1753 (could_have_pointers): Likewise.
1754 (handle_rhs_call, handle_const_call, handle_pure_call,
1755 find_func_aliases, intra_create_variable_infos): Remove calls to them.
1756 (struct fieldoff): Add must_have_pointers field.
1757 (type_must_have_pointers): New function.
1758 (field_must_have_pointers): Likewise.
1759 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
1760 Adjust field merging.
1761 (create_function_info_for): May-have-pointers of varinfo is
1762 almost always true.
1763 (create_variable_info_for_1): Likewise.
1764
1765 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
1766
1767 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
1768 of operands to vec_concat.
1769
1770 2010-10-18 Richard Guenther <rguenther@suse.de>
1771
1772 PR lto/44950
1773 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
1774 also clear references to entries of it.
1775
1776 2010-10-18 Andi Kleen <ak@linux.intel.com>
1777
1778 PR other/43448
1779 * gccbug.in: Remove.
1780 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
1781 (doc, distclean, install-common): Remove reference to gccbug.
1782 * configure: Regenerate.
1783 * configure.ac (all_outputs): Remove gccbug.
1784 * doc/configfiles.texi: Remove references to gccbug.
1785 * doc/sourcebuild.texi: Dito.
1786
1787 2010-10-18 Jakub Jelinek <jakub@redhat.com>
1788
1789 PR middle-end/46019
1790 * fold-const.c (fold_binary_loc): If integer_pow2p has
1791 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
1792
1793 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
1794 Jeremie Salvucci <jeremie.salvucci@free.fr>
1795
1796 * gengtype.c (verbosity_level): Add variable.
1797 (set_gc_used): Count variables for verbosity.
1798 (close_output_files): Backing up files, counting written ones
1799 verbosily.
1800 (write_types): Count emitted functions for verbosity. Added
1801 debug messages.
1802 (write_enum_defn): Count structures for verbosity. Added debug
1803 messages.
1804 (gengtype_long_options): Add "verbose" & "backupdir".
1805 (print_usage): Ditto.
1806 (main): Verbose display of parsed files.
1807
1808 * gengtype.h (verbosity_level): Add declaration.
1809
1810 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
1811
1812 * gengtype.c (parse_program_options): Add allocation of
1813 plugin_files, and correct test on nb_plugin_files.
1814
1815 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1816
1817 Merge from 'apple/trunk' branch on FSF servers.
1818
1819 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1820
1821 Radar 4133425
1822 * c-decl.c (undeclared_variable): Issue diagnostic on
1823 private 'ivar' access.
1824
1825 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
1826
1827 PR target/46051
1828 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
1829 generated sequence to match *avx_vperm2f128<mode>_nozero.
1830 (vec_interleave_lowv4df): Ditto.
1831 (vec_interleave_highv8sf): Ditto.
1832 (vec_interleave_lowv8sf): Ditto.
1833
1834 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
1835
1836 * libgcov.c (create_file_directory): Enable it for win32 case.
1837 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
1838 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
1839 (GCOV_PREFIX_SKIP): Likewise.
1840
1841 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1842
1843 * doc/objc.texi (GNU Objective-C runtime API): New section.
1844 (Modern GNU Objective-C runtime API): New section.
1845 (Traditional GNU Objective-C runtime API): New section.
1846 (Executing code before main): Mention that this section is
1847 specific to the GNU Objective-C runtime.
1848 (Garbage Collection): Same.
1849
1850 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
1851
1852 * c-parser.c (c_parser_for_statement): Move initialization of
1853 cond and incr before if.
1854
1855 2010-10-17 Anatoly Sokolov <aesok@post.ru>
1856
1857 * target.def (preferred_output_reload_class): New hook.
1858 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
1859 * doc/tm.texi: Regenerate.
1860 * targhooks.c (default_preferred_output_reload_class): New function.
1861 * targhooks.h (default_preferred_output_reload_class): Declare.
1862 * reload.c (find_dummy_reload): Change rclass argument type from
1863 enum reg_class to reg_class_t. Change this_alternative array type
1864 from enum reg_class to reg_class_t.
1865 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
1866 (push_reload): Change preferred_class variable type to reg_class_t.
1867 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
1868 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
1869 argument type from enum reg_class to reg_class_t. Use
1870 HARD_REGISTER_NUM_P predicate.
1871 * recog.h (reg_fits_class_p): Update prototype.
1872
1873 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1874 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
1875 Remove.
1876 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
1877 static. Change regclass argument and result types from enum reg_class
1878 to reg_class_t.
1879 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1880
1881 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1882
1883 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
1884 visibility enum, and handle @package.
1885
1886 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1887
1888 * doc/objc.texi (What you can and what you cannot do in +load):
1889 Document that sending messages to constant string objects in +load
1890 is not guaranteed to work.
1891
1892 2010-10-16 Jan Hubicka <jh@suse.cz>
1893
1894 PR middle-end/44206
1895 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
1896 existence of refrences before removing the function.
1897
1898 2010-10-16 Jan Hubicka <jh@suse.cz>
1899
1900 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
1901 only_called_at_startup and only_called_at_exit.
1902 (cgraph_propagate_frequency): Compute only_called_at_startup and
1903 only_called_at_exit.
1904 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
1905 only_called_at_exit.
1906 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
1907 flags.
1908 * predict.c (compute_function_frequency): Initialize the new flags.
1909
1910 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
1911
1912 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
1913 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
1914 on the bounds of its domain.
1915 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
1916
1917 2010-10-16 Anatoly Sokolov <aesok@post.ru>
1918
1919 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
1920 * config/avr/avr-protos.h (preferred_reload_class): Remove.
1921 * config/avr/avr.c (preferred_reload_class): Remove.
1922 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
1923 * config/pa/pa.c (emit_move_sequence): Update comment
1924 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
1925 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
1926 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
1927 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
1928 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
1929 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
1930 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
1931 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
1932 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
1933 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
1934 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
1935 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
1936 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
1937
1938 2010-10-16 Joseph Myers <joseph@codesourcery.com>
1939
1940 * opts.c (set_fast_math_flags,
1941 set_unsafe_math_optimizations_flags): Make static.
1942 * toplev.h (set_fast_math_flags,
1943 set_unsafe_math_optimizations_flags): Remove prototypes.
1944
1945 2010-10-16 Joseph Myers <joseph@codesourcery.com>
1946
1947 * config/arm/arm.c (arm_option_optimization): Set
1948 flag_section_anchors to 1 not 2.
1949 * config/i386/i386.c (ix86_option_override_internal): Check
1950 global_options_set.x_flag_zee and
1951 global_options_set.x_flag_omit_frame_pointer.
1952 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
1953 flag_zee to 2.
1954 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
1955 global_options_set.x_flag_omit_frame_pointer.
1956 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
1957 opts->x_flag_section_anchors to 1 not 2.
1958 * config/sh/sh.c (sh_option_optimization): Don't set
1959 flag_schedule_insns to 2.
1960 (sh_option_override): Check
1961 global_options_set.x_flag_schedule_insns.
1962 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
1963
1964 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
1965
1966 * configure.ac: Make sure inhibit_libc remains false for mingw targets
1967 as cross.
1968 * configure: Regenerated.
1969
1970 2010-10-15 Xinliang David Li <davidxl@google.com>
1971
1972 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
1973 function.
1974 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
1975 into a recursive function.
1976
1977 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
1978
1979 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
1980 (*movdfcc_1): ditto.
1981
1982 2010-10-15 Joseph Myers <joseph@codesourcery.com>
1983
1984 * target.def (target_option.init_struct): New hook.
1985 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
1986 * doc/tm.texi: Regenerate.
1987 * hooks.c (hook_void_gcc_optionsp): New.
1988 * hooks.h (hook_void_gcc_optionsp): Declare.
1989 * langhooks-def.h (lhd_init_options_struct): Remove.
1990 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
1991 * langhooks.c (lhd_init_options_struct): Remove.
1992 * opts.c (init_options_struct): Also call
1993 targetm.target_option.init_struct.
1994 * config/i386/i386.c (ix86_option_init_struct,
1995 TARGET_OPTION_INIT_STRUCT): New.
1996 (ix86_option_optimization): Move some settings to
1997 ix86_option_init_struct.
1998 * config/pdp11/pdp11.c (pdp11_option_init_struct,
1999 TARGET_OPTION_INIT_STRUCT): New.
2000 (pdp11_option_optimization): Move some settings to
2001 pdp11_option_init_struct.
2002 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
2003 rs6000_option_init_struct. Use options structure pointer.
2004 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2005 * config/s390/s390.c (s390_option_init_struct,
2006 TARGET_OPTION_INIT_STRUCT): New.
2007 (s390_option_optimization): Don't set
2008 flag_asynchronous_unwind_tables here.
2009 * config/sh/sh.c (sh_option_init_struct,
2010 TARGET_OPTION_INIT_STRUCT): New.
2011 (sh_option_optimization): Don't set flag_finite_math_only here.
2012 * config/spu/spu.c (spu_option_optimization): Replace by
2013 spu_option_optimization. Use options structure pointer.
2014 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2015
2016 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2017
2018 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
2019
2020 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
2021 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
2022 (Standard names): Document fma.
2023
2024 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
2025 __FP_FAST_FMAF, __FP_FAST_FMAL.
2026
2027 * builitns.c (expand_builtin_mathfn_ternary): New function for
2028 expanding ternary math functions, like fma.
2029 (expand_builtin): Call it for the fma builtins.
2030
2031 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
2032 ops at present.
2033
2034 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
2035 vectorizable functions to support vectorizing fma.
2036
2037 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
2038 Handle fma builtins.
2039
2040 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
2041 (UNSPEC_VSX_MSUB): Ditto.
2042 (UNSPEC_VSX_NMADD): Ditto.
2043 (UNSPEC_VSX_NMSUB): Ditto.
2044 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
2045 of UNSPEC. Renumber combiner patterns.
2046 (vsx_fmsub<mode>4*): Ditto.
2047 (vsx_fnmadd<mode>4*): Ditto.
2048 (vsx_fnmsub<mode>4*): Ditto.
2049
2050 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
2051 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
2052 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
2053 (altivec_vmaddfp_1): Ditto.
2054 (altivec_vmaddfp_2): Ditto.
2055 (atlivec_mulv4sf3): Ditto.
2056 (altivec_vnmsubfp): Ditto.
2057 (altivec_vnmsubfp_1): Ditto.
2058 (altivec_vnmsubfp_2): Ditto.
2059 (altivec_vnmsubfp_3): Delete.
2060
2061 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
2062 (fmasf4_fpr): Ditto.
2063 (fmssf4_fpr): Ditto.
2064 (fnmasf4_fpr): Ditto.
2065 (fnmssf4_fpr): Ditto.
2066 (fmadf4): Ditto.
2067 (fmadf4_fpr): Ditto.
2068 (fmsdf4_fpr): Ditto.
2069 (fnmadf4_fpr): Ditto.
2070 (fnmsdf4_fpr): Ditto.
2071
2072 * optabs.h (OTI_fma): Add fma optab.
2073 (fma_optab): Ditto.
2074
2075 * genopinit.c (optabs): Set fma optab.
2076
2077 * rtl.def (FMA): Add FMA rtl.
2078
2079 * tree.h (mode_has_fma): New function to return if MODE supports a
2080 fast multiply and add instruction.
2081 * builtins.c (mode_has_fma): Ditto.
2082
2083 2010-10-15 Jan Hubicka <jh@suse.cz>
2084
2085 * lto-streamer-out.c (write_symbol): Use pointer set of seen
2086 objects instead of bitmap.
2087 (produce_symtab): Likewise; output defined symbols first.
2088
2089 2010-10-15 Jie Zhang <jie@codesourcery.com>
2090
2091 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
2092 Option Summary and Index.
2093
2094 2010-10-15 Richard Guenther <rguenther@suse.de>
2095
2096 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
2097 for automatic variables again.
2098
2099 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2100
2101 * doc/extend.texi (Variable Length): Don't refer to VLAs not
2102 conforming to C99.
2103
2104 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2105
2106 * config/rx/rx.c (rx_option_optimization): Change to
2107 rx_override_options_after_change. Don't change
2108 flag_lto_compression_level. Don't check for changes to whether
2109 FPU instructions can be used. Check and set only
2110 flag_finite_math_only, not other fast-math flags.
2111 (rx_option_override): Call rx_override_options_after_change.
2112 (TARGET_OPTION_OPTIMIZATION): Remove.
2113 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2114
2115 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2116
2117 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
2118 disable section anchors for lang_hooks.name[4] != 'O'.
2119
2120 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2121
2122 * config/frv/frv.c (frv_option_optimization,
2123 TARGET_OPTION_OPTIMIZATION): Remove.
2124 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
2125
2126 2010-10-15 Michael Matz <matz@suse.de>
2127
2128 * cgraphunit.c (clone_of_p): Define unconditionally.
2129
2130 2010-10-15 Richard Guenther <rguenther@suse.de>
2131
2132 PR lto/45957
2133 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
2134
2135 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
2136
2137 * ifcvt.c (find_active_insn_before): New function.
2138 (find_active_insn_after): New function.
2139 (cond_exec_process_if_block): Use new functions to replace
2140 prev_active_insn() and next_active_insn().
2141
2142 2010-10-14 Yao Qi <yao@codesourcery.com>
2143
2144 PR target/45447
2145 * config/arm/arm.c (arm_build_builtin_va_list): Assign
2146 va_list_name to TYPE_STUB_DECL (va_list_type).
2147
2148 2010-10-14 Jan Hubicka <jh@suse.cz>
2149
2150 PR middle-end/45621
2151 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
2152 redirected to clone, be happy.
2153 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
2154 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
2155 former_clone_of unconditionally.
2156
2157 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2158
2159 Merge from FSF apple 'trunk' branch.
2160 2006 Fariborz Jahanian <fjahanian@apple.com>
2161
2162 Radars 4436866, 4505126, 4506903, 4517826
2163 * c-parser.c (c_parser, objc_property_attr_context) New flag.
2164 (c_lex_one_token): Handle property attributes.
2165 (c_parser_external_declaration): Handle @property.
2166 (c_parser_declaration_or_fndef): Warn on invalid attributes before
2167 @alias, @class, @end and @property objc keywords.
2168 (c_parser_objc_methodprotolist): Handle @property.
2169 (c_parser_objc_property_attrlist): New.
2170 (c_parser_objc_at_property): New.
2171 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
2172 (build_modify_expr): Likewise.
2173
2174 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2175
2176 PR tree-optimization/46008
2177 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
2178
2179 2010-10-14 Richard Guenther <rguenther@suse.de>
2180
2181 PR tree-optimization/44913
2182 * tree-data-ref.c (disjoint_objects_p): Remove.
2183 (dr_may_alias_p): Simplify. Only hand the base object to
2184 the alias-oracle.
2185 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2186 some more trees, bail out instead of asserting.
2187 (ptr_derefs_may_alias_p): Likewise. Export.
2188 (refs_may_alias_p_1): Handle STRING_CSTs.
2189 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
2190
2191 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2192
2193 PR c/45969
2194 * c-typeck.c (build_binary_op): Don't try to compute a semantic
2195 type with excess precision for boolean operations.
2196
2197 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
2198 Basile Starynkevitch <basile@starynkevitch.net>
2199
2200 * gengtype.c: Include getopt.h and version.h.
2201
2202 (lang_bitmap, struct outf, outf_p)
2203 (get_output_file_with_visibility, oprintf): Definitions moved to
2204 gengtype.h
2205 (output_files, header_file, srcdir, srcdir_len, this_file)
2206 (do_dump): No more static variables.
2207 (do_debug): New.
2208 (dbgprint_count_type_at): Added new function.
2209 (gengtype_long_options): New.
2210 (print_usage, print_version, parse_program_options): New.
2211 (main): Call parse_program_options, and removed old option
2212 handling code. Added some debug output.
2213
2214 * gengtype.h: Updated copyright year.
2215 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
2216 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
2217 Moved from gengtype.c to here.
2218 (do_debug, read_state_filename, write_state_filename): New variables.
2219 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
2220
2221 * Makefile.in:
2222 (REVISION): Always defined.
2223 (version.o): Removed ifdef REVISION_c.
2224 (s-gtype): Pass arguments to build/gengtype program.
2225 (build/version.o): Added building rule.
2226 (build/gengtype$(build_exeext)): Added build/version.o.
2227
2228 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2229
2230 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
2231 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
2232 __strong macros.
2233
2234 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
2235
2236 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
2237 may_trap_or_fault_p instead of may_trap_p predicate.
2238 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
2239 (substitute_placeholder_in_expr): Likewise.
2240 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
2241 flag on MEM_REF nodes.
2242 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
2243 flags on INDIRECT_REF nodes.
2244
2245 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
2246
2247 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
2248 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
2249 (arm*-*-eabi*) <tm_file>: Likewise.
2250 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
2251 (frv-*-*linux*) <tm_file>: Likewise.
2252 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
2253 and associated helper macros.
2254 * config/frv/frv-abi.h: Delete.
2255
2256 2010-10-14 Richard Guenther <rguenther@suse.de>
2257
2258 PR lto/44561
2259 * tree.def (NULLPTR_TYPE): New tree code.
2260 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
2261 * dwarf2out.c (is_base_type): Likewise.
2262 (gen_type_die_with_usage): Likewise.
2263 * sdbout.c (plain_type_1): Likewise.
2264 * tree.c (build_int_cst_wide): Likewise.
2265 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
2266
2267 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2268
2269 * params.c (params_finished): New.
2270 (add_params): Assert !params_finished.
2271 (finish_params): New.
2272 (set_param_value_internal): Take params and params_set
2273 parameters. Assert params_finished.
2274 (set_param_value, maybe_set_param_value): Take params and
2275 params_set parameters. Update calls to set_param_value_internal.
2276 (set_default_param_value): Assert !params_finished. Don't use
2277 set_param_value_internal.
2278 (default_param_value, init_param_values): New.
2279 * params.h (struct param_info): Change value to default_value.
2280 Remove set.
2281 (set_param_value, maybe_set_param_value): Add params and
2282 params_set parameters.
2283 (PARAM_VALUE): Get parameters from global_options.
2284 (PARAM_SET_P): Remove.
2285 (finish_params, default_param_value, init_param_values): New.
2286 * common.opt (param_values): New Variable.
2287 * config/arm/arm.c (arm_option_override): Pass extra arguments to
2288 maybe_set_param_value.
2289 * config/i386/i386.c (ix86_option_override_internal): Pass extra
2290 arguments to maybe_set_param_value.
2291 * config/picochip/picochip.c (picochip_option_override): Pass
2292 extra arguments to maybe_set_param_value.
2293 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
2294 extra arguments to maybe_set_param_value.
2295 * config/s390/s390.c (s390_option_override): Use
2296 maybe_set_param_value instead of set_param_value. Pass extra
2297 arguments to maybe_set_param_value.
2298 * config/sparc/sparc.c (sparc_option_override): Pass extra
2299 arguments to maybe_set_param_value.
2300 * config/spu/spu.c (spu_option_override): Pass extra arguments to
2301 maybe_set_param_value.
2302 * opts.c (handle_param): Take opts and opts_set parameters.
2303 Update call to set_param_value.
2304 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
2305 initial_loop_invariant_max_bbs_in_loop): Remove.
2306 (init_options_once): Don't set them.
2307 (init_options_struct): Initialize parameters structures.
2308 (default_options_optimization): Use default_param_value when
2309 restoring defaults. Update calls to maybe_set_param_value.
2310 (finish_options): Update calls to maybe_set_param_value.
2311 (common_handle_option): Update calls to handle_param and
2312 set_param_value.
2313 * toplev.c (DEFPARAM): Update definition for changes to param_info.
2314 (general_init): Call finish_params.
2315
2316 2010-10-14 Nick Clifton <nickc@redhat.com>
2317
2318 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
2319 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
2320 (FIRST_PSEUDO_REGISTER): Increase by one.
2321 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
2322 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
2323 (MODES_TIEABLE): Call mn10300_modes_tieable.
2324 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
2325 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
2326 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
2327 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
2328 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
2329 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
2330 (mn10300_cc_status_mdep): Delete.
2331 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
2332 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
2333 the combine-stack-adjust pass.
2334 (print_operand): Use the mode of the comparison operation to
2335 select the comparison suffix.
2336 (notice_update_cc): Delete.
2337 (mn10300_secondary_reload_class): Remove test for stack pointer
2338 based arithmetic.
2339 (output_tst): Rename to mn10300_output_cmp.
2340 (impossible_plus_operand): Move into predicates.md.
2341 (mn10300_legitimize_address): Make static.
2342 (mn10300_legitimate_address_p): Make static. Only allow SI sized
2343 constant pic operands.
2344 (mn10300_legitimate_constant_p): New function.
2345 (mn10300_case_values_threshold): Make static.
2346 (mn10300_hard_regno_mode_ok): New function.
2347 (mn10300_modes_tieable): New function.
2348 (mn10300_select_cc_mode): New function.
2349 * config/mn10300/predicates.md (impossible_plus_operand): Define.
2350 * config/mn10300/mn10300-protos.h: Tidy.
2351 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
2352 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
2353 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
2354 with clobbers or sets of CC_REG.
2355 (CC_REG): Define.
2356 (mov*): Remove use of CLR instruction.
2357 (cbranch_si4_<code>): New pattern/split.
2358 (integer_conditional_branch): New pattern.
2359 (cbranch_sf4_<code>): New pattern/split.
2360 (float_conditional_branch): New pattern.
2361 (casesi): Use addsi3 pattern instead of movsi pattern to add and
2362 move a value at the same time.
2363 (cc0 peepholes): Remove.
2364
2365 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2366
2367 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
2368 on RTX_FRAME_RELATED_P insns and the insn to which
2369 NOTE_INSN_EPILOGUE_BEG is attached.
2370 * sched-vis.c (print_value): Allow NULL value.
2371
2372 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2373
2374 PR rtl-optimization/45570
2375 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
2376 assert that we are pipelining outer loops. Allow returning
2377 zero predecessors.
2378
2379 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2380
2381 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
2382 (tidy_control_flow): Tidy vertical space.
2383 (sel_remove_bb): New variable idx. Use it to remember the basic
2384 block index before deleting the block.
2385 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
2386 (sel_merge_blocks): ... here.
2387 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
2388
2389 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2390
2391 * cse.c (is_dead_reg): Change into inline function that is not
2392 called through for_each_rtx.
2393 (set_live_p): Adjust caller.
2394 (insn_live_p): Don't reset DEBUG_INSNs here.
2395 (struct dead_debug_insn_data): New data.
2396 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
2397 (delete_trivially_dead_insns): If there is just one setter for the
2398 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
2399 and add DEBUG_INSN for it right before the removed setter and
2400 use the DEBUG_EXPR instead of the dead pseudo.
2401
2402 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
2403
2404 * et-forest.c (et_nca): Return NULL immediately when
2405 the dominance forest has disjoint components.
2406
2407 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
2408
2409 * ira.c (setup_class_hard_regs): Fix typo in indexing
2410 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
2411
2412 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
2413
2414 * graph.c (inbb): New variable.
2415 (start_bb): Set inbb to 1 if output is inside of a building block.
2416 (end_bb): Check if output is inside of a building block.
2417
2418 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
2419
2420 PR rtl-optimization/45912
2421 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
2422 regno of registers instead of their index to compute the alignment.
2423
2424 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
2425
2426 * config/i386/i386.c (ix86_build_const_vector): Check vector
2427 mode instead of scalar mode.
2428 (ix86_build_signbit_mask): Likewise.
2429 (ix86_expand_fp_absneg_operator): Updated.
2430 (ix86_expand_copysign): Likewise.
2431 (ix86_expand_int_vcond): Likewise.
2432 (ix86_emit_swdivsf): Likewise.
2433 (ix86_sse_copysign_to_positive): Likewise.
2434 (ix86_expand_sse_fabs): Likewise.
2435 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
2436 * config/i386/sse.md (copysign<mode>3): Likewise.
2437 (sse2_cvtudq2ps): Likewise.
2438 (vec_unpacku_float_hi_v4si): Likewise.
2439 (vec_unpacku_float_lo_v4si): Likewise.
2440
2441 * config/i386/i386.c (ix86_builtins): Add
2442 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
2443 (bdesc_args): Likewise.
2444 (ix86_builtin_vectorized_function): Support
2445 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
2446 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
2447 and IX86_BUILTIN_CVTPS2DQ256.
2448 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
2449
2450 * config/i386/sse.md (STORENT_MODE): New.
2451 (VEC_FLOAT_MODE): Likewise.
2452 (VEC_EXTRACT_MODE): Likewise.
2453 (*avx_cvtdq2pd256_2): Likewise.
2454 (vec_pack_trunc_v4df): Likewise.
2455 (vec_interleave_highv8sf): Likewise.
2456 (vec_interleave_lowv8sf): Likewise.
2457 (storent<mode>): Macroized.
2458 (<code><mode>2: absneg): Likewise.
2459 (copysign<mode>3): Likewise.
2460 (vec_extract<mode>): Likewise.
2461
2462 PR target/44180
2463 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
2464 for V8SFmode.
2465
2466 2010-10-13 Richard Guenther <rguenther@suse.de>
2467 H.J. Lu <hongjiu.lu@intel.com>
2468
2469 * config/i386/sse.md (reduc_splus_v8sf): Add.
2470 (reduc_splus_v4df): Likewise.
2471 (vec_unpacks_hi_v8sf): Likewise.
2472 (vec_unpacks_lo_v8sf): Likewise.
2473 (*avx_cvtps2pd256_2): Likewise.
2474 (vec_unpacks_float_hi_v8si): Likewise.
2475 (vec_unpacks_float_lo_v8si): Likewise.
2476 (vec_interleave_highv4df): Likewise.
2477 (vec_interleave_lowv4df): Likewise.
2478
2479 2010-10-13 Richard Guenther <rguenther@suse.de>
2480
2481 PR objc/45878
2482 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
2483 alone if there are no virtual methods.
2484
2485 2010-10-13 Richard Henderson <rth@redhat.com>
2486
2487 * expr.c (build_personality_function): Take parameter LANG instead
2488 of parameter NAME. Build the name based on the lang prefix and the
2489 unwind method in use.
2490 * tree.c (lhd_gcc_personality): Update call to
2491 build_personality_function.
2492
2493 2010-10-13 Richard Guenther <rguenther@suse.de>
2494
2495 PR objc/45878
2496 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
2497
2498 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
2499
2500 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
2501 Canonicalize input operands of ASM_OPERANDS insns.
2502
2503 2010-10-13 Richard Guenther <rguenther@suse.de>
2504
2505 PR tree-optimization/45788
2506 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
2507 EH update until fixup-cfg.
2508
2509 2010-10-13 Julian Brown <julian@codesourcery.com>
2510
2511 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
2512 from CORE_REGS and GENERAL_REGS classes.
2513 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
2514 final constraint for register preferencing.
2515
2516 2010-10-13 Richard Guenther <rguenther@suse.de>
2517
2518 PR tree-optimization/45970
2519 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
2520 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
2521 (stmt_kills_ref_p): Likewise.
2522 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
2523
2524 2010-10-13 Richard Guenther <rguenther@suse.de>
2525
2526 PR tree-optimization/45982
2527 * tree-ssa-structalias.c (make_constraints_to): New function.
2528 (make_constraint_to): Implement in terms of make_constraints_to.
2529 (find_func_aliases): Properly make return values of pure/const
2530 functions escape if they assign to sth that is not a pointer.
2531
2532 2010-10-13 Richard Guenther <rguenther@suse.de>
2533
2534 PR middle-end/45874
2535 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
2536 Fixup the CFG when EH was fixed up.
2537
2538 2010-10-13 Ira Rosen <irar@il.ibm.com>
2539
2540 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
2541 Use operand's type for POINTER_PLUS_EXPR.
2542
2543 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
2544
2545 * c-parser.c (c_parser_for_statement): Initialize incr.
2546
2547 2010-10-12 Xinliang David Li <davidxl@google.com>
2548
2549 PR tree-optimization/45972
2550 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
2551 with too many arguments.
2552
2553 2010-10-12 Jakub Jelinek <jakub@redhat.com>
2554
2555 PR fortran/45636
2556 * tree-ssa-forwprop.c: Include expr.h.
2557 (constant_pointer_difference, simplify_builtin_call): New functions.
2558 (tree_ssa_forward_propagate_single_use_vars): Call
2559 simplify_builtin_call on builtin calls.
2560
2561 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
2562
2563 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
2564 (*adddi3_extend_sp32): Likewise.
2565 (*subdi3_insn_sp32): Likewise.
2566 (*subdi3_extend_sp32): Likewise.
2567 (*negdi2_sp32): Use negative test for consistency.
2568
2569 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
2570
2571 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
2572 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2573 * config/fixed-bit.h: Likewise.
2574 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2575 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2576 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
2577 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
2578 (DF_SIZE): Likewise.
2579 * doc/tm.texi: Regenerate.
2580
2581 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
2582
2583 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
2584 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
2585 (*isel_reversed_unsigned_<mode>): New.
2586 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
2587 as valid comparisons and adjust operands and output appropriately.
2588 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
2589
2590 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
2591
2592 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
2593 DATA_ALIGNMENT and add COND parameter. Update comments above.
2594 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
2595 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
2596
2597 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
2598
2599 PR bootstrap/45958
2600 * exec-tool.in: Support '-plugin' as the second option to the linker.
2601
2602 2010-10-12 Richard Henderson <rth@redhat.com>
2603
2604 PR middle-end/45962
2605 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
2606 (expand_stack_vars): Assert large base allocated when used.
2607
2608 2010-10-12 Richard Guenther <rguenther@suse.de>
2609
2610 * tree-ssa-structalias.c (get_constraint_for_1): Constants
2611 only point to nonlocal, not anything.
2612
2613 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
2614
2615 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
2616 unwind info for exceptions.
2617
2618 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2619
2620 PR testsuite/45851
2621 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
2622 Document optional target selector.
2623
2624 2010-10-12 Joseph Myers <joseph@codesourcery.com>
2625
2626 * flag-types.h: New.
2627 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
2628 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
2629 options.h.
2630 (OPTIONS_H): Define.
2631 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
2632 of options.h.
2633 * configure.ac (tm_include_list): Include options.h not flags.h.
2634 * configure: Regenerate.
2635 * flags.h: Include flag-types.h. Include options.h at top of file
2636 again.
2637 (enum debug_info_type, enum debug_info_level, enum
2638 debug_info_usage, enum symbol_visibility, struct visibility_flags,
2639 enum ira_algorithm, enum ira_region, enum excess_precision, enum
2640 graph_dump_types, enum stack_check_type,
2641 enum warn_strict_overflow_code): Move to flag-types.h
2642 * opth-gen.awk: Include flag-types.h in options.h.
2643
2644 2010-10-12 Jakub Jelinek <jakub@redhat.com>
2645
2646 * expr.c (store_expr): Share code for STRING_CST and
2647 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
2648 check if target is a MEM.
2649
2650 * rtl.h: Include hashtab.h.
2651 (iterative_hash_rtx): New prototype.
2652 * rtl.c (iterative_hash_rtx): New function.
2653 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
2654 (output_loc_list): Return immediately if emitted is set, set it.
2655 (hash_loc_operands, hash_locs, hash_loc_list,
2656 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
2657 optimize_location_lists_1, optimize_location_lists): New function.
2658 (dwarf2out_finish): Call optimize_location_lists.
2659 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
2660
2661 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2662
2663 PR testsuite/45974
2664 Revert:
2665 * Makefile.in ($(lang_checks_parallel))
2666 ($(lang_checks_parallelized)): Use single quotes for
2667 $(RUNTESTFLAGS), to allow passing quoted content.
2668
2669 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2670
2671 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
2672 actual_oldval. Use __builtin_expect.
2673 (SUBWORD_VAL_CAS): Likewise.
2674
2675 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2676
2677 * recog.c (nonmemory_operand): Call immediate_operand for
2678 CONSTANT_P operands.
2679
2680 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
2681
2682 * config/i386/i386.md (movmem<mode>): Macroize expander from
2683 movmem{si,di} using SWI48 mode iterator.
2684 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
2685 *strmovsi_rex_1 using P mode iterator.
2686 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
2687 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
2688 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
2689 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
2690 (setmem<mode>): Macroize expander from setmem{si,di} using
2691 SWI48 mode iterator.
2692 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
2693 *strsetsi_rex_1 using P mode iterator.
2694 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
2695 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
2696 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
2697 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
2698 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
2699 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
2700 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
2701 mode iterator.
2702 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
2703 *strlenqi_rex_1 using P mode iterator.
2704
2705 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
2706
2707 PR bootstrap/45445
2708 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
2709 static functions.
2710 (mark_ref_live, mark_ref_dead): Use them.
2711 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
2712 Save the original reg, and use the new functions.
2713 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
2714 changed.
2715 (check_and_make_def_conflict): Save the original reg.
2716
2717 2010-10-11 Martin Jambor <mjambor@suse.cz>
2718
2719 PR middle-end/45699
2720 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
2721 thunks.
2722
2723 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2724
2725 * Makefile.in ($(lang_checks_parallel))
2726 ($(lang_checks_parallelized)): Use single quotes for
2727 $(RUNTESTFLAGS), to allow passing quoted content.
2728
2729 PR bootstrap/35855
2730 * opt-functions.awk (BEGIN): New section.
2731 (lower, upper, digit, alnum): New variables.
2732 (static_var, opt_sanitized_name): Use alnum instead of character
2733 classes, for non-C locale.
2734 * optc-gen.awk: Likewise.
2735 * opth-gen.awk: Likewise.
2736
2737 2010-10-11 Anatoly Sokolov <aesok@post.ru>
2738
2739 * target.def (preferred_reload_class): New hook.
2740 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
2741 * doc/tm.texi: Regenerate.
2742 * targhooks.c (default_preferred_reload_class): New function.
2743 * targhooks.h (default_preferred_reload_class): Declare.
2744 * reload.c (find_dummy_reload): Change preferred_class variable type
2745 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
2746 target hook.
2747 (find_reloads): Change goal_alternative array type from int to
2748 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
2749 (push_reload, find_reloads_address_part): Use
2750 TARGET_PREFERRED_RELOAD_CLASS target hook.
2751 * reload1.c (emit_input_reload_insns): Ditto.
2752 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
2753 hook. Change rclass argument and secondary_class variable types from
2754 'enum reg_class' to reg_class_t.
2755
2756 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
2757 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
2758 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
2759 Change regclass argument and result types from enum reg_class to
2760 reg_class_t.
2761 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2762
2763 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2764
2765 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
2766 in masking operations.
2767 (simplify_const_unary_operation): Likewise.
2768 (simplify_binary_operation_1): Likewise.
2769 (simplify_const_binary_operation): Likewise.
2770 (simplify_const_relational_operation): Likewise.
2771 (simplify_ternary_operation): Likewise.
2772 (simplify_immed_subreg): Likewise.
2773
2774 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2775
2776 PR middle-end/45862
2777 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
2778 (TARGET_SUPPORTS_WEAK): New.
2779 * doc/tm.texi: Regenerate.
2780 * defaults.h (SUPPORTS_WEAK): Update comment.
2781 (TARGET_SUPPORTS_WEAK): New.
2782 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
2783 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
2784 SUPPORTS_WEAK.
2785 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
2786 make_decl_one_only): Likewise.
2787 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
2788 TARGET_SUPPORTS_WEAK.
2789 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
2790 instead of SUPPORTS_WEAK.
2791
2792 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2793
2794 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
2795
2796 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2797
2798 * vec.h (VEC_qsort): Define.
2799 * dbxout.c (output_used_types): Use it.
2800 * df-scan.c (df_sort_and_compress_refs): Likewise.
2801 (df_sort_and_compress_mws): Likewise.
2802 * genautomata.c (uniq_sort_alt_states): Likewise.
2803 (evaluate_equiv_classes): Likewise.
2804 (output_trans_table): Likewise.
2805 (output_state): Likewise.
2806 * gimplify.c (compare_case_labels): Likewise.
2807 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
2808 * ipa.c (build_cdtor_fns): Likewise.
2809 * lto.c (lto_wpa_write_files): Likewise.
2810 * sel-sched.c (fill_vec_av_set): Likewise.
2811 * tree-predcom.c (determine_roots_comp): Likewise.
2812 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
2813 (splice_param_accesses): Likewise.
2814 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
2815 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
2816 (reassociate_bb): Likewise.
2817 * tree-ssa-sccvn.c (sort_scc): Likewise.
2818 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
2819
2820 2010-10-11 Ian Lance Taylor <iant@google.com>
2821
2822 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
2823 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
2824 TREE_THIS_NOTRAP when appropriate.
2825 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
2826 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
2827 newly created MEM_REF.
2828
2829 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
2830
2831 Nathan Froyds patch to hooks FUNCTION_ARG etc.
2832 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
2833 (picochip_incoming_function_arg): Delete.
2834 (picochip_arg_advance): Delete.
2835 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
2836 (FUNCTION_INCOMING_ARG): Delete.
2837 (FUNCTION_ARG_ADVANCE): Delete.
2838 * config/picochip/picochip.c (picochip_function_arg): Take a
2839 const_tree and a bool.
2840 (picochip_incoming_function_arg): Likewise.
2841 (picochip_arg_advance): Likewise.
2842 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2843 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2844
2845 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2846
2847 PR middle-end/45955
2848 * ipa.c (build_cdtor): Delete endless loop.
2849
2850 2010-10-07 Andi Kleen <ak@linux.intel.com>
2851
2852 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
2853 checksum-options.
2854 (checksum-options): Add.
2855 (cc1-dummy): Remove.
2856 (cc1-checksum): Change to run checksum over object files
2857 and options only.
2858 * dummy-checksum.c: Remove.
2859 * genchecksum.c: Update copyright.
2860 (usage): Allow multiple arguments.
2861 (BLOCKSIZE): Add.
2862 (dosum): Change for incremental checksum. Remove C output.
2863 (main): Iterate over all argument files. Add C output.
2864
2865 2010-10-11 Joseph Myers <joseph@codesourcery.com>
2866
2867 * params.c (set_param_value_internal): New.
2868 (set_param_value): Use set_param_value_internal.
2869 (maybe_set_param_value, set_default_param_value): New.
2870 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
2871 (maybe_set_param_value, set_default_param_value): Declare.
2872 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
2873 * config/i386/i386.c (ix86_option_override_internal): Use
2874 maybe_set_param_value.
2875 * config/ia64/ia64.c (ia64_option_default_params,
2876 TARGET_OPTION_DEFAULT_PARAMS): New.
2877 (ia64_option_optimization): Move some code to
2878 ia64_option_default_params.
2879 * config/picochip/picochip.c (picochip_option_override): Use
2880 maybe_set_param_value.
2881 * config/rs6000/rs6000.c (rs6000_option_default_params,
2882 TARGET_OPTION_DEFAULT_PARAMS): New.
2883 (rs6000_option_override_internal): Use maybe_set_param_value.
2884 (rs6000_option_optimization): Move some code to
2885 rs6000_option_default_params.
2886 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
2887 * config/sh/sh.c (sh_option_default_params,
2888 TARGET_OPTION_DEFAULT_PARAMS): New.
2889 (sh_option_optimization): Move some code to sh_option_default_params.
2890 * config/sparc/sparc.c (sparc_option_override): Use
2891 maybe_set_param_value.
2892 * config/spu/spu.c (spu_option_default_params,
2893 TARGET_OPTION_DEFAULT_PARAMS): New.
2894 (spu_option_optimization): Move some code to spu_option_default_params.
2895 (spu_option_override): Use maybe_set_param_value.
2896 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
2897 * doc/tm.texi: Regenerate.
2898 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
2899 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
2900 compiler_params.
2901 (default_options_optimization): Use maybe_set_param_value.
2902 (finish_options): Use maybe_set_param_value.
2903 * target.def (target_option.default_params): New hook.
2904 * toplev.c (general_init): Call targetm.target_option.default_params.
2905
2906 2010-10-11 Ira Rosen <irar@il.ibm.com>
2907
2908 PR tree-optimization/45902
2909 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
2910 vector type for constants, unless it's a pointer.
2911
2912 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2913
2914 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
2915
2916 2010-10-11 Jakub Jelinek <jakub@redhat.com>
2917
2918 PR target/45870
2919 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
2920 (ix86_delegitimize_address): Use it.
2921
2922 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2923
2924 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
2925
2926 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
2927
2928 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
2929 to cum struct in the call to function_arg_advance.
2930 (alpha_function_arg_advance): Mark named as unused.
2931
2932 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
2933
2934 * config/mips/mips.c (mips_handle_option): Make "value" with
2935 ATTRIBUTE_UNUSED.
2936
2937 2010-10-09 Richard Henderson <rth@redhat.com>
2938
2939 PR rtl-opt/33721
2940 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
2941 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
2942 required_align, tidy the code a bit. Emit split_stack code in the
2943 right place. Mark the return value with the alignment properly.
2944 * expr.h (allocate_dynamic_stack_space): Update decl.
2945 * builtins.c (expand_builtin_apply): Update call to
2946 allocate_dynamic_stack_space.
2947 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
2948 * calls.c (initialize_argument_information): Update call to
2949 allocate_dynamic_stack_space.
2950 (expand_call): Likewise.
2951
2952 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
2953 Don't update_stack_alignment here.
2954 (alloc_stack_frame_space): Make ALIGN unsigned.
2955 (stack_var_cmp): Sort by alignment too.
2956 (partition_stack_vars): Don't merge large and small alignment vars.
2957 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
2958 Take care when BASE is not virtual_stack_vars_rtx.
2959 (expand_stack_vars): Allocate dynamic stack space for large
2960 alignment variables.
2961 (expand_one_stack_var): Update all to expand_one_stack_var_at.
2962 (defer_stack_allocation): True for large alignment vars.
2963 (update_stack_alignment): Merge into ...
2964 (expand_one_var): ... here.
2965 (gimple_expand_cfg): Place code from expand_stack_vars.
2966
2967 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2968
2969 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2970 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
2971 (pdp11_function_arg_advance): New function.
2972 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2973
2974 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2975
2976 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
2977 * libgcc2.c: Likewise.
2978
2979 2010-10-09 Richard Guenther <rguenther@suse.de>
2980
2981 PR lto/45956
2982 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
2983 Properly check if a decl is an automatic var.
2984
2985 2010-10-09 Richard Guenther <rguenther@suse.de>
2986
2987 PR lto/45947
2988 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
2989
2990 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2991
2992 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
2993 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2994 * config/mmix/mmix.c (mmix_function_arg): Rename to...
2995 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
2996 bool arguments.
2997 (mmix_function_arg): New function.
2998 (mmix_function_incoming_arg): New function.
2999 (mmix_function_arg_advance): New function.
3000 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3001 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3002
3003 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3004
3005 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3006 * config/vax/vax.c (vax_function_arg): New function.
3007 (vax_function_arg_advance): New function.
3008 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3009
3010 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3011
3012 * config/pa/pa-protos.h (function_arg): Delete.
3013 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3014 * config/pa/pa.c (function_arg): Rename to...
3015 (pa_function_arg): ...this. Make static. Take a const_tree and
3016 a bool.
3017 (pa_function_arg_advance): New function.
3018 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3019
3020 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3021
3022 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3023 * config/m68k/m68k.c (m68k_function_arg): New function.
3024 (m68k_function_arg_advance): New function.
3025 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3026
3027 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3028
3029 * config/avr/avr-protos.h (function_arg): Delete.
3030 (function_arg_advance): Delete.
3031 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3032 * config/avr/avr.c (function_arg): Rename to...
3033 (avr_function_arg): ...this. Make static. Take a const_tree and
3034 a bool.
3035 (function_arg_advance): Rename to...
3036 (avr_function_arg_advance): ...this. Make static. Take a
3037 const_tree and a bool.
3038 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3039
3040 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3041
3042 * config/alpha/alpha-protos.h (function_arg): Delete.
3043 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3044 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
3045 * config/alpha/alpha.c (function_arg): Rename to...
3046 (alpha_function_arg): ...this. Make static. Take a const_tree and
3047 a bool. Delete TARGET_ABI_UNICOSMK code.
3048 (alpha_function_arg_advance): New function.
3049 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3050
3051 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3052
3053 * config/mep/mep-protos.h (mep_function_arg): Delete.
3054 (mep_function_arg_advance): Delete.
3055 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3056 * config/mep/mep.c (mep_function_arg): Make static. Take a
3057 const_tree and a bool.
3058 (mep_function_arg_advance): Likewise.
3059 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3060
3061 2010-10-09 Richard Guenther <rguenther@suse.de>
3062
3063 PR tree-optimization/45945
3064 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
3065
3066 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
3067
3068 PR tree-optimization/45612
3069 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
3070 Test LABEL_DECLs as well. Fix formatting issues.
3071 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
3072 whose label is present in NON_SSA_VARS.
3073 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
3074 as well. Fix formatting issues.
3075 (visit_bb): Fix typos and formatting issue.
3076
3077 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3078
3079 PR tree-optimization/45950
3080 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
3081 before initializing vno->op.
3082
3083 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
3084
3085 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
3086 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
3087
3088 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
3089
3090 PR target/45913
3091 * config/i386/i386.c (ix86_binary_operator_ok): Support
3092 "andhi/andsi/anddi" as a zero-extending move.
3093
3094 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3095
3096 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
3097 into a temporary array.
3098
3099 2010-10-08 Jakub Jelinek <jakub@redhat.com>
3100
3101 PR tree-optimization/45903
3102 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
3103 of {A,L}SHIFTRT of MEM.
3104
3105 2010-10-08 Richard Guenther <rguenther@suse.de>
3106
3107 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3108 Re-construct BLOCK_VARS.
3109 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
3110 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3111 * tree.c (free_lang_data_in_block): Remove.
3112 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
3113 Do not touch the BLOCK tree.
3114 * expr.c (expand_expr_real_1): Allow externals.
3115
3116 2010-10-08 Richard Guenther <rguenther@suse.de>
3117
3118 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
3119 Do not output BLOCK_SUBBLOCKS.
3120 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
3121 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
3122 Re-construct BLOCK_SUBBLOCKS of parent block.
3123 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
3124 for BINFO_BASE_ACCESSES.
3125
3126 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3127
3128 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
3129 (TREE_H): Include $(FLAGS_H) instead of options.h.
3130 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
3131 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3132 * common.opt (flag_complex_method, flag_evaluation_order,
3133 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
3134 Variable declarations.
3135 * configure.ac (tm_include_list): Include flags.h instead of options.h.
3136 * configure: Regenerate.
3137 * flags.h: Condition out contents for target libraries. Include
3138 options.h at end of file.
3139 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
3140 flag_evaluation_order, flag_warn_unused_result): Remove.
3141 * gcc.c (main): Intialize global_options with global_options_init.
3142 * langhooks-def.h (lhd_init_options_struct): Declare.
3143 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3144 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
3145 * langhooks.c (lhd_init_options_struct): New.
3146 * langhooks.h (struct lang_hooks): Add init_options_struct.
3147 Update comment on init_options.
3148 * optc-gen.awk: Generate initializer for global_options_init, not
3149 global_options.
3150 * opth-gen.awk: Condition out structure declarations for target
3151 libraries. Declare global_options_init.
3152 * opts-common.c: Include flags.h instead of options.h.
3153 * opts.c (flag_warn_unused_result): Remove.
3154 (read_cmdline_options): Take gcc_options parameters. Pass them to
3155 read_cmdline_option.
3156 (initial_lang_mask, initial_min_crossjump_insns,
3157 initial_max_fields_for_field_sensitive,
3158 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
3159 (init_options_once): New. Split out of decode_options.
3160 (init_options_struct): New. Split out of decode_options.
3161 (decode_cmdline_options_to_array_default_mask): New.
3162 (default_options_optimization): New. Split out of decode_options.
3163 (decode_options): Move most code to other functions. Update call
3164 to read_cmdline_options.
3165 (finish_options): New. Split out of decode_options.
3166 * opts.h (decode_options): Add gcc_options parameters.
3167 (init_options_once, init_options_struct,
3168 decode_cmdline_options_to_array_default_mask): New.
3169 * toplev.c (flag_complex_method, flag_ira_algorithm,
3170 flag_ira_region, flag_evaluation_order): Remove.
3171 (general_init): Use global_options_init for initial flag values
3172 for global_dc.
3173 (toplev_main): Call init_options_once, init_options_struct,
3174 lang_hooks.init_options_struct,
3175 decode_cmdline_options_to_array_default_mask and
3176 lang_hooks.init_option before decode_options. Update arguments to
3177 decode_options.
3178 * tree.h: Include flags.h instead of options.h.
3179
3180 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3181
3182 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3183
3184 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3185
3186 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
3187 Delete.
3188 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
3189 (FUNCTION_INCOMING_ARG): Delete.
3190 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
3191 (function_arg_slotno): Likewise. Take bool arguments.
3192 (sparc_arg_partial_bytes): Update call to it.
3193 (function_arg): Rename to...
3194 (sparc_function_arg_1): ...this. Take bool arguments.
3195 (sparc_function_arg, sparc_function_incoming_arg): New functions.
3196 (function_arg_advance): Rename to...
3197 (sparc_function_arg_advance): ...this. Take bool argument.
3198 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
3199 (TARGET_FUNCTION_INCOMING_ARG): Define.
3200
3201 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3202
3203 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
3204 Delete.
3205 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3206 * config/bfin/bfin.c (function_arg_advance): Rename to...
3207 (bfin_function_arg_advance): ...this. Make static. Take const_tree
3208 and bool arguments.
3209 (function_arg): Rename to...
3210 (bfin_function_arg): ...this. Make static. Take const_tree and bool
3211 arguments.
3212 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3213
3214 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3215
3216 * config/score/score-protos.h (score_function_arg): Delete.
3217 (score_function_arg_advance): Delete.
3218 * config/score/score3.h (score3_function_arg_advance): Take a
3219 const_tree and a bool.
3220 (score3_function_arg): Likewise.
3221 * config/score/score7.h (score7_function_arg_advance): Likewise.
3222 (score7_function_arg): Likewise.
3223 * config/score/score3.c (score3_classify_arg): Likewise.
3224 (score3_function_arg_advance, score3_function_arg): Likewise.
3225 * config/score/score7.c (score7_classify_arg): Likewise.
3226 (score7_function_arg_advance, score7_function_arg): Likewise.
3227 * config/score/score.c (score_function_arg_advance): Likewise.
3228 (score_function_arg): Likewise. De-const-ify `cum' argument.
3229 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3230
3231 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3232
3233 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
3234 (s390_function_arg): Delete.
3235 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3236 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
3237 (s390_function_arg_integer): Likewise.
3238 (s390_function_arg_advance): Make static. Take a const_tree and
3239 a bool.
3240 (s390_function_arg): Likewise.
3241 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3242
3243 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3244
3245 * config/spu/spu-protos.h (spu_function_arg): Delete.
3246 * config/spu/spu.h (FUNCTION_ARG): Delete.
3247 (FUNCTION_ARG_ADVANCE): Move code to ...
3248 * config/spu/spu.c (spu_function_arg_advance): New function.
3249 (spu_function_arg): Make static. Take a const_tree and a bool.
3250 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
3251 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3252
3253 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3254
3255 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3256
3257 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3258
3259 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
3260 (init_vn_nary_op_from_op): New function.
3261 (init_vn_nary_op_from_stmt): New function.
3262 (vn_nary_op_lookup_1): New function.
3263 (sizeof_vn_nary_op): New function.
3264 (alloc_vn_nary_op_noinit): New function.
3265 (alloc_vn_nary_op): New function.
3266 (vn_nary_op_insert_into): New function.
3267 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
3268 (vn_nary_op_lookup): Likewise.
3269 (vn_nary_op_lookup_stmt): Likewise.
3270 (vn_nary_op_insert_pieces): Likewise.
3271 (vn_nary_op_insert): Likewise.
3272 (vn_nary_op_insert_stmt): Likewise.
3273 (copy_nary): Likewise.
3274 (set_value_id_for_result): New function.
3275 (set_hashtable_value_ids): Call it.
3276
3277 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3278
3279 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3280 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
3281
3282 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3283
3284 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
3285 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3286
3287 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3288
3289 PR debug/45656
3290 * cse.c (cse_extended_basic_block): Preserve cc0 info across
3291 debug isnsn. Skip them when searching for cc0 setter.
3292 (set_live_p): Skip debug insns when searching for cc0 user.
3293
3294 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3295
3296 PR debug/45673
3297 PR debug/45604
3298 PR debug/45419
3299 PR debug/45408
3300 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
3301 type of MEM_REFs to INTEGER_CSTs.
3302
3303 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3304
3305 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
3306 m68hc11_print_operand_address.
3307
3308 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3309
3310 * builtins.c (rewrite_call_expr): Move code to...
3311 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
3312 (rewrite_call_expr_array): New function.
3313 (fold_builtin_sprintf_chk_1): New function.
3314 (fold_builtin_sprintf_chk): Call it.
3315 (gimple_fold_builtin_sprintf_chk): Likewise.
3316 (fold_builtin_snprintf_chk_1): New function.
3317 (fold_builtin_snprintf_chk): Call it.
3318 (gimple_fold_builtin_snprintf_chk): Likewise.
3319 (gimple_rewrite_call_expr): Delete.
3320
3321 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3322
3323 * config.host: Update copyright year.
3324
3325 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3326
3327 * config.host (host_lto_plugin_soname): New shell variable.
3328 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
3329 * config.in: Regenerate.
3330 * configure: Regenerate.
3331 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
3332 LTO plugin shared library.
3333
3334 2010-10-07 Richard Henderson <rth@redhat.com>
3335
3336 * target.h (enum unwind_info_type): Move ...
3337 * coretypes.h: ... here.
3338
3339 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
3340
3341 * doc/objc.texi (Fast enumeration protocol): Mention that
3342 'unsigned int' can also be used instead of 'unsigned long' in
3343 countByEnumeratingWithState:objects:count:.
3344
3345 2010-10-07 Martin Jambor <mjambor@suse.cz>
3346
3347 * tree-sra.c (struct access): New field grp_assignment_write.
3348 (dump_access): Dump grp_assignment_write.
3349 (build_accesses_from_assign): Set grp_assignment_write.
3350 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
3351 (mark_read_status): Renamed to mark_rw_status, individual values
3352 renamed too.
3353 (analyze_access_subtree): Changed type of mark_write to
3354 mark_read_status. Fixed propagating of mark_read and
3355 mark_write. Changed benefit estimate. Updated comment.
3356
3357 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
3358
3359 PR Tree-Vect/45847
3360 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
3361 check for vectype_out returned by get_vectype_for_scalar_type().
3362
3363 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
3364
3365 PR target/45805
3366 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
3367 constraint, add register specifier in instruction template.
3368 (neon_vec_pack_trunc_<mode>): Likewise.
3369 (neon_vec_<US>mult_<mode>): Add register specifier to
3370 instruction template.
3371
3372 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3373
3374 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
3375 cygwin2.o.
3376 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
3377 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
3378 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
3379 (cygwin2.o): Likewise.
3380 * config/i386/cygwin1.c: Delete file.
3381 * config/i386/cygwin2.c: Likewise.
3382 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
3383 make all {%!mno-cygwin} ones unconditional.
3384 (STARTFILE_SPEC): Likewise.
3385 (REAL_LIBGCC_SPEC): Likewise.
3386 (LIB_SPEC): Likewise.
3387 (CXX_WRAP_SPEC): Likewise.
3388 (LINK_SPEC): Likewise.
3389 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
3390 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
3391 (cygwin_gplusplus_include_dir): Delete now-unused array.
3392 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
3393 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
3394 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
3395 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
3396 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
3397 (cygwin_local_include_dir): Delete now-unused array.
3398 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
3399 (cygwin_cross_include_dir): Delete now-unused array.
3400 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
3401 (cygwin_tool_include_dir): Delete now-unused array.
3402 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
3403 (cygwin_standard_include_dir): Delete now-unused array.
3404 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
3405 (GEN_CVT_ARRAY): Delete now-unused macro definition.
3406 (cvt_to_mingw): Delete now-unused array.
3407 (mingw_scan): Remove prototype of deleted function.
3408 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
3409 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
3410 * doc/invoke.texi (-mcygwin): Don't document removed option.
3411 (-mno-cygwin): Likewise.
3412
3413 2010-10-07 Richard Guenther <rguenther@suse.de>
3414
3415 * machmode.h (mode_for_vector): Declare.
3416 * stor-layout.c (mode_for_vector): New function, split out from ...
3417 (layout_type): ... here.
3418 * tree-vectorizer.h (current_vector_size): Declare.
3419 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
3420 mask vector type is available.
3421 (get_vectype_for_scalar_type): Rename to ...
3422 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
3423 size argument.
3424 (get_vectype_for_scalar_type): New wrapper around
3425 get_vectype_for_scalar_type_and_size using current_vector_size.
3426 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
3427 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
3428 of vect_analyze_loop here.
3429 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
3430 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
3431 to autodetect.
3432 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
3433 V8SF to V8SI conversion builtin.
3434
3435 2010-10-07 Richard Guenther <rguenther@suse.de>
3436
3437 * target.def (autovectorize_vector_sizes): New target hook.
3438 * targhooks.c (default_autovectorize_vector_sizes): New function.
3439 * targhooks.h (default_autovectorize_vector_sizes): Declare.
3440 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3441 Document.
3442 * doc/tm.texi: Update.
3443 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
3444 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3445
3446 2010-10-07 Richard Guenther <rguenther@suse.de>
3447
3448 * target.def (units_per_simd_word): Rename to ...
3449 (preferred_simd_mode): ... this. Return mode instead of size.
3450 * targhooks.c (default_units_per_simd_word): Rename to ...
3451 (default_preferred_simd_mode): ... this. Return word_mode.
3452 * targhooks.h (default_preferred_simd_mode): Declare.
3453 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
3454 (arm_preferred_simd_mode): ... this. Re-implement.
3455 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
3456 (ix86_preferred_simd_mode): ... this. Re-implement.
3457 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
3458 (sparc_preferred_simd_mode): ... this. Re-implement.
3459 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
3460 (mips_preferred_simd_mode): ... this. Re-implement.
3461 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
3462 (rs6000_preferred_simd_mode): ... this. Re-implement.
3463 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
3464 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
3465 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
3466 * doc/tm.texi: Update.
3467
3468 2010-10-07 Richard Guenther <rguenther@suse.de>
3469
3470 PR middle-end/45869
3471 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
3472 of pointers.
3473
3474 2010-10-07 Alan Modra <amodra@gmail.com>
3475
3476 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
3477 rather than sign extension by hand.
3478
3479 2010-10-07 Jan Hubicka <jh@suse.cz>
3480
3481 PR middle-end/45926
3482 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
3483
3484 2010-10-07 Richard Guenther <rguenther@suse.de>
3485
3486 PR bootstrap/45914
3487 * configure.ac: Fix typo.
3488 * configure: Regenerated.
3489
3490 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3491
3492 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
3493 define_builtin_std where it's unnecessary.
3494 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
3495
3496 2010-10-06 Anatoly Sokolov <aesok@post.ru>
3497
3498 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
3499 * doc/tm.texi.in: Regenerate.
3500 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
3501 * targhooks.c (default_class_likely_spilled_p): Don't use the
3502 CLASS_LIKELY_SPILLED_P macro.
3503
3504 * config/arm/arm.md: Update comment.
3505
3506 2010-10-06 Jan Hubicka <jh@suse.cz>
3507
3508 * ipa.c (cgraph_remove_unreachable_nodes): External references can
3509 always be removed.
3510 (cgraph_externally_visible_p): We can not bring local comdats that
3511 are known to linker; fix handling of internal visibility.
3512 (function_and_variable_visibility): Likewise.
3513
3514 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
3515
3516 PR rtl-optimization/45394
3517 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
3518 (struct rtx_subst_pair): Remove AFTER field.
3519 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
3520 (propagate_for_debug): Remove MOVE parameter and adjust.
3521 (try_combine): In the special case where I2 is a PARALLEL, combine only
3522 destinations of SETs and set I2SRC to the I2 source.
3523 Adjust calls to propagate_for_debug throughout.
3524 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
3525 insns.
3526
3527 2010-10-06 Olivier Hainque <hainque@adacore.com>
3528
3529 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
3530 switch on insn codes as sequence of ifs.
3531
3532 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
3533
3534 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
3535 be UI_NONE for picochip.
3536 (picochip_option_override): Do not disable exception flags.
3537 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
3538 Declare.
3539
3540 2010-10-06 Richard Guenther <rguenther@suse.de>
3541
3542 * Makefile.in (regmove.o): Depend on $(TARGET_H).
3543
3544 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3545
3546 Implemented fast enumeration for Objective-C.
3547 * c-parser.c (objc_could_be_foreach_context): New.
3548 (c_lex_one_token): Recognize RID_IN keyword in a potential
3549 Objective-C foreach context.
3550 (c_parser_declaration_or_fndef): Added parameter. Accept
3551 Objective-C RID_IN keyword as terminating a declaration; in that
3552 case, return the declaration in the new parameter.
3553 (c_parser_extenral_declaration): Updated calls to
3554 c_parser_declaration_or_fndef.
3555 (c_parser_declaration_or_fndef): Same change.
3556 (c_parser_compound_statement_nostart): Same change.
3557 (c_parser_label): Same change.
3558 (c_parser_objc_methodprotolist): Same change.
3559 (c_parser_omp_for_loop): Same change.
3560 (c_parser_for_statement): Detect and parse Objective-C foreach
3561 statements.
3562 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
3563 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
3564 fast enumeration parsing code to turn off the c99 error but still
3565 perform checks on the loop declarations.
3566 * c-tree.h (check_for_loop_decls): Updated declaration.
3567 * doc/objc.texi: Document fast enumeration.
3568
3569 2010-10-06 Nick Clifton <nickc@redhat.com>
3570
3571 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
3572 (MDR_REGNUM): Define.
3573 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
3574 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
3575 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
3576 (REGISTER_NAMES): Add MDR.
3577 (DWARF2_DEBUGGING_INFO): Define to 1.
3578 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3579 (F): New function. Sets RTX_FRAME_RELATED_P.
3580 (mn10300_gen_multiple_store): Use F.
3581 (expand_prologue): Use F. Use gen_movsf() to push floating
3582 point registers.
3583 (expand_epilogue): Use gen_movsf() to pop floating point registers.
3584 (mn10300_option_override): Disable combine stack adjust pass.
3585
3586 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
3587
3588 PR target/45901
3589 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
3590 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
3591
3592 2010-10-06 Jakub Jelinek <jakub@redhat.com>
3593
3594 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
3595 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
3596 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
3597 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
3598 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
3599 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
3600 BUILT_IN_TOUPPER): Mark as leaf.
3601
3602 PR middle-end/45838
3603 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
3604 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
3605 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
3606 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
3607 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
3608 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
3609 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
3610
3611 2010-10-05 Anatoly Sokolov <aesok@post.ru>
3612
3613 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
3614 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3615 (m68hc11_class_likely_spilled_p): New function.
3616
3617 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
3618
3619 * c-parser.c (c_parser_objc_method_definition): Updated comment.
3620
3621 2010-10-05 Jan Hubicka <jh@suse.cz>
3622
3623 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
3624 Document.
3625 * opts.c (decode_options): Handle lto partitions.
3626 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
3627 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
3628
3629 2010-10-05 Jan Hubicka <jh@suse.cz>
3630
3631 * cgraphunit.c (assemble_function): Output thunks and aliases before
3632 the function itself.
3633
3634 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
3635
3636 * config/picochip/picochip.c (picochip_option_override): Disable
3637 exception flags for picochip.
3638
3639 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3640
3641 * opts-common.c (handle_option, handle_generated_option,
3642 read_cmdline_option, set_option): Add diagnostic_context
3643 parameter. Update calls among these functions.
3644 (set_option): Don't use global_dc.
3645 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
3646 (decode_options): Pass global_dc to enable_warning_as_error.
3647 (common_handle_option): Pass global_dc to enable_warning_as_error.
3648 (enable_warning_as_error): Add diagnostic_context parameter.
3649 Document parameters. Don't use global_dc. Pass
3650 diagnostic_context parameter to handle_generated_option.
3651 * opts.h (set_option, handle_option, handle_generated_option,
3652 read_cmdline_option, enable_warning_as_error): Add
3653 diagnostic_context parameter.
3654 * Makefile.in (lto-opts.o): Update dependencies.
3655 * coretypes.h (struct diagnostic_context, diagnostic_context):
3656 Declare here.
3657 * diagnostic.h (diagnostic_context): Don't declare typedef here.
3658 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
3659 * langhooks-def.h (struct diagnostic_context): Don't declare here.
3660 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
3661 using diagnostic_context typedef.
3662 * langhooks.c (lhd_initialize_diagnostics): Declare using
3663 diagnostic_context typedef.
3664 * langhooks.h (struct diagnostic_context): Don't declare here.
3665 (initialize_diagnostics, print_error_function): Declare using
3666 diagnostic_context typedef.
3667 * lto-opts.c: Include diagnostic.h.
3668 (lto_reissue_options): Pass global_dc to set_option. Pass
3669 DK_UNSPECIFIED not 0.
3670 * plugin.c (plugins_internal_error_function): Declare using
3671 diagnostic_context typedef.
3672 * plugin.h (struct diagnostic_context): Don't declare here.
3673 (plugins_internal_error_function): Declare using
3674 diagnostic_context typedef.
3675
3676 2010-10-05 Olivier Hainque <hainque@adacore.com>
3677 Nicolas Roche <roche@adacore.com>
3678
3679 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
3680 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
3681
3682 2010-10-05 Ira Rosen <irar@il.ibm.com>
3683
3684 PR tree-optimization/45752
3685 * tree-vect-slp.c (vect_get_mask_element): Remove static
3686 variables, make them function arguments.
3687 (vect_transform_slp_perm_load): Pass new arguments to
3688 vect_get_mask_element.
3689
3690 2010-10-05 Richard Guenther <rguenther@suse.de>
3691
3692 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
3693 (gimple_mod_pow2): Likewise.
3694 (gimple_mod_subtract): Likewise.
3695 (gimple_ic): Likewise.
3696 (gimple_stringop_fixed_value): Likewise.
3697 * tree-profile.c (tree_init_edge_profiler): Mark profile
3698 functions nothrow and leaf.
3699 (add_abnormal_goto_call_edges): Remove.
3700 (tree_gen_edge_profiler): Work on SSA form.
3701 (tree_gen_ic_profiler): Likewise. Simplify.
3702 (do_tree_profiling): Update SSA form.
3703 (pass_tree_profile): Remove.
3704 (do_tree_profiling): Likewise.
3705 (gate_tree_profile_ipa): New function.
3706 (pass_ipa_tree_profile): New.
3707 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
3708 state of instrumented functions.
3709 * passes.c (init_optimization_passes): Remove early non-SSA
3710 inlining. Move profiling after early optimizations.
3711 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
3712 (pass_ipa_early_inline): Likewise.
3713 * tree-pass.h (pass_ipa_early_inline): Remove.
3714 (pass_tree_profile): Likewise.
3715 (pass_ipa_tree_profile): Declare.
3716
3717 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3718 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
3719
3720 * gcc/config/s390/s390.c (z196_cost): New.
3721 (s390_handle_arch_option): Add -march=z196.
3722 (s390_option_override): Use the new cost function and use the z10
3723 defaults also for z196.
3724 (legitimate_reload_constant_p): Adjust comment.
3725 (legitimate_reload_fp_constant_p): New function.
3726 (s390_preferred_reload_class): Distingiush between FP and Int constants.
3727 (preferred_la_operand_p): Avoid la with index on z196.
3728 (s390_adjust_priority): Trigger also for z196.
3729 (s390_issue_rate): Issue rate for z196 is 3.
3730 (s390_z10_fix_long_loop_prediction): Rename to ...
3731 (s390_fix_long_loop_prediction): ... this.
3732 (s390_reorg): Apply the z10 adjustments also for z196.
3733 (s390_loop_unroll_adjust): Do this also for z196.
3734 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
3735 (enum processor_flags): Add PF_Z196.
3736 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
3737 (TARGET_CPU_Z196, TARGET_Z196): New macros.
3738 * gcc/config.gcc: Enable z196 for --with-arch.
3739 * gcc/config/s390/2817.md: New file.
3740 * gcc/config/s390/2084.md: New type for multiply and add.
3741 * gcc/config/s390/2097.md: Likewise.
3742 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
3743 (UNSPECV_ATOMIC_OP): New constants.
3744 (fmadddf, fmaddsf): New values for type attribute.
3745 (z196prop): New insn attribute.
3746 (cpu, cpu_facility): Add z196.
3747 (ATOMIC_Z196): New code iterator.
3748 (noxa): New code attribute.
3749 (gk): New mode attribute.
3750 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
3751 Support load zero for fp constants.
3752 (fixuns_truncdddi2, fixuns_trunctddi2)
3753 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
3754 for z196.
3755 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
3756 (popcounthi2, popcountqi2): New expander.
3757 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
3758 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
3759 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
3760 insn definition.
3761 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
3762 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
3763 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
3764 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
3765 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
3766 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
3767 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
3768 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
3769 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
3770 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
3771 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
3772 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
3773 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
3774 Support new z196 instructions.
3775
3776 2010-10-05 Richard Guenther <rguenther@suse.de>
3777
3778 PR middle-end/45877
3779 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
3780 case where gimplification optimizes away the stmt.
3781
3782 2010-10-04 Jakub Jelinek <jakub@redhat.com>
3783
3784 PR debug/45849
3785 * var-tracking.c (strip_pointer_flags): New function.
3786 (emit_note_insn_var_location): If rtx_equal_p check failed,
3787 retry on locations simplified with simplify_replace_fn_rtx
3788 and strip_pointer_flags as its callback.
3789
3790 2010-10-04 Jan Hubicka <jh@suse.cz>
3791
3792 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
3793 (can_refer_decl_in_current_unit_p): ... this one; reverse return
3794 value; handle comdats too.
3795 (canonicalize_constructor_val): Use it; handle function_decls
3796 correctly.
3797 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3798 * gimple.c (get_base_address): Accept all kinds of decls.
3799
3800 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3801
3802 * flags.h (g_switch_value, g_switch_set): Remove.
3803 * opts.c (g_switch_value, g_switch_set): Remove.
3804 * config/g.opt (G): Add Var(g_switch_value).
3805 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
3806 (alpha_option_override): Check global_options_set.x_g_switch_value
3807 instead of g_switch_set.
3808 (alpha_in_small_data_p): Remove cast in comparison with
3809 g_switch_value.
3810 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
3811 g_switch_value to unsigned HOST_WIDE_INT.
3812 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
3813 with g_switch_value.
3814 (frv_handle_option): Don't handle -G here.
3815 (frv_option_override): Check global_options_set.x_g_switch_value
3816 instead of g_switch_set. Don't modify g_switch_set.
3817 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
3818 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
3819 g_switch_value to unsigned HOST_WIDE_INT.
3820 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
3821 (ia64_option_override): Check global_options_set.x_g_switch_value
3822 instead of g_switch_set.
3823 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
3824 Remove.
3825 (lm32_in_small_data_p): Remove cast in comparison with
3826 g_switch_value.
3827 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
3828 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
3829 HOST_WIDE_INT.
3830 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
3831 (m32r_init): Check global_options_set.x_g_switch_value instead of
3832 g_switch_set.
3833 (m32r_in_small_data_p): Remove cast in comparison with
3834 g_switch_value.
3835 (m32r_file_start): Format g_switch_value with %d.
3836 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
3837 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
3838 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
3839 handle -G here.
3840 (microblaze_option_override): Check
3841 global_options_set.x_g_switch_value instead of g_switch_set.
3842 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
3843 (mips_option_override): Check global_options_set.x_g_switch_value
3844 instead of g_switch_set.
3845 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
3846 (rs6000_file_start): Format g_switch_value with %d.
3847 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
3848 comparisons with g_switch_value.
3849 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
3850 global_options_set.x_g_switch_value instead of g_switch_set.
3851 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3852 global_options_set.x_g_switch_value instead of g_switch_set.
3853 * config/score/score.c (score_handle_option): Don't handle -G here.
3854 * config/score/score3.c (score3_option_override): Check
3855 global_options_set.x_g_switch_value instead of g_switch_set.
3856 * config/score/score7.c (score7_option_override): Check
3857 global_options_set.x_g_switch_value instead of g_switch_set.
3858
3859 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3860
3861 * common.opt (fira-coalesce): Remove.
3862
3863 * doc/invoke.texi (flag_ira_coalesce): Remove.
3864
3865 * ira-color.c (allocno_coalesced_p): Move before
3866 copy_freq_compare_func.
3867 processed_coalesced_allocno_bitmap): Ditto.
3868 (update_conflict_hard_regno_costs): Don't use
3869 ALLOCNO_FIRST_COALESCED_ALLOCNO.
3870 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
3871 (assign_hard_reg): Assume no coalesced allocnos.
3872 (get_coalesced_allocnos_attributes): Remove.
3873 (bucket_allocno_compare_func): Assume no coalesced allocnos.
3874 (push_allocno_to_stack): Ditto.
3875 (remove_allocno_from_bucket_and_push): Use
3876 ira_print_expanded_allocno instead of print_coalesced_allocno.
3877 (push_allocnos_to_stack): Assume uncoalesced allocnos.
3878 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
3879 all_conflicting_hard_regs.
3880 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
3881 (setup_allocno_left_conflicts_size): Ditto.
3882 (put_allocno_into_bucket): Ditto.
3883 (copy_freq_compare_func): Remove.
3884 (copy_freq_compare_func, merge_allocnos): Move before
3885 coalesced_pseudo_reg_freq_compare.
3886 coalesced_allocno_conflict_p): Ditto.
3887 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
3888 parameter. Assume it true.
3889 (color_allocnos): Assume uncoalesced allocnos. Use
3890 ira_print_expanded_allocno instead of print_coalesced_allocno.
3891 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
3892 parameter.
3893
3894 * ira.c: Remove comment about coalescing.
3895
3896 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3897
3898 * config/mips/mips.h (target_flags_explicit): Declare for
3899 GENERATOR_FILE.
3900
3901 2010-10-04 Andi Kleen <ak@linux.intel.com>
3902
3903 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
3904 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
3905
3906 2010-10-04 Matthias Klose <doko@ubuntu.com>
3907
3908 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
3909 multilib osdirname if it exists.
3910 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
3911
3912 2010-10-04 Jakub Jelinek <jakub@redhat.com>
3913
3914 PR middle-end/45876
3915 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
3916 arg0's type or its unsigned counterpart as utype. Convert
3917 arg1 to utype unconditionally.
3918
3919 2010-10-04 Julian Brown <julian@codesourcery.com>
3920
3921 * expr.c (expand_assignment): Add assertion to prevent emitting
3922 null rtx for movmisalign pattern.
3923 (expand_expr_real_1): Likewise.
3924 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
3925 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
3926 (arm_vector_alignment_reachable): New.
3927 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
3928 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
3929 (arm_print_operand): Include alignment qualifier in %A.
3930 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
3931 (movmisalign<mode>): New expander.
3932 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
3933 insn patterns.
3934
3935 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3936
3937 * optc-gen.awk: Define global_options_set. Don't define
3938 target_flags_explicit.
3939 * opth-gen.awk: Declare global_options_set. Define
3940 target_flags_explicit as macro.
3941 * opts-common.c (handle_option): Take opts_set and generated_p
3942 parameters.
3943 (handle_generated_option, read_cmdline_option, set_option): Take
3944 opts_set parameter.
3945 (set_option): Use opts_set instead of hardcoding target_flags and
3946 target_flags_explicit.
3947 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
3948 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
3949 flag_value_profile_transformations_set, flag_peel_loops_set,
3950 flag_branch_probabilities_set, flag_inline_functions_set,
3951 flag_ipa_cp_set, flag_ipa_cp_clone_set,
3952 flag_predictive_commoning_set, flag_unswitch_loops_set,
3953 flag_gcse_after_reload_set): Remove.
3954 (common_handle_option, lang_handle_option, target_handle_option):
3955 Take opts_set parameter. Assert that it is &global_options_set.
3956 (common_handle_option): Don't set _set variables. Check opts_set
3957 instead of such variables.
3958 (enable_warning_as_error): Pass &global_options_set to
3959 handle_generated_option.
3960 * opts.h (cl_option_handler_func.handler, set_option,
3961 handle_option, handle_generated_option, read_cmdline_option): Add
3962 opts_set parameters.
3963 (handle_option): Add generated_p parameter.
3964 * config/i386/i386.c (ix86_function_specific_save,
3965 ix86_function_specific_restore): Updat for renaming of
3966 target_flags_explicit field.
3967 * config/i386/i386.opt (target_flags_explicit): Rename to
3968 ix86_target_flags_explicit.
3969 * config/ia64/ia64.c (ia64_override_options_after_change): Check
3970 global_options_set.x_flag_selective_scheduling and
3971 global_options_set.x_flag_selective_scheduling2, not
3972 sel_sched_switch_set.
3973 * flags.h (sel_sched_switch_set,
3974 flag_speculative_prefetching_set): Remove.
3975 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
3976 that it is &global_options_set.
3977 (process_command): Pass &global_options_set to read_cmdline_option.
3978 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
3979 set_option.
3980 * toplev.c (target_flags_explicit): Remove.
3981
3982 2010-10-04 Jan Hubicka <jh@suse.cz>
3983
3984 PR middle-end/45871
3985 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
3986 use get_ref_base_and_offset to handle references.
3987 (fold_const_aggregate_ref): Update.
3988
3989 2010-10-04 Martin Jambor <mjambor@suse.cz>
3990
3991 PR tree-optimization/45572
3992 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
3993 ipa_check_create_node_params.
3994 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
3995
3996 2010-10-04 Yao Qi <yao@codesourcery.com>
3997
3998 * doc/passes.texi: Clean up.
3999
4000 2010-10-03 Ian Lance Taylor <iant@google.com>
4001
4002 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
4003 referring to a field using a typedef name.
4004 (find_anonymous_field_with_type): New static function.
4005 (convert_to_anonymous_field): New static function.
4006 (convert_for_assignment): If -fplan9-extensions, permit converting
4007 pointer to struct to pointer to anonymous field.
4008 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
4009 (is_duplicate_field): New static function.
4010 (detect_field_duplicates_hash): If -fplan9-extensions, check for
4011 typedef names duplicating field names.
4012 (detect_field_duplicates): Likewise.
4013 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
4014 (C Dialect Options): Document -fplan9-extensions.
4015 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
4016
4017 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
4018
4019 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
4020 revision 164914.
4021 (vect_create_data_ref_ptr): Likewise.
4022 * tree-vect-stmts.c (vectorizable_store): Likewise.
4023 (perm_mask_for_reverse): Likewise.
4024 (reverse_vec_elements): Likewise.
4025 (vectorizable_load): Likewise.
4026
4027 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4028
4029 * cppbuiltin.c: New file.
4030 * cppbuiltin.h: New file.
4031 * Makefile.in: Take into account cppbuiltin.{h,c}.
4032
4033 2010-10-03 Andi Kleen <ak@linux.intel.com>
4034
4035 * lto-cgraph.c (input_cgraph): Check for missing sections.
4036
4037 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
4038
4039 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
4040 to nonimmediate_operand. Force operand 2 to register when allowed.
4041 (*<shiftrt_insn><mode>3_mask): Ditto.
4042 (*<rotate_insn><mode>3_mask): Ditto.
4043
4044 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
4045
4046 PR tree-optimization/45720
4047 PR tree-optimization/45764
4048 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4049 Don't accept backwards consecutive accesses.
4050 (vect_create_data_ref_ptr): Disallow negative steps.
4051
4052 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
4053 (perm_mask_for_reverse): Removed.
4054 (reverse_vec_elements): Likewise.
4055 (vectorizable_load): Don't handle negative steps.
4056
4057 2010-10-02 Jan Hubicka <jh@suse.cz>
4058
4059 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
4060 call destination is known.
4061
4062 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4063
4064 PR target/45820
4065 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
4066 earlier.
4067
4068 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4069
4070 * doc/install.texi (Configuration): Document build_configargs,
4071 host_configargs, target_configargs.
4072
4073 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
4074
4075 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
4076 (*<shiftrt_insn><mode>3_mask): Ditto.
4077 (*<rotate_insn><mode>3_mask): Ditto.
4078
4079 2010-10-01 Steve Ellcey <sje@cup.hp.com>
4080
4081 PR tree-optimization/44716
4082 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4083 (HOT_TEXT_SECTION_NAME): Define.
4084
4085 2010-10-01 Nick Clifton <nickc@redhat.com>
4086
4087 * common.opt: Add -fcombine-stack-adjustments.
4088 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
4089 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
4090 flag_combine_stack_adjustments.
4091 * doc/invoke.texi: Document the new option.
4092
4093 2010-10-01 Richard Guenther <rguenther@suse.de>
4094
4095 PR tree-optimization/45854
4096 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
4097
4098 2010-10-01 Anthony Green <green@moxielogic.com>
4099
4100 * config.gcc: Fix moxie-*-rtems* configuration.
4101
4102 2010-10-01 Richard Guenther <rguenther@suse.de>
4103
4104 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
4105 (gen_decl_die): Likewise.
4106
4107 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4108
4109 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
4110 to the function code for SPU MD builtins.
4111 (spu_expand_builtin): Update.
4112 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
4113
4114 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4115
4116 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
4117 sjlj_except_unwind_info.
4118
4119 2010-10-01 Tristan Gingold <gingold@adacore.com>
4120
4121 * configure.ac: Define the nop insn for avr*-*-*
4122 * configure: Regenerate.
4123
4124 2010-10-01 Alan Modra <amodra@gmail.com>
4125
4126 PR target/45807
4127 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
4128 extend toc_restore_insn.
4129
4130 2010-09-30 Richard Guenther <rguenther@suse.de>
4131
4132 PR tree-optimization/43959
4133 * function.c (gimplify_parameters): Use create_tmp_reg instead of
4134 create_tmp_var.
4135
4136 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
4137
4138 * config/sh/sh.c (sh_expand_prologue): Set
4139 current_function_static_stack_size.
4140
4141 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4142
4143 * configure.ac: Check for Solaris 8 ld with .hidden support.
4144 * configure: Regenerate.
4145
4146 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4147
4148 PR middle-end/45758
4149 * graphite.c (graphite_initialize): Call scev_reset.
4150
4151 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4152
4153 * sese.h (scev_analyzable_p): Return false for real or floating
4154 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
4155
4156 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4157
4158 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
4159 and ps.
4160 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
4161 domain.
4162 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
4163 Do not allocate ub_expr, it is passed in initialized.
4164
4165 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4166
4167 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
4168 (build_cloog_prog): Dump CLooG input file when
4169 flag_graphite_dump_cloog is set. This is disabled on trunk.
4170 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
4171
4172 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4173
4174 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
4175 verify_dominators for CDI_POST_DOMINATORS.
4176 * sese.h: Remove comment about CDI_POST_DOMINATORS.
4177 (recompute_all_dominators): Remove call to free_dominance_info
4178 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
4179 for CDI_POST_DOMINATORS.
4180
4181 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4182
4183 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
4184 over pbb_dim_iter_domain.
4185
4186 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4187
4188 * graphite-flattening.c: Fix comments.
4189
4190 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4191
4192 * Makefile.in (OBJS-common): Add graphite-flattening.o.
4193 (graphite-flattening.o): New rule.
4194 * common.opt (floop-flatten): New flag.
4195 * doc/invoke.texi (-floop-flatten): Documented.
4196 * graphite-flattening.c: New.
4197 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
4198 * graphite-poly.h (flatten_all_loops): Declared.
4199 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
4200 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
4201 is set, also set flag_graphite.
4202
4203 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4204
4205 * graphite-poly.c (cloog_checksum): New.
4206 * graphite-poly.h (cloog_checksum): Declared.
4207
4208 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4209
4210 * graphite-poly.c (pbb_number_of_iterations): Removed.
4211 (pbb_number_of_iterations_at_time): Correctly compute the number
4212 of iterations in the transformed loop.
4213 * graphite-poly.h (pbb_number_of_iterations): Removed.
4214
4215 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4216
4217 * graphite-poly.h (lst_update_scattering_seq): Removed.
4218 (lst_update_scattering): Correctly handle outermost loop dewey
4219 renumbering.
4220
4221 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4222
4223 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
4224 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
4225 * graphite-poly.h (lst_niter_for_loop): New.
4226
4227 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4228
4229 * graphite-poly.c (apply_poly_transforms): Do not abort when the
4230 transform read from disk is not legal. Call fatal_error instead.
4231
4232 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4233
4234 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
4235 (print_scop_header): Removed. Inlined in the only call place...
4236 (print_scop): ... here.
4237
4238 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4239
4240 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
4241
4242 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4243
4244 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
4245
4246 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4247
4248 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
4249 (dot_deps_stmt): Same.
4250 * graphite-poly.c (dot_lst): Same.
4251
4252 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4253
4254 * graphite-blocking.c (scop_do_strip_mine): Do not call
4255 graphite_legal_transform.
4256 (scop_do_block): Same.
4257
4258 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4259
4260 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
4261 description.
4262
4263 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4264
4265 * tree-scalar-evolution.c (instantiate_array_ref): New.
4266 (instantiate_scev_r): Also handle ARRAY_REFs.
4267
4268 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4269
4270 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4271 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
4272 RESULT_DECL, and FIELD_DECL. Return false for an
4273 SSA_NAME_IS_DEFAULT_DEF.
4274 (compute_scalar_evolution_in_loop): Do not further analyze the
4275 scalar evolution when no_evolution_in_loop_p returns true.
4276
4277 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4278
4279 * tree-chrec.h (evolution_function_is_affine_p): Do not check
4280 whether CHREC_LEFT is invariant. A function is affine when
4281 CHREC_RIGHT is invariant.
4282
4283 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4284
4285 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
4286 is_gimple_reg.
4287 (rewrite_degenerate_phi): Same.
4288 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
4289
4290 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4291
4292 * graphite-scop-detection.c (graphite_can_represent_scev,
4293 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
4294 graphite_can_represent_loop): Remove outermost_loop.
4295
4296 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4297
4298 PR middle-end/45229
4299 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
4300 handle GIMPLE_CALLs with no LHS.
4301
4302 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4303
4304 * graphite-poly.c (init_graphite_out_file): New.
4305 (init_graphite_in_file): New.
4306 (apply_poly_transforms): Updated to enable reading and writing of
4307 multiple scop files.
4308
4309 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
4310
4311 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
4312 redundant checks.
4313
4314 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4315
4316 * graphite-clast-to-gimple.c (precision_for_value): Adjust
4317 computation of precision by 1.
4318
4319 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4320
4321 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
4322 (openscop_read_polyhedron_matrix): New.
4323 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
4324 (openscop_read_N_int): Same.
4325 * graphite-poly.c (openscop_read_N_int): New.
4326 (openscop_read_one_int): New.
4327 (openscop_read_N_string): New.
4328 (openscop_read_one_string): New.
4329 (openscop_read_powerset_matrix): New.
4330 (graphite_read_transforms): Remove.
4331 (graphite_read_scatt): New.
4332 (graphite_read_scop_file): New.
4333 (apply_poly_transforms): Updated to call graphite_read_scop_file.
4334
4335 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4336
4337 * graphite-poly.c: Change include order.
4338
4339 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4340
4341 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
4342 (cloog_matrix_nrows): New.
4343
4344 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4345
4346 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
4347 from matrix lines.
4348 * graphite-poly.c (openscop_print_scattering_function_1): Same.
4349 (print_scattering_function_1): Same.
4350 (openscop_print_pbb_domain): Same.
4351 (openscop_print_scop_context): Same.
4352 (print_scop_context): Same.
4353
4354 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4355
4356 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
4357 (openscop_print_pdr_polyhedron): Print pph.
4358
4359 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4360
4361 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
4362 priority signed types.
4363
4364 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4365
4366 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
4367 the call to lang_hooks.types.type_for_size. Call
4368 build_nonstandard_integer_type.
4369
4370 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4371
4372 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
4373 (openscop_print_polyhedron_matrix): New.
4374 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
4375 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
4376 (openscop_print_pdr_powerset): New.
4377 (openscop_print_powerset_matrix): New.
4378 (openscop_print_scattering_function_1): New.
4379 (print_scattering_function): Add support for scattering names and
4380 OpenScop format.
4381 (graphite_write_transforms): Remove.
4382 (print_pdr_access_layout): Updated to support OpenScop format.
4383 (print_pdr): Same.
4384 (openscop_print_pbb_domain): New.
4385 (print_pbb_body): Added a parameter to allow indicating that pbb_body
4386 is not provided.
4387 (print_pbb): Updated to call the new print_pbb_body.
4388 (openscop_print_scop_context): New.
4389 (print_scop_header): New.
4390 (print_scop): Updated to call print_scop_header.
4391 * graphite-poly.h: Document OpenScop format.
4392
4393 2010-09-30 Anatoly Sokolov <aesok@post.ru>
4394
4395 * config/cris/m32c.c (cris_memory_move_cost): New.
4396 (cris_register_move_cost): Make static. Change arguments type from
4397 enum reg_class to reg_class_t.
4398 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4399 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4400 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
4401
4402 2010-09-30 Jakub Jelinek <jakub@redhat.com>
4403
4404 PR target/45843
4405 * config/i386/i386.c (ix86_gimplify_va_arg): Use
4406 INTVAL (XEXP (slot, 1)) as prev_size.
4407
4408 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
4409
4410 PR target/45837
4411 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
4412 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
4413 defined.
4414 * config/rs6000/option-defaults.h (toplevel): Change #if
4415 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
4416 global option changes.
4417
4418 2010-09-30 Jakub Jelinek <jakub@redhat.com>
4419
4420 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
4421
4422 PR tree-optimization/31261
4423 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
4424 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
4425
4426 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4427
4428 PR bootstrap/45796
4429 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
4430 special-casing for generators and turn into ...
4431 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
4432 rule, for better error messages in case of toplevel dependency errors.
4433 (genprog): Add hooks, rename to ...
4434 (genprogerr): ... this, and let genprog also contain check,
4435 checksum, condmd.
4436 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
4437 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
4438 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
4439
4440 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
4441 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4442
4443 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
4444 for GMP, MPFR and MPC.
4445
4446 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4447
4448 * config/sparc/sparc.opt (mimpure-text): Move ...
4449 * config/sol2.opt: ... here. Correct description.
4450 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
4451 * doc/invoke.texi (Option Summary, SPARC Options): Move
4452 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
4453 (Option Summary, Solaris 2 Options): ... here.
4454 (Submodel Options, Solaris 2 Options): New menu entry.
4455 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
4456 (Solaris 2 Options): ... here.
4457
4458 2010-09-30 Michael Eager <eager@eagercon.com>
4459
4460 * extend.texi (interrupt_handler): Add MicroBlaze to list.
4461 (save_volatiles): Describe option for MicroBlaze.
4462 * invoke.texi: Add MicroBlaze Options.
4463 * contrib.texi: Add acknowledgment.
4464 * md.texi: Add MicroBlaze d and z constraints.
4465 * install.texi: Add microblaze-*-elf.
4466 * configure.ac: Add microblaze-*-* to target list.
4467 * configure: Regenerate.
4468 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
4469 * config/microblaze/microblaze-protos.h: New.
4470 * config/microblaze/crti.s: New.
4471 * config/microblaze/predicates.md: New.
4472 * config/microblaze/linux.h: New.
4473 * config/microblaze/microblaze.md: New.
4474 * config/microblaze/constraints.md: New.
4475 * config/microblaze/crtn.s: New.
4476 * config/microblaze/microblaze.opt: New.
4477 * config/microblaze/microblaze-c.c: New.
4478 * config/microblaze/t-microblaze: New.
4479 * config/microblaze/microblaze.c: New.
4480 * config/microblaze/microblaze.h: New.
4481
4482 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4483
4484 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
4485 parse @optional/@required and set the flags as appropriate.
4486
4487 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
4488
4489 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
4490
4491 2010-09-30 Joseph Myers <joseph@codesourcery.com>
4492
4493 * opt-functions.awk (static_var): Update comment.
4494 (var_ref): Return offsetof expression or -1, not variable address.
4495 * optc-gen.awk: Generate structure field initializers instead of
4496 static variables. Expect -1 for missing variables instead of null
4497 pointer. Add gcc_options parameters to generated functions.
4498 * opth-gen.awk: Generate structure fields for static variables.
4499 Add gcc_options parameters to generated functions.
4500 * common.opt (optimize, optimize_size): Add variables.
4501 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
4502 &global_options to cl_target_option_restore.
4503 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
4504 &global_options to cl_optimization_restore, cl_target_option_save
4505 and cl_target_option_restore.
4506 (ix86_set_current_function): Pass &global_options to
4507 cl_target_option_restore.
4508 * config/pdp11/pdp11.h (optimize): Remove.
4509 * config/rs6000/rs6000.h (optimize): Remove.
4510 * config/sh/sh.h (optimize): Remove.
4511 * config/xtensa/xtensa.h (optimize): Remove.
4512 * coretypes.h (struct gcc_options): Declare.
4513 * diagnostic.c (diagnostic_initialize): Initialize
4514 context->option_state.
4515 (diagnostic_report_diagnostic): Pass option_state to
4516 option_enabled hook.
4517 * diagnostic.h (diagnostic_context.option_enabled): Add void *
4518 parameter.
4519 (diagnostic_context.option_state): New field.
4520 * final.c (final_start_function, final, final_scan_insn): Rename
4521 optimize parameter to optimize_p.
4522 * flags.h (optimize, optimize_size): Remove.
4523 * function.c (invoke_set_current_function_hook): Pass
4524 &global_options to cl_optimization_restore.
4525 * gcc.c (driver_handle_option): Take gcc_options parameter.
4526 Assert that it is &global_options.
4527 (process_command): Pass &global_options to read_cmdline_option.
4528 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
4529 option_enabled.
4530 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
4531 &global_options to set_option.
4532 * opts-common.c (handle_option, handle_generated_option,
4533 read_cmdline_option, set_option): Take explicit gcc_options
4534 parameters. Use option_flag_var.
4535 (option_flag_var): New.
4536 * opts.c (common_handle_option, lang_handle_option,
4537 target_handle_option): Take gcc_options parameter. Assert that it
4538 is &global_options.
4539 (read_cmdline_options): Pass &global_options to read_cmdline_option.
4540 (print_filtered_help): Use option_flag_var. Pass &global_options
4541 to option_enabled.
4542 (common_handle_option): Use option_flag_var.
4543 (option_enabled): Take opts parameter. Use option_flag_var.
4544 (get_option_state): Take gcc_options parameter. Use
4545 option_flag_var. Pass gcc_options parameter to option_enabled.
4546 (enable_warning_as_error): Pass &global_options to
4547 handle_generated_option.
4548 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
4549 (cl_option_handler_func.handler): Take gcc_options parameter.
4550 (option_enabled, get_option_state, set_option, handle_option,
4551 handle_generated_option, read_cmdline_option): Take gcc_options
4552 parameters.
4553 * toplev.c (optimize, optimize_size): Remove.
4554 (print_switch_values): Pass &global_options to option_enabled.
4555 (option_affects_pch_p): Use option_flag_var. Pass &global_options
4556 to get_option_state.
4557 (general_init): Initialize global_dc->option_state.
4558 * tree.c (build_optimization_node): Pass &global_options to
4559 cl_optimization_save.
4560 (build_target_option_node): Pass &global_options to
4561 cl_target_option_save.
4562
4563 2010-09-30 Martin Jambor <mjambor@suse.cz>
4564
4565 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
4566 zero sized bit-fields.
4567
4568 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4569
4570 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
4571 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
4572 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
4573 (c_parser_objc_class_declaration): Same change.
4574 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
4575 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
4576 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
4577 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
4578 and RID_AT_PUBLIC instead of RID_PUBLIC.
4579 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
4580 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
4581
4582 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
4583
4584 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
4585 Add links to current providers of packages for Solaris and IRIX.
4586
4587 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4588
4589 Merge from 'apple/trunk' branch on FSF servers.
4590 * c-parser.c: Applied change originally in c-parse.in.
4591
4592 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4593
4594 Radar 4281748
4595 * c-decl.c (start_decl): Check for redeclaration of class name.
4596 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
4597
4598 2010-09-29 Steve Ellcey <sje@cup.hp.com>
4599
4600 * config/ia64/ia64.c (ia64_builtin_decl): New.
4601 (TARGET_BUILTIN_DECL): Define.
4602 (ia64_builtins): New.
4603 (ia64_init_builtins): Save decls in ia64_builtins.
4604
4605 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
4606
4607 PR target/40457
4608 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
4609 (move2add_use_add3_insn): Likewise.
4610 (reload_cse_move2add): Likewise.
4611 * rtlanal.c (get_full_rtx_cost): New function.
4612 * rtl.h (struct full_rtx_costs): New.
4613 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
4614 costs_add_n_insns): New inline functions.
4615 (get_full_rtx_cost): Declare.
4616
4617 PR c/45054
4618 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
4619 invariants. Check for reg_equiv_invariant.
4620 (reload): Assert that spilled_pseudos is empty when returning.
4621
4622 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
4623
4624 * config/i386/mingw32.h (TARGET_64BIT): replaced by
4625 TARGET_64BIT_DEFAULT in #if check.
4626
4627 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
4628
4629 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
4630
4631 2010-09-29 Mike Stump <mikestump@comcast.net>
4632
4633 * config/darwin.h (flag_mkernel): Remove.
4634 (flag_apple_kext): Likewise.
4635
4636 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4637 Jack Howarth <howarth@bromo.med.uc.edu>
4638
4639 * config/darwin.opt (undefined): Add.
4640
4641 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
4642
4643 PR testsuite/45664
4644 * configure.ac: Add --enable-indirect-function option.
4645 * config.gcc: Add default_gnu_indirect_function.
4646 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
4647 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
4648 * varasm.c (do_assemble_alias): Adjust for macro name change.
4649 * configure: Rebuilt.
4650 * doc/install.texi: Document --enable-indirect-function.
4651
4652 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4653
4654 * doc/options.texi (Variable, Var, Init): Update documentation
4655 without reference to VarExists.
4656 (VarExists): Remove.
4657 * common.opt, config/i386/i386.opt, config/linux.opt,
4658 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
4659 Don't use VarExists.
4660
4661 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4662
4663 * optc-gen.awk: Generate global_options initializer instead of
4664 individual variables. Add x_ prefix to names of structure members.
4665 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
4666 names of structure members.
4667 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4668 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
4669 * doc/tm.texi: Regenerate.
4670 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4671 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
4672 * c-parser.c (disable_extension_diagnostics,
4673 restore_extension_diagnostics): Update names of cpp_options members.
4674 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4675 * common.opt (fcompare-debug-second): Don't use Var.
4676 * config/alpha/alpha.h (target_flags): Remove.
4677 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4678 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
4679 * config/bfin/bfin.h (target_flags): Remove.
4680 * config/cris/cris.h (target_flags): Remove.
4681 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
4682 cl_target_option members.
4683 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
4684 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
4685 ix86_can_inline_p): Update names of cl_target_option members.
4686 * config/i386/i386.h (ix86_isa_flags): Remove.
4687 * config/lm32/lm32.h (target_flags): Remove.
4688 * config/mcore/mcore.h (mcore_stack_increment): Remove.
4689 * config/mcore/mcore.md (addsi3): Remove extern declaration of
4690 flag_omit_frame_pointer.
4691 * config/mep/mep.h (target_flags): Remove.
4692 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4693 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
4694 * config/mmix/mmix.h (target_flags): Remove.
4695 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
4696 flag_expensive_optimizations): Remove.
4697 * config/s390/s390.h (flag_pic): Remove.
4698 * config/score/score-conv.h (target_flags): Remove.
4699 * config/sh/sh.h (sh_fixed_range_str): Remove.
4700 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
4701 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
4702 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4703 * diagnostic.c (diagnostic_initialize): Update names of
4704 diagnostic_context members.
4705 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
4706 warn_system_headers.
4707 (diagnostic_report_warnings_p): Update for new names.
4708 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
4709 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
4710 HARD_FRAME_POINTER_IS_ARG_POINTER.
4711 * flags.h (flag_compare_debug): Declare.
4712 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4713 * opts.c (flag_compare_debug): Define.
4714 (common_handle_option): Update names of diagnostic_context
4715 members. Handle -fcompare-debug-second.
4716 (fast_math_flags_struct_set_p): Update names of cl_optimization
4717 members.
4718 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4719 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4720 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4721 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4722 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4723 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4724 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
4725 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4726 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
4727
4728 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
4729
4730 * config/picochip/picochip.c (picochip_output_internal_label):
4731 This function can now be called for debug CFI labels, which can come
4732 in the middle of a vliw instruction. Postpone until end of vliw.
4733
4734 2010-09-29 Richard Guenther <rguenther@suse.de>
4735
4736 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
4737 (DECL_FILE_SCOPE_P): Use it.
4738 (TYPE_FILE_SCOPE_P): New macro.
4739
4740 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4741
4742 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
4743 a CPP_NAME which is a reserved word, clearly separate cases for
4744 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
4745
4746 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4747
4748 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
4749 token->value with the canonical spelling. Do exactly like C and
4750 C++ and leave it as it is.
4751
4752 2010-09-28 Richard Henderson <rth@redhat.com>
4753
4754 * config/alpha/alpha.c (alpha_builtins): New.
4755 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
4756 (alpha_builtin_function): New.
4757 (alpha_add_builtins, alpha_init_builtins): Use it.
4758
4759 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
4760
4761 * doc/standards.texi (Standards): Expanded the section on
4762 Objective-C and Objective-C++.
4763
4764 2010-09-28 DJ Delorie <dj@redhat.com>
4765
4766 PR target/45800
4767 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
4768 volatile MEMs.
4769
4770 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4771
4772 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
4773 attributes on methods.
4774 (c_parser_objc_method_definition): Handle attributes.
4775 (c_parser_objc_methodproto): Likewise.
4776 (c_parser_objc_maybe_method_attributes): New.
4777 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
4778 missing definition, similar to that in ObjC++.
4779
4780 2010-09-28 Richard Henderson <rth@redhat.com>
4781
4782 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
4783 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
4784 (CONFIG_SJLJ_EXCEPTIONS): Remove.
4785 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
4786 (STACK_CHECK_PROTECT): Likewise.
4787 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
4788 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
4789 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
4790 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
4791 (dwarf2out_assembly_start): Likewise.
4792 * except.c (init_eh): Use targetm.except_unwind_info.
4793 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
4794 (output_one_function_exception_table): Likewise.
4795 * final.c: Unconditionally include dwarf2out.h.
4796 (final_start_function): Unconditionally call dwarf2out routines.
4797 (final_end_function, final_scan_insn): Likewise.
4798 * function.c (expand_function_end): Use targetm.except_unwind_info.
4799 * opts.c (decode_options): Use targetm.except_unwind_info.
4800 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
4801 * target.def (debug_unwind_info, except_unwind_info): New.
4802 * target.h (enum unwind_info_type): New.
4803 * targhooks.c (default_debug_unwind_info): New.
4804 (default_except_unwind_info): New.
4805 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
4806 * targhooks.h: Declare them.
4807 * tree-tailcall.c: Include "target.h"
4808 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
4809 * Makefile.in (tree-tailcall.o): Update.
4810 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
4811 (lhd_gcc_personality): Likewise.
4812
4813 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
4814 (TARGET_EXCEPT_UNWIND_INFO): New.
4815 (DWARF2_UNWIND_INFO): Update.
4816 (TARGET_DEBUG_UNWIND_INFO): New.
4817 * doc/tm.texi: Rebuild.
4818
4819 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
4820 targetm.except_unwind_info.
4821
4822 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
4823 (arm_except_unwind_info): New.
4824 (arm_compute_func_type): Use it.
4825 (arm_expand_prologue, thumb_pushpop): Likewise.
4826 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
4827 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
4828 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
4829 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
4830 (DWARF2_UNWIND_INFO): Remove.
4831 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
4832 (ARM_EABI_UNWIND_TABLES): Remove.
4833
4834 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
4835 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
4836 (ia64_except_unwind_info): New.
4837 (ia64_output_function_prologue): Use it.
4838 (ia64_add_bundle_selector_before): Likewise.
4839 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
4840 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
4841 (TARGET_UNWIND_INFO): Remove.
4842
4843 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
4844
4845 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4846
4847 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
4848 (c_parser_objc_protocol_definition): Likewise.
4849 (c_parser_external_declaration): Provide dummy attribute arguments.
4850 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
4851 (c_parser_objc_class_definition): Handle attributes.
4852 (c_parser_objc_protocol_definition): Likewise.
4853
4854 2010-09-28 Tobias Burnus <burnus@net-b.de>
4855
4856 PR fortran/40569
4857 PR fortran/40568
4858 * toplev.h (save_decoded_options, save_decoded_options_count):
4859 New global variables.
4860 * toplev.c (save_decoded_options, save_decoded_options_count):
4861 Export variables.
4862
4863 2010-09-28 Ian Lance Taylor <iant@google.com>
4864
4865 * config/i386/i386.c (ix86_supports_split_stack): Test
4866 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
4867
4868 2010-09-28 Ian Lance Taylor <iant@google.com>
4869
4870 PR target/45815
4871 * opts.c (decode_options): Don't test whether the target supports
4872 split stack if flag_split_stack == 0.
4873
4874 2010-09-28 Jan Hubicka <jh@suse.cz>
4875
4876 * builtin-attrs.def (ATTR_LEAF): New attribute.
4877 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
4878 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
4879 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
4880 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
4881 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
4882 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
4883 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
4884 * sync-builtins.def: Annotate all builtins by leaf.
4885 * omp-builtins.def: Annotate all builtins by leaf.
4886 * builtins.def: Annotate relevant builtins with leaf attribute.
4887 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
4888 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
4889 leaf.
4890
4891 2010-09-28 Jan Hubicka <jh@suse.cz>
4892
4893 * tree-ssa-ccp.c (fold_ctor_reference): New function.
4894 (fold_const_aggregate_ref): Use it.
4895 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
4896 into external static.
4897
4898 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4899
4900 PR target/44452
4901 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
4902 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
4903 (ix86_solaris_return_in_memory): Remove.
4904 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
4905 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
4906 (TARGET_SUBTARGET_DEFAULT): Redefine.
4907 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
4908 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
4909 (TARGET_SUBTARGET_DEFAULT): Redefine.
4910 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
4911 -mvect8-ret-in-mem.
4912 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
4913
4914 2010-09-29 Alan Modra <amodra@gmail.com>
4915
4916 PR target/45807
4917 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
4918 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
4919 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
4920 Delete.
4921 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
4922 (rs6000_emit_prologue): Don't just create frame save info for r2,
4923 actually save r2.
4924
4925 2010-09-28 Richard Henderson <rth@redhat.com>
4926
4927 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
4928 when 8 bytes are requested.
4929
4930 2010-09-28 Tristan Gingold <gingold@adacore.com>
4931
4932 * config/avr/avr.c (expand_prologue): Set
4933 current_function_static_stack_size.
4934
4935 2010-09-28 Tristan Gingold <gingold@adacore.com>
4936
4937 * config/alpha/alpha.md: Change the initial condition of the
4938 probing loop.
4939
4940 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
4941
4942 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
4943 Split from *avx_<maxmin:code><mode>3.
4944 (*avx_<smaxmin:code><mode>3): Ditto.
4945 * config/i386/i386.md (maxmin): Remove code iterator.
4946
4947 2010-09-27 Ian Lance Taylor <iant@google.com>
4948
4949 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
4950 requires assembler support for CFI directives.
4951
4952 2010-09-27 Richard Henderson <rth@redhat.com>
4953
4954 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
4955
4956 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
4957
4958 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
4959 that AFTER is not in the range FROM..TO, inclusive.
4960
4961 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
4962 Bernd Schmidt <bernds@codesourcery.com>
4963
4964 PR rtl-optimization/45792
4965 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
4966 If not all insns are to be merged, for each edge, stash the
4967 next candidate after the to-be-merged insns before doing the
4968 merge, and use them for the retry at the new insertion point.
4969 Handle CC0 targets when retrying.
4970
4971 2010-09-27 Ian Lance Taylor <iant@google.com>
4972
4973 * common.opt (fsplit-stack): New option.
4974 * opts.c (decode_options): Set flag_split_stack to final value.
4975 * target.def (supports_split_stack): New hook.
4976 * gcc.c (STACK_SPLIT_SPEC): Define.
4977 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
4978 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
4979 (Code Gen Options): Document -fsplit-stack.
4980 * doc/extend.texi (Function Attributes): Mention no_split_stack.
4981 (Function Attributes): Document no_split_stack.
4982 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
4983 TARGET_SUPPORTS_SPLIT_STACK.
4984 * doc/tm.texi: Rebuild.
4985 * function.c (thread_prologue_and_epilogue_insns): If
4986 flag_split_stack, add split stack prologue.
4987 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
4988 * varasm.c (saw_no_split_stack): New static variable.
4989 (assemble_start_function): Set saw_no_split_stack if the function
4990 has the no_split_stack attribute.
4991 (file_end_indicate_split_stack): New function.
4992 * output.h (file_end_indicate_split_stack): Declare.
4993 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
4994 and function.
4995 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
4996 routines.
4997 * config/i386/i386.c (ix86_option_override_internal): Don't set
4998 expand_builtin_va_start to NULL if -fsplit-stack.
4999 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
5000 -fsplit-stack.
5001 (ix86_va_start): If -fsplit-stack, get overflow pointer from
5002 scratch register set by prologue.
5003 (ix86_code_end): If -fsplit-stack, call
5004 file_end_indicate_split_stack.
5005 (ix86_supports_split_stack): New static function.
5006 (SPLIT_STACK_AVAILABLE): Define.
5007 (split_stack_prologue_scratch_regno): New static function.
5008 (split_stack_fn): New static variable.
5009 (ix86_expand_split_stack_prologue): New function.
5010 (ix86_live_on_entry): New static function.
5011 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
5012 (output_pic_addr_const): Likewise.
5013 (i386_asm_output_addr_const_extra): Likewise.
5014 (ix86_expand_call): Change return type to rtx. Return the new
5015 call instruction.
5016 (TARGET_SUPPORTS_SPLIT_STACK): Define.
5017 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5018 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
5019 (split_stack_prologue, split_stack_return): New insns.
5020 (split_stack_space_check): New insn.
5021 * config/i386/i386.h (struct machine_function): Add
5022 split_stack_varargs_pointer field.
5023 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
5024 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5025 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5026 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5027 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
5028 Declare.
5029 (ix86_expand_call): Update declaration.
5030
5031 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5032
5033 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
5034 code. Added byref, which was missing in the list of codes.
5035 Explain that enumeration values are encoded as the integer type
5036 that the compiler uses to store them. Explain and make examples
5037 of how 'const' interacts with pointers, and the complication of
5038 the encoding of 'const char *'.
5039 (Legacy type encoding): New subsection, explaining that GCC emits
5040 incorrect type encodings for the NeXT runtime for compatibility
5041 reasons.
5042 (@@encode): New subsection, explaining @encode and particularly
5043 that protocol qualifiers are not recognized inside an @encode()
5044 expression.
5045 (Method signatures): New subsection, explaining how method
5046 signatures are encoded.
5047
5048 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5049
5050 Merge from 'apple/trunk' branch on FSF servers. Removed small
5051 change in build_conditional_expr that had been added when fixing
5052 PR objc/27377 and which did the same check in a less complete way.
5053
5054 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5055
5056 Radar 4229905
5057 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
5058 looking for objective-c common pointer types.
5059
5060 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5061
5062 Radar 4154928
5063 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
5064 use their ObjC common type.
5065
5066 2010-09-27 Richard Guenther <rguenther@suse.de>
5067
5068 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
5069
5070 2010-09-27 Jie Zhang <jie@codesourcery.com>
5071
5072 * print-tree.c (print_node): Print in-constant-pool.
5073
5074 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
5075
5076 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
5077 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
5078 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
5079 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
5080
5081 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5082
5083 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
5084 from pro_epilogue_adjust_stack_<mode>_{1,2}.
5085 (pro_epilogue_adjust_stack_<mode>_add): Rename from
5086 pro_epilogue_adjust_stack_<mode>_3.
5087 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
5088 renamed pro_epilogue_adjust_stack_{si,di}_add.
5089 (ix86_expand_prologue): Use indirect functions. Update for renamed
5090 pro_epilogue_adjust_stack_{si,di}_sub.
5091
5092 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5093
5094 * config/i386/i386.md (movmsk_df): New insn.
5095 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
5096 sequence for TARGET_SSE_MATH.
5097
5098 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
5099
5100 * config/mips/mips.c (mips_builtin_decls): Declare.
5101 (mips_init_builtins): Store function declarations in
5102 mips_builtin_decls.
5103 (mips_builtin_decl): New function.
5104 (TARGET_BUILTIN_DECL): Define.
5105
5106 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
5107 Richard Henderson <rth@redhat.com>
5108
5109 * config/i386/cygwin.asm: Include auto-host.h.
5110 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
5111 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
5112 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
5113 alignment code from the 64-bit path. Use gas local labels.
5114 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
5115 from _di_2. Remove the useless constant integer argument.
5116 (pro_epilogue_adjust_stack_<mode>_3): New.
5117 (allocate_stack_worker_probe_<mode>): Macroize from
5118 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
5119 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
5120 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
5121 (__chkstk_ms): New function.
5122 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
5123 * gcc/config/i386/t-interix: Likewise.
5124 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
5125 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
5126 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
5127 * configure, config.in: Rebuild.
5128
5129 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
5130
5131 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
5132 statements because of the return slot optimization.
5133
5134 2010-09-25 Anatoly Sokolov <aesok@post.ru>
5135
5136 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
5137 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
5138 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5139 (class_likely_spilled_p): Rename to...
5140 (avr_class_likely_spilled_p): ...this. Make static. Change argument
5141 type to reg_class_t.
5142
5143 2010-09-24 Jan Hubicka <jh@suse.cz>
5144
5145 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
5146 (lto_symtab_resolve_symbols): Set it.
5147 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
5148 store resolution field in cgraph/varpool.
5149 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
5150 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
5151 (cgraph_dump_node): Drop used_from_object_file.
5152 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
5153 (cgraph_function_body_availability): Use decl_replaceable_p.
5154 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
5155 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
5156 cgraph_used_from_object_file_p.
5157 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
5158 cgraph_used_from_object_file_p.
5159 (resolution_used_from_other_file_p): New functoin.
5160 (cgraph_used_from_object_file_p): New predicate.
5161 * cgraph.h: Include plugin-api.h
5162 (struct cgraph_local_info): Remove used_from_object_file.
5163 (struct cgraph_node): Add resolution field.
5164 (struct varpool_node): Likewise; remove used_from_object_file;
5165 reove const_value_known.
5166 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
5167 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
5168 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5169 varpool_used_from_object_file_p): Declare.
5170 (varpool_get_node, varpool_extra_name_alias): Update prototype.
5171 * tree.h (DECL_REPLACEABLE_P): Remove.
5172 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
5173 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
5174 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5175 input_overwrite_node, input_node, input_varpool_node): Stream
5176 resolution.
5177 * expr.c (expand_expr_real_1): Use const_value_known_p
5178 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
5179 const_value_known.
5180 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
5181 (function_and_variable_visibility): Set resolution for local vars
5182 and functions; use varpool_used_from_object_file_p.
5183 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
5184 static functions.
5185 (default_binds_local_p_1): Use resolutoin info.
5186 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
5187 * varpool.c (varpool_get_node): Constify.
5188 (const_value_known_p): Do not use vnode->const_value_known;
5189 use decl_replaceable_p.
5190 (varpool_finalize_decl): Do not set const_value_known.
5191 (cgraph_variable_initializer_availability): Use decl_replaceable_p
5192 (varpool_extra_name_alias): Return new node.
5193 (varpool_used_from_object_file_p): New function.
5194
5195 2010-09-24 Richard Henderson <rth@redhat.com>
5196
5197 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
5198 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
5199 (do_spill): Use REG_CFA_OFFSET.
5200 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
5201 as appropriate.
5202 (ia64_expand_epilogue): Likewise.
5203 (process_set): Split into ...
5204 (process_cfa_adjust_cfa): this,
5205 (process_cfa_register): this,
5206 (process_cfa_offset): and this new function.
5207 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
5208 instead of REG_FRAME_RELATED_EXPR.
5209
5210 2010-09-24 Olivier Hainque <hainque@adacore.com>
5211
5212 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
5213
5214 2010-09-24 Jan Hubicka <jh@suse.cz>
5215
5216 * doc/extend.texi: (attribute leaf): Document.
5217 * tree.c (local_define_builtin): Handle ECF_LEAF.
5218 (build_common_builtin_nodes): Set ECF_LEAF where needed.
5219 * tree.h (ECF_LEAF): New.
5220 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
5221 overwrittable and unavailable functions.
5222 (ipa_init): Put all_module_statics into optimization_summary_obstack.
5223 (copy_global_bitmap): Do not copy all_module_statics.
5224 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
5225 (propagate): Handle overwritable and unavailable leaf functions;
5226 initialize global info for overwritable and unavailable leaf functions;
5227 do not free all module statics.
5228 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
5229 local statics.
5230 * calls.c (flags_from_decl_or_type): Handle leaf.
5231 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
5232 abnormal gotos.
5233
5234 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
5235
5236 * gengtype.c: Reindented.
5237 * gengtype.h: Reindented.
5238 * gengtype-parse.c: Reindented.
5239
5240 2010-09-24 Jan Hubicka <jh@suse.cz>
5241
5242 PR tree-optimization/45738
5243 PR tree-optimization/45741
5244 * expr.c (string_constant): Allow CONST_DECL too;
5245 check that DECL_INITIAL is set.
5246 * varpool.c (const_value_known_p): Only look into VAR_DECL
5247 and CONST_DECL.
5248
5249 2010-09-24 Joseph Myers <joseph@codesourcery.com>
5250
5251 * common.opt (undef): New.
5252
5253 2010-09-24 Jakub Jelinek <jakub@redhat.com>
5254
5255 PR middle-end/45234
5256 * rtl.h (enum global_rtl_index): Add
5257 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
5258 (LAST_VIRTUAL_POINTER_REGISTER): Define.
5259 (virtual_preferred_stack_boundary_rtx,
5260 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
5261 (LAST_VIRTUAL_REGISTER): Increase by one.
5262 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
5263 instead of LAST_VIRTUAL_REGISTER.
5264 * function.c (instantiate_new_reg): Handle
5265 virtual_preferred_stack_boundary_rtx.
5266 * emit-rtl.c (init_virtual_regs): Handle
5267 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5268 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
5269 * explow.c (round_push): If crtl->preferred_stack_boundary
5270 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
5271 virtual_preferred_stack_boundary_rtx alignment instead of
5272 crtl->preferred_stack_boundary alignment.
5273 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
5274 macros. Never decrease crtl->preferred_stack_boundary,
5275 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
5276 instead of PREFERRED_STACK_BOUNDARY. Don't modify
5277 stack_pointer_delta in dynamic allocation, even when size
5278 is constant.
5279 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
5280 macro.
5281 * print-rtl.c (print_rtx): Handle
5282 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5283 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
5284 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
5285 * config/frv/frv.c (frv_emit_movsi): Likewise.
5286 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
5287 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
5288 Likewise.
5289
5290 Revert:
5291 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5292
5293 PR middle-end/45234
5294 * calls.c (expand_call): Make sure that all variable sized
5295 adjustments are multiple of preferred stack boundary after
5296 stack alignment.
5297
5298 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
5299 Dominique Dhumieres <dominiq@lps.ens.fr>
5300
5301 PR bootstrap/45751
5302 * gcc/config/darwin-driver.c (darwin_default_min_version):
5303 Adjust size passed to memcpy in two places.
5304
5305 2010-09-24 Richard Guenther <rguenther@suse.de>
5306
5307 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
5308 Make sure to not call set_type_context with error_mark_node.
5309 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
5310
5311 2010-09-24 Richard Guenther <rguenther@suse.de>
5312
5313 * Makefile.in (OBJS-onestep): Remove.
5314 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
5315 (libbackend.a): Remove onestep support.
5316 (libbackend.o): Remove.
5317 * configure.ac (--enable-intermodule): Remove.
5318 * configure: Regenerate.
5319
5320 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
5321
5322 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
5323 reaching the end of a block if it occurs at a DEBUG_INSN.
5324
5325 2010-09-09 Tristan Gingold <gingold@adacore.com>
5326
5327 PR target/44242
5328 * config/vms/vms-crt0-64.c: Removed.
5329 * config/vms/vms-crt0.c: Removed.
5330 * config/vms/vms-psxcrt0-64.c: Removed.
5331 * config/vms/vms-psxcrt0.c: Removed.
5332 * config/vms/vms-ucrt0.c: New file.
5333 * config/vms/t-vms64: Removed.
5334 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
5335 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
5336 * config.gcc (alpha-dec-vms): Use t-vms.
5337
5338 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
5339
5340 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
5341 underfull hbox in DVI output.
5342 (-fobjc-class-cxx-cdtors): Same change.
5343 (-fobjc-exceptions): Tidied up documentation. Explain what the
5344 option does, but moved the (lenghty) description of the exception
5345 syntax into objc.texi.
5346 (-fobjc-gc): Explain that the option is not useful with the GNU
5347 runtime.
5348 (-fzero-link): Explain that the GNU runtime always works in
5349 "zero-link" mode.
5350 * doc/objc.texi: All sections: simplified @node declarations
5351 removing specification of next, previous, up node.
5352 (Objective-C): Updated introduction.
5353 (Garbage Collection): Updated. The bohem-gc library is now
5354 included in gcc itself. Mention that this section only applies to
5355 the GNU Objective-C runtime.
5356 (compatibility_alias): Small tidy up.
5357 (Exceptions): New section mostly containing text previously in the
5358 description of the -fobjc-exception command-line option.
5359 (Synchronization): Same.
5360
5361 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
5362
5363 * config/i386/i386.md (ix86_code_end): Move the initialization of
5364 xops array near the consumer. Use AX_REG and SP_REG instead of
5365 numerical constants.
5366
5367 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
5368
5369 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
5370 method [methodname]' for an Objective-C method instead of the less
5371 satisfactory 'too many arguments to function' (with no method name).
5372
5373 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
5374
5375 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
5376 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
5377 (execute_update_addresses_taken): Remove parameter. Execute the
5378 optimization unconditionally.
5379 * passes.c (execute_function_todo): Call execute_update_addresses_taken
5380 unconditionally if TODO_rebuild_alias is set, else only when optimizing
5381 if TODO_update_address_taken is set.
5382
5383 2010-09-23 Anatoly Sokolov <aesok@post.ru>
5384
5385 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5386 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
5387 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5388 (arm_output_addr_const_extra): Make static.
5389
5390 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
5391
5392 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
5393 define as unspec_volatile.
5394 ("nops"): Define as unspec_volatile. Use fputs to write to
5395 asm_out_file directly. Output NOPs on separate lines using while loop.
5396 * config/i386/i386.c (ix86_code_end): Use fputs to write to
5397 asm_out_file directly. Output NOPs on separate lines using while loop.
5398
5399 2010-09-23 Richard Guenther <rguenther@suse.de>
5400
5401 PR tree-optimization/45565
5402 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
5403 Make sure to adjust the fndecl before replacing the stmt.
5404
5405 2010-09-23 Richard Guenther <rguenther@suse.de>
5406
5407 PR middle-end/45750
5408 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
5409 gimplifying MEM_REF.
5410
5411 2010-09-23 Alan Modra <amodra@gmail.com>
5412
5413 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
5414 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
5415
5416 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
5417
5418 PR rtl-optimization/44374
5419 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
5420 * df-core.c (df_set_bb_dirty): Set it.
5421 * ifcvt.c (find_memory): Remove function.
5422 (dead_or_predicable): Use can_move_insns_across.
5423 * df.h (can_move_insns_across): Declare function.
5424 * cfgcleanup.c (block_was_dirty): New static variable.
5425 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
5426 than df_get_bb_dirty.
5427 (try_head_merge_bb): New static function.
5428 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
5429 is set.
5430 * df-problems.c: Include "target.h"
5431 (df_simulate_find_uses): New static function.
5432 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
5433 (find_memory, find_memory_store): New static functions.
5434 (can_move_insns_across): New function.
5435 * Makefile.in (df-problems.o): Update dependencies.
5436
5437 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
5438
5439 PR java/44095
5440 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
5441 is specified and the suffix of the file isn't ".c".
5442 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5443
5444 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5445
5446 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
5447 * doc/cppopts.texi: Fix markup of index entry.
5448 * doc/extend.texi (Constructing Calls): Fix markup of
5449 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
5450 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
5451 (Vague Linkage, C++ Attributes): Fix markup of index entries and
5452 keywords.
5453 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
5454 avoid long lines.
5455 (C Dialect Options, C++ Dialect Options, Warning Options)
5456 (Debugging Options, Spec Files, Darwin Options)
5457 (i386 and x86-64 Options, MIPS Options)
5458 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
5459 index entries, avoid abbreviations, allow URLs to wrap, avoid
5460 long lines, avoid overlong pages from long @itemx lists.
5461 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
5462 * doc/standards.texi (Standards): Likewise.
5463 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
5464
5465 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5466
5467 * opts-common.c (prune_options): Make static. Work with decoded
5468 options.
5469 (decode_cmdline_options_to_array): Call prune_options. Don't
5470 resize option array here.
5471 * opts.h (prune_options): Remove prototype.
5472 * gcc.c (process_command): Take decoded options; don't call
5473 decode_cmdline_options_to_array here. Use decoded options for argv[0].
5474 (main): Call decode_cmdline_options_to_array here instead of
5475 prune_options. Update call to process_command.
5476 * config/darwin-driver.c: Include opts.h.
5477 (darwin_default_min_version): Work with decoded options. Don't
5478 handle -b or -V here.
5479 * config/darwin.h (darwin_default_min_version): Update prototype.
5480 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
5481 darwin_default_min_version.
5482 * config/i386/cygwin.h (mingw_scan): Update prototype.
5483 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
5484 * config/i386/cygwin1.c: Include opts.h.
5485 (mingw_scan): Work with decoded options.
5486 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
5487 * config/t-darwin (darwin-driver.o): Update dependencies.
5488
5489 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5490
5491 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
5492 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
5493 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
5494 -force-link, -force-link=, -language, -language=,
5495 -library-directory, -library-directory=, -no-canonical-prefixes,
5496 -no-standard-libraries, -no-warnings, -optimize, -output,
5497 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
5498 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
5499 -print-file-name=, -print-libgcc-file-name,
5500 -print-multi-directory, -print-multi-lib,
5501 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
5502 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
5503 -profile, -save-temps, -shared, -specs, -specs=, -static,
5504 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
5505 symbolic): New.
5506 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
5507 * gcc.c (A Short Introduction to Adding a Command-Line Option):
5508 Remove comment.
5509 (cc1_options): Correct specs for passing down --help,
5510 --target-help and --help=*. Add spec for passing down --version.
5511 (struct option_map, option_map, target_option_translations,
5512 translate_options): Remove.
5513 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
5514 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
5515 OPT_fhelp_ and OPT_ftarget_help.
5516 (process_command): Don't call translate_options. Call
5517 decode_cmdline_options_to_array before checking for
5518 -no-canonical-prefixes using decoded options.
5519 * opts-common.c (tm.h): Update comment on #include.
5520 (find_opt): Allow abbreviations of long options.
5521 (struct option_map, option_map): New.
5522 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
5523 and -mno handling.
5524 (target_option_translations): New.
5525 (decode_cmdline_options_to_array): Handle
5526 TARGET_OPTION_TRANSLATE_TABLE in driver.
5527 * opts.c (common_handle_option): Don't handle OPT_fhelp,
5528 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
5529
5530 2010-09-22 Richard Guenther <rguenther@suse.de>
5531
5532 * tree-inline.c (optimize_inline_calls): Schedule cleanups
5533 only if we inlined something. Block compaction and conditional
5534 folding are done by cfg cleanup. Schedule update-address-taken.
5535 (tree_function_versioning): Remove redundant call to number_blocks.
5536 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
5537 folding is done by cfg cleanup.
5538 * passes.c (init_optimization_passes): Remove update-address-taken
5539 pass after IPA inlining.
5540
5541 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5542
5543 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
5544 to update conditions. Fix reg_mode[] check.
5545
5546 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
5547
5548 * config/picochip/picochip.md (movhicc): Use expand to check whether
5549 movhicc is available and split it after reload.
5550
5551 2010-09-22 Richard Guenther <rguenther@suse.de>
5552
5553 * tree-ssanames.c (release_dead_ssa_names): Do not remove
5554 callee edges here.
5555 * passes.c (init_optimization_passes): Remove early CFG cleanup.
5556 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
5557 (pass_cleanup_cfg): Likewise.
5558 (execute_fixup_cfg): Cleanup.
5559 * tree-pass.h (pass_cleanup_cfg): Remove.
5560
5561 2010-09-22 Martin Jambor <mjambor@suse.cz>
5562
5563 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
5564 builtins if it is true.
5565 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
5566 parameter.
5567
5568 2010-09-22 Martin Jambor <mjambor@suse.cz>
5569
5570 * tree-sra.c (struct access): New field grp_no_warning.
5571 (create_access_replacement): Set TREE_NO_WARNING according to
5572 grp_no_warning.
5573 (create_artificial_child_access): Use build_ref_for_model and set
5574 grp_no_warning if build_user_friendly_ref_for_offset fails.
5575 (propagate_subaccesses_across_link): Likewise.
5576
5577 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
5578
5579 PR target/35664
5580 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
5581 ('f'): Likewise.
5582
5583 2010-09-22 Tristan Gingold <gingold@adacore.com>
5584
5585 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
5586
5587 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
5588
5589 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
5590 * config/i386/i386.c (decide_alg): Update for rename.
5591
5592 2010-09-22 Jakub Jelinek <jakub@redhat.com>
5593
5594 PR rtl-optimization/45739
5595 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
5596 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
5597
5598 2010-09-21 Anatoly Sokolov <aesok@post.ru>
5599
5600 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
5601 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
5602 Remove.
5603 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
5604 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5605
5606 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5607
5608 PR objc/23710
5609 * c-parser.c (c_parser_objc_method_definition): Check the return
5610 value of objc_start_method_definition and if false is returned,
5611 parse the method definition but emit no code.
5612
5613 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5614
5615 PR objc/25965
5616 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
5617 call objc_get_interface_ivars ().
5618
5619 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
5620
5621 PR target/45694
5622 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
5623 static chain-register is used for 64-bit.
5624
5625 2010-09-21 Richard Guenther <rguenther@suse.de>
5626
5627 * dwarf2out.c (is_cu_die): New function.
5628 (add_pubtype): Use it.
5629 (gen_subprogram_die): Likewise.
5630 (gen_struct_or_union_type_die): Likewise.
5631 (dwarf2out_finish): Likewise.
5632 (comp_unit_die): Rename to ...
5633 (single_comp_unit_die): ... this.
5634 (comp_unit_die): New function lazily constructing and
5635 returning single_comp_unit_die.
5636 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
5637 base_type_die, subrange_type_die, modified_type_die,
5638 lower_bound_default, add_bound_info, add_prototyped_attribute,
5639 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
5640 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
5641 force_decl_die, gen_namespace_die, dwarf2out_decl,
5642 dwarf2out_start_source_file, dwarf2out_end_source_file,
5643 prune_unused_types, dwarf2out_finish): Use it.
5644 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
5645 the global list of translation-unit decls.
5646 (dwarf2out_init): Do not create single_comp_unit_die here.
5647 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
5648
5649 2010-09-21 Richard Guenther <rguenther@suse.de>
5650
5651 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
5652 for bool for C++.
5653
5654 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
5655
5656 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
5657 (qhs_extenddi_cstr): Likewise.
5658 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
5659 them for the source operand.
5660
5661 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
5662
5663 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
5664 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
5665 (ix86_split_ashr): Ditto.
5666 (ix86_split_lshr): Ditto.
5667
5668 2010-09-21 Richard Guenther <rguenther@suse.de>
5669
5670 PR tree-optimization/45580
5671 * tree-ssa-propagate.c (substitute_and_fold): Always replace
5672 regular uses.
5673 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
5674 virtuals fold the call into a regular indirect one.
5675
5676 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
5677
5678 PR rtl-optimization/42775
5679 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
5680 scheduling is enabled.
5681
5682 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5683
5684 PR rtl-optimization/45728
5685 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
5686 gen_lowpart_common first and if that fails, force_reg first
5687 before calling gen_lowpart.
5688
5689 PR middle-end/45678
5690 * cfgexpand.c (expand_one_stack_var_at): Use
5691 crtl->max_used_stack_slot_alignment as max_align, instead
5692 of maximum of that and PREFERRED_STACK_BOUNDARY.
5693 Don't call update_stack_alignment.
5694
5695 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
5696
5697 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
5698 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
5699 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
5700 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
5701 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
5702 (build_nonstandard_integer_type): Likewise.
5703 (build_range_type_1): New function, built from...
5704 (build_range_type): ...this. Call build_range_type_1.
5705 (build_nonshared_range_type): New function.
5706 (build_array_type_1): New function, built from...
5707 (build_array_type: ...this. Call build_array_type_1.
5708 (build_nonshared_array_type): New function.
5709 * tree.h (build_nonshared_range_type): Declare.
5710 (build_nonshared_array_type): Likewise.
5711
5712 2010-09-20 Anatoly Sokolov <aesok@post.ru>
5713
5714 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
5715 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5716 (arm_class_likely_spilled_p): New function.
5717
5718 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
5719
5720 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
5721 indirect functions.
5722 (ix86_split_ashl): Ditto.
5723 (ix86_split_ashr): Ditto.
5724 (ix86_split_lshr): Ditto.
5725 (ix86_adjust_counter): Ditto.
5726
5727 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
5728
5729 * c-family/c-common.h (constant_string_class): Documented with
5730 comment identical to the one already in c-common.c.
5731
5732 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5733
5734 * dwarf2out.c (any_cfis_emitted): New static variable.
5735 (add_fde_cfi): Set it.
5736 (dwarf2out_frame_debug): Clear it before processing,
5737 if it is set afterwards, flush any queued reg saves.
5738
5739 PR debug/45124
5740 * dwarf2out.c (add_accessibility_attribute): Assume
5741 DW_ACCESS_private as the default for dwarf_version > 2
5742 and DW_TAG_class_type parent.
5743 (gen_inheritance_die): Assume DW_ACCESS_public as the default
5744 for dwarf_version > 2 and parent other than DW_TAG_class_type.
5745
5746 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
5747
5748 PR target/45726
5749 * arm.md (arm_movt): Only enable on machines with MOVT.
5750
5751 2010-09-20 Jie Zhang <jie@codesourcery.com>
5752
5753 * config/arm/arm.c (arm_address_offset_is_imm): New.
5754 (arm_early_store_addr_dep): New.
5755 (arm_early_load_addr_dep): New.
5756 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
5757 (arm_early_load_addr_dep): Declare.
5758 (arm_address_offset_is_imm): Declare.
5759 * config/arm/cortex-m4.md: New file.
5760 * config/arm/cortex-m4-fpu.md: New file.
5761 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
5762 (attr generic_sched): Exclude cortexm4.
5763 (attr generic_vfp): Exclude cortexm4.
5764
5765 2010-09-20 Richard Guenther <rguenther@suse.de>
5766
5767 PR middle-end/45704
5768 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
5769
5770 2010-09-20 Jan Hubicka <jh@suse.cz>
5771
5772 PR tree-optimize/45605
5773 * cgraph.h (const_value_known_p): Declare.
5774 (varpool_decide_const_value_known): Remove.
5775 * tree-ssa-ccp.c (get_base_constructor): Use it.
5776 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
5777 * expr.c (string_constant): Likewise.
5778 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
5779 * ipa.c (ipa_discover_readonly_nonaddressable_var,
5780 function_and_variable_visibility): Likewise.
5781 * gimplify.c (gimplify_call_expr): Likewise.
5782 * gimple-fold.c (get_symbol_constant_value): Likewise.
5783 * varpool.c (varpool_decide_const_value_known): Replace by...
5784 (const_value_known_p): ... this one; handle other kinds of DECLs
5785 too and work for automatic vars.
5786 (varpool_finalize_decl): Use const_value_known_p.
5787
5788 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
5789
5790 PR target/45726
5791 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
5792
5793 2010-09-20 Richard Guenther <rguenther@suse.de>
5794
5795 PR tree-optimization/45705
5796 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
5797
5798 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5799
5800 PR rtl-optimization/45695
5801 * combine.c (try_combine): When splitting a two set pattern,
5802 make sure the pattern which will be put into i2 doesn't use REGs
5803 or MEMs set by insns in between i2 and i3.
5804
5805 2010-09-19 Jan Hubicka <jh@suse.cz>
5806
5807 PR lto/44246
5808 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
5809 processing same node twice.
5810
5811 2010-09-19 Anatoly Sokolov <aesok@post.ru>
5812
5813 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
5814 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5815 (bfin_class_likely_spilled_p): New function
5816
5817 2010-09-19 Ira Rosen <irar@il.ibm.com>
5818
5819 PR tree-optimization/45714
5820 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
5821 created in vectorizable_call instead of the original statement in
5822 def stmt updates.
5823
5824 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
5825
5826 * config/i386/i386-protos.h (split_double_mode): New prototype.
5827 (split_di, split_ti): Remove prototypes.
5828 * config/i386/i386.c (split_double_mode): New function.
5829 (split_di, split_ti): Remove.
5830 (ix86_expand_branch): Use split_double_mode.
5831 (ix86_split_to_parts): Ditto.
5832 (ix86_split_ashl): Ditto.
5833 (ix86_split_ashr): Ditto.
5834 (ix86_split_lshr): Ditto.
5835 (ix86_force_to_memory): Ditto.
5836 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
5837
5838 2010-09-18 Jan Hubicka <jh@suse.cz>
5839
5840 PR tree-optimization/45453
5841 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
5842 virtual functions are reachable.
5843 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
5844 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
5845 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
5846 when modifying function.
5847
5848 2010-09-18 Jan Hubicka <jh@suse.cz>
5849
5850 PR tree-optimization/45605
5851 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
5852 * gimple-fold.c (static_object_in_other_unit_p): New function.
5853 (canonicalize_constructor_val): Use it.
5854 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
5855 returning NULL.
5856 (gimple_fold_obj_type_ref_known_binfo): Use
5857 static_object_in_other_unit_p.
5858
5859 2010-09-18 Richard Guenther <rguenther@suse.de>
5860
5861 PR tree-optimization/45709
5862 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
5863 insertions until after all PHI nodes of the block are processed.
5864
5865 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
5866
5867 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
5868
5869 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
5870
5871 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
5872
5873 2010-09-18 Richard Guenther <rguenther@suse.de>
5874
5875 PR tree-optimization/45709
5876 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
5877
5878 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
5879
5880 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
5881 (dot_deps_stmt): Same.
5882 * graphite-poly.c (dot_lst): Same.
5883 * graphite-scop-detection.c (dot_all_scops): Same.
5884 (dot_scop): Same.
5885
5886 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
5887
5888 Revert:
5889 2009-12-16 Ben Elliston <bje@au.ibm.com>
5890
5891 * tree-data-ref.c (dot_rdg_1): Added back.
5892 (dot_rdg): Same. Added "#if 0" around system call.
5893
5894 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5895 Richard Henderson <rth@redhat.com>
5896
5897 * config/i386/i386.c (initial_ix86_tune_features): Add
5898 X86_TUNE_PAD_SHORT_FUNCTION.
5899 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
5900 (ix86_count_insn): New.
5901 (ix86_pad_short_function): Likewise.
5902 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
5903
5904 * config/i386/i386.h (ix86_tune_indices): Add
5905 X86_TUNE_PAD_SHORT_FUNCTION.
5906 (TARGET_PAD_SHORT_FUNCTION): New.
5907
5908 * config/i386/i386.md (UNSPEC_NOPS): New.
5909 (nops): Likewise.
5910
5911 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5912
5913 PR middle-end/45234
5914 * calls.c (expand_call): Make sure that all variable sized
5915 adjustments are multiple of preferred stack boundary after
5916 stack alignment.
5917
5918 2010-09-17 DJ Delorie <dj@redhat.com>
5919
5920 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
5921 passed an invalid value, print an error instead of ICEing.
5922 (valid_psw_flag): New.
5923 (rx_expand_builtin): Call it for setpsw/clrpsw.
5924 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
5925
5926 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
5927 (bitclr_in_memory): Likewise.
5928 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
5929
5930 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5931
5932 PR middle-end/45678
5933 * cfgexpand.c (update_stack_alignment): New.
5934 (get_decl_align_unit): Use it.
5935 (expand_one_stack_var_at): Call update_stack_alignment.
5936
5937 2010-09-17 Richard Guenther <rguenther@suse.de>
5938
5939 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
5940 Properly copy the read string.
5941
5942 2010-09-17 Joseph Myers <joseph@codesourcery.com>
5943
5944 * doc/options.texi (Variable): Document.
5945 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
5946 generate target_flags declarations explicitly. Don't define
5947 VarExists variables for the driver.
5948 * common.opt (target_flags): New Variable record.
5949 (flag_dump_unnumbered, flag_dump_unnumbered_links,
5950 flag_var_tracking, flag_var_tracking_assignments,
5951 flag_var_tracking_assignments_toggle): Don't mark variables with
5952 VarExists.
5953 * config/i386/i386.c (ix86_isa_flags): Don't define here.
5954 * config/i386/i386.opt (ix86_isa_flags): Define here.
5955 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
5956 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
5957 VarExists.
5958 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
5959 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
5960 Only define for generator programs.
5961 * rtlanal.c (target_flags): Remove.
5962 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
5963 flag_var_tracking_assignments_toggle): Remove.
5964
5965 2010-09-17 Michael Matz <matz@suse.de>
5966
5967 PR tree-optimization/43432
5968 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5969 Accept backwards consecutive accesses.
5970 (vect_create_data_ref_ptr): If step is negative generate
5971 decreasing IVs.
5972 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
5973 (perm_mask_for_reverse, reverse_vec_elements): New functions.
5974 (vectorizable_load): Handle loads with negative steps when easily
5975 possible.
5976
5977 2010-09-03 Jan Hubicka <jh@suse.cz>
5978
5979 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
5980
5981 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
5982
5983 * config/v850/v850.c (v850_function_value_regno_p): Make static.
5984 Adjust comments. Declare.
5985 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
5986 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
5987
5988 2010-09-17 Richard Guenther <rguenther@suse.de>
5989
5990 * common.opt (combine): Remove.
5991 * gcc.c (default_compilers): Remove specs testing combine.
5992 The C compilers no longer can combine.
5993 (option_map): Remove -combine.
5994 (display_help): Remove -combine.
5995 (driver_handle_option): Remove OPT_combine handling.
5996 (compile_input_file_p): Remove.
5997 (do_spec): Remove code concerning combine.
5998 (main): Likewise.
5999 * doc/invoke.texi: Remove traces of -combine.
6000 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
6001
6002 2010-09-17 Richard Guenther <rguenther@suse.de>
6003
6004 PR middle-end/45678
6005 * builtins.c (fold_builtin_memory_op): Always properly adjust
6006 alignment of memory accesses.
6007
6008 2010-09-16 Jan Hubicka <jh@suse.cz>
6009
6010 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
6011 processing clone.
6012
6013 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
6014
6015 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
6016
6017 * config/i386/i386.c (predict_jump): Add prototype.
6018 (flag_opts): Add -m8bit-idiv.
6019 (ix86_split_idivmod): New.
6020
6021 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
6022 Add 2 splitters for SI/DI mode divide.
6023 (divmod<mode>4_1): New pattern.
6024 (udivmod<mode>4_1): Likewise.
6025 (testdi_ccno_1): Likewise.
6026
6027 * config/i386/i386.opt (m8bit-idiv): New.
6028
6029 * doc/invoke.texi: Document -m8bit-idiv.
6030
6031 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
6032
6033 PR bootstrap/45680
6034 * config/i386/i386.c (min_insn_size): Moved out of the
6035 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
6036
6037 2010-09-16 Jan Hubicka <jh@suse.cz>
6038
6039 * lto-cgraph.c (lto_output_node): Fix handling of clones.
6040 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
6041 unreachable clones with reachable clones.
6042 * tree-inline.c (copy_bb): Fix sanity checking when producing
6043 unreachable clone.
6044
6045 2010-09-16 Anatoly Sokolov <aesok@post.ru>
6046
6047 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
6048 (TARGET_MEMORY_MOVE_COST): Define.
6049 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
6050
6051 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
6052
6053 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
6054 maybe_tidy_empty_bb.
6055
6056 Revert:
6057 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
6058 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
6059
6060 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6061
6062 * target.def (target_option.optimization): New hook.
6063 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
6064 TARGET_OPTION_OPTIMIZATION hook.
6065 * doc/tm.texi: Regenerate.
6066 * hooks.c (hook_void_int_int): New.
6067 * hooks.h (hook_void_int_int): Declare.
6068 * opts.c: Don't include tm_p.h.
6069 (decode_options): Use targetm.target_option.optimization instead
6070 of OPTIMIZATION_OPTIONS.
6071 * system.h (OPTIMIZATION_OPTIONS): Poison.
6072 * config/arm/arm-protos.h (arm_optimization_options): Remove.
6073 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
6074 (arm_optimization_options): Rename to arm_option_optimization.
6075 Make static.
6076 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
6077 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
6078 (cris_option_optimization): New.
6079 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
6080 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
6081 (crx_option_optimization): New.
6082 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
6083 * config/frv/frv-protos.h (frv_optimization_options): Remove.
6084 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
6085 (frv_optimization_options): Rename to frv_option_optimization.
6086 Make static.
6087 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
6088 * config/h8300/h8300.c (h8300_option_optimization): New.
6089 (TARGET_OPTION_OPTIMIZATION): Define.
6090 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
6091 * config/i386/i386-protos.h (optimization_options): Remove.
6092 * config/i386/i386.c (optimization_options): Rename to
6093 ix86_option_optimization. Make static.
6094 (TARGET_OPTION_OPTIMIZATION): Define.
6095 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
6096 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
6097 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
6098 (ia64_optimization_options): Rename to ia64_option_optimization.
6099 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
6100 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
6101 commented-out definition.
6102 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
6103 instead of OPTIMIZATION_OPTIONS.
6104 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
6105 (m32r_option_optimization): New.
6106 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
6107 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
6108 Remove.
6109 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
6110 (mcore_option_optimization): New.
6111 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
6112 * config/mep/mep-protos.h (mep_optimization_options): Remove.
6113 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
6114 (mep_optimization_options): Rename to mep_option_optimization.
6115 Make static. Take unused level and size parameters.
6116 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
6117 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
6118 (mmix_option_optimization): New.
6119 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
6120 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
6121 (pdp11_option_optimization): New.
6122 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
6123 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
6124 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
6125 (optimization_options): Rename to rs6000_option_optimization.
6126 Make static.
6127 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
6128 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
6129 * config/rx/rx.c (rx_set_optimization_options): Rename to
6130 rx_option_optimization. Make static. Take unused level and size
6131 parameters.
6132 (TARGET_OPTION_OPTIMIZATION): Define.
6133 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
6134 * config/s390/s390-protos.h (optimization_options): Remove.
6135 * config/s390/s390.c (optimization_options): Rename to
6136 s390_option_optimization. Make static. Don't mark size parameter
6137 unused.
6138 (TARGET_OPTION_OPTIMIZATION): Define.
6139 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
6140 * config/sh/sh-protos.h (sh_optimization_options): Remove.
6141 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
6142 (sh_optimization_options): Rename to sh_option_optimization. Make
6143 static. Don't mark parameters unused.
6144 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
6145 * config/spu/spu-protos.h (spu_optimization_options): Remove.
6146 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
6147 (spu_optimization_options): Rename to spu_option_optimization.
6148 Make static.
6149 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
6150 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
6151 (v850_option_optimization): New.
6152 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
6153 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
6154 (xtensa_option_optimization): New.
6155 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
6156
6157 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6158
6159 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
6160 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
6161 * doc/tm.texi: Regenerate.
6162 * system.h (OVERRIDE_OPTIONS): Poison.
6163 * target.def (override): Default to hook_void_void.
6164 * targhooks.c (default_target_option_override): Remove.
6165 * genmodes.c, machmode.def: Update comments mentioning
6166 OVERRIDE_OPTIONS.
6167 * config/alpha/alpha-modes.def: Update comment mentioning
6168 alpha_override_options.
6169 * config/alpha/alpha-protos.h (override_options): Remove.
6170 * config/alpha/alpha.c (override_options): Rename to
6171 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
6172 (TARGET_OPTION_OVERRIDE): Define.
6173 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
6174 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
6175 of OVERRIDE_OPTIONS.
6176 * config/arc/arc-protos.h (arc_init): Remove.
6177 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
6178 (arc_init): Rename to arc_option_override. Make static.
6179 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
6180 (OVERRIDE_OPTIONS): Remove.
6181 * config/arm/arm-protos.h (arm_override_options): Remove.
6182 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
6183 (arm_override_options): Rename to arm_option_override. Make
6184 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6185 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
6186 * config/arm/arm.md: Update comment referring to arm_override_options.
6187 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6188 instead of OVERRIDE_OPTIONS.
6189 * config/avr/avr-protos.h (avr_override_options): Remove.
6190 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
6191 (avr_override_options): Rename to avr_option_override. Make static.
6192 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
6193 * config/bfin/bfin-protos.h (override_options): Remove (twice).
6194 * config/bfin/bfin.c (override_options): Rename to
6195 bfin_option_override. Make static.
6196 (TARGET_OPTION_OVERRIDE): Define.
6197 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
6198 * config/cris/cris-protos.h (cris_override_options): Remove.
6199 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
6200 (cris_override_options): Rename to cris_option_override. Make static.
6201 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
6202 * config/frv/frv-protos.h (frv_override_options): Remove.
6203 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
6204 (frv_override_options): Rename to frv_option_override. Make static.
6205 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
6206 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
6207 * config/h8300/h8300.c (h8300_init_once): Rename to
6208 h8300_option_override. Make static.
6209 (TARGET_OPTION_OVERRIDE): Define.
6210 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
6211 * config/i386/i386-protos.h (override_options): Remove.
6212 * config/i386/i386.c (override_options): Rename to
6213 ix86_option_override_internal. Make static. Comments referring
6214 to this function and callers changed.
6215 (ix86_option_override): New.
6216 (TARGET_OPTION_OVERRIDE): Define.
6217 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
6218 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
6219 * config/ia64/ia64.c (ia64_file_start): Update comment referring
6220 to ia64_override_options.
6221 * config/iq2000/iq2000-protos.h (override_options): Remove.
6222 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
6223 (override_options): Rename to iq2000_option_override. Make static.
6224 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
6225 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
6226 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
6227 (lm32_override_options): Rename to lm32_option_override. Make static.
6228 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
6229 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
6230 (m32r_option_override): New.
6231 (m32r_init): Update comment.
6232 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
6233 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
6234 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
6235 (m68hc11_override_options): Rename to m68hc11_option_override.
6236 Make static. Return void.
6237 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
6238 * config/m68k/m68k-protos.h (override_options): Remove.
6239 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
6240 (override_options): Rename to m68k_option_override. Make static.
6241 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
6242 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
6243 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
6244 (mcore_override_options): Rename to mcore_option_override. Make
6245 static.
6246 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
6247 * config/mep/mep-protos.h (mep_override_options): Remove.
6248 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
6249 (mep_override_options): Rename to mep_option_override. Make static.
6250 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
6251 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
6252 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
6253 (mmix_override_options): Rename to mmix_option_override. Make static.
6254 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
6255 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
6256 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
6257 (mn10300_override_options): Rename to mn10300_option_override.
6258 Make static.
6259 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
6260 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
6261 * config/moxie/moxie.c (moxie_override_options): Rename to
6262 moxie_option_override. Make static.
6263 (TARGET_OPTION_OVERRIDE): Define.
6264 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
6265 * config/picochip/picochip-protos.h (picochip_override_options):
6266 Remove. Update comment referring to picochip_override_options.
6267 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
6268 (picochip_override_options): Rename to picochip_option_override.
6269 Make static. Update comment and definition of
6270 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
6271 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
6272 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6273 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6274 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6275 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6276 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6277 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
6278 instead of OVERRIDE_OPTIONS.
6279 * config/rs6000/rs6000-modes.def: Update comment referring to
6280 rs6000_override_options.
6281 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
6282 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
6283 (rs6000_override_options): Rename to
6284 rs6000_option_override_internal. Make static. Commented
6285 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
6286 (rs6000_option_override): New.
6287 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
6288 instead of OVERRIDE_OPTIONS.
6289 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6290 * config/s390/s390-protos.h (override_options): Remove.
6291 * config/s390/s390.c (override_options): Rename to
6292 s390_option_override. Make static.
6293 (TARGET_OPTION_OVERRIDE): Define.
6294 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
6295 * config/score/score-protos.h (score_override_options): Remove.
6296 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
6297 (score_override_options): Rename to score_option_override. Make
6298 static.
6299 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
6300 Update comment referring to override_options.
6301 * config/score/score3.c (score3_override_options): Rename to
6302 score3_option_override.
6303 * config/score/score3.h (score3_override_options): Rename to
6304 score3_option_override.
6305 * config/score/score7.c (score7_override_options): Rename to
6306 score7_option_override.
6307 * config/score/score7.h (score7_override_options): Rename to
6308 score7_option_override.
6309 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
6310 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
6311 (sparc_override_options): Rename to sparc_option_override. Make
6312 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6313 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
6314 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6315 instead of OVERRIDE_OPTIONS.
6316 * config/spu/spu-protos.h (spu_override_options): Remove.
6317 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
6318 (spu_override_options): Rename to spu_option_override. Make
6319 static.
6320 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
6321 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
6322 OVERRIDE_OPTIONS.
6323 * config/vax/vax-protos.h (override_options): Remove.
6324 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
6325 (override_options): Rename to vax_option_override. Make static.
6326 Call SUBTARGET_OVERRIDE_OPTIONS.
6327 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
6328 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
6329 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
6330 * config/xtensa/xtensa-protos.h (override_options): Remove.
6331 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
6332 (override_options): Rename to xtensa_option_override. Make static.
6333 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
6334
6335 2010-09-16 Richard Guenther <rguenther@suse.de>
6336
6337 PR tree-optimization/45623
6338 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
6339 (get_constraint_for_component_ref): If computing a constraint
6340 for the rhs handle type punning through unions.
6341 (get_constraint_for_address_of): Adjust.
6342 (get_constraint_for_1): Likewise.
6343 (get_constraint_for): Likewise.
6344 (get_constraint_for_rhs): New function.
6345 (do_structure_copy): Adjust.
6346 (make_constraint_to): Likewise.
6347 (handle_const_call): Likewise.
6348 (find_func_aliases): Likewise.
6349 (process_ipa_clobber): Likewise.
6350 (create_variable_info_for): Likewise.
6351
6352 2010-09-16 Ira Rosen <irar@il.ibm.com>
6353
6354 * tree-vectorizer.c: Fix documentation.
6355 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
6356 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
6357 is_pattern_stmt_p, is_loop_header_bb_p,
6358 stmt_vinfo_set_inside_of_loop_cost,
6359 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
6360 known_alignment_for_access_p): Likewise.
6361 * tree-vect-loop.c: Fix documentation.
6362 (vect_get_cost): Start function name from new line.
6363 * tree-vect-data-refs.c: Fix documentation.
6364 * tree-vect_stmts.c: Likewise.
6365 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
6366 (vectorizable_store): Free vec_oprnds if allocated.
6367 (vectorizable_condition): Initialize several variables to avoid
6368 warnings.
6369 * tree-vect-slp.c: Fix documentation.
6370
6371 2010-09-16 Richard Guenther <rguenther@suse.de>
6372
6373 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
6374 is TS_TRANSLATION_UNIT_DECL.
6375 (initialize_tree_contains_struct): Adjust.
6376 (all_translation_units): New global vector.
6377 (build_translation_unit_decl): New function.
6378 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
6379 (struct tree_translation_unit_decl): New.
6380 (all_translation_units): Declare.
6381 (union tree_node): Add translation_unit_decl member.
6382 (build_translation_unit_decl): Declare.
6383 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
6384 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
6385 New function.
6386 (pack_value_fields): Call it.
6387 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
6388 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
6389 (lto_output_tree_pointers): Call it.
6390 * lto-streamer-in.c (lto_input_tree_ref): Handle references
6391 to TRANSLATION_UNIT_DECL.
6392 (unpack_ts_translation_unit_decl_value_fields): New function.
6393 (unpack_value_fields): Call it.
6394 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
6395 (lto_input_tree_pointers): Call it.
6396 * lto-streamer.c (check_handled_ts_structures): Adjust.
6397 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
6398 * c-decl.c (all_translation_units): Remove.
6399 (pop_scope): Use build_translation_unit_decl.
6400 (collect_all_refs): Adjust.
6401 (for_each_global_decl): Likewise.
6402 (c_write_global_declarations): Likewise.
6403
6404 2010-09-16 Jakub Jelinek <jakub@redhat.com>
6405
6406 PR bootstrap/45686
6407 * fold-const.c (fold_checksum_tree): Change slot from const void **
6408 to void **, use CONST_CAST_TREE to store into *slot.
6409
6410 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
6411
6412 * config/i386/i386.md: Remove unneeded empty conditions and
6413 preparation statements from expanders.
6414 * config/i386/mmx.md: Ditto.
6415 * config/i386/sse.md: Ditto.
6416
6417 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
6418
6419 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
6420
6421 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
6422
6423 PR rtl-optimization/45593
6424 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
6425 insns that were in delay slots as stand-alone insns.
6426
6427 2010-09-15 Ian Lance Taylor <iant@google.com>
6428
6429 * incpath.c (remove_duplicates): If name is not a directory, issue
6430 a warning rather than an error.
6431
6432 2010-09-15 Martin Jambor <mjambor@suse.cz>
6433
6434 PR middle-end/45644
6435 * tree-sra.c (create_access): Check for bit-fields directly.
6436
6437 2010-09-15 Jakub Jelinek <jakub@redhat.com>
6438
6439 PR tree-optimization/45633
6440 * tree-cfg.c (verify_gimple_assign_binary): Allow
6441 MINUS_EXPR with lhs and rhs1 pointer vector and
6442 rhs2 sizetype vector.
6443 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
6444 or vector pointer use TER to optimize pointer subtraction.
6445
6446 2010-09-15 Jie Zhang <jie@codesourcery.com>
6447
6448 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
6449 fcmpd to fcmps.
6450
6451 2010-09-15 Ian Lance Taylor <iant@google.com>
6452
6453 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
6454
6455 2010-09-15 Ian Lance Taylor <iant@google.com>
6456
6457 * function.c (get_arg_pointer_save_area): Set
6458 arg_pointer_save_area_init to true.
6459
6460 2010-09-15 Martin Jambor <mjambor@suse.cz>
6461
6462 * tree-sra.c (generate_subtree_copies): Updated comment.
6463 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
6464 obtained from the statement iterator instead.
6465 (load_assign_lhs_subreplacements): Removed parameters lhs and
6466 right_offset, which is obtained from top_racc instead. Parameter lacc
6467 is now expected to be the root of the processed tree rather than root's
6468 first child. Updated all callers.
6469
6470 2010-09-15 Joseph Myers <joseph@codesourcery.com>
6471
6472 * config/pdp11/pdp11.c (register_move_cost): Rename to
6473 pdp11_register_move_cost.
6474 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
6475 pdp11_register_move_cost.
6476 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
6477 pdp11_register_move_cost instead of register_move_cost.
6478
6479 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
6480
6481 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
6482 pattern for vmovn. Expansion in case of non
6483 -mvectorize-with-neon-quad.
6484 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
6485 non- -mvectorize-with-neon-quad case.
6486 (move_lo_quad_<mode>): New expansion to vmov into low part.
6487 (move_hi_quad_<mode>): New expansion to vmov into high part.
6488 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
6489 (move_lo_quad_v4sf): Likewise.
6490 (move_lo_quad_v8hi): Likewise.
6491 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
6492 low part.
6493 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
6494 high part.
6495 * config/arm/iterators.md (ANY128): New mode iterator.
6496 (V_narrow_pack): New mode attribute.
6497 (V_HALF): Add attribute.
6498 (V_DOUBLE): Add attribute.
6499 (V_mode_nunits): Add attribute.
6500
6501 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
6502
6503 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
6504 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
6505
6506 2010-09-15 Olivier Hainque <hainque@adacore.com>
6507 Jose Ruiz <ruiz@adacore.com>
6508
6509 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
6510 * config/alpha/osf5-unwind.h: New file.
6511
6512 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6513
6514 PR bootstrap/45672
6515 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
6516 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
6517 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
6518
6519 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6520
6521 * c-lang.h (struct lang_type): Add variable_size GTY option.
6522
6523 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6524
6525 PR bootstrap/45672
6526 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
6527
6528 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6529
6530 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
6531 result isn't used in memory address.
6532
6533 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6534
6535 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
6536 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
6537 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6538 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6539 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6540 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6541
6542 * target.def: Add units_per_simd_word to vectorize.
6543
6544 * targhooks.c (default_units_per_simd_word): New.
6545 * targhooks.h (default_units_per_simd_word): Likewise.
6546 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
6547 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6548 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
6549 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6550 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
6551 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6552 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
6553 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6554
6555 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
6556 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
6557
6558 * tree-vect-stmts.c: Don't include "tm_p.h".
6559 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
6560 with targetm.vectorize.units_per_simd_word.
6561
6562 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
6563
6564 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
6565
6566 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
6567 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
6568
6569 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
6570 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
6571
6572 * doc/tm.texi: Regenerated.
6573
6574 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6575
6576 * tree-vect-stmts.c: Include "tm_p.h".
6577
6578 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
6579 out of RTX_CODE.
6580
6581 2010-09-14 Martin Jambor <mjambor@suse.cz>
6582
6583 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
6584 location of generated statement. Changed all callers.
6585 (build_ref_for_model): New parameter loc which used to set location of
6586 all generated expressions. Changed all callers.
6587 (generate_subtree_copies): Likewise.
6588 (init_subtree_with_zero): Likewise.
6589 (sra_modify_expr): Set locations of all generated statements and
6590 expressions to the location the original statement.
6591 (handle_unscalarized_data_in_subtree): Likewise.
6592 (load_assign_lhs_subreplacements): Likewise.
6593 (sra_modify_constructor_assign): Likewise.
6594 (sra_modify_assign): Likewise.
6595
6596 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
6597
6598 PR target/45277
6599 PR target/45363
6600 PR target/45407
6601 * doc/install.texi (sparc*-*-*): New section.
6602 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
6603
6604 2010-09-14 Jakub Jelinek <jakub@redhat.com>
6605
6606 PR middle-end/45567
6607 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
6608 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
6609 (expand_builtin): Adjust caller.
6610 (expand_builtin_unop): Only use subtarget if it has the right mode.
6611
6612 2010-09-14 Tristan Gingold <gingold@adacore.com>
6613
6614 * configure.ac (plugins): Fix typos.
6615 * configure: Regenerate.
6616
6617 2010-09-14 Jakub Jelinek <jakub@redhat.com>
6618
6619 PR debug/45660
6620 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
6621 gen_type_die for function/method return type.
6622
6623 2010-09-14 Ira Rosen <irar@il.ibm.com>
6624
6625 PR tree-optimization/45470
6626 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6627 can throw an exception.
6628 * tree-vect-stmts.c (vectorizable_call): Likewise.
6629
6630 2010-09-14 DJ Delorie <dj@redhat.com>
6631
6632 PR target/44749
6633 * config/mep/mep-protos.h (mep_save_register_info,
6634 mep_reinit_regs, mep_init_regs): Declare.
6635
6636 * config/mep/mep.c: Move all target definitions to the end of the
6637 file to avoid the need for duplicate declarations.
6638 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
6639 (mep_reorg_erepeat): Remove unused variables.
6640 (mep_expand_builtin): Likewise.
6641
6642 * config/mep/mep-pragma.c: Don't include rtl.h.
6643 (INVALID_REGNUM): New.
6644 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
6645 functions.
6646 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
6647 Avoid enum/integer math.
6648
6649 2010-09-13 Joseph Myers <joseph@codesourcery.com>
6650
6651 PR target/44749
6652 * config/mep/t-mep (GTM_H): Add insn-constants.h.
6653 * config/mep/mep.c (mep_conditional_register_usage): Take no
6654 parameters.
6655 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
6656 prototype.
6657 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
6658 call to mep_conditional_register_usage.
6659
6660 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
6661
6662 PR debug/43937
6663 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
6664 the DECL as well.
6665
6666 2010-09-13 Jakub Jelinek <jakub@redhat.com>
6667
6668 PR rtl-optimization/45617
6669 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
6670 even if low N bits of X aren't known to be zero.
6671
6672 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
6673
6674 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
6675
6676 * config/i386/i386.c (initial_ix86_tune_features): Add
6677 X86_TUNE_VECTORIZE_DOUBLE.
6678 (ix86_units_per_simd_word): New.
6679
6680 * config/i386/i386.h (ix86_tune_indices): Add
6681 X86_TUNE_VECTORIZE_DOUBLE.
6682 (TARGET_VECTORIZE_DOUBLE): New.
6683 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
6684
6685 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
6686
6687 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
6688 (new_temp_expr_table): Allocate call_cnt vector.
6689 (free_temp_expr_table): Free it.
6690 (process_replaceable): Add call_cnt parm and set in vector.
6691 (find_replaceable_in_bb): Skip replacement if def/use span a call.
6692 (debug_ter): Dump call_cnt value, remove stderr uses.
6693
6694 2010-09-13 Jan Hubicka <jh@suse.cz>
6695
6696 * tree.c (build_zero_cst): New.
6697 * tree.h (build_zero_cst): Declare.
6698 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
6699 (get_base_constructor): Break out from ...
6700 (fold_const_aggregate_ref): Here; handle empty constructors.
6701
6702 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6703
6704 * config/arm/arm.md: (define_attr "conds"): Update comment.
6705 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
6706 conds attribute to clob.
6707 (arm_sync_compare_and_swapsi): Likewise.
6708 (arm_sync_compare_and_swap<mode>): Likewise.
6709 (arm_sync_lock_test_and_setsi): Likewise.
6710 (arm_sync_lock_test_and_set<mode>): Likewise.
6711 (arm_sync_new_<sync_optab>si): Likewise.
6712 (arm_sync_new_nandsi): Likewise.
6713 (arm_sync_new_<sync_optab><mode>): Likewise.
6714 (arm_sync_new_nand<mode>): Likewise.
6715 (arm_sync_old_<sync_optab>si): Likewise.
6716 (arm_sync_old_nandsi): Likewise.
6717 (arm_sync_old_<sync_optab><mode>): Likewise.
6718 (arm_sync_old_nand<mode>): Likewise.
6719
6720 2010-09-13 Olivier Hainque <hainque@adacore.com>
6721
6722 * fwprop.c (forward_propagate_and_simplify): Only attach a
6723 REG_EQUAL note to an insn if the destination is a register.
6724 * gcse.c (try_replace_reg): Likewise.
6725
6726 2010-09-13 Richard Guenther <rguenther@suse.de>
6727
6728 PR tree-optimization/45611
6729 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
6730 (copy_ref_info): Likewise.
6731
6732 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
6733
6734 PR debug/45604
6735 PR debug/45419
6736 PR debug/45408
6737 * tree-pretty-print.c (dump_generic_node): Disregard top-level
6738 types of MEM_REF pointer types to the same type.
6739
6740 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
6741
6742 PR rtl-optimization/41087
6743 * ifcvt.c (noce_get_condition): Don't allow conditions with
6744 side-effects.
6745
6746 2010-09-12 Anatoly Sokolov <aesok@post.ru>
6747
6748 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6749 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
6750 * config/frv/frv.c (frv_register_move_cost): Make static. Change
6751 arguments type to reg_class_t. Add mode argument.
6752 (frv_memory_move_cost): New.
6753 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
6754
6755 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
6756
6757 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
6758 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
6759
6760 2010-09-10 Jan Hubicka <jh@suse.cz>
6761
6762 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
6763
6764 2010-09-10 Richard Guenther <rguenther@suse.de>
6765
6766 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
6767 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
6768 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
6769 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
6770 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
6771
6772 2010-09-10 Richard Guenther <rguenther@suse.de>
6773
6774 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
6775 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
6776 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
6777 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
6778
6779 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
6780
6781 PR middle-end/45634
6782 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
6783 of string folding is of integral type.
6784
6785 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
6786
6787 * doc/invoke.texi (-x): Fix typo.
6788
6789 2010-09-10 Richard Guenther <rguenther@suse.de>
6790
6791 PR debug/44115
6792 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
6793 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6794 Output DECL_DEBUG_EXPR.
6795 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6796 Input DECL_DEBUG_EXPR.
6797
6798 2010-09-10 Richard Guenther <rguenther@suse.de>
6799
6800 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
6801 (build_index_type): Implement in terms of build_range_type.
6802 (build_range_type): Do not allow NULL_TREE type, improve
6803 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
6804 if we didn't hash.
6805 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
6806 create a distinct copy of the type.
6807
6808 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
6809
6810 * configure: Regenerated.
6811 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
6812
6813 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6814
6815 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
6816 * config/arm/cortex-a9-neon.md: New and partially generated.
6817 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
6818
6819 2010-09-10 Richard Guenther <rguenther@suse.de>
6820
6821 * tree.h (build_index_2_type): Remove.
6822 * tree.c (build_index_2_type): Remove.
6823
6824 2010-09-10 Jakub Jelinek <jakub@redhat.com>
6825
6826 PR bootstrap/45630
6827 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
6828 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
6829 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
6830
6831 2010-09-10 Martin Jambor <mjambor@suse.cz>
6832
6833 PR tree-optimization/44972
6834 * tree-sra.c: Include toplev.h.
6835 (build_ref_for_offset): Entirely reimplemented.
6836 (build_ref_for_model): New function.
6837 (build_user_friendly_ref_for_offset): New function.
6838 (analyze_access_subtree): Removed build_ref_for_offset check.
6839 (propagate_subaccesses_across_link): Likewise.
6840 (create_artificial_child_access): Use
6841 build_user_friendly_ref_for_offset.
6842 (propagate_subaccesses_across_link): Likewise.
6843 (ref_expr_for_all_replacements_p): Removed.
6844 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
6845 (sra_modify_expr): Use build_ref_for_model.
6846 (load_assign_lhs_subreplacements): Likewise.
6847 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
6848 checks for return values of build_ref_for_offset.
6849 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
6850 build_ref_for_offset.
6851 * ipa-prop.h: Include gimple.h
6852 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
6853 (ipa_analyze_indirect_call_uses): Update comment.
6854 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
6855 (IPA_PROP_H): Likewise.
6856
6857 2010-09-10 Martin Jambor <mjambor@suse.cz>
6858
6859 PR tree-optimization/44972
6860 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
6861 calling build_ref_for_offset.
6862
6863 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6864
6865 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
6866 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
6867 * config/arm/arm-tune.md: Regenerate.
6868 * doc/invoke.texi (ARM Options): Document it.
6869
6870 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
6871
6872 * config/i386/i386.c: Include sched-int.h.
6873 (TARGET_SCHED_DISPATCH): Defined.
6874 (TARGET_SCHED_DISPATCH_DO): Defined.
6875 (DISPATCH_WINDOW_SIZE): Defined.
6876 (MAX_DISPATCH_WINDOWS): Defined.
6877 (MAX_INSN): Defined.
6878 (MAX_IMM): Defined.
6879 (MAX_IMM_SIZE): Defined.
6880 (MAX_IMM_32): Defined.
6881 (MAX_IMM_64): Defined.
6882 (MAX_LOAD): Defined.
6883 (MAX_STORE): Defined.
6884 (BIG): Defined.
6885 (dispatch_group): New.
6886 (num_allowable_groups): New.
6887 (group_name): New.
6888 (sched_insn_info_s): New.
6889 (dispatch_windows_s): New.
6890 (imm_info_s): New.
6891 (dispatch_window_list): New.
6892 (dispatch_window_list1): New.
6893 (get_mem_group): New.
6894 (is_cmp): New.
6895 (dispatch_violation): New.
6896 (is_branch): New.
6897 (is_prefetch): New.
6898 (init_window): New.
6899 (allocate_window): New.
6900 (init_dispatch_sched): New.
6901 (is_end_basic_block): New.
6902 (process_end_window): New.
6903 (allocate_next_window): New.
6904 (find_constant_1): New.
6905 (find_constant): New.
6906 (get_num_immediates): New.
6907 (has_immediate): New.
6908 (get_insn_path): New.
6909 (get_insn_group): New.
6910 (count_num_restricted): New.
6911 (fits_dispatch_window): New.
6912 (add_insn_window): New.
6913 (add_to_dispatch_window): New.
6914 (debug_dispatch_window_file): New.
6915 (debug_dispatch_window): New.
6916 (debug_insn_dispatch_info_file): New.
6917 (debug_ready_dispatch): New.
6918 (do_dispatch): New.
6919 (has_dispatch): New.
6920 * config/i386/i386.h (debug_ready_dispatch): Declared.
6921 (debug_dispatch_window): Declared.
6922 * config/i386/i386.opt (mdispatch-scheduler): New flag.
6923 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
6924 (TARGET_SCHED_DISPATCH_DO): New.
6925 * doc/tm.texi: Regererated.
6926 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
6927 ready_remove_first_dispatch
6928 (schedule_block): Call targetm.sched.dispatch and
6929 targetm.sched.dispatch_do.
6930 (sched_init): Call targetm.sched.dispatch and
6931 targetm.sched.dispatch_do.
6932 (ready_remove_first_dispatch): New.
6933 (number_in_ready): New.
6934 (get_ready_element): New.
6935 * hooks.c (hook_bool_rtx_int_false): New.
6936 (hook_void_rtx_int): New.
6937 * hooks.h (hook_bool_rtx_int_false): Declared.
6938 (hook_void_rtx_int): Declared.
6939 * sched-int.h (IS_DISPATCH_ON): Defined.
6940 (IS_CMP): Defined.
6941 (DISPATCH_VIOLATION): Defined.
6942 (FITS_DISPATCH_WINDOW): Defined.
6943 (DISPATCH_INIT): Defined.
6944 (ADD_TO_DISPATCH_WINDOW): Defined.
6945 (get_ready_element): Declared.
6946 (number_in_ready): Declared.
6947 * target.def (dispatch): Defined.
6948 (dispatch_do): Defined.
6949
6950 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
6951
6952 PR middle-end/45312
6953 * reload1.c (merge_assigned_reloads): Remove.
6954 (reload_as_needed): Don't call it.
6955
6956 2010-09-09 Anatoly Sokolov <aesok@post.ru>
6957
6958 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
6959 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6960 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6961
6962 2010-09-09 Matthias Klose <doko@ubuntu.com>
6963
6964 PR bootstrap/43847
6965 * configure.ac (--enable-plugin): Enhance for cross builds.
6966 * configure: Regenerate.
6967
6968 2010-09-09 Jan Hubicka <jh@suse.cz>
6969
6970 PR tree-optimization/45598
6971 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
6972 string folding is of integral type.
6973
6974 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6975
6976 * configure.ac (gnu_indirect_function): New test.
6977 * configure: Rebuilt.
6978 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
6979 * defaults.h (IFUNC_ASM_TYPE): Provide default.
6980
6981 * doc/extend.texi (Function Attributes): Document ifunc.
6982 * varasm.c (do_assemble_alias): Deal with ifuncs too.
6983
6984 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
6985
6986 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
6987 epilogue instruction move.
6988
6989 2010-09-09 Jan Hubicka <jh@suse.cz>
6990
6991 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
6992 command line to allow more partitions than input files.
6993
6994 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
6995
6996 PR middle-end/44554
6997 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
6998
6999 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7000
7001 PR middle-end/40386
7002 * ira.c (pseudo_for_reload_consideration_p): Don't use
7003 flag_ira_share_spill_slots.
7004
7005 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7006
7007 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
7008 point zero operands that fit into a single GPR.
7009 (s390_preferred_reload_class): Ensure we only return general-purpose
7010 register classes.
7011 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
7012 floating-point zero operands into GPRs.
7013 ("*mov<mode>_64"): Likewise.
7014 ("mov<mode>"): Likewise using lhi.
7015
7016 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7017
7018 * config/s390/s390.c (s390_symref_operand_p): Return false for
7019 literal pool references.
7020 (s390_check_qrst_address): Update caller.
7021
7022 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
7023
7024 * config/i386/predicates.md (ext_register_operand): Check that
7025 SUBREG_REG is really a register before looking for REGNO.
7026 (reg_not_xmm0_operand): Handle SUBREGs correctly.
7027 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
7028
7029 2010-09-09 Jakub Jelinek <jakub@redhat.com>
7030
7031 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
7032 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
7033 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
7034 * print-rtl.c (print_rtx): Likewise.
7035 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7036 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
7037 for ADDR_EXPR with non-addressable object.
7038 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
7039 (struct dw_val_struct): Add v.val_decl_ref.
7040 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
7041 Handle DW_OP_GNU_implicit_pointer.
7042 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
7043 (get_ref_die_offset_label): New function.
7044 (implicit_ptr_descriptor): New function.
7045 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
7046 (loc_descriptor): Likewise.
7047 (gen_variable_die): Put even definitions into decl_die_table.
7048 (resolve_addr_in_expr): Resolve still unresolved
7049 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
7050 return false.
7051 (dwarf2out_finish): Call output_location_lists after outputting
7052 .debug_info and .debug_abbrev instead of before.
7053
7054 2010-09-09 Roland McGrath <roland@redhat.com>
7055
7056 * dwarf2out.c (DWARF_REF_SIZE): Define.
7057 (size_of_loc_descr): Use it for DW_OP_call_ref.
7058
7059 2010-09-09 Alan Modra <amodra@gmail.com>
7060
7061 * doc/invoke.text: Reinstate mcmodel=medium.
7062 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7063 CMODEL_MEDIUM as default.
7064 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
7065 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
7066 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
7067 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
7068
7069 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7070
7071 PR target/45250
7072 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
7073 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
7074 (builtin_longjmp): Likewise.
7075 (allocate_stack): Use hard_frame_pointer_rtx instead of
7076 frame_pointer_rtx.
7077 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
7078 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
7079 (pa_can_eliminate): Likewise.
7080 (TARGET_INTERNAL_ARG_POINTER): Define.
7081 (TARGET_CAN_ELIMINATE): Define.
7082 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
7083 pointer.
7084 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
7085 (pa_internal_arg_pointer, pa_can_eliminate,
7086 pa_initial_elimination_offset): New.
7087 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
7088 (HARD_FRAME_POINTER_REGNUM): Set to register three.
7089 (INITIAL_FRAME_POINTER_OFFSET): Delete.
7090 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
7091 Define.
7092 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
7093 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
7094 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
7095 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
7096 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
7097 new soft frame pointer.
7098 * config/pa/pa64-regs.h: Likewise.
7099
7100 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7101
7102 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
7103 numerical constant.
7104 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
7105
7106 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7107
7108 PR debug/45531
7109 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
7110
7111 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7112
7113 PR debug/45419
7114 PR debug/45408
7115 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7116 qualifiers in otherwise equal MEM_REF pointer types.
7117 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
7118 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
7119
7120 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7121
7122 PR target/44392
7123 * config/arm/arm.md (bswapsi2): Handle condition correctly
7124 for armv6 and optimize_size.
7125
7126 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7127
7128 PR other/18555
7129 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
7130
7131 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7132
7133 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
7134 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
7135 ix86_expand_strlen, legitimate_pic_address_disp_p,
7136 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
7137 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
7138 ix86_check_movabs, ix86_secondary_memory_needed): Change function
7139 prototype to bool.
7140 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
7141 return_in_memory_ms_64, ix86_check_movabs,
7142 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
7143 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
7144 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
7145 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
7146 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
7147 ix86_secondary_memory_needed): Change to bool. Return
7148 "true" and "false" values.
7149 * config/i386/i386.md: Return "true" and "false" values.
7150
7151 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7152
7153 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7154 run_expensive_tests.
7155
7156 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7157
7158 * toplev.c (output_stack_usage): Use lbasename instead of basename.
7159
7160 2010-09-08 Martin Jambor <mjambor@suse.cz>
7161
7162 PR other/45443
7163 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
7164 at -O3.
7165
7166 2010-09-08 Richard Guenther <rguenther@suse.de>
7167
7168 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
7169 (visit): Adjust.
7170 (iterative_hash_gimple_type): Likewise.
7171 (gimple_type_hash): Likewise.
7172 (gimple_register_type): Likewise.
7173 (print_gimple_types_stats): Likewise.
7174 (free_gimple_type_tables): Likewise.
7175
7176 2010-09-08 Michael Matz <matz@suse.de>
7177
7178 PR tree-optimization/43430
7179 * tree-vect-stmts.c (vectorizable_condition): Support multiple
7180 copies for conditional statements if it's not part of a reduction.
7181
7182 2010-09-08 Michael Matz <matz@suse.de>
7183
7184 PR tree-optimization/33244
7185 * tree-ssa-sink.c (statement_sink_location): Don't sink into
7186 empty loop latches.
7187
7188 2010-09-08 Richard Guenther <rguenther@suse.de>
7189
7190 PR tree-optimization/45578
7191 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
7192 Be more careful when transfering alignment information to
7193 the new induction variable.
7194 (copy_ref_info): Likewise.
7195
7196 2010-09-08 Richard Guenther <rguenther@suse.de>
7197
7198 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
7199 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
7200
7201 2010-09-08 Arnaud Charlet <charlet@adacore.com>
7202
7203 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
7204 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
7205
7206 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7207
7208 PR doc/45587
7209 * doc/md.texi: Fixed modes on several standard pattern names.
7210
7211 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
7212
7213 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
7214 (ashl<mode>3): ...this.
7215 (loongson_psra<V_suffix>): Rename to...
7216 (ashr<mode>3): ...this.
7217 (loongson_psrl<V_suffix>): Rename to...
7218 (lshr<mode>3): ...this.
7219 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
7220 (CODE_FOR_loongson_psllw): Define.
7221 (CODE_FOR_loongson_psrlh): Define.
7222 (CODE_FOR_loongson_psrlw): Define.
7223 (CODE_FOR_loongson_psrah): Define.
7224 (CODE_FOR_loongson_psraw): Define.
7225
7226 2010-09-07 Richard Henderson <rth@redhat.com>
7227
7228 * tree-vect-data-refs.c: Include tm_p.h.
7229 * Makefile.in (tree-vect-data-refs.o): Update deps.
7230 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
7231 Move delarations outside #ifdef RTX_CODE.
7232
7233 2010-09-07 Richard Henderson <rth@redhat.com>
7234
7235 * final.c (rest_of_handle_final): Unconditionally do
7236 output_function_exception_table before assemble_end_function.
7237
7238 2010-09-07 Jan Hubicka <jh@suse.cz>
7239
7240 * tree-inline.c (tree_inlinable_function_p): Do not test
7241 DECL_REPLACEABLE_P.
7242 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
7243 update_callee_keys, cgraph_decide_inlining): Test function availability.
7244 * cif-code.def (OVERWRITABLE): New code.
7245
7246 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
7247 Jack Howarth <howarth@bromo.med.uc.edu>
7248
7249 PR target/36502
7250 PR target/42313
7251 PR target/44651
7252 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
7253 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
7254 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
7255 MAX macro.
7256
7257 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7258
7259 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
7260 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
7261
7262 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7263
7264 * config.gcc: Don't append t-android for Android targets.
7265
7266 * config/t-android: Removed.
7267
7268 2010-09-07 Richard Henderson <rth@redhat.com>
7269
7270 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
7271 * doc/tm.texi.in: Add doc marker.
7272 * doc/tm.texi: Rebuild.
7273 * except.c (switch_to_exception_section): Always build.
7274 (output_one_function_exception_table): Move section switch,
7275 personality output, and label output ...
7276 (output_function_exception_table): ... here. Use the new
7277 personality hook.
7278
7279 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
7280 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
7281 TARGET_ASM_INIT_SECTIONS): New.
7282 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
7283 make static.
7284 (TARGET_ASM_UNWIND_EMIT): Update to match.
7285 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
7286
7287 * config/arm/arm.c (arm_asm_emit_except_personality): New.
7288 (arm_asm_init_sections): New.
7289 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
7290
7291 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7292
7293 * config/arm/arm.md: Remove unused variable.
7294
7295 2010-09-07 Anatoly Sokolov <aesok@post.ru>
7296
7297 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7298 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
7299 (m32r_memory_move_cost): New function.
7300
7301 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7302
7303 * config.gcc: Append t-android for Android targets.
7304
7305 * config/t-android: New.
7306
7307 2010-09-07 Richard Henderson <rth@redhat.com>
7308
7309 * target.def (unwind_emit_before_insn): New hook.
7310 * doc/tm.texi.in: Add @hook marker for it.
7311 * doc/tm.texi: Rebuild.
7312 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
7313
7314 2010-09-07 Martin Jambor <mjambor@suse.cz>
7315
7316 PR fortran/43665
7317 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
7318 are any type attributes.
7319
7320 2010-09-07 Jan Hubicka <jh@suse.cz>
7321
7322 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
7323 array_ref_low_bound in string access folding.
7324
7325 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
7326
7327 PR target/45206
7328 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
7329 eh_return fixup sequence.
7330
7331 2010-09-07 Jan Hubicka <jh@suse.cz>
7332
7333 * gimple-fold.c (maybe_fold_reference): Verify that operand is
7334 gimple_min_invariant.
7335
7336 2010-09-07 Richard Guenther <rguenther@suse.de>
7337
7338 PR middle-end/45569
7339 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
7340 nor CONSTRUCTOR can trap.
7341 * tree-complex.c (update_complex_assignment): Update EH info.
7342
7343 2010-09-07 Richard Guenther <rguenther@suse.de>
7344
7345 PR middle-end/45569
7346 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
7347 * passes.c (execute_function_todo): Do not verify anything if
7348 we saw errors.
7349
7350 2010-09-07 Richard Guenther <rguenther@suse.de>
7351
7352 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
7353
7354 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
7355
7356 PR target/43137
7357 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
7358 New define_mode_attrs.
7359 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
7360 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
7361 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
7362 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
7363 Remove pool_range attribute.
7364 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
7365 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
7366 pool_range and neg_pool_range attributes.
7367 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
7368 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
7369 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
7370
7371 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
7372
7373 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
7374 check glibc.
7375
7376 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
7377
7378 PR target/22152
7379 * config/i386/mmx.md (*mov<mode>_internal_rex64,
7380 *mov<mode>_internal_avx, *mov<mode>_internal,
7381 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
7382 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
7383
7384 2010-09-06 Mark Mitchell <mark@codesourcery.com>
7385
7386 * c-typeck.c (do_warn_double_promotion): Remove.
7387 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
7388 Objective-C++ too.
7389
7390 2010-09-06 Anatoly Sokolov <aesok@post.ru>
7391
7392 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
7393 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
7394 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
7395 argument type to reg_class_t. Change result type to bool.
7396 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7397
7398 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
7399
7400 PR libobjc/19850
7401 * gthr-posix.h (__gthread_objc_thread_detach): Use
7402 _objc_thread_attribs when detaching a thread.
7403 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
7404
7405 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
7406
7407 PR target/45524
7408 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
7409 * configure: Regenerated.
7410
7411 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7412
7413 * combine.c (try_combine): Set subst_low_luid to i0.
7414
7415 2010-09-06 Richard Guenther <rguenther@suse.de>
7416
7417 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
7418 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
7419 (build_aligned_type): Declare.
7420 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
7421 (check_aligned_type): New function.
7422 (build_aligned_type): Likewise.
7423 * expr.c (expand_assignment): Handle misaligned stores via
7424 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
7425 (expand_expr_real_1): Likewise.
7426 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
7427 * tree-vect-stmts.c (vectorizable_store): Do not build
7428 MISALIGNED_INDIRECT_REF but initialize alignment information.
7429 (vectorizable_load): Likewise.
7430 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
7431 handling.
7432 * cfgexpand.c (expand_debug_expr): Likewise.
7433 * dwarf2out.c (loc_list_from_tree): Likewise.
7434 * fold-const.c (maybe_lvalue_p): Likewise.
7435 (operand_equal_p): Likewise.
7436 (build_fold_addr_expr_with_type_loc): Likewise.
7437 * gimplify.c (gimplify_addr_expr): Likewise.
7438 (gimplify_expr): Likewise.
7439 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
7440 (verify_gimple_assign_single): Likewise.
7441 * tree-dump.c (dequeue_and_dump): Likewise.
7442 (tree_could_trap_p): Likewise.
7443 * tree-predcom.c (ref_at_iteration): Likewise.
7444 * tree-pretty-print.c (dump_generic_node): Likewise.
7445 (op_code_prio): Likewise.
7446 (op_symbol_code): Likewise.
7447 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
7448 * tree-ssa-loop-im.c (for_each_index): Likewise.
7449 (gen_lsm_tmp_name): Likewise.
7450 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
7451 (find_interesting_uses_address): Likewise.
7452 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
7453 * tree-ssa-operands.c (get_expr_operands): Likewise.
7454 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7455 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7456 (ao_ref_init_from_vn_reference): Likewise.
7457 * tree.c (staticp): Likewise.
7458 (build1_stat): Likewise.
7459 (reference_alias_ptr_type): Likewise.
7460 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7461 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
7462 MISALIGNED_INDIRECT_REF handling.
7463
7464 2010-09-06 Richard Guenther <rguenther@suse.de>
7465
7466 PR tree-optimization/45534
7467 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
7468 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
7469 on the target.
7470 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
7471 valid on the target.
7472
7473 2010-09-06 Andreas Schwab <schwab@redhat.com>
7474
7475 * configure.ac: Quote argument of AC_MSG_WARN.
7476 * configure: Regenerate.
7477
7478 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
7479
7480 * sel-sched.c (move_cond_jump): Correct arguments to
7481 maybe_tidy_empty_bb.
7482 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7483
7484 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
7485
7486 PR rtl-optimization/44919
7487 * sel-sched.c (move_cond_jump): Remove assert, check that
7488 the several blocks case can only happen with mutually exclusive
7489 insns instead. Rewrite the movement code to support moving through
7490 several basic blocks.
7491
7492 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
7493
7494 * config/i386/i386.md (iptrsize): New mode attribute.
7495 (tp_seg): Ditto.
7496 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
7497 mode iterator.
7498 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
7499 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
7500 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
7501 (stack_tls_protect_set_<mode>): Ditto from
7502 stack_tls_protect_set_{si,di}. Use %@ to output segment register
7503 of thread base pointer load.
7504 (stack_tls_protect_test_<mode>): Ditto from
7505 stack_tls_protect_test_{si,di}. Use %@ to output segment register
7506 of thread base pointer load.
7507 (stack_protect_set): Rewrite using indirect functions.
7508 (stack_protect_test): Ditto.
7509 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
7510 (ix86_print_operand): Handle '@'.
7511
7512 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
7513
7514 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
7515 MINUS_EXPR.
7516
7517 2010-09-05 Mark Mitchell <mark@codesourcery.com>
7518
7519 * doc/invoke.texi: Document -Wdouble-promotion.
7520 * c-typeck.c (convert_arguments): Check for implicit conversions
7521 from float to double.
7522 (do_warn_double_promotion): New function.
7523 (build_conditional_expr): Use it.
7524 (build_binary_op): Likewise.
7525
7526 2010-09-05 Richard Guenther <rguenther@suse.de>
7527
7528 PR tree-optimization/45535
7529 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
7530 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
7531 dereferencing it.
7532 (indirect_refs_may_alias_p): Likewise.
7533
7534 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
7535
7536 * config/sh/sh.c (sh_option_override): Make static.
7537 Adjust comments. Declare.
7538 (sh_function_value_regno_p): Likewise.
7539 (sh_register_move_cost): Modify the arguments, make static.
7540 Adjust comments. Declare.
7541 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
7542 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7543 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
7544 REGISTER_MOVE_COST): Delete.
7545 * config/sh/sh-protos.h (sh_override_options): Delete.
7546 (sh_register_move_cost): Delete.
7547 (sh_function_value_regno_p): Delete.
7548
7549 2010-09-04 Anatoly Sokolov <aesok@post.ru>
7550
7551 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
7552 m32r_function_value_regno_p): New functions.
7553 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7554 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
7555 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
7556 FUNCTION_VALUE_REGNO_P): Remove.
7557
7558 2010-09-04 Jan Hubicka <jh@suse.cz>
7559
7560 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
7561 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
7562 fold_read_from_constant_string.
7563
7564 * gimple.h (canonicalize_constructor_val): Declare.
7565 * gimple-fold.c (canonicalize_constructor_val): New function.
7566 (get_symbol_constant_value):Use it.
7567 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
7568
7569 2010-09-04 Jan Hubicka <jh@suse.cz>
7570
7571 * tree-switch-conversion.c (build_one_array): Set constructor to be
7572 static.
7573 * varpool.c (varpool_finalize_decl): Compute const_value_known.
7574
7575 2010-09-04 Richard Guenther <rguenther@suse.de>
7576
7577 PR bootstrap/45519
7578 * tree-flow.h (force_gimple_operand_1): Declare.
7579 (force_gimple_operand_gsi_1): Likewise.
7580 * gimplify.c (force_gimple_operand_1): New worker taking a
7581 gimple predicate for ...
7582 (force_gimple_operand): ... which now wraps it.
7583 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
7584 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
7585 last change.
7586 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
7587 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
7588 (create_mem_ref): Likewise.
7589
7590 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
7591
7592 * config/i386/predicates.md (sse_reg_operand): New predicate.
7593 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
7594 predicate for operand 1.
7595 (XFmode push splitter): Use fp_register_operand predicate
7596 for operand 1.
7597 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
7598 (SF-DF float_extend push splitter): Add reload_completed insn
7599 predicate.
7600 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
7601 MODEF mode macro. Add reload_completed insn predicate.
7602
7603 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
7604
7605 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
7606 (struct df_extract_ref): Remove.
7607 (union df_ref_d): Remove extract_ref member.
7608 (df_ref_create): Remove last three arguments.
7609 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
7610 * df-scan.c (df_ref_record): Remove last three arguments, do not
7611 pass them to df_ref_create_structure.
7612 (df_uses_record): Remove first and last three arguments. Replace
7613 first argument with DF_REF_REGULAR, adjust calls to remove the
7614 width, offset and mode. Always call recursively on the second
7615 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
7616 (df_ref_create_structure): Remove first argument.
7617 (struct df_scan_problem_data): Remove ref_extract_pool.
7618 (df_scan_free_internal): Do not free it.
7619 (df_scan_alloc): Do not allocate it.
7620 (df_ref_create): Remove last three arguments, do not pass them to
7621 df_ref_create_structure.
7622 (df_free_ref): Remove DF_REF_EXTRACT case.
7623 (df_notes_rescan): Adjust call to df_uses_record.
7624 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
7625 Remove DF_REF_EXTRACT case.
7626 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
7627 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
7628 and SUBREG definitions.
7629 (df_get_conditional_uses): Remove references to width/offset/mode,
7630 adjust call to df_ref_create_structure.
7631 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
7632 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
7633 calls to df_uses_record and df_ref_record.
7634 * fwprop.c (update_df): Remove references to width/offset/mode,
7635 adjust call to df_ref_create.
7636
7637 2010-09-03 Jan Hubicka <jh@suse.cz>
7638
7639 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
7640 (build_cdtor_fns): Update use of build_cdtor.
7641
7642 2010-09-03 Joseph Myers <joseph@codesourcery.com>
7643
7644 * doc/options.texi (SeparateAlias): Document.
7645 * opt-functions.awk (switch_flags): Handle SeparateAlias.
7646 * opth-gen.awk: Generate enumeration names for options marked
7647 SeparateAlias, but not for those marked Ignore.
7648 * opts-common.c (generate_canonical_option): Don't output separate
7649 argument for options marked CL_SEPARATE_ALIAS.
7650 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
7651 * opts.h (CL_SEPARATE_ALIAS): New.
7652 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
7653 CL_COMMON): Adjust definitions.
7654 * config/i386/darwin.opt, config/mips/sde.opt: New.
7655 * common.opt (fdump-final-insns): New.
7656 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7657 i386/darwin.opt.
7658 (mips*-sde-elf*): Add mips/sde.opt.
7659 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
7660 -mno-data-in-code and -mcode-xonly here.
7661 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
7662 * gcc.c (option_map): Add "j" to --dump entry.
7663 (translate_options): Don't translate -d to -foutput-class-dir= here.
7664
7665 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
7666
7667 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
7668 DR_IS_WRITE.
7669 (compute_all_dependences): Same.
7670 (create_rdg_edge_for_ddr): Same.
7671 * tree-data-ref.h (DR_IS_WRITE): New.
7672 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
7673 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
7674 (write_memrefs_written_at_least_once): Same.
7675 * tree-predcom.c (suitable_component_p): Same.
7676 (determine_roots_comp): Same.
7677 (execute_load_motion): Same.
7678 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
7679 (vect_enhance_data_refs_alignment): Same.
7680 (vect_analyze_group_access): Same.
7681
7682 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
7683
7684 PR testsuite/42843
7685 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
7686 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
7687
7688 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
7689
7690 * dwarf2out.c (file scope): Remove #if0'd code.
7691 (gen_subprogram_die): Same.
7692
7693 2010-09-03 Jakub Jelinek <jakub@redhat.com>
7694
7695 PR middle-end/45484
7696 * dwarf2out.c (flush_queued_reg_saves): Rename to...
7697 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
7698 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
7699 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
7700 * config/i386/i386.c (output_set_got): Call it.
7701
7702 2010-09-03 Michael Matz <matz@suse.de>
7703
7704 PR middle-end/45415
7705 * tree-sra.c (sra_modify_assign): If we modify the statement,
7706 say so.
7707
7708 * tree-ssa.c (verify_ssa): Check number of operands and links
7709 per statement to agree.
7710
7711 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
7712 Iain Sandoe <iains@gcc.gnu.org>
7713
7714 PR target/45476
7715 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
7716 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
7717 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
7718
7719 2010-09-03 Richard Guenther <rguenther@suse.de>
7720
7721 * lto-streamer-out.c (output_function): Output function
7722 start and end loci.
7723 * lto-streamer-in.c (input_function): Input function start
7724 and end loci.
7725
7726 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7727
7728 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
7729 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
7730 * configure: Regenerate.
7731 * aclocal.m4: Regenerate.
7732
7733 2010-09-03 Jan Hubicka <jh@suse.cz>
7734
7735 PR lto/44812
7736 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
7737 on functions/variables in other partition.
7738
7739 2010-09-03 Jan Hubicka <jh@suse.cz>
7740
7741 * cgraph.h (struct varpool_node): Add const_value_known.
7742 (varpool_decide_const_value_known): Declare.
7743 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
7744 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
7745 (input_varpool_node): Restore const_value_known.
7746 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
7747 initializer folding.
7748 * ipa.c (ipa_discover_readonly_nonaddressable_var,
7749 function_and_variable_visibility): Compute const_value_known.
7750 * gimple-fold.c (get_symbol_constant_value): Use varpool for
7751 initializer folding.
7752 * varpool.c (varpool_decide_const_value_known): New function.
7753
7754 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
7755
7756 * config/i386/i386.md: Remove empty preparation statements
7757 from splitters.
7758
7759 2010-09-03 Jan Hubicka <jh@suse.cz>
7760
7761 * passes.c (rest_of_decl_compilation): Do not add local vars into
7762 varpool.
7763 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
7764 static or extern vars are in varpool.
7765 (varpool_finalize_decl): Sanity check that only static vars are
7766 finalized.
7767
7768 2010-09-03 Jakub Jelinek <jakub@redhat.com>
7769
7770 PR debug/45500
7771 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
7772 not just generic vectors with BLKmode.
7773
7774 2010-09-03 Richard Guenther <rguenther@suse.de>
7775
7776 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
7777 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
7778 * tree.h (TMR_SYMBOL): Remove.
7779 (TMR_BASE, TMR_OFFSET): Adjust.
7780 (TMR_INDEX2): New.
7781 * alias.c (ao_ref_from_mem): Use TMR_BASE.
7782 * builtins.c (get_object_alignment): Merge TMR_BASE and
7783 TMR_SYMBOL handling.
7784 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
7785 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
7786 handling. Also allow TARGET_MEM_REF as base address.
7787 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
7788 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
7789 base. Gimplify TMR_INDEX2.
7790 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
7791 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7792 (get_addr_base_and_unit_offset): Likewise.
7793 * tree-eh.c (tree_could_trap_p): Likewise.
7794 * tree-pretty-print.c (dump_generic_node): Likewise.
7795 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
7796 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
7797 base to index2.
7798 (get_address_description): Reconstruct addres description
7799 from merged TMR_BASE and TMR_INDEX2.
7800 (maybe_fold_tmr): Fold propagated addresses.
7801 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
7802 MEM_REF and TARGET_MEM_REF paths.
7803 (indirect_refs_may_alias_p): Likewise.
7804 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
7805 instead of TMR_SYMBOL.
7806 * tree-ssa-operands.c (get_tmr_operands): Simplify.
7807 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
7808 according to changes ...
7809 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
7810 Split TARGET_MEM_REF into two fields plus the base.
7811 * tree.c (mem_ref_offset): Simplify.
7812 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
7813 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
7814 Strip NOPs when folding MEM_REF addresses.
7815 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
7816 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
7817 (fold_gimple_assign): ... not here.
7818
7819 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
7820
7821 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
7822 * config/mips/mips.c (mips_shift_truncation_mask): New function.
7823 (TARGET_SHIFT_TRUNCATION_MASK): Define.
7824
7825 2010-09-02 Richard Henderson <rth@redhat.com>
7826
7827 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
7828 instead of readelf in the test.
7829 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
7830 in the .debug_frame section for coff targets.
7831 * configure: Rebuild.
7832
7833 2010-09-02 Anatoly Sokolov <aesok@post.ru>
7834
7835 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
7836 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
7837 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7838 (m32c_class_likely_spilled_p): Make static. Change argument type to
7839 reg_class_t. Change result type to bool.
7840
7841 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7842
7843 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
7844 to convert (double)(long) into a single FRIZ instruction or not
7845 when -ffast-math is used.
7846
7847 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
7848 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
7849 or FRIZ instruction if -ffast-math.
7850 * config/rs6000/rs6000.md (friz): Ditto.
7851
7852 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
7853
7854 2010-09-02 Joseph Myers <joseph@codesourcery.com>
7855
7856 * opth-gen.awk (quote, comma): Remove unused variables.
7857
7858 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
7859
7860 * arm.c (arm_override_options): Correct fall-back code to use
7861 SUBTARGET_CPU_DEFAULT.
7862
7863 2010-09-02 Julian Brown <julian@codesourcery.com>
7864
7865 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
7866 unspecs.
7867 (vcond<mode>, vcondu<mode>): New expanders.
7868 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
7869 comparisons with zero.
7870 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
7871 * config/arm/constraints.md (Dz): New constraint.
7872
7873 2010-09-02 Anatoly Sokolov <aesok@post.ru>
7874
7875 * target.def (class_likely_spilled_p): New hook.
7876 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
7877 * doc/tm.texi: Regenerate.
7878 * targhooks.c (default_class_likely_spilled_p): New function.
7879 * targhooks.h (default_class_likely_spilled_p): Declare.
7880 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
7881 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
7882 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
7883 Use fixed_reg_set instead of fixed_regs.
7884 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
7885 * calls.c (avoid_likely_spilled_reg): Ditto.
7886 * ira-conflicts.c (ira_build_conflicts): Ditto.
7887 * ira.c (update_equiv_regs): Ditto.
7888 * mode-switching.c (create_pre_exit): Ditto.
7889 * regmove.c (find_matches): Ditto.
7890 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
7891 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
7892 (small_register_class_p): New inline function.
7893 (push_secondary_reload, find_reusable_reload, find_reloads): Use
7894 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
7895
7896 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
7897 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
7898 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7899
7900 2010-09-02 Richard Guenther <rguenther@suse.de>
7901
7902 PR tree-optimization/44937
7903 PR tree-optimization/45412
7904 * ipa-split.c (split_function): Properly remove PHI nodes.
7905
7906 2010-09-02 Joseph Myers <joseph@codesourcery.com>
7907
7908 * opts.h (struct cl_option): Add warn_message field.
7909 (struct cl_decoded_option): Add warn_message field.
7910 * doc/options.texi (Ignore, Warn): Document.
7911 * opt-functions.awk (needs_state_p): Don't consider aliases or
7912 ignored options to need state saved.
7913 * optc-gen.awk: Handle Warn and Ignore.
7914 * opth-gen.awk: Output OPT_SPECIAL_ignore.
7915 * opts-common.c (decode_cmdline_option): Set warn_message field.
7916 Handle ignored options.
7917 (decode_cmdline_options_to_array, generate_option,
7918 generate_option_input_file): Set warn_message field.
7919 (read_cmdline_option): Generate warnings from warn_message field.
7920 Handle ignored options.
7921 * common.opt (Wunreachable-code, fargument-alias,
7922 fargument-noalias, fargument-noalias-global,
7923 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
7924 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
7925 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
7926 ftree-salias): Mark Ignore.
7927 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
7928 -mintel-syntax and -mno-intel-syntax here.
7929 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
7930 using Warn.
7931 * opts.c (common_handle_option): Don't handle options marked as
7932 ignored.
7933 (enable_warning_as_error): Handle ignored options.
7934
7935 2010-09-02 Joseph Myers <joseph@codesourcery.com>
7936
7937 PR driver/44076
7938 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
7939 alias_target fields.
7940 * opt-functions.awk (opt_sanitized_name): Don't handle
7941 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
7942 * optc-gen.awk: Generate alias fields.
7943 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
7944 Don't generate such constants for aliases.
7945 * opts-common.c (generate_canonical_option): New.
7946 (decode_cmdline_option): Handle aliases. Use
7947 generate_canonical_option for known options instead of copying the
7948 input option text.
7949 * doc/options.texi (Alias): Document.
7950 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
7951 fstack-check, specs): Mark as aliases.
7952 * gcc.c (driver_handle_option): Canonicalize -L options to joined
7953 arguments.
7954 (driver_handle_option): Don't handle OPT_specs.
7955 * opts.c (common_handle_option): Don't handle options marked as
7956 aliases.
7957 (enable_warning_as_error): Handle aliases.
7958 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
7959 OPT_Wlarger_than_eq.
7960 * tree-optimize.c (tree_rest_of_compilation): Use
7961 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
7962
7963 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
7964
7965 * config/i386/i386.md (nonmemory_operand): New mode attribute.
7966 (push memory peephole2): Macroize peepholes using SWI mode iterator.
7967 (move immediate to memory peephole2): Macroize peepholes using
7968 SWI124 mode iterator.
7969 (non-pairable NOT peephole2): Macroize peepholes using SWI124
7970 mode iterator.
7971 (simple lea add peephole2): Macroize peepholes using SWI48
7972 mode iterator.
7973 (simple lea mult peephole2): Ditto.
7974 (imul by 3,5,9 to lea peephole2): Ditto.
7975 (mov $-1, reg peephole2): Macroize peepholes using SWI248
7976 mode iterator.
7977 (imul $32bit_imm,mem,reg peephole2): Ditto.
7978 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
7979
7980 2010-09-02 Ian Bolton <ian.bolton@arm.com>
7981
7982 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
7983
7984 2010-09-02 Olivier Hainque <hainque@adacore.com>
7985
7986 PR middle-end/44763
7987 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
7988 (allocno_priority_compare_func): Use it instead of a straight
7989 difference computation over priorities.
7990
7991 2010-09-02 Andi Kleen <ak@linux.intel.com>
7992
7993 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
7994
7995 2010-09-02 Ira Rosen <irar@il.ibm.com>
7996
7997 * tree-vectorizer.h (get_later_stmt): New function.
7998 (vect_analyze_data_ref_dependences): Add argument.
7999 * tree-vect-loop.c (vect_analyze_loop): Update call to
8000 vect_analyze_data_ref_dependences.
8001 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
8002 New function.
8003 (vect_analyze_data_ref_dependence): Add argument for basic block
8004 dependencies. Check dependencies in basic block vectorization.
8005 (vect_analyze_data_ref_dependences): Add argument and update call to
8006 vect_analyze_data_ref_dependences.
8007 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
8008 (vect_bb_vectorizable_with_dependencies): New.
8009 (vect_slp_analyze_bb): Check dependencies in basic block.
8010 (vect_schedule_slp_instance): Insert stores before the last store in
8011 SLP instance.
8012
8013 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8014
8015 PR target/45476
8016 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
8017 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8018
8019 2010-09-01 Jakub Jelinek <jakub@redhat.com>
8020
8021 PR middle-end/45458
8022 * bb-reorder.c (add_labels_and_missing_jumps): Treat
8023 bbs ending with throwing insns like blocks ending with a call.
8024 (fix_up_fall_thru_edges): Likewise.
8025
8026 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
8027
8028 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
8029 (m32c_function_arg_advance): Delete.
8030 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8031 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
8032 comments. Take a const_tree and a bool. Declare.
8033 (m32c_function_arg_advance): Likewise.
8034 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8035
8036 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8037
8038 PR target/45476
8039 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
8040 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
8041 * config/i386/mingw32.h: ... here.
8042
8043 2010-09-01 Andi Kleen <ak@linux.intel.com>
8044
8045 PR lto/45475
8046 * lto-streamer-in.c (lto_input_ts_target_option): Add.
8047 (lto_input_tree_pointers): Call lto_input_ts_target_option.
8048 * lto-streamer-out (lto_output_ts_target_option): Add.
8049 (lto_output_tree_pointers): Call lto_output_ts_target_option.
8050
8051 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
8052
8053 PR/target 45452
8054 * config/i386/cygwin.h: Change order of specified import libraries.
8055 * config/i386/mingw32.h: Likewise.
8056 * config/i386/t-cygwin: Likewise.
8057 * config/i386/t-mingw32: Likewise.
8058 * config/i386/t-mingw-w32: Likewise.
8059 * config/i386/t-mingw-w64: Likewise.
8060
8061 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8062
8063 * config/arm/neon-schedgen.ml (core): New type.
8064 (allCores): List of supported cores.
8065 (availability_table): Add supported cores.
8066 (collate_bypasses): Accept core as a parameter.
8067 (worst_case_latencies_and_bypasses): Accept core as a parameter.
8068 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
8069 and coreStr to get tune attribute and prefix for functional units.
8070 (emit_bypasses): Accept core name and use it.
8071 (calculate_per_core_availability_table): New.
8072 (filter_core): New.
8073 (calculate_core_availability_table): New.
8074 (main): Use calculate_core_availablity_table.
8075 * config/arm/cortex-a8-neon.md: Update copyright year.
8076 Regenerated from ml file and merged in.
8077 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
8078 cortex_a8_neon_mrc.
8079
8080 2010-09-01 Ian Bolton <ian.bolton@arm.com>
8081
8082 * Makefile.in (tree-switch-conversion.o): Update dependencies.
8083
8084 2010-09-01 Richard Guenther <rguenther@suse.de>
8085
8086 * alias.c (ao_ref_from_mem): Adjust.
8087 * builtins.c (get_object_alignment): Likewise.
8088 * cfgexpand.c (expand_debug_expr): Likewise.
8089 * gimple.c (get_base_address): Likewise.
8090 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8091 (get_addr_base_and_unit_offset): Likewise. Fix for
8092 both TMR_SYMBOL and TMR_BASE being set.
8093 * tree-eh.c (tree_could_trap_p): Likewise.
8094 * gimplify.c (gimplify_expr): Do not attempt to gimplify
8095 TMR_SYMBOL. Always gimplify TMR_BASE.
8096 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8097 TMR_BASE if there is a TMR_SYMBOL.
8098 * tree-pretty-print.c (dump_generic_node): Adjust.
8099 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
8100 (tree_mem_ref_addr): Likewise.
8101 (create_mem_ref_raw): Likewise.
8102 (move_fixed_address_to_symbol): Likewise.
8103 (create_mem_ref): Likewise.
8104 (dump_mem_address): Likewise.
8105 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
8106 Fix for both TMR_SYMBOL and TMR_BASE being set.
8107 (indirect_refs_may_alias_p): Likewise.
8108 * tree-ssa-operands.c (get_tmr_operands): Adjust.
8109 * tree.def (TARGET_MEM_REF): Adjust documentation.
8110
8111 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8112
8113 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
8114 Rename from X86_TUNE_ADD_ESP_4.
8115 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
8116 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
8117 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
8118 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
8119 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
8120 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
8121 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
8122 * config/i386/i386.c (initial_ix86_tune_features)
8123 <X86_TUNE_SINGLE_POP>: Invert members.
8124 <X86_TUNE_DOUBLE_POP>: Ditto.
8125 <X86_TUNE_SINGLE_PUSH>: Ditto.
8126 <X86_TUNE_DOUBLE_PUSH>: Ditto.
8127 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
8128 No longer exported.
8129 (push peephole2 patterns): Macroize peepholes using P mode iterator.
8130 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
8131 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
8132 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
8133
8134 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
8135
8136 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
8137 a volatile LHS if the constructor has only one element.
8138
8139 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
8140
8141 PR bootstrap/45321
8142 * tree.c (stdarg_p): Make fntype parameter const.
8143 * tree.h (stdarg_p): Likewise.
8144 (function_args_iterator): Remove unused fntype field.
8145 (function_args_iter_init): Do not initialize fntype
8146 field. Make fntype parameter const.
8147
8148 2010-09-01 Richard Guenther <rguenther@suse.de>
8149
8150 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
8151 estimate.
8152 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
8153 (execute_vrp): Compute number of iteration estimates.
8154 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
8155 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
8156 * tree-data-ref.c (estimated_loop_iterations): Adjust.
8157 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
8158 Infer loop bounds from undefined behavior based on a new parameter.
8159 (estimate_numbers_of_iterations): Likewise.
8160 (scev_probably_wraps_p): Adjust.
8161 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
8162
8163 2010-09-01 Nick Clifton <nickc@redhat.com>
8164
8165 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
8166 where appropriate.
8167 (xstormy16_legitimate_address_p): Use true and false instead of 1
8168 and 0.
8169 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
8170 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
8171 magic constant 2.
8172 (xstormy16_expand_call): Fix comment at start of function.
8173
8174 2010-09-01 Nick Clifton <nickc@redhat.com>
8175
8176 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
8177 when pushing accumulator register.
8178 (rx_get_stack_layout): Always save call clobbered registers inside
8179 interrupt handlers.
8180 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
8181
8182 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8183
8184 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
8185 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
8186
8187 * libgcc-std.ver (GCC_4.6.0): Define version.
8188
8189 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8190
8191 * tree-nested.c (convert_all_function_calls): Iterate until after the
8192 sum of static chains in the nest doesn't change.
8193
8194 2010-08-31 Anatoly Sokolov <aesok@post.ru>
8195
8196 * config/m32c/m32c.c (classes_intersect): Remove.
8197 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
8198 reg_classes_intersect_p instead of classes_intersect.
8199 (class_can_hold_mode): Change arguments type from enum reg_class to
8200 reg_class_t. Use reg_class_contents instead of class_contents.
8201 (m32c_register_move_cost): Make static. Change arguments type from
8202 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
8203 classes_intersect. Use reg_class_contents instead of class_contents.
8204 (m32c_memory_move_cost): Make static. Change arguments type from
8205 enum reg_class to reg_class_t.
8206 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8207 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8208 * config/m32c/m32c-protos.h (m32c_register_move_cost,
8209 m32c_memory_move_cost): Remove.
8210
8211 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8212
8213 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
8214 (arm_function_arg): Delete.
8215 (arm_needs_doubleword_align): Take a const_tree.
8216 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8217 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
8218 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
8219 (arm_function_arg): Make static. Take a const_tree and a bool.
8220 (arm_function_arg_advance): Likewise.
8221 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8222
8223 2010-08-31 Andi Kleen <ak@linux.intel.com>
8224
8225 * common.opt (fwhopr=): Update for -fwhopr=jobserver
8226 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
8227 * lto-wrapper.c (run_gcc): Add jobserver mode.
8228 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
8229 argument.
8230
8231 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
8232
8233 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
8234 (popsi1): Ditto.
8235 (*popdi1_epilogue): Ditto.
8236 (*popsi1_epilogue): Ditto.
8237 (popsi, popdi peephole2 patterns): Update peepholes for changed
8238 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
8239
8240 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
8241 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
8242
8243 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
8244 (override_options): Do not initialize removed ix86_gen_pop1.
8245 (gen_pop): New static function.
8246 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
8247 (release_scratch_register_on_entry): Ditto.
8248 (ix86_restore_reg_using_pop): Ditto.
8249 (ix86_expand_epilogue): Ditto.
8250
8251 2010-08-31 Jakub Jelinek <jakub@redhat.com>
8252
8253 PR middle-end/45461
8254 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
8255
8256 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8257
8258 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
8259 semicolons.
8260
8261 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8262
8263 * doc/extend.texi: Fix documentation of the return value of
8264 __builtin_choose_expr.
8265
8266 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8267
8268 * config/v850/v850-protos.h (function_arg): Delete.
8269 * config/v850/v850.h (FUNCTION_ARG): Delete.
8270 (FUNCTION_ARG_ADVANCE): Move code to...
8271 * config/v850/v850.c (v850_function_arg_advance): ...here.
8272 (v850_function_arg): Make static. Take a const_tree and a bool.
8273 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8274
8275 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8276
8277 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
8278 these...
8279 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8280 ...and these...
8281 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
8282 ..to here..
8283 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8284 ...and here.
8285 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8286
8287 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8288
8289 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
8290 Delete.
8291 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8292 * config/rx/rx.c (rx_function_arg_size): Make static.
8293 (rx_function_arg): Likewise.
8294 (rx_function_arg_advance): New function.
8295 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8296
8297 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
8298
8299 * config/arm/arm.c (arm_override_options): Remove superfluous test.
8300 Fix indentation.
8301
8302 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8303
8304 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
8305 (dwarf2out_decl) <CONST_DECL>: Likewise.
8306
8307 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
8308
8309 Stack usage support
8310 * common.opt (-fstack-usage): New option.
8311 * doc/invoke.texi (Debugging options): Document it.
8312 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
8313 allocate_dynamic_stack_space.
8314 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
8315 and propagate it to allocate_dynamic_stack_space.
8316 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
8317 * calls.c (initialize_argument_information): Pass TRUE as 4th
8318 argument to allocate_dynamic_stack_space.
8319 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
8320 to 1 when pushing a variable-sized argument onto the stack. Pass
8321 TRUE as 4th argument to allocate_dynamic_stack_space.
8322 Update current_function_pushed_stack_size.
8323 (emit_library_call_value_1): Likewise.
8324 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
8325 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
8326 attempt to find an upper bound. Remove redundant code for the
8327 SETJMP_VIA_SAVE_AREA case.
8328 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
8329 * function.h (struct stack_usage): New structure.
8330 (current_function_static_stack_size): New macro.
8331 (current_function_dynamic_stack_size): Likewise.
8332 (current_function_pushed_stack_size): Likewise.
8333 (current_function_dynamic_alloc_count): Likewise.
8334 (current_function_has_unbounded_dynamic_stack_size): Likewise.
8335 (current_function_allocates_dynamic_stack_space): Likewise.
8336 (struct function): Add new field 'su'.
8337 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
8338 add the value of the dynamic offset to the dynamic stack usage.
8339 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
8340 for variable-sized objects.
8341 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
8342 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
8343 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
8344 BUILT_IN_ALLOCA for variable-sized objects.
8345 * output.h (output_stack_usage): Declare.
8346 * toplev.c (stack_usage_file): New file pointer.
8347 (output_stack_usage): New function.
8348 (open_auxiliary_file): Likewise.
8349 (lang_dependent_init): Open file if flag_stack_usage is set.
8350 (finalize): Close file if stack_usage_file is not null.
8351 * tree.h (ALLOCA_FOR_VAR_P): New macro.
8352 * config/alpha/alpha.c (compute_frame_size): New function.
8353 (alpha_expand_prologue): Use it.
8354 (alpha_start_function): Likewise.
8355 (alpha_expand_epilogue): Likewise. Set stack usage info.
8356 * config/i386/i386.c (ix86_expand_prologue): Likewise.
8357 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8358 * config/mips/mips.c (mips_expand_prologue): Likewise.
8359 * config/pa/pa.c (hppa_expand_prologue): Likewise.
8360 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8361 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8362
8363 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
8364
8365 PR tree-optimization/45427
8366 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
8367 Handle the case that the exit is never taken correctly.
8368 (number_of_iterations_ne): Pass exit_must_be_taken to
8369 number_of_iterations_ne_max.
8370
8371 2010-08-30 Catherine Moore <clm@codesourcery.com>
8372
8373 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
8374 Infer -mdspr2 for the the 74K.
8375
8376 2010-08-30 Jakub Jelinek <jakub@redhat.com>
8377
8378 PR debug/45419
8379 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
8380
8381 PR middle-end/45423
8382 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
8383 and TRUTH_{AND,OR,XOR}_EXPR.
8384 * c-parser.c (c_parser_omp_atomic): Handle boolean
8385 {PRE,POST}_{INC,DEC}REMENT.
8386
8387 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
8388
8389 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
8390 (function_arg): Delete.
8391 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8392 (FUNCTION_INCOMING_ARG): Delete.
8393 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
8394 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
8395 and a bool.
8396 (function_arg): Rename to...
8397 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
8398 a bool.
8399 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
8400 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8401 (TARGET_FUNCTION_INCOMING_ARG): Define.
8402
8403 2010-08-30 Richard Guenther <rguenther@suse.de>
8404
8405 PR tree-optimization/21602
8406 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
8407 using points-to information.
8408
8409 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
8410
8411 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
8412
8413 2010-08-30 Richard Guenther <rguenther@suse.de>
8414
8415 PR tree-optimization/45449
8416 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
8417 variables.
8418
8419 2010-08-30 Joseph Myers <joseph@codesourcery.com>
8420
8421 * opts.h (CL_ERR_NEGATIVE): Define.
8422 * opts.c (unknown_option_callback): Don't postpone warnings for
8423 options marked with CL_ERR_NEGATIVE.
8424 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
8425 for negative versions of CL_REJECT_NEGATIVE options.
8426
8427 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
8428
8429 * config/i386/i386.md (zero_extendsidi2_1): Rename from
8430 zero_extendsidi2_32.
8431 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
8432 using SWI12 mode iterator.
8433 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
8434 to define_insn_and_split pattern.
8435 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
8436 using SWI24 mode iterator.
8437 (*zero_extendqi<mode>2_and): Macroize insn from
8438 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
8439 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
8440 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
8441 SWI24 mode iterator.
8442 (*zero_extendqi<mode>2_movzbl): Ditto from
8443 *zero_extendqi{hi,si}2_movzbl.
8444 (extendsidi2_1): Rename from extendsidi2_32.
8445 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
8446 SWI12 mode iterator.
8447
8448 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
8449
8450 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
8451 general purpose registers.
8452 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
8453 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
8454 with general purpose registers and memory operands. Add associated
8455 CCImode post-reload splitter.
8456 * config/ia64/div.md: Change BImode to CCImode throughout.
8457
8458 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
8459
8460 * config/ia64/ia64.md (cstorebi4): Fix thinko.
8461
8462 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
8463
8464 * config/picochip/picochip.c (reorder_var_tracking_notes): This
8465 function was dropping debug insns which caused PR45299.
8466
8467 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
8468
8469 * config/i386/sse.md (extsuffix): New code attribute.
8470 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
8471 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
8472 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
8473 and sse4_1_zero_extendv4qiv4si2.
8474 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
8475 and sse4_1_zero_extendv2qiv2di2.
8476 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
8477 and sse4_1_zero_extendv4hiv4si2.
8478 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
8479 and sse4_1_zero_extendv2hiv2di2.
8480 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
8481 and sse4_1_zero_extendv2siv2di2
8482
8483 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
8484 using any_extend code iterator.
8485 (*avx_<s>mulv8hi3_highpart): Macroize insn from
8486 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
8487 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
8488
8489 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
8490 gen_sse4_1_sign_extend* functions.
8491 (struct builtin_description bdesc_args): Ditto.
8492
8493 2010-08-27 Xinliang David Li <davidxl@google.com>
8494
8495 PR/45422
8496 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
8497 (iv_ca_set_no_cp): Update used inv expr count.
8498 (iv_ca_set_cp): Ditto.
8499 (iv_ca_new): Initialize new member.
8500 (iv_ca_free): Free memory.
8501
8502 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8503
8504 * config/sh/sh-protos.h (sh_function_arg): Delete.
8505 (sh_function_arg_advance): Delete.
8506 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8507 (PASS_IN_REG_P): Eliminate cast.
8508 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
8509 const_tree and a bool.
8510 (sh_function_arg): Likewise.
8511 (sh_output_mi_thunk): Call sh_function_arg_advance) and
8512 sh_function_arg.
8513 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8514
8515 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
8516 Kaz Kojima <kkojima@gcc.gnu.org>
8517
8518 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
8519 when possible.
8520 (sh_expand_epilogue): Likewise.
8521 * config/sh/sh.md (movml_push_banked): New insn.
8522 (movml_pop_banked): Likewise.
8523
8524 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
8525
8526 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
8527 gen_regexp_oneof, gen_regexp_sequence): Use the string found
8528 in vector element 0 rather than the original string when there's
8529 only one element.
8530 (gen_regexp): Remove extra semicolon.
8531
8532 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
8533 thumb2_movsf_vfp): Set attribute "insn".
8534 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
8535 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
8536 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
8537 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
8538 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
8539 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
8540 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
8541 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
8542 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
8543 if_not_arith, if_arith_not, cond_move_not): Likewise.
8544
8545 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8546
8547 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
8548 New declaration.
8549 (rs6000_allocate_stack_temp): Ditto.
8550 (rs6000_expand_convert_si_to_sfdf): Ditto.
8551
8552 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
8553 line. Update the options set if power6 or power7 server/embedded
8554 type options are used. If we give a warning for no vsx under
8555 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
8556 (rs6000_allocate_stack_temp): New function to allocate a stack
8557 tempoary and adjust the address so it meets either REG+OFFSET or
8558 REG+REG addressing requirements.
8559 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
8560 that they can be used with the LFIWAX/LFIWZX instrucitons.
8561 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
8562 converting signed/unsigned SImode to either SFmode/DFmode.
8563
8564 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
8565 whether certain instructions can be generated.
8566 (TARGET_FCTIDZ): Ditto.
8567 (TARGET_STFIWX): Ditto.
8568 (TARGET_LFIWAX): Ditto.
8569 (TARGET_LFIWZX): Ditto.
8570 (TARGET_FCFIDS): Ditto.
8571 (TARGET_FCFIDU): Ditto.
8572 (TARGET_FCFIDUS): Ditto.
8573 (TARGET_FCTIDUZ): Ditto.
8574 (TARGET_FCTIWUZ): Ditto.
8575
8576 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
8577 (UNSPEC_FCTID): Ditto.
8578 (UNSPEC_LFIWAX): Ditto.
8579 (UNSPEC_LFIWZX): Ditto.
8580 (UNSPEC_FCTIWUZ): Ditto.
8581 (rreg): Use correct constraints.
8582 (SI_CONVERT_FP): New mode attribute for floating point conversion
8583 tests.
8584 (E500_CONVERT): Ditto.
8585 (lfiwax): New insns for converting from integer to floating point
8586 utilizing newer instructions. Attempt to optimize conversions
8587 that come from memory so that we don't load the value into a GPR,
8588 spill it to the stack and reload it into a FPR.
8589 (floatsi<mode>2_lfiwax): Ditto.
8590 (floatsi<mode>2_lfiwax_mem): Ditto.
8591 (floatsi<mode>2_lfiwax_mem2): Ditto.
8592 (lfiwzx): Ditto.
8593 (floatunssi<mode>2_lfiwzx): Ditto.
8594 (floatunssi<mode>2_lfiwzx_mem): Ditto.
8595 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
8596 (floatdidf2_mem): Ditto.
8597 (floatunsdidf2_fcfidu): Ditto.
8598 (floatunsdidf2_mem): Ditto.
8599 (floatunsdisf2): Ditto.
8600 (floatunsdisf2_fcfidus): Ditto.
8601 (floatunsdisf2_mem): Ditto.
8602 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
8603 Use FCFID on 32-bit hosts that support it.
8604 (floatsidf2_internal): Ditto.
8605 (floatunssisf2): Ditto.
8606 (floatunssidf2): Ditto.
8607 (floatunssidf2_internal): Ditto.
8608 (floatsisf2): Ditto.
8609 (floatdidf2): Ditto.
8610 (floatdidf2_fpr): Ditto.
8611 (floatunsdidf2): Ditto.
8612 (floatdisf2): Ditto.
8613 (floatdisf2_fcfids): Ditto.
8614 (floatdisf2_internal1): Ditto.
8615 (fixuns_truncsfsi2): Delete, merge into common pattern for both
8616 SF/DF. Add power7 support.
8617 (fix_truncsfsi2): Ditto.
8618 (fixuns_truncdfsi2): Ditto.
8619 (fixuns_truncdfdi2): Ditto.
8620 (fix_truncdfsi2): Ditto.
8621 (fix_truncdfsi2_internal): Ditto.
8622 (fix_truncdfsi2_internal_gfxopt): Ditto.
8623 (fix_truncdfsi2_mfpgpr): Ditto.
8624 (fctiwz): Ditto.
8625 (btruncdf2): Ditto.
8626 (btruncdf2_fpr): Ditto.
8627 (btructsf2): Ditto.
8628 (ceildf2): Ditto.
8629 (ceildf2_fpr): Ditto.
8630 (ceilsf2): Ditto.
8631 (floordf2): Ditto.
8632 (floordf2_fpr): Ditto.
8633 (floorsf2): Ditto.
8634 (rounddf2): Ditto.
8635 (rounddf2_fpr): Ditto.
8636 (roundsf2): Ditto.
8637 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
8638 (fix_trunc<mode>di2): Ditto.
8639 (fixuns_trunc<mode>si2): Ditto.
8640 (fixuns_trunc<mode>di2): Ditto.
8641 (fctiwz_<mode>): Ditto.
8642 (btrunc<mode>2): Ditto.
8643 (btrunc<mode>2_fpr): Ditto.
8644 (ceil<mode>2): Ditto.
8645 (ceil<mode>2_fpr): Ditto.
8646 (floor<mode>2): Ditto.
8647 (float<mode>2_fpr): Ditto.
8648 (round<mode>2): Ditto.
8649 (round<mode>2_fpr): Ditto.
8650 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
8651 (fixuns_trunc<mode>si2_stfiwx): Ditto.
8652 (fix_truncdfsi2_internal): Ditto.
8653 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
8654 converted value on stack, loaded into GPR, and then stored into
8655 the final destination.
8656 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
8657 FCTIDZ.
8658 (lrint<mode>di2): New insn, provide the lrint builtin functions.
8659 (ftruncdf2): Delete, unused.
8660 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
8661
8662 * config/rs6000/vsx.md (toplevel): Update copyright year.
8663 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
8664 (VSr3): Ditto.
8665
8666 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
8667 Jeremie Salvucci <jeremie.salvucci@free.fr>
8668
8669 * gengtype.c (output_type_enum): Test the right union member.
8670
8671 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
8672
8673 PR target/41484
8674 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
8675 operands for operand 1.
8676 (sse4_1_extendv4qiv4si2): Ditto.
8677 (sse4_1_extendv2qiv2di2): Ditto.
8678 (sse4_1_extendv4hiv4si2): Ditto.
8679 (sse4_1_extendv2hiv2di2): Ditto.
8680 (sse4_1_extendv2siv2di2): Ditto.
8681 (sse4_1_zero_extendv8qiv8hi2): Ditto.
8682 (sse4_1_zero_extendv4qiv4si2): Ditto.
8683 (sse4_1_zero_extendv2qiv2di2): Ditto.
8684 (sse4_1_zero_extendv4hiv4si2): Ditto.
8685 (sse4_1_zero_extendv2hiv2di2): Ditto.
8686 (sse4_1_zero_extendv2siv2di2): Ditto.
8687 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
8688 (*sse4_1_extendv4qiv4si2): Ditto.
8689 (*sse4_1_extendv2qiv2di2): Ditto.
8690 (*sse4_1_extendv4hiv4si2): Ditto.
8691 (*sse4_1_extendv2hiv2di2): Ditto.
8692 (*sse4_1_extendv2siv2di2): Ditto.
8693 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
8694 (*sse4_1_zero_extendv4qiv4si2): Ditto.
8695 (*sse4_1_zero_extendv2qiv2di2): Ditto.
8696 (*sse4_1_zero_extendv4hiv4si2): Ditto.
8697 (*sse4_1_zero_extendv2hiv2di2): Ditto.
8698 (*sse4_1_zero_extendv2siv2di2): Ditto.
8699
8700 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8701
8702 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
8703 (mips_function_arg): Delete.
8704 (mips_function_arg_boundary): Take a const_tree.
8705 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
8706 (mips_arg_info): Likewise.
8707 (mips_setup_incoming_varargs): Call mips_function_arg_advance
8708 instead of FUNCTION_ARG_ADVANCE.
8709 (mips_function_arg_advance): Adjust prototype. Make static.
8710 (mips_function_arg): Likewise.
8711 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8712 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
8713
8714 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8715
8716 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8717 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
8718 (function_arg): Delete.
8719 (function_arg_boundary): Take a const_tree.
8720 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
8721 (rs6000_spe_function_arg): Likewise.
8722 (rs6000_parm_start): Likewise.
8723 (rs6000_arg_size): Likewise.
8724 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
8725 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
8726 (rs6000_mixed_function_arg): Likewise.
8727 (function_arg): Rename to...
8728 (rs6000_function_arg): ...this.
8729 (function_arg_advance): Rename to...
8730 (rs6000_function_arg_advance_1): ...this
8731 (rs6000_function_arg_advance): New function. Call it.
8732 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
8733 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
8734 (rs6000_function_value): Likewise.
8735 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8736
8737 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8738
8739 * config/arm/arm.md (enabled): Test the value of arch_enabled
8740 rather than just using it.
8741
8742 2010-08-27 Olivier Hainque <hainque@adacore.com>
8743 Eric Botcazou <ebotcazou@adacore.com>
8744
8745 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
8746 cover all the possible offsets from this base.
8747 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
8748
8749 2010-08-26 Jakub Jelinek <jakub@redhat.com>
8750
8751 PR tree-optimization/44485
8752 * calls.c (flags_from_decl_or_type): For const or pure
8753 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
8754 together with ECF_CONST resp. ECF_PURE.
8755 * builtins.c (expand_builtin): Use flags_from_decl_or_type
8756 instead of querying flags directly.
8757 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
8758 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
8759
8760 2010-08-26 Richard Guenther <rguenther@suse.de>
8761
8762 PR tree-optimization/45255
8763 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
8764 and externals are also invariant.
8765
8766 2010-08-25 Jakub Jelinek <jakub@redhat.com>
8767
8768 PR rtl-optimization/44858
8769 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
8770 newi2pat, make sure they don't affect newpat.
8771
8772 PR rtl-optimization/45400
8773 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
8774 SUBREG_REG if both modes are of MODE_INT class.
8775
8776 2010-08-25 Julian Brown <julian@codesourcery.com>
8777
8778 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
8779 * config/arm/arm.md (generic_sched): No for Cortex-A5.
8780 (generic_vfp): Likewise.
8781 (cortex-a5.md): Include.
8782 * config/arm/cortex-a5.md: New.
8783
8784 2010-08-25 Richard Guenther <rguenther@suse.de>
8785
8786 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
8787 * gimple.c (gimple_get_alias_set): Remove special handling
8788 for pointers.
8789
8790 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
8791
8792 PR middle-end/45355
8793 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
8794 dead_or_set_p when computing i0_feeds_i2_n.
8795
8796 * combine.c (find_split_point): Undo canonicalization of multiply-add
8797 to (minus x (mult)) when it seems likely that this will increase the
8798 chances of a split.
8799
8800 2010-08-25 Richard Guenther <rguenther@suse.de>
8801
8802 PR lto/44562
8803 * lto-streamer.c (lto_record_common_node): Do not mess with
8804 TYPE_CANONICAL when not in lto.
8805 * gimple.c (gimple_register_type): Likewise.
8806
8807 2010-08-25 Richard Guenther <rguenther@suse.de>
8808
8809 PR tree-optimization/45316
8810 * tree-ssa-pre.c (eliminate): Properly clean EH info.
8811
8812 2010-08-25 Richard Guenther <rguenther@suse.de>
8813
8814 PR tree-optimization/45393
8815 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
8816 and clean EH info. Avoid SSA update.
8817 (execute_cse_sincos): Cleanup the CFG if it has changed.
8818
8819 2010-08-25 Richard Guenther <rguenther@suse.de>
8820
8821 PR middle-end/45379
8822 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
8823 TARGET_MEM_REF in alignment computation.
8824
8825 2010-08-25 Jakub Jelinek <jakub@redhat.com>
8826
8827 PR tree-optimization/45059
8828 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
8829 type conversions from newop{1,2}. Assert t is a comparison and
8830 newop{1,2} after the stripping are gimple vals.
8831
8832 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
8833
8834 * config/arm/iterators.md (VU, SE, V_widen_l): New.
8835 (V_unpack, US): New.
8836 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
8837 (vec_unpack<US>_lo_<mode>): Likewise.
8838 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
8839 (neon_vec_unpack<US>_lo_<mode>): Likewise.
8840 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
8841 (vec_widen_<US>mult_hi_<mode>): Likewise.
8842 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
8843 (neon_vec_<US>mult_hi_<mode>"): Likewise.
8844 (neon_unpack<US>_<mode>): Widening move intermediate step for
8845 vectorizing without -mvectorize-with-neon-quad.
8846 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
8847 for vectorizing without -mvectorize-with-neon-quad.
8848 * config/arm/predicates.md (vect_par_constant_high): Check for
8849 high-half lanes of a vector.
8850 (vect_par_constant_low): Check for low-half lanes of a vector.
8851
8852 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
8853
8854 * tree-if-conv.c (struct ifc_dr): New.
8855 (IFC_DR): New.
8856 (DR_WRITTEN_AT_LEAST_ONCE): New.
8857 (DR_RW_UNCONDITIONALLY): New.
8858 (memref_read_or_written_unconditionally): Use the cached values
8859 when possible.
8860 (write_memref_written_at_least_once): Same.
8861 (if_convertible_loop_p): Initialize and free DR->aux fields.
8862
8863 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
8864
8865 * gimple.c (gimple_could_trap_p_1): Not static anymore.
8866 Pass an extra bool parameter include_mem.
8867 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
8868 (gimple_assign_rhs_could_trap_p): Same.
8869 * gimple.h (gimple_could_trap_p_1): Declared.
8870 * tree-data-ref.h (same_data_refs_base_objects): New.
8871 (same_data_refs): New.
8872 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
8873 (write_memrefs_written_at_least_once): New.
8874 (ifcvt_memrefs_wont_trap): New.
8875 (operations_could_trap): New.
8876 (ifcvt_could_trap_p): New.
8877 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
8878 Gets a vector of data refs.
8879 (if_convertible_stmt_p): Same.
8880 (if_convertible_loop_p_1): New.
8881 (if_convertible_loop_p): Call if_convertible_loop_p_1.
8882
8883 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
8884
8885 * common.opt (ftree-loop-if-convert-stores): New flag.
8886 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
8887 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
8888 the created statement before GSI.
8889 (if_convertible_phi_p): Allow virtual phi nodes when
8890 flag_loop_if_convert_stores is set.
8891 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
8892 Do not handle types that do not match is_gimple_reg_type.
8893 Remove loop and bb parameters. Call gimple_could_trap_p instead of
8894 when flag_loop_if_convert_stores is set, as LHS can contain
8895 memory refs.
8896 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
8897 to if_convertible_gimple_assign_stmt_p.
8898 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
8899 (replace_phi_with_cond_gimple_assign_stmt): Renamed
8900 predicate_scalar_phi. Do not handle virtual phi nodes.
8901 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
8902 Call predicate_scalar_phi.
8903 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
8904 just after the labels for flag_loop_if_convert_stores, otherwise
8905 insert the predicate in the end of the BB.
8906 (predicate_mem_writes): New.
8907 (combine_blocks): Call predicate_all_scalar_phis. When
8908 flag_loop_if_convert_stores is set, call predicate_mem_writes.
8909 (tree_if_conversion): Call mark_sym_for_renaming when
8910 flag_loop_if_convert_stores is set.
8911 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
8912 flag_loop_if_convert_stores is set.
8913
8914 2010-08-24 Anatoly Sokolov <aesok@post.ru>
8915
8916 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
8917 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
8918 (pa_function_value): Make static.
8919 (override_options): Rename to...
8920 (pa_option_override): ...this. Make static.
8921 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
8922 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
8923 TARGET_OPTION_OVERRIDE): Define.
8924 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
8925 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
8926 Remove.
8927 * config/pa/pa-protos.h (override_options): Remove.
8928
8929 2010-08-24 Richard Guenther <rguenther@suse.de>
8930
8931 PR middle-end/45379
8932 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
8933 if addr->index is NULL or zero.
8934 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
8935 TARGET_MEM_REF more properly.
8936 (indirect_ref_may_alias_decl_p): Likewise.
8937 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
8938 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
8939
8940 2010-08-23 Anatoly Sokolov <aesok@post.ru>
8941
8942 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
8943 (m32c_override_options): Rename to...
8944 (m32c_option_override): ...this. Make static.
8945 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
8946 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
8947 Remove.
8948 * config/m32c/m32c-protos.h (m32c_override_options,
8949 m32c_function_value_regno_p): Remove.
8950
8951 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
8952
8953 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
8954 Fix a typo in a previous commit.
8955
8956 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
8957
8958 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
8959 Pre-initialize innerloop_iters to one.
8960
8961 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
8962
8963 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
8964 existing static function global.
8965
8966 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
8967 is changed to global.
8968
8969 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
8970 may_be_nonaddressable_p on base, and don't collect this reference
8971 if the address of the base could not be taken.
8972
8973 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8974
8975 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
8976 enable the compiler to autovectorize mathmetical functions for
8977 power7 using the Mathematical Acceleration Subsystem library.
8978
8979 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
8980 handle which vector math library we have.
8981 (rs6000_override_options): Add -mveclibabi=mass support.
8982 (rs6000_builtin_vectorized_libmass): New function to handle auto
8983 vectorizing math functions that are in the MASS library.
8984 (rs6000_builtin_vectorized_function): Call it.
8985
8986 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8987 -mveclibabi=mass.
8988
8989 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8990
8991 PR boehm-gc/34544
8992 * gthr-posix.h (__gthread_active_init): Delete.
8993 (__gthread_active_p): Do activity check here.
8994 Don't include errno.h on hppa-hpux. Update comment.
8995 * gthr-posix95.h (__gthread_active_init): Delete.
8996 (__gthread_active_p): Do activity check here.
8997 Don't include errno.h on hppa-hpux. Update comment.
8998 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
8999 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
9000 add -lpthread when -mt or -pthread is specified.
9001 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
9002 (LINK_GCC_C_SEQUENCE_SPEC): Define.
9003 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
9004 (stublib.c, pthread_default_stacksize_np-stub.o,
9005 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
9006 $(T)libgcc_stub.a): Add methods.
9007 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
9008 (stublib.c, pthread_default_stacksize_np-stub.o,
9009 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
9010 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9011 pthread_mutex_unlock): New stubs.
9012
9013 2010-08-22 Joseph Myers <joseph@codesourcery.com>
9014
9015 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
9016 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
9017 options.
9018 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
9019 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
9020 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
9021 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
9022 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
9023 "-l".
9024 * cppspec.c: Include opts.h.
9025 (lang_specific_driver): Use cl_decoded_option structures.
9026 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
9027 * doc/tm.texi: Regenerate.
9028 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
9029 (driver_handle_option): Allow driver options needing no special
9030 processing.
9031 (process_command): Decode options before call to
9032 lang_specific_driver. Pass decoded options to
9033 lang_specific_driver.
9034 * gcc.h (lang_specific_driver): Update prototype.
9035 * gccspec.c: Include opts.h.
9036 (lang_specific_driver): Use cl_decoded_option structures.
9037 * opts-common.c (option_ok_for_language, generate_option,
9038 generate_option_input_file): New.
9039 (decode_cmdline_option): Use option_ok_for_language.
9040 (decode_cmdline_options_to_array): Use generate_option_input_file.
9041 (handle_generated_option): Use generate_option.
9042 * opts.h (generate_option, generate_option_input_file): Declare.
9043
9044 2010-08-22 Anatoly Sokolov <aesok@post.ru>
9045
9046 * config/mips/mips.c (mips_override_options): Rename to...
9047 (mips_option_override): ...this. Make static.
9048 (TARGET_OPTION_OVERRIDE): Define.
9049 (mips_in_small_data_p): Update comment.
9050 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
9051 (FIXED_REGISTERS): Update comment.
9052 * config/mips/mips-protos.h (mips_override_options): Remove.
9053
9054 2010-08-21 Olivier Hainque <hainque@adacore.com>
9055
9056 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
9057
9058 2010-08-21 Olivier Hainque <hainque@adacore.com>
9059
9060 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
9061 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
9062
9063 2010-08-20 Jan Hubicka <jh@suse.cz>
9064
9065 * tree-pass.h (pass_ipa_cdtor_merge): New function.
9066 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
9067 heap allocated.
9068 (record_cdtor_fn): Move to ipa.c; do not test for
9069 have_ctors_dtors.
9070 (build_cdtor): Move to ipa.c; add code avoiding construction
9071 when target have ctors/dtors and there is only one ctor/dtor at given
9072 priority.
9073 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
9074 sort; reverse order of constructors.
9075 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
9076 (cgraph_finalize_function): Do not call record_cdtor_fn.
9077 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
9078 (cgraph_build_static_cdtor): Move to ipa.c.
9079 * ipa.c: Include target.h and tree-iterator.h.
9080 (cgraph_build_static_cdtor, static_ctors, static_dtors,
9081 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
9082 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
9083 pass_ipa_cdtor_merge): New.
9084 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
9085 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
9086 bounds access.
9087
9088 2010-08-20 Jan Hubicka <jh@suse.cz>
9089
9090 PR c++/45307
9091 PR c++/17736
9092 * cgraph.h (cgraph_only_called_directly_p,
9093 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
9094 static cdtors.
9095 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
9096 are not needed.
9097 (cgraph_finalize_function): Static cdtors are reachable.
9098 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
9099
9100 2010-08-20 Jan Hubicka <jh@suse.cz>
9101
9102 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
9103 flag_wpa.
9104 * lto-streamer-out.c (lto_output): Likewise.
9105 * passes.c (ipa_write_optimization_summaries): Initialize statement
9106 uids.
9107
9108 2010-08-20 Olivier Hainque <hainque@adacore.com>
9109
9110 * tree.h (alias_diag_flags): New enum.
9111 (alias_pair): Add an 'emitted_diags' field.
9112 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
9113 (assemble_alias): Initialize emitted_diags of new pairs.
9114
9115 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
9116
9117 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
9118 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9119 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9120 (STACK_CHECK_PROTECT): Define.
9121 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
9122 (output_probe_stack_range): Likewise.
9123 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
9124 builtin stack checking is enabled.
9125 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
9126 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
9127 (probe_stack_range): New insn.
9128
9129 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
9130
9131 PR target/45336
9132 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
9133 short first.
9134
9135 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
9136 char first.
9137
9138 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9139
9140 PR target/45336
9141 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
9142 to cover zero extension into 64-bit register.
9143 (*sse2_pextrw): Likewise.
9144 (*sse4_1_pextrd_zext): New insn.
9145
9146 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9147
9148 revert r163410, partially revert r163267.
9149 * config/rs6000/darwin.h (LIB_SPEC): Remove.
9150 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
9151 Darwin versions.
9152
9153 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9154
9155 PR middle-end/44974
9156 * builtins.c (expand_builtin): Don't optimize away
9157 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
9158
9159 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
9160
9161 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
9162 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
9163 alternative 1 of operand 2.
9164
9165 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9166 Paolo Bonzini <bonzini@gnu.org>
9167
9168 * simplify-rtx.c (simplify_unary_operation_1): Optimize
9169 (sign_extend (zero_extend (...)) and
9170 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
9171
9172 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9173
9174 PR rtl-optimization/45353
9175 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
9176 after bb_note is a BARRIER.
9177
9178 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9179
9180 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
9181 linking libgcc.a.
9182
9183 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9184 Michael Matz <matz@suse.de>
9185
9186 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
9187
9188 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9189
9190 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
9191 (ggc_mark_roots): ...here.
9192
9193 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9194
9195 * vec.h (FOR_EACH_VEC_ELT): Define.
9196 * c-decl.c: Use it.
9197 * cfgloop.c: Likewise.
9198 * cfgloopmanip.c: Likewise.
9199 * cgraph.c: Likewise.
9200 * cgraphunit.c: Likewise.
9201 * combine.c: Likewise.
9202 * config/bfin/bfin.c: Likewise.
9203 * config/mips/mips.c: Likewise.
9204 * config/rs6000/rs6000.c: Likewise.
9205 * dbxout.c: Likewise.
9206 * df-scan.c: Likewise.
9207 * dominance.c: Likewise.
9208 * dse.c: Likewise.
9209 * dwarf2out.c: Likewise.
9210 * except.c: Likewise.
9211 * expr.c: Likewise.
9212 * function.c: Likewise.
9213 * gcse.c: Likewise.
9214 * genattr.c: Likewise.
9215 * ggc-common.c: Likewise.
9216 * gimplify.c: Likewise.
9217 * graphite-blocking.c: Likewise.
9218 * graphite-clast-to-gimple.c: Likewise.
9219 * graphite-dependences.c: Likewise.
9220 * graphite-interchange.c: Likewise.
9221 * graphite-poly.c: Likewise.
9222 * graphite-scop-detection.c: Likewise.
9223 * graphite-sese-to-poly.c: Likewise.
9224 * graphite.c: Likewise.
9225 * haifa-sched.c: Likewise.
9226 * ifcvt.c: Likewise.
9227 * implicit-zee.c: Likewise.
9228 * ipa-prop.c: Likewise.
9229 * ipa-struct-reorg.c: Likewise.
9230 * ipa.c: Likewise.
9231 * ira-build.c: Likewise.
9232 * ira-color.c: Likewise.
9233 * ira-emit.c: Likewise.
9234 * lambda-code.c: Likewise.
9235 * loop-invariant.c: Likewise.
9236 * loop-unroll.c: Likewise.
9237 * lower-subreg.c: Likewise.
9238 * lto-cgraph.c: Likewise.
9239 * lto-opts.c: Likewise.
9240 * lto-streamer-in.c: Likewise.
9241 * lto-streamer-out.c: Likewise.
9242 * lto-streamer.c: Likewise.
9243 * lto-symtab.c: Likewise.
9244 * matrix-reorg.c: Likewise.
9245 * opts.c: Likewise.
9246 * predict.c: Likewise.
9247 * print-tree.c: Likewise.
9248 * sdbout.c: Likewise.
9249 * sel-sched-dump.c: Likewise.
9250 * sel-sched-ir.c: Likewise.
9251 * sel-sched.c: Likewise.
9252 * sese.c: Likewise.
9253 * stor-layout.c: Likewise.
9254 * tree-cfg.c: Likewise.
9255 * tree-cfgcleanup.c: Likewise.
9256 * tree-chrec.c: Likewise.
9257 * tree-data-ref.c: Likewise.
9258 * tree-emutls.c: Likewise.
9259 * tree-inline.c: Likewise.
9260 * tree-into-ssa.c: Likewise.
9261 * tree-loop-distribution.c: Likewise.
9262 * tree-loop-linear.c: Likewise.
9263 * tree-mudflap.c: Likewise.
9264 * tree-outof-ssa.c: Likewise.
9265 * tree-parloops.c: Likewise.
9266 * tree-predcom.c: Likewise.
9267 * tree-pretty-print.c: Likewise.
9268 * tree-scalar-evolution.c: Likewise.
9269 * tree-ssa-live.c: Likewise.
9270 * tree-ssa-loop-im.c: Likewise.
9271 * tree-ssa-loop-ivcanon.c: Likewise.
9272 * tree-ssa-loop-ivopts.c: Likewise.
9273 * tree-ssa-loop-manip.c: Likewise.
9274 * tree-ssa-loop-niter.c: Likewise.
9275 * tree-ssa-loop-prefetch.c: Likewise.
9276 * tree-ssa-phiprop.c: Likewise.
9277 * tree-ssa-pre.c: Likewise.
9278 * tree-ssa-reassoc.c: Likewise.
9279 * tree-ssa-sccvn.c: Likewise.
9280 * tree-ssa-structalias.c: Likewise.
9281 * tree-ssa.c: Likewise.
9282 * tree-vect-data-refs.c: Likewise.
9283 * tree-vect-loop-manip.c: Likewise.
9284 * tree-vect-loop.c: Likewise.
9285 * tree-vect-patterns.c: Likewise.
9286 * tree-vect-slp.c: Likewise.
9287 * tree-vect-stmts.c: Likewise.
9288 * tree-vrp.c: Likewise.
9289 * tree.c: Likewise.
9290 * value-prof.c: Likewise.
9291 * var-tracking.c: Likewise.
9292 * varasm.c: Likewise.
9293 * vmsdbgout.c: Likewise.
9294
9295 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
9296 Richard Guenther <richard.guenther@gmail.com>
9297
9298 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
9299 copy the src value and return a copy.
9300 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
9301 (C++ Volatiles): Adjust to describe C++ semantics only.
9302
9303 2010-08-20 Joseph Myers <joseph@codesourcery.com>
9304
9305 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
9306 be zero or nonzero.
9307 * doc/tm.texi: Regenerate.
9308 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
9309 * df-scan.c (df_get_exit_block_use_set), reginfo.c
9310 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
9311 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
9312 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
9313 to 1.
9314
9315 2010-08-20 Olivier Hainque <hainque@adacore.com>
9316
9317 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
9318 an extra nop past a sibling call at the very end.
9319
9320 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
9321
9322 PR bootstrap/45350
9323 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
9324 a comment.
9325
9326 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
9327
9328 * target.def (function_arg, function_incoming_arg): Remove const
9329 qualifier on CUMULATIVE_ARGS parameter.
9330 * targhooks.h (default_function_arg, default_function_incoming_arg):
9331 Likewise.
9332 * targhooks.c (default_function_arg, default_function_incoming_arg):
9333 Likewise.
9334 * config/i386/i386.c (ix86_function_arg): Likewise.
9335
9336 2010-08-19 Jakub Jelinek <jakub@redhat.com>
9337
9338 PR target/45336
9339 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
9340 SIGN_EXTENDs or ZERO_EXTENDs.
9341
9342 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
9343
9344 PR target/42172
9345 * combine.c (combine_validate_cost): New arg I0. All callers changed.
9346 Take its cost into account if nonnull.
9347 (insn_a_feeds_b): New static function.
9348 (combine_instructions): Look for four-insn combinations.
9349 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
9350 them into account when computing all_adjacent and looking for other
9351 uses.
9352 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
9353 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
9354 (try_combine): New arg I0. Handle four-insn combinations.
9355 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
9356 like ELIM_I1.
9357
9358 2010-08-19 Jason Merrill <jason@redhat.com>
9359
9360 PR c++/45307
9361 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
9362 if ctor is empty.
9363 (gimplify_modify_expr_rhs): Adjust.
9364
9365 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
9366
9367 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
9368 bitmap_bit_p.
9369 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
9370 * dominance.c (iterate_fix_dominators): Likewise.
9371 * dse.c (set_usage_bits): Likewise.
9372 (set_position_unneeded, record_store): Likewise.
9373 * gimple-fold.c (get_maxval_strlen): Likewise.
9374 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
9375 * ipa-inline.c (update_caller_keys): Likewise.
9376 * ipa-split.c (verify_non_ssa_vars): Likewise.
9377 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
9378 (close_type_exposed_parameter, close_type_full_escape): Likewise.
9379 (close_addressof_down): Likewise.
9380 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
9381 (setup_allocno_left_conflicts_size): Likewise.
9382 (ira_reassign_conflict_allocnos): Likewise.
9383 (ira_reassign_pseudos): Likewise.
9384 * ira-emit.c (change_loop): Likewise.
9385 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
9386 * lto-streamer-out.c (write_symbol): Likewise.
9387 * predict.c (expr_expected_value_1): Likewise.
9388 * regstat.c (regstat_bb_compute_ri): Likewise.
9389 * sel-sched.c (create_block_for_bookkeeping): Likewise.
9390 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
9391 * stmt.c (expand_case): Likewise.
9392 * tree-eh.c (emit_eh_dispatch): Likewise.
9393 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
9394 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
9395 Likewise.
9396 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
9397 (rdg_build_components): Likewise.
9398 * tree-object-size.c (collect_object_sizes_for): Likewise.
9399 * tree-sra.c (convert_callers): Likewise.
9400 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
9401 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
9402 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
9403
9404 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
9405
9406 * config/i386/i386.md (*lea_1): Use P mode iterator.
9407 (lea add splitter): Also handle DImode operands.
9408 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
9409 predicate. Do not use ix86_lea_for_add_ok.
9410 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
9411 (lea ashift splitter): Also handle DImode operands.
9412 (DImode lea ashift splitter): Remove splitter.
9413
9414 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
9415
9416 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
9417 ix86_binary_operator_ok.
9418
9419 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
9420
9421 PR rtl-optimization/44691
9422 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
9423 is not a register.
9424
9425 2010-08-19 Ian Bolton <ian.bolton@arm.com>
9426
9427 PR target/45070
9428 * config/arm/arm.c (arm_output_epilogue): Ensure that return
9429 value of size 1-3 is handled correctly.
9430
9431 2010-08-19 Ian Bolton <ian.bolton@arm.com>
9432
9433 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
9434 type for the conditional has wide enough range.
9435
9436 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
9437
9438 PR target/45327
9439 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
9440 ix86_binary_operator_ok.
9441
9442 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
9443
9444 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
9445 <default>: Swap operands 1 and 2 for alternative 2 to use existing
9446 code to output insn mnemonic. Fix comment.
9447 (*addsi_1_zext): Add r-r-0 alternative 1.
9448 <TYPE_LEA>: Split insn to lea.
9449 <default>: Handle alternative 1.
9450 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
9451 multi-level if_then_else RTX to set "type" attribute.
9452 <default>: Handle alternative 2.
9453 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
9454 Use cond RTX instead of multi-level if_then_else RTX to set
9455 "type" attribute.
9456 <default>: Handle alternatives 2 and 4.
9457 (lea splitters): Update calls to ix86_lea_for_add_ok.
9458
9459 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
9460 argument.
9461 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
9462
9463 2010-08-18 Richard Guenther <rguenther@suse.de>
9464
9465 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
9466 use operand helpers.
9467
9468 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
9469
9470 PR middle-end/45292
9471 * optabs.c (expand_bool_compare_and_swap): Expand pending
9472 pops before trying the optab.
9473
9474 2010-08-18 Yao Qi <yao@codesourcery.com>
9475
9476 PR target/45094
9477 * config/arm/arm.c (output_move_double): Fix typo generating
9478 instructions ('ldr'->'str').
9479
9480 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9481
9482 PR rtl-optimization/42575
9483 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
9484 live ranges.
9485
9486 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
9487
9488 * config/arm/arm-protos.h (arm_expand_sync): New.
9489 (arm_output_memory_barrier, arm_output_sync_insn): New.
9490 (arm_sync_loop_insns): New.
9491 * config/arm/arm.c (FL_ARCH7): New.
9492 (FL_FOR_ARCH7): Include FL_ARCH7.
9493 (arm_arch7): New.
9494 (arm_print_operand): Support %C markup.
9495 (arm_legitimize_sync_memory): New.
9496 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
9497 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
9498 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
9499 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
9500 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
9501 (arm_process_output_sync_insn, arm_output_sync_insn): New.
9502 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
9503 * config/arm/arm.h (struct arm_sync_generator): New.
9504 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
9505 (TARGET_HAVE_MEMORY_BARRIER): New.
9506 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
9507 * config/arm/arm.md: Include sync.md.
9508 (UNSPEC_MEMORY_BARRIER): New.
9509 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
9510 (VUNSPEC_SYNC_OP):New.
9511 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
9512 (sync_result, sync_memory, sync_required_value): New attributes.
9513 (sync_new_value, sync_t1, sync_t2): Likewise.
9514 (sync_release_barrier, sync_op): Likewise.
9515 (length): Add logic to length attribute defintion to call
9516 arm_sync_loop_insns when appropriate.
9517 * config/arm/sync.md: New file.
9518
9519 2010-08-17 Jakub Jelinek <jakub@redhat.com>
9520
9521 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
9522 ENABLE_TREE_CHECKING.
9523 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
9524 and GCC >= 4.3.
9525
9526 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
9527
9528 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
9529 or optimizing for size, always avoid lea if possible.
9530
9531 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
9532
9533 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
9534
9535 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
9536 Dunmmy function with NULL return unless the target is
9537 OSX >= 10.6 (Darwin10).
9538
9539 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
9540
9541 * gcc.c (spec_function): Add remove-outfile.
9542 (remove_outfile_spec_function): New function.
9543 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
9544 * invoke.texi (replace-outfile): Document.
9545
9546 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
9547
9548 PR target/45296
9549 * reginfo.c (globalize_reg): Reject stack registers.
9550
9551 2010-08-17 Richard Guenther <rguenther@suse.de>
9552
9553 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
9554 list of conditional equivalences.
9555 (free_all_edge_infos): Adjust.
9556 (record_equivalences_from_incoming_edge): Likewise.
9557 (record_cond): Likewise.
9558 (build_and_record_new_cond): Likewise.
9559 (record_conditions): Likewise.
9560 (dom_opt_leave_block): Likewise.
9561
9562 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
9563
9564 * doc/invoke.texi (ms-extension): Add documentation.
9565
9566 2010-08-17 Richard Guenther <rguenther@suse.de>
9567
9568 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
9569
9570 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
9571
9572 PR c/40563
9573 * c-decl.c (diagnose_uninitialized_cst_member): New function.
9574 (finish_decl): Use it to issue a -Wc++-compat warning about
9575 uninitialized const field in struct or union.
9576
9577 (finish_struct): Use strip_array_types.
9578
9579 2010-08-17 Jakub Jelinek <jakub@redhat.com>
9580
9581 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
9582 functions.
9583 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
9584 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
9585 call block_nreverse here.
9586 (blocks_nreverse): Rename decl temporary to block.
9587
9588 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
9589
9590 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
9591 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
9592 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
9593 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
9594 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
9595 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
9596 thumb2_iorsi3): Delete.
9597 (orsi_notsi_si): No longer a named pattern.
9598 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
9599 * config/arm/predicates.md (shift_amount_operand): New.
9600 (mult_operator): New.
9601 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
9602 attr enabled): New.
9603 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
9604 arch matches t2.
9605 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
9606 (not_shiftsi_compare0): Likewise, renamed from
9607 arm_notsi_shiftsi_compare0.
9608 (not_shiftsi_compare0_scratch): Likweise, renamed from
9609 arm_notsi_shiftsi_compare0_scratch.
9610 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
9611 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
9612 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
9613 so that the register alternative is disabled when the shift_operator
9614 is MULT. Use "M" as the constraint for constants.
9615 (arith_shiftsi splitter): Enable for TARGET_32BIT.
9616 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
9617 constraint for constants.
9618 (arith_shiftsi_compare0_scratch): Likewise.
9619 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
9620 Handle Thumb2 alternative.
9621
9622 2010-08-16 Joseph Myers <joseph@codesourcery.com>
9623
9624 * doc/options.texi (NoDriverArg): Document.
9625 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
9626 -MDX and -MMDX.
9627 * opt-functions.awk (switch_flags): Handle NoDriverArg.
9628 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
9629 marking for CL_NO_DRIVER_ARG options when in the driver.
9630 * opts.h (CL_NO_DRIVER_ARG): Define.
9631 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
9632 CL_COMMON): Update values.
9633
9634 2010-08-16 Joseph Myers <joseph@codesourcery.com>
9635
9636 * common.opt: Add driver options.
9637 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
9638 * doc/options.texi (Driver, RejectDriver): Document.
9639 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
9640 print_prog_name, print_multi_directory, print_sysroot,
9641 print_multi_os_directory, print_multi_lib,
9642 print_sysroot_headers_suffix, report_times, combine_flag,
9643 use_pipes, wrapper_string): Remove.
9644 (save_switch, driver_unknown_option_callback,
9645 driver_wrong_lang_callback, driver_post_handling_callback,
9646 driver_handle_option): New.
9647 (spec_lang, last_language_n_infiles): Make file-scope static
9648 instead of local to process_command.
9649 (process_command): Use decode_cmdline_options_to_array and
9650 read_cmdline_option for option processing. Compute have_c in
9651 prescan of decoded options.
9652 * opt-functions.awk (switch_flags): Handle Driver and
9653 RejectDriver.
9654 (var_type, var_type_struct): Handle Separate options as generating
9655 const char * variables.
9656 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
9657 CL_TARGET to be passed by caller if required.
9658 (decode_cmdline_options_to_array): Update comment.
9659 * opts.c (complain_wrong_lang): Handle options only valid for the
9660 driver.
9661 (decode_options): Update call to decode_cmdline_options_to_array.
9662 (print_filtered_help): Ignore driver-only options.
9663 (print_specific_help): Ignore CL_DRIVER.
9664 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
9665 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
9666 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
9667 Update values.
9668
9669 2010-08-16 Richard Guenther <rguenther@suse.de>
9670
9671 * tree-cfg.c (verify_types_in_gimple_reference): Verify
9672 TARGET_MEM_REF a bit.
9673 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
9674 (create_mem_ref_raw): Always create TMR_OFFSET, store the
9675 alias pointer type via it.
9676 (copy_mem_ref_info): Adjust.
9677 (maybe_fold_tmr): Likewise.
9678 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
9679 (reference_alias_ptr_type): Likewise.
9680 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
9681 adjust documentation of TMR_OFFSET operand.
9682 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
9683 use the alias pointer type.
9684 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
9685 initialize mem attrs but the TMR itself.
9686 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
9687 similar to MEM_REF.
9688 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
9689 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
9690 (unshare_and_remove_ssa_names): Likewise.
9691 (copy_ref_info): Adjust.
9692 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
9693 TARGET_MEM_REF case.
9694 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
9695 at TMR_ORIGINAL.
9696 * tree.h (TMR_ORIGINAL): Remove.
9697 * gimple.c (get_base_address): For TARGET_MEM_REF with a
9698 symbol return that.
9699 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
9700 with a symbol.
9701 (get_addr_base_and_unit_offset): Likewise.
9702 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
9703 TARGET_MEM_REFs.
9704 (indirect_ref_may_alias_decl_p): Likewise.
9705 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
9706
9707 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
9708
9709 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
9710 with GCC version 4.6, the default setting (when not optimizing
9711 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
9712 been changed to -fomit-frame-pointer.
9713
9714 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
9715
9716 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
9717 Darwin10. Do not link libgcc.a for Darwin >= 9.
9718
9719 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
9720
9721 * doc/invoke.texi (Warning Options): Fix terminology and markup
9722 in the description of how unknown warning options are handled.
9723
9724 2010-08-15 Ira Rosen <irar@il.ibm.com>
9725
9726 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
9727 in basic blocks.
9728 (vect_supportable_dr_alignment): Check alignment for basic blocks.
9729 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
9730 data references.
9731 (vect_bb_vectorization_profitable_p): New function.
9732 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
9733 check if it's worthwhile to vectorize the basic block.
9734
9735 2010-08-14 Anatoly Sokolov <aesok@post.ru>
9736
9737 * reload.h (register_move_cost, memory_move_secondary_cost,
9738 secondary_reload_class): Adjust prototype.
9739 * rtl.h (reg_class_subset_p): Adjust prototype.
9740 * reload.c (secondary_reload_class): Change arguments type from
9741 enum reg_class to reg_class_t. Change result type to reg_class_t.
9742 * reginfo.c (register_move_cost, reg_class_subset_p): Change
9743 arguments type from enum reg_class to reg_class_t.
9744 (memory_move_secondary_cost): Change arguments type from
9745 enum reg_class to reg_class_t. Change type of saved_flags to
9746 reg_class_t.
9747
9748 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9749 Remove macros.
9750 (mips_cost): Remove.
9751 (struct mips_rtx_cost_data): Moved to mips.c.
9752 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
9753 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
9754 (mips_cost): Make static.
9755 (mips_canonicalize_move_class): Change argument type to reg_class_t.
9756 Change result type to reg_class_t.
9757 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
9758 type from enum reg_class to reg_class_t.
9759 (mips_register_move_cost): Make static. Change arguments
9760 type from enum reg_class to reg_class_t.
9761 (mips_memory_move_cost): New function.
9762 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9763
9764 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
9765
9766 PR rtl-optimization/43358
9767 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
9768 of a single hard register, using simplify_subreg_regno to decide
9769 what that register should be.
9770
9771 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
9772
9773 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
9774 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
9775 (loongson_pmull<V_suffix>): Rename to...
9776 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
9777
9778 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
9779
9780 * configure.ac: Enable -fomit-frame-pointer on darwin
9781 which support dwarf2.
9782 * config/i386/i386.c (override_options): Same.
9783
9784 2010-08-13 Jie Zhang <jie@codesourcery.com>
9785
9786 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
9787
9788 2010-08-12 Joseph Myers <joseph@codesourcery.com>
9789
9790 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
9791 -MMD.
9792
9793 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
9794
9795 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
9796 up dot_prod pattern searching if a stmt is outside the loop.
9797
9798 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
9799 Uros Bizjak <ubizjak@gmail.com>
9800
9801 * config.gcc: Handle --enable-frame-pointer.
9802
9803 * configure.ac: Add --enable-frame-pointer.
9804 * configure: Regenerated.
9805
9806 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
9807 (override_options): If not configured with --enable-frame-pointer,
9808 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
9809 optimizing for size), -fasynchronous-unwind-tables and
9810 -maccumulate-outgoing-args by default.
9811
9812 2010-08-12 Jakub Jelinek <jakub@redhat.com>
9813
9814 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
9815
9816 PR middle-end/45262
9817 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
9818 -a overflows. Normalize the range.
9819
9820 2010-08-12 Richard Guenther <rguenther@suse.de>
9821
9822 PR tree-optimization/45232
9823 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
9824 for types with undefined overflow.
9825 (reassociate_bb): Allow re-associating of bit and min/max
9826 operations for types with undefined overflow.
9827 * tree-ssa-forwprop.c (associate_plusminus): New function.
9828 (tree_ssa_forward_propagate_single_use_vars): Call it.
9829
9830 2010-08-12 Richard Guenther <rguenther@suse.de>
9831
9832 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
9833 * tree-ssa-alias.c (get_ptr_info): Move ...
9834 * tree-ssanames.c (get_ptr_info): ... here. Initialize
9835 align and misalign fields conservatively.
9836 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
9837 derive alignment information.
9838 (evaluate_stmt): Derive alignment information from memory
9839 allocation functions.
9840 * tree.h (get_pointer_alignment): Make unsigned.
9841 * builtins.c (get_object_alignment): Use alignment information we
9842 have computed for pointers.
9843 (get_pointer_alignment): Likewise. Make conservative, return
9844 and unsigned value.
9845 (expand_builtin_strlen): Adjust.
9846 (expand_builtin_memcmp): Likewise.
9847 (expand_builtin_strcmp): Likewise.
9848 (expand_builtin_strncmp): Likewise.
9849 (get_builtin_sync_mem): Use at least mode alignment.
9850 (fold_builtin_memset): Adjust.
9851 (fold_builtin_memory_op): Likewise.
9852 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
9853 information also dump pointer alignment knowledge.
9854 (dump_gimple_stmt): Likewise.
9855
9856 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
9857
9858 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
9859 (EMPTY_FIELD_BOUNDARY): Remove.
9860 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
9861
9862 2010-08-12 Jakub Jelinek <jakub@redhat.com>
9863
9864 PR debug/45259
9865 * caller-save.c (save_call_clobbered_regs): Only swap notes with
9866 DEBUG_INSNs if n_regs_saved.
9867
9868 2010-08-12 Wei Guozhi <carrot@google.com>
9869
9870 PR target/44999
9871 * config/arm/arm.md (andsi3): Change to zero extension if possible.
9872 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
9873
9874 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
9875
9876 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
9877
9878 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
9879
9880 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9881
9882 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
9883 the case removed in the previous patch, when the only phi argument
9884 is defined in the same loop as the phi node itself. Handle it
9885 separately from the invariant case by both propagating it outside
9886 the region and replacing the phi node with an assign.
9887
9888 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9889
9890 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
9891 constant phi nodes with one argument are is_gimple_min_invariant
9892 and SSA_NAME_IS_DEFAULT_DEF.
9893
9894 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9895
9896 * graphite-cloog-util.c (oppose_constraint):
9897 Extend loop counter's value range (CLOOG_ORG).
9898 (cloog_matrix_to_ppl_constraint): Same.
9899 (new_Constraint_System_from_Cloog_matrix): Same.
9900 * graphite-cloog-compat.h (matrix_num_type): New.
9901
9902 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9903
9904 * graphite.c (graphite_initialize): Do not initialize
9905 CLooG and initialize the Parma Polyhedra Library
9906 manually when using CLOOG_ORG.
9907 (graphite_finalize): Do not finalize CLooG and finalize
9908 the Parma Polyhedra Library manually when using CLOOG_ORG.
9909 * graphite-cloog-compat.h (cloog_initialize): Hide function
9910 when using CLOOG_ORG.
9911 (cloog_finalize): Same.
9912
9913 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9914
9915 * graphite-clast-to-gimple.c (free_scattering): Change
9916 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
9917 (CLOOG_ORG).
9918 (build_cloog_prog): Same.
9919 * graphite-cloog-compat.h (cloog_domain): Removed.
9920 (cloog_scattering): New.
9921 (cloog_set_domain): Removed.
9922 (cloog_set_scattering): New.
9923 (cloog_next_domain): Removed.
9924 (cloog_next_scattering): New.
9925 (cloog_set_next_domain): Removed.
9926 (cloog_set_next_scattering): New.
9927 (CloogScatteringList): New.
9928 (CloogScattering): New.
9929 (cloog_scattering_free): New.
9930 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
9931 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
9932 New.
9933
9934 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9935
9936 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
9937 CloogState.
9938 (set_cloog_options): Same.
9939 (print_clast_stmt): Same.
9940 (scop_to_clast): Same.
9941 (print_generated_program): Same.
9942 (gloog): Same.
9943 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
9944 (scop_to_clast): Extend with CloogState.
9945 * graphite-cloog-util.c: Include graphite-cloog-compat.h
9946 (new_Cloog_Domain_from_ppl_Polyhedron):
9947 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
9948 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
9949 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
9950 * graphite-cloog-util.h (build_cloog_prog): Same.
9951 * graphite-cloog-copat.h (build_cloog_prog): New.
9952 (CloogState): New.
9953 (cloog_state_malloc): New.
9954 (cloog_state_free): New.
9955 (cloog_loop_malloc): New.
9956 (cloog_options_malloc): New.
9957 (cloog_statement_alloc): New.
9958 (cloog_domain_from_cloog_matrix): New.
9959 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
9960 (new_Cloog_Domain_from_ppl_Polyhedron): New.
9961
9962 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9963
9964 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
9965 type of NAME now depends on used CLooG version.
9966 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
9967 (gcc_type_for_clast_expr): Same.
9968 (print_clast_stmt): Replace pprint with clast_pprint.
9969 * graphite-cloog-compat.h: Provide compatibility macros for
9970 CLooG Legacy.
9971 (clast_name_p): New.
9972 (clast_expr_term): New.
9973 (clast_expr_red): New.
9974 (clast_expr_bin): New.
9975 (clast_pprint): New.
9976
9977 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9978
9979 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
9980 compatible to newer CLooG releases (CLOOG_ORG).
9981 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
9982 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
9983 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
9984 (build_cloog_prog) : New.
9985 (cloog_program_extract_scalars): New.
9986 (cloog_program_scatter): New.
9987
9988 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9989
9990 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
9991 conditionally (CLOOG_ORG).
9992 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
9993 (cloog_statement_usr): New.
9994 (cloog_domain): Same.
9995 (cloog_set_domain): Same.
9996 (cloog_next_domain): Same.
9997 (cloog_set_next_domain): Same.
9998 (cloog_program_nb_scattdims): Same.
9999 (cloog_program_set_nb_scattdims): Same.
10000 (cloog_program_names): Same.
10001 (cloog_program_set_names): Same.
10002 (cloog_program_set_context): Same.
10003 (cloog_program_set_loop): Same.
10004 (cloog_program_blocklist): Same.
10005 (cloog_program_set_blocklist): Same.
10006 (cloog_program_scaldims): Same.
10007 (cloog_program_set_scaldims): Same.
10008 (cloog_names_nb_parameters): Same.
10009 (cloog_names_set_nb_parameters): Same.
10010 (cloog_names_parameters): Same.
10011 (cloog_names_set_parameters): Same.
10012 (cloog_names_set_nb_iterators): Same.
10013 (cloog_names_set_iterators): Same.
10014 (cloog_names_set_nb_scattering): Same.
10015 (cloog_names_set_scattering): Same.
10016 (cloog_statement_set_usr): Same.
10017 (cloog_loop_set_next): Same.
10018 (cloog_loop_set_domain): Same.
10019 (cloog_loop_set_block): Same.
10020 (cloog_block_list_next): Same.
10021 (cloog_block_list_set_next):
10022 (cloog_block_list_set_block): Same.
10023
10024 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10025
10026 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
10027 a bool.
10028 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
10029 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
10030 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
10031 when something has been changed.
10032 (rewrite_commutative_reductions_out_of_ssa): Same.
10033
10034 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10035
10036 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
10037 handle the case when def is in the sese region.
10038 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
10039 for invariant expressions.
10040 (rewrite_cross_bb_phi_deps): Removed.
10041 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
10042 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
10043 rewrite_cross_bb_phi_deps.
10044
10045 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10046
10047 * graphite-sese-to-poly.c
10048 (rewrite_commutative_reductions_out_of_ssa_loop): Call
10049 scev_analyzable_p only on is_gimple_reg
10050
10051 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10052
10053 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
10054 (rewrite_close_phi_out_of_ssa): Propagate constant values or
10055 parametric expressions outside the scop region.
10056 (rewrite_cross_bb_scalar_deps): Same.
10057 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
10058
10059 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10060
10061 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
10062 SSA_NAME_DEF_STMT only on SSA_NAMEs.
10063
10064 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10065
10066 * tree-scalar-evolution.c (instantiate_scev_name): Do not
10067 instantiate default definitions.
10068
10069 2010-08-11 Vladimir Kargov <kargov@gmail.com>
10070 Sebastian Pop <sebastian.pop@amd.com>
10071
10072 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
10073 (loop_exits_from_bb_p): New.
10074 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
10075 (loop_exits_from_bb_p): Declared.
10076 * graphite-scop-detection.c (scopdet_basic_block_info): Call
10077 loop_exits_to_bb_p.
10078
10079 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10080
10081 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
10082 extra parameter for the region. Call scev_analyzable_p.
10083 (rewrite_reductions_out_of_ssa): Update call to
10084 rewrite_close_phi_out_of_ssa.
10085 (rewrite_cross_bb_phi_deps): Same.
10086 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
10087 parameter for the region. Call scev_analyzable_p.
10088 (rewrite_commutative_reductions_out_of_ssa): Update call to
10089 rewrite_commutative_reductions_out_of_ssa_loop.
10090
10091 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10092
10093 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
10094
10095 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10096
10097 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
10098 SSA scalar phi nodes that can be scev_analyzable_p.
10099
10100 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10101
10102 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
10103 handle SSA_NAME_IS_DEFAULT_DEF.
10104
10105 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10106
10107 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
10108
10109 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10110
10111 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
10112 case non close-phi nodes with one argument.
10113
10114 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10115
10116 * sese.h (scev_analyzable_p): Scevs could be expressions without
10117 chrecs and still be scev_analyzable_p.
10118
10119 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10120
10121 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10122
10123 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10124
10125 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
10126 * cfgloop.h (struct loop): Remove single_iv field.
10127 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
10128 (scop_canonicalize_loops): Removed.
10129 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
10130 over all the loop phi nodes in loop->header.
10131 (build_poly_scop): Remove use of scop_canonicalize_loops.
10132
10133 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10134
10135 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
10136 handle GIMPLE_CALL.
10137
10138 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10139
10140 * tree-chrec.c (chrec_apply): Should only apply to the specified
10141 variable. Also handle multivariate chains of recurrences that
10142 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
10143
10144 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10145
10146 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
10147 (debug_clast_name_indexes_1): Removed.
10148 (debug_clast_name_indexes): Removed.
10149 (pbb_to_depth_to_oldiv): Removed.
10150 (build_iv_mapping): Replace the use of rename_map with iv_map.
10151 (translate_clast_user): Remove uses of rename_map. Allocate and
10152 free iv_map.
10153 (translate_clast_for_loop): Remove uses of rename_map.
10154 (translate_clast_for): Same.
10155 (translate_clast_guard): Same.
10156 (translate_clast): Same.
10157 (gloog): Same.
10158 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
10159 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
10160 * sese.c (set_rename): Now static.
10161 (rename_variables_in_stmt): Removed.
10162 (rename_uses): New.
10163 (is_parameter): Removed.
10164 (is_iv): Removed.
10165 (expand_scalar_variables_call): Removed.
10166 (expand_scalar_variables_ssa_name): Removed.
10167 (expand_scalar_variables_expr): Removed.
10168 (expand_scalar_variables_stmt): Removed.
10169 (expand_scalar_variables): Removed.
10170 (rename_variables): Removed.
10171 (remove_condition): Removed.
10172 (get_true_edge_from_guard_bb): Removed.
10173 (get_false_edge_from_guard_bb): Removed.
10174 (struct igp): Removed.
10175 (default_before_guard): Removed.
10176 (convert_for_phi_arg): Removed.
10177 (add_guard_exit_phis): Removed.
10178 (insert_guard_phis): Removed.
10179 (graphite_copy_stmts_from_block): Now also uses iv_map and a
10180 region. Do not copy conditions. Do not copy induction variables.
10181 Call rename_uses.
10182 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
10183 the translated statement. Use the iv_map for the induction
10184 variable renaming.
10185 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
10186 (set_rename): Removed declaration.
10187 (scev_analyzable_p): ...here.
10188 * tree-chrec.c (chrec_apply_map): New.
10189 * tree-chrec.h (chrec_apply_map): Declared.
10190
10191 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10192
10193 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
10194 insert_loop_close_phis.
10195 * sese.c (name_defined_in_loop_p): Removed.
10196 (expr_defined_in_loop_p): Removed.
10197 (alive_after_loop): Removed.
10198 (close_phi_not_yet_inserted_p): Removed.
10199 (struct alep): Removed.
10200 (add_loop_exit_phis): Removed.
10201 (insert_loop_close_phis): Removed.
10202
10203 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10204
10205 * graphite-cloog-util.c
10206 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
10207 * graphite-poly.c
10208 (psct_scattering_dim_for_loop_depth): Same.
10209
10210 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10211
10212 * graphite-cloog-util.h: Added cloog.h.
10213 * graphite-blocking.c: Removed cloog.h.
10214 * graphite-dependences.c: Same.
10215 * graphite-interchange.c: Same.
10216 * graphite-poly.c: Same.
10217 * graphite-ppl.c: Same.
10218 * graphite-scop-detection.c: Same.
10219 * graphite-sese-to-poly.c:
10220 Removed cloog.h.
10221 Removed graphite-clast-to-gimple.h.
10222 (check_poly_representation): Removed (unused).
10223 * graphite-sese-to-poly.h
10224 (check_poly_representation): Removed (unused).
10225
10226 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10227
10228 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
10229 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
10230 (graphite-cloog-util.o): New.
10231 (graphite-ppl.o): Added graphite-cloog-util.h.
10232 * graphite-clast-to-gimple.c:
10233 Added graphite-cloog-util.h to include statements.
10234 * graphite-cloog-util.c: New.
10235 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
10236 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10237 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10238 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10239 (insert_constraint_into_matrix): Same.
10240 (ppl_Constrain_System_number_of_constraints): Same.
10241 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10242 (oppose_constraint): Same.
10243 (cloog_matrix_to_ppl_constraint): Same.
10244 (new_Constraint_System_from_Cloog_Matrix): Same.
10245 * graphite-cloog-util.h: New.
10246 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
10247 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10248 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10249 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10250 (insert_constraint_into_matrix): Same.
10251 * graphite-ppl.c:
10252 Added graphite-cloog-util.h to include statements.
10253 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
10254 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10255 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10256 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10257 (insert_constraint_into_matrix): Same.
10258 (ppl_Constrain_System_number_of_constraints): Same.
10259 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10260 (oppose_constraint): Same.
10261 (cloog_matrix_to_ppl_constraint): Same.
10262 (new_Constraint_System_from_Cloog_Matrix): Same.
10263 * graphite-ppl.h:
10264 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
10265 graphite-cloog-util.h.
10266 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10267 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10268 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10269 (insert_constraint_into_matrix): Same.
10270
10271 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10272
10273 * graphite-clast-to-gimple.c
10274 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
10275 (precision_for_interval): Same.
10276 (gcc_type_for_interval): Same.
10277 (compute_type_for_level): Same.
10278 * graphite-interchange.c
10279 (lst_interchange_profitable_p): Same.
10280 * graphite-poly.c
10281 (psct_scattering_dim_for_loop_depth): Same.
10282 * graphite-ppl.c
10283 (ppl_max_for_le_pointset): Same.
10284 (ppl_min_for_le_pointset): Same.
10285
10286 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10287
10288 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
10289 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
10290
10291 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10292
10293 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
10294 rewrite_close_phi_out_of_ssa.
10295
10296 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10297
10298 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
10299
10300 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10301
10302 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
10303 rename_map.
10304 * sese.c (debug_rename_map): Same.
10305 (get_rename): Same.
10306 (set_rename): Same.
10307 (rename_variables_in_stmt): Same.
10308 (expand_scalar_variables_call): Same.
10309 (expand_scalar_variables_ssa_name): Same.
10310 (expand_scalar_variables_expr): Same.
10311 (expand_scalar_variables_stmt): Same.
10312 (expand_scalar_variables): Same.
10313 (rename_variables): Same.
10314 (graphite_copy_stmts_from_block): Same.
10315 (copy_bb_and_scalar_dependences): Same.
10316
10317 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10318
10319 * graphite-clast-to-gimple.c (copy_renames): Removed.
10320 (translate_clast_for): Do not call copy_renames.
10321 (translate_clast_guard): Same.
10322
10323 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10324
10325 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
10326 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
10327 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
10328 before rewrite_cross_bb_scalar_deps.
10329
10330 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10331
10332 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
10333 Early return in when flag_associative_math is not set.
10334
10335 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10336
10337 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
10338 of SSA copies on edges except for loop->latch.
10339
10340 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10341
10342 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
10343 Split out of rewrite_reductions_out_of_ssa.
10344 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
10345 Declared.
10346 * graphite.c (graphite_transform_loops): Call it.
10347
10348 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10349
10350 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
10351
10352 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
10353
10354 * dbgcnt.def (graphite_scop): New counter.
10355 * graphite.c: Include dbgcnt.h.
10356 (graphite_transform_loops): Use new counter to limit transformations.
10357 * Makefile.in (graphite.o): Depend on DBGCNT_H.
10358
10359 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10360
10361 * passes.c (init_optimization_passes): Add pass_graphite.
10362 Schedule a pass_copy_prop before pass_graphite_transforms.
10363 * timevar.def (TV_GRAPHITE): Declared.
10364 * tree-pass.h (pass_graphite): Declared.
10365 * tree-ssa-loop.c (pass_graphite): New.
10366
10367 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10368
10369 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
10370 Remove calls to rename_nb_iterations and rename_sese_parameters.
10371 * graphite-clast-to-gimple.h (gloog): Update declaration.
10372 * graphite.c (graphite_transform_loops): Update call to gloog.
10373 * sese.c (rename_variables_in_expr): Removed.
10374 (rename_nb_iterations): Removed.
10375 (rename_sese_parameters): Removed.
10376 * sese.h (rename_nb_iterations): Removed.
10377 (rename_sese_parameters): Removed.
10378
10379 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10380
10381 * graphite-clast-to-gimple.c (gloog): Remove call to
10382 sese_adjust_liveout_phis.
10383 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
10384 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
10385 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
10386 rewrite_phi_out_of_ssa.
10387 * sese.c (get_vdef_before_sese): Removed.
10388 (sese_adjust_vphi): Removed.
10389 (sese_adjust_liveout_phis): Removed.
10390 * sese.h (sese_adjust_liveout_phis): Removed.
10391
10392 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10393
10394 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
10395 argument for the place after which to insert the out of SSA copy.
10396 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
10397 (rewrite_phi_out_of_ssa): Same.
10398 (rewrite_cross_bb_scalar_deps): Same.
10399 (insert_copyout): Removed.
10400 (insert_copyin): Removed.
10401 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
10402 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
10403 insert_copyin.
10404
10405 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10406
10407 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
10408 (rewrite_reductions_out_of_ssa): Same.
10409 (rewrite_commutative_reductions_out_of_ssa): Same.
10410 (build_poly_scop): Do not call these functions.
10411 * graphite-sese-to-poly.h (build_poly_scop): Declared.
10412 (rewrite_reductions_out_of_ssa): Declared.
10413 (rewrite_commutative_reductions_out_of_ssa): Declared.
10414 * graphite.c (graphite_transform_loops): Call on every scop
10415 rewrite_commutative_reductions_out_of_ssa before calling
10416 rewrite_reductions_out_of_ssa and build_scop_bbs.
10417
10418 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10419
10420 * graphite-dependences.c (dot_deps): Make system call to dotty run
10421 in background.
10422 (dot_deps_stmt): Same.
10423 * graphite-poly.c (dot_lst): Same.
10424
10425 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10426
10427 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
10428 phi_arg_in_outermost_loop.
10429 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
10430 (remove_invariant_phi): Same.
10431
10432 2010-08-11 Anatoly Sokolov <aesok@post.ru>
10433
10434 * target.def (output_addr_const_extra): New hook.
10435 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
10436 * doc/tm.texi: Regenerate.
10437 * targhooks.c (default_asm_output_addr_const_extra): New function.
10438 * targhooks.h (default_asm_output_addr_const_extra): Declare.
10439 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
10440 target hook.
10441
10442 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10443 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
10444 * config/i386/i386.h (output_addr_const_extra): Rename to...
10445 (i386_asm_output_addr_const_extra): ...this. Make static.
10446 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10447
10448 2010-08-11 Richard Henderson <rth@redhat.com>
10449
10450 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
10451
10452 2010-08-11 Nick Clifton <nickc@redhat.com>
10453
10454 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
10455 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
10456 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
10457 stormy16-lib2-cmpsi.c.
10458
10459 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
10460 -O2.
10461
10462 2010-08-11 Joseph Myers <joseph@codesourcery.com>
10463
10464 * opts.h (struct cl_option_handler_func): Make handler take
10465 cl_decoded_option structure as parameter, not individual elements.
10466 (struct cl_option_handlers): Make callbacks take cl_decoded_option
10467 structure as parameter, not individual elements.
10468 (handle_option): Take cl_decoded_option structure as parameter,
10469 not individual elements.
10470 (handle_generated_option): Declare.
10471 * opts-common.c (handle_option): Take cl_decoded_option structure
10472 as parameter, not individual elements. Update calls to callback
10473 and handler functions.
10474 (handle_generated_option): New.
10475 (read_cmdline_option): Update calls to callback functions and
10476 handle_option.
10477 * opts.c (common_handle_option, complain_wrong_lang,
10478 unknown_option_callback, post_handling_callback,
10479 lang_handle_option, target_handle_option): Take cl_decoded_option
10480 structure as parameter, not individual elements.
10481 (lang_handle_option, target_handle_option, common_handle_option):
10482 Assert option has at most one argument.
10483 (enable_warning_as_error): Call handle_generated_option instead of
10484 handle_option. Do not pass -Werror argument as argument of
10485 generated option.
10486
10487 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10488
10489 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
10490 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
10491 (SUBWORD_BOOL_CAS): Likewise.
10492 (SUBWORD_SYNC_OP): Likewise.
10493 (SUBWORD_TEST_AND_SET): Likewise.
10494 (FETCH_AND_OP_WORD): Parenthesise INF_OP
10495 (SUBWORD_SYNC_OP): Likewise.
10496 (OP_AND_FETCH_WORD): Likewise.
10497
10498 2010-08-10 Xinliang David Li <davidxl@google.com>
10499
10500 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
10501 compute max/min offset in address.
10502
10503 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
10504
10505 * ira-live.c: Include sbitmap.h.
10506 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
10507 Compress live ranges even more.
10508
10509 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10510
10511 * coverage.c (ctr_labels): Delete.
10512
10513 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
10514
10515 PR bootstrap/45177
10516 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
10517 test here from arm_gen_load_multiple_1.
10518 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
10519 multiple_operation_profitable_p.
10520
10521 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10522
10523 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
10524 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
10525
10526 2010-08-10 Richard Henderson <rth@redhat.com>
10527
10528 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
10529 after saving registers. Assert that SSE registers are only saved
10530 with a sufficiently aligned frame.
10531 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
10532 remove stack_realign_fp handling.
10533 (ix86_expand_prologue): Save int registers before stack_realign_fp,
10534 and do not mark the stack alignment as frame related.
10535 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
10536
10537 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
10538 saves when re-aligning the stack.
10539
10540 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10541
10542 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
10543 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
10544 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
10545
10546 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10547
10548 * dwarf2out.c (struct die_struct): Move die_tag to the end.
10549
10550 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
10551
10552 * config/arm/iterators.md: New file.
10553 * config/arm/arm.md: Include iterators.md.
10554 (QHSI): Move to new file.
10555 (LTUGEU, cnb, optab, ior_xor): Likewise.
10556 * config/arm/iwmmxt.md (VMMX): Move to new file.
10557 (VSHFT, MMX_char): Likewise.
10558 * config/arm/neon.md (VD): Move to new file.
10559 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
10560 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
10561 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
10562 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
10563 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
10564 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
10565 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
10566 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
10567 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
10568 (Is_d_reg, V_mode_nunits): Likewise.
10569 * config/arm/vec-common.md (VALL): Move to new file.
10570 (VALLW, VINT, VINTW): Likewise.
10571
10572 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
10573
10574 PR middle-end/45182
10575 * combine.c (make_compound_operation): Don't try to convert
10576 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
10577
10578 2010-08-10 Richard Guenther <rguenther@suse.de>
10579
10580 * tree.h (get_object_alignment): Adjust prototype.
10581 * builtins.c (get_object_alignment): Return unsigned int,
10582 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
10583 and TARGET_MEM_REF properly.
10584 (get_pointer_alignment): Adjust.
10585 * emit-rtl.c (get_mem_align_offset): Adjust comment.
10586 (set_mem_attributes_minus_bitpos): Adjust.
10587 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
10588
10589 2010-08-10 Richard Guenther <rguenther@suse.de>
10590
10591 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
10592 (copy_prop_visit_assignment): Simplify.
10593 (copy_prop_visit_stmt): Also visit assignments from
10594 constants.
10595 (copy_prop_visit_phi_node): Use operand_equal_p.
10596
10597 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10598
10599 * ipa-split.c (find_split_points): Free stack.
10600
10601 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10602
10603 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
10604 * tree.c (tree_node_kind): Delete corresponding entries.
10605
10606 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
10607
10608 * alias.c (may_alias_p): Remove unused ret.
10609
10610 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
10611
10612 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
10613 alias_sets_conflict_p.
10614 (walk_mems_1): Moved from alias.c.
10615 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
10616 in alias.c.
10617 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
10618 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
10619 * alias.c (walk_mems_2): Moved to ddg.c.
10620 (walk_mems_1): Ditto.
10621 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
10622 to ddg.c.
10623 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
10624 disambiguation.
10625 *(may_alias_p): New function to check whether two memory expression
10626 may alias or not. Currently used in buidling inter-iteration memory
10627 dependence.
10628 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
10629 (insn_alias_sets_conflict_p): Removed
10630 *rtl.h (may_alias_p): New function prototype.
10631
10632 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10633
10634 * tree.c (nreverse): Assert that we don't have a BLOCK.
10635
10636 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10637
10638 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
10639 * config/arm/arm.c (arm_get_pcs_model): Likewise.
10640 * config/avr/avr.c (init_cumulative_args): Likewise.
10641 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10642 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10643 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
10644 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
10645 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
10646 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10647 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10648 * dwarf2out.c (gen_subprogram_die): Likewise.
10649 * function.c (allocate_struct_function): Likewise.
10650 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
10651 (deserves_ellipsis): Delete.
10652
10653 2010-08-09 Richard Guenther <rguenther@suse.de>
10654
10655 * tree-ssa-copy.c (cached_last_copy_of): Remove.
10656 (valueize_val): New function.
10657 (get_last_copy_of): Remove.
10658 (set_copy_of_val): Simplify.
10659 (dump_copy_of): Likewise.
10660 (copy_prop_visit_cond_stmt): Use valueize_val.
10661 (copy_prop_visit_phi_node): Properly handle unvisited names.
10662 Drop code managing copy-of chains.
10663 (init_copy_prop): Adjust.
10664 (fini_copy_prop): Likewise.
10665 (execute_copy_prop): Remove obsolete comment.
10666
10667 2010-08-09 Richard Guenther <rguenther@suse.de>
10668
10669 PR middle-end/44632
10670 * function.c (gimplify_parameters): Do not clear addressable
10671 bit of the original parameter.
10672
10673 2010-08-09 Richard Guenther <rguenther@suse.de>
10674
10675 PR middle-end/45212
10676 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
10677 alignment from MEM_REF offset only if we took it from the
10678 base object.
10679
10680 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
10681
10682 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
10683
10684 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10685
10686 * c-tree.h (build_arg_info): Declare.
10687 * c-decl.c (build_arg_info): Define.
10688 (get_parm_info): Call it. Delete initialization code.
10689 * c-parser.c (c_parser_parms_declarator): Likewise.
10690 (c_parser_parms_list_declaractor): Likewise.
10691
10692 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10693
10694 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
10695 (struct c_arg_info): Change type of tags field.
10696 * c-decl.c (grokdeclarator): Update for changed type of tags field.
10697 (get_parm_info): Likewise.
10698 (store_parm_decls_newstyle): Likewise.
10699
10700 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10701
10702 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
10703 (branch_island_list): Delete.
10704 (branch_islands): Declare.
10705 (add_compiler_branch_island): Adjust for branch_islands instead of
10706 branch_island_list.
10707 (macho_branch_islands): Likewise.
10708 (no_previous_def): Likewise.
10709 (get_prev_label): Likewise.
10710
10711 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10712
10713 PR boehm-gc/34544
10714 * gthr-posix.h (__gthread_start): Delete.
10715 (__gthread_active_init): Use pthread_default_stacksize_np instead of
10716 pthread_create to determine if hpux pthreads are active.
10717 * gthr-posix95.h (__gthread_start): Delete.
10718 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
10719
10720 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
10721
10722 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
10723 _WIN64 not expanded.
10724
10725 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
10726 H.J. Lu <hongjiu.lu@intel.com>
10727
10728 PR target/45213
10729 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
10730 to output 32bit SFmode immediate as 8 byte sign extended value.
10731
10732 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10733
10734 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
10735 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
10736 (SUBWORD_BOOL_CAS): Likewise.
10737 (SUBWORD_SYNC_OP): Likewise.
10738 (SUBWORD_TEST_AND_SET): Likewise.
10739 (FETCH_AND_OP_WORD): Parenthesise INF_OP
10740 (SUBWORD_SYNC_OP): Likewise.
10741 (OP_AND_FETCH_WORD): Likewise.
10742
10743 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10744
10745 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
10746 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
10747 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
10748 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
10749 generic part.
10750 (cortex_a9_sched_adjust_cost): New function.
10751 (xscale_sched_adjust_cost): New function.
10752 * config/arm/arm-protos.h (struct tune_params): New field
10753 sched_adjust_cost.
10754 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
10755
10756 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
10757
10758 PR target/44942
10759 * config/sparc/sparc.c (function_arg_advance): Always take into account
10760 the padding, if any.
10761
10762 2010-08-06 Richard Guenther <rguenther@suse.de>
10763
10764 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
10765 (dump_lattice_value): Dump it.
10766 (get_default_value): Adjust.
10767 (get_constant_value): Likewise.
10768 (set_value_varying): Likewise.
10769 (set_lattice_value): Make sure to not go up the lattice
10770 with bitwise constant values.
10771 (get_value_for_expr): Handle ADDR_EXPRs.
10772 (value_to_double_int): New function.
10773 (get_value_from_alignment): Likewise.
10774 (do_dbg_cnt): Adjust.
10775 (ccp_lattice_meet): Handle partially constant values.
10776 (bit_value_unop_1): New function.
10777 (bit_value_binop_1): Likewise.
10778 (bit_value_unop): Likewise.
10779 (bit_value_binop): Likewise.
10780 (evaluate_stmt): Track partially constant values if
10781 flag_tree_bit_ccp is set.
10782 (ccp_fold_stmt): Dump if we folded a predicate.
10783 (ccp_visit_stmt): Adjust.
10784 * common.opt (ftree-bit-ccp): New flag.
10785 * doc/invoke.texi (ftree-bit-ccp): Document.
10786 * opts.c (decode_options): Enable bit-CCP at -O1.
10787
10788 2010-08-06 Alan Modra <amodra@gmail.com>
10789
10790 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
10791 and -mrelocatable-lib description.
10792
10793 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
10794
10795 From Martin Thuresson <martint@google.com>
10796 * postreload.c (reload_cse_simplify_operands): Use
10797 SET_REGNO_RAW instead of SET_REGNO.
10798 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
10799 SET_REGNO.
10800 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
10801 instead of SET_REGNO.
10802 * rtl.h (SET_REGNO_RAW): New macro.
10803
10804 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
10805
10806 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
10807 computations. Fix formatting issues.
10808 (num_sign_bit_copies1): Likewise.
10809 (canonicalize_condition): Likewise.
10810
10811 2010-08-05 Richard Henderson <rth@redhat.com>
10812
10813 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
10814 (floor_log2): Use clz_hwi.
10815 (exact_log2): Use ctz_hwi.
10816 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
10817 * builtins.c (fold_builtin_bitop): Use them.
10818 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10819 * combine.c (get_pos_from_mask): Use ctz_hwi.
10820 * double-int.c (double_int_ctz): Likewise.
10821 * explow.c (force_reg): Likewise.
10822 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
10823
10824 2010-08-05 Richard Henderson <rth@redhat.com>
10825
10826 PR target/45189
10827 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
10828 the alignment constant is properly sign-extended.
10829
10830 2010-08-05 Richard Guenther <rguenther@suse.de>
10831
10832 * expr.c (store_expr): Use emit_block_move only if both
10833 source and target are MEMs. Use store_bit_field if only
10834 the target is a MEM.
10835
10836 2010-08-05 Richard Henderson <rth@redhat.com>
10837
10838 PR debug/45188
10839 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
10840 (INCOMING_RETURN_ADDR_RTX): Likewise.
10841 (dwarf2out_do_frame): Remove conditional compilation.
10842 (dwarf2out_frame_init): Likewise.
10843
10844 2010-08-05 Nicolas Setton <setton@adacore.com>
10845
10846 * gcov.c (flag_display_progress): New static variable.
10847 (main): Display progress info on standard output if requested.
10848 (options): Add -d/--display-progress.
10849 (print_usage): Print them.
10850 (process_args): Handle them.
10851 * doc/gcov.texi: Document them.
10852
10853 2010-08-05 Martin Jambor <mjambor@suse.cz>
10854
10855 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
10856 (ipcp_insert_stage): Redirect only edges not flagged with
10857 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
10858 discovered constants.
10859
10860 2010-08-05 Martin Jambor <mjambor@suse.cz>
10861
10862 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
10863 (struct ipa_param_descriptor): New fields types and
10864 cannot_devirtualize.
10865 (ipa_param_cannot_devirtualize_p): New function.
10866 (ipa_param_types_vec_empty): Likewise.
10867 (ipa_make_edge_direct_to_target): Declare.
10868 * ipa-cp.c: Fixed first stage driver name in initial comment,
10869 described devirtualization there too.
10870 (ipcp_analyze_node): Call ipa_analyze_params_uses.
10871 (ipcp_print_all_lattices): Print devirtualization info.
10872 (ipa_set_param_cannot_devirtualize): New function.
10873 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
10874 lattice to BOTTOM.
10875 (ipcp_init_stage): Merged into...
10876 (ipcp_generate_summary): ...its caller.
10877 (ipcp_change_tops_to_bottom): Also process type lists.
10878 (ipcp_add_param_type): New function.
10879 (ipcp_copy_types): Likewise.
10880 (ipcp_propagate_types): Likewise.
10881 (ipcp_propagate_stage): Also propagate types.
10882 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
10883 Also return true if propagated types require it.
10884 (ipcp_update_callgraph): Dump redirection info.
10885 (ipcp_process_devirtualization_opportunities): New function.
10886 (ipcp_const_param_count): Include known type information.
10887 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
10888 on new node. Fixed formatting.
10889 * ipa-prop.c (make_edge_direct_to_target): Renamed to
10890 ipa_make_edge_direct_to_target and changed all callers. Made
10891 externally visible.
10892 (ipa_node_duplication_hook): Duplicate types vector.
10893 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
10894 redirect outgoing calls for which we can't get a decl from the
10895 statement. Check that we can get a decl from the call statement.
10896 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
10897 ipa_analyze_params_uses only when ipa-cp is disabled.
10898 * tree-inline.c (get_indirect_callee_fndecl): Removed.
10899 (expand_call_inline): Do not call get_indirect_callee_fndecl.
10900 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
10901 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
10902
10903 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
10904
10905 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
10906 temporary. Emit move from temporary to accum, so REG_EQUAL note will
10907 be attached to this insn in correct mode.
10908
10909 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
10910
10911 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
10912 using REGNO of base_reg directly.
10913
10914 2010-08-05 Jie Zhang <jie@codesourcery.com>
10915
10916 PR tree-optimization/45144
10917 * tree-sra.c (type_consists_of_records_p): Return false
10918 if the record contains bit-field.
10919
10920 2010-08-04 Richard Henderson <rth@redhat.com>
10921
10922 * config/i386/i386.c (struct ix86_frame): Remove padding and
10923 to_allocate members.
10924 (ix86_compute_frame_layout): Don't store them.
10925 (ix86_can_use_return_insn_p): Use a more direct and more obviously
10926 correct condition for the position of the stack pointer.
10927 (ix86_expand_prologue): Compute remaining stack allocation based
10928 on the ultimate stack pointer offset.
10929 (ix86_expand_epilogue): Use more obvious expressions testing for
10930 the stack pointer already pointing to the saved registers.
10931
10932 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
10933 duplication deconstructing the frame pointer. Simplify
10934 deallocation of the local stack frame.
10935
10936 * reg-notes.def (CFA_EXPRESSION): New.
10937 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10938 (dwarf2out_frame_debug_cfa_expression): New.
10939 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
10940
10941 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
10942 * config/i386/i386.c (ix86_expand_prologue): Set it.
10943 (ix86_expand_epilogue): Clear it.
10944 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
10945 context, add REG_CFA_EXPRESSION notes.
10946
10947 * config/i386/i386.h (struct machine_frame_state): Rename from
10948 machine_cfa_state. Add members tracking SP and FP regardless
10949 of the current CFA register.
10950 (ix86_cfa_state): Remove.
10951 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
10952 and sse_reg_save_offset members.
10953 (ix86_compute_frame_layout): Set them.
10954 (gen_push): Increment sp_offset too.
10955 (choose_baseaddr_len, choose_baseaddr): New.
10956 (ix86_emit_save_reg_using_mov): New.
10957 (ix86_emit_save_regs_using_mov): Use it.
10958 (ix86_emit_save_sse_regs_using_mov): Likewise.
10959 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
10960 compare vs the saved red_zone_offset.
10961 (pro_epilogue_adjust_stack): Adjust sp_offset.
10962 (ix86_adjust_stack_and_probe): Likewise.
10963 (ix86_expand_prologue): Set up, use, and validate the new
10964 frame_state_info members. Use gen_frame_mem.
10965 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
10966 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
10967 new frame_state_info members.
10968 (ix86_emit_leave): Likewise.
10969 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
10970 out-of-range stack pointer offsets here.
10971 (ix86_emit_restore_sse_regs_using_mov): Likewise.
10972 (ix86_expand_epilogue): Use and validate the new frame_state_info
10973 members. Break up and simplify the logic selecting the
10974 restore_regs_via_mov code path. Ensure that there will be no
10975 out-of-range stack pointer offsets.
10976
10977 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
10978
10979 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
10980 argument name to reflect the expected tree; fix indentation.
10981 (ix86_asm_output_function_label): Output the entire 32-bit
10982 ms_hook here as bytes ...
10983 (ix86_expand_prologue): ... not here as insns. Attach the
10984 unwind info for the ms_hook to a blockage insn.
10985 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
10986 (ix86_ms_bitfield_layout_p): Fix indentation.
10987 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
10988
10989 * config/i386/i386.c (ix86_using_red_zone): New.
10990 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
10991 ix86_expand_prologue, ix86_force_to_memory): Use it.
10992
10993 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
10994 saving the int registers.
10995
10996 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
10997 and DWARF2_UNWIND_INFO conditional compilation.
10998
10999 2010-08-04 Richard Henderson <rth@redhat.com>
11000
11001 PR debug/45171
11002 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
11003 an is_naming_typedef_decl.
11004
11005 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
11006
11007 PR rtl-optimization/45162
11008 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
11009 * dce.c (word_dce_process_block): Likewise.
11010
11011 2010-08-04 Steve Ellcey <sje@cup.hp.com>
11012
11013 PR target/44583
11014 * config/ia64/constraints.md (Z): New.
11015 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
11016 (xfreg_or_signed_fp01_operand): New.
11017 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
11018 with fr_reg_or_signed_fp01_operand and constraint G with Z.
11019 (subsf3): Ditto.
11020 (*maddsf4): Ditto.
11021 (*msubsf4): Ditto.
11022 (adddf3): Ditto.
11023 (adddf3_trunc): Ditto.
11024 (subdf3): Ditto.
11025 (*subdf3_trunc): Ditto.
11026 (*madddf4): Ditto.
11027 (*madddf4_trunc): Ditto.
11028 (*msubdf4): Ditto.
11029 (*msubdf4_trunc): Ditto.
11030 (addxf3): Replace xfreg_or_fp01_operand with
11031 xfreg_or_signed_fp01_operand and constraint G with Z.
11032 (*addxf3_truncsf): Ditto.
11033 (*addxf3_truncdf): Ditto.
11034 (subxf3): Ditto.
11035 (*subxf3_truncsf): Ditto.
11036 (*subxf3_truncdf): Ditto.
11037 (*maddxf4): Ditto.
11038 (*maddxf4_truncsf): Ditto.
11039 (*maddxf4_truncdf): Ditto.
11040 (*msubxf4): Ditto.
11041 (*msubxf4_truncsf): Ditto.
11042 (*msubxf4_truncdf): Ditto.
11043
11044 2010-08-04 Richard Guenther <rguenther@suse.de>
11045
11046 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
11047 if either alias-set is zero.
11048
11049 2010-08-04 Richard Guenther <rguenther@suse.de>
11050
11051 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
11052 * tree-ssa-ccp.c: ... here.
11053 * tree-ssa-copy.c: ... and here.
11054 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
11055 value_range_t): Move ...
11056 * tree-vrp.c: ... here.
11057 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
11058 (substitute_and_fold): Adjust prototype.
11059 * tree-ssa-propagate.c (replace_uses_in): Adjust.
11060 (replace_phi_args_in): Likewise.
11061 (substitute_and_fold): Take callback to query lattice instead
11062 of pointer to lattice. Replace SSA name defs with lattice
11063 values first.
11064 * tree-ssa-ccp.c (ccp_finalize): Adjust.
11065 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
11066 (get_value): New function.
11067 (fini_copy_prop): Adjust.
11068 * tree-vrp.c (vrp_finalize): Adjust.
11069
11070 2010-08-04 Richard Guenther <rguenther@suse.de>
11071
11072 PR middle-end/45176
11073 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
11074 points-to set for original MEM_REF.
11075
11076 2010-08-04 Richard Guenther <rguenther@suse.de>
11077
11078 * tree-ssa-ccp.c (get_constant_value): New function.
11079 (get_rhs_assign_op_for_ccp): Remove.
11080 (valueize_op): New function.
11081 (ccp_fold): Use get_constant_value and valueize_op.
11082 (fold_const_aggregate_ref): Likewise.
11083 (ccp_fold_stmt): Likewise.
11084 (visit_assignment): Simplify.
11085
11086 2010-08-04 Richard Guenther <rguenther@suse.de>
11087
11088 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
11089 * double-int.h (double_int_ctz): Declare.
11090 * double-int.c (double_int_ctz): New function.
11091
11092 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
11093
11094 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
11095 Define.
11096 picochip_expand_movmemhi : Expand movmem pattern.
11097 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
11098 Declare.
11099 * config/picochip/picochip.md (movmemhi) : New pattern.
11100
11101 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11102
11103 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
11104
11105 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
11106
11107 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
11108 NEG as operand of a MULT by merging it with the other operand.
11109 * combine.c (make_compound_operation): Use trunc_int_for_mode when
11110 generating a MULT with constant. Canonicalize PLUS and MINUS involving
11111 MULT.
11112 * config/arm/constraints.md (M): Examine only 32 bits of a
11113 HOST_WIDE_INT.
11114 * config/arm/predicates.md (power_of_two_operand): Likewise.
11115
11116 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11117
11118 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
11119 non-NOTE insns.
11120
11121 2010-08-03 Jan Hubicka <jh@suse.cz>
11122
11123 * ipa-split.c (struct split_point): Add split_part_set_retval.
11124 (find_retval): Forward declare.
11125 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
11126 (consider_split): Compute current->split_part_set_retval.
11127 (visit_bb): Do not look into return value.
11128 (split_function): Handle !split_part_set_retval
11129
11130 2010-08-03 Martin Jambor <mjambor@suse.cz>
11131
11132 * tree-sra.c (completely_scalarize_record): New parameter REF, create
11133 its own access->expr intead of using build_ref_for_offset.
11134
11135 2010-08-03 Joseph Myers <joseph@codesourcery.com>
11136
11137 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
11138 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
11139 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
11140 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
11141 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
11142 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
11143 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
11144 DEFAULT_SWITCH_TAKES_ARG.
11145 * config/rx/rx.opt (-patch=): Remove option.
11146 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
11147 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
11148 * doc/invoke.texi (RX Options): Remove -patch=.
11149 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
11150 (option_map): Remove --profile-blocks, --quiet and --silent.
11151
11152 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11153
11154 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
11155 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
11156 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
11157 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11158 Update calls to ix86_expand_compare and ix86_expand_branch.
11159 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
11160 ix86_expand_compare.
11161 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
11162 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11163 Make static.
11164 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
11165 and ix86_compare_op1. Update calls to ix86_expand_compare.
11166 (ix86_expand_int_movcc): Ditto.
11167 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
11168 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
11169 (ix86_expand_setcc): Ditto.
11170 (ix86_expand_compare): Remove prototype.
11171 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
11172 ix86_compare_op0 and ix86_compare_op1. Update calls
11173 to ix86_expand_branch to directly pass operands[1] and operands[2].
11174 (cbranchxf4): Ditto.
11175 (cbranch<MODEF:mode>4): Ditto.
11176 (cbranchcc4): Ditto.
11177 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
11178 Update calls to ix86_expand_setcc to directly pass operands[2] and
11179 operands[3].
11180 (cstorexf4): Ditto.
11181 (cstore<MODEF:mode>4): Ditto.
11182 (cstorecc4): Ditto.
11183
11184 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11185
11186 PR target/45063
11187 * caller-save.c (save_call_clobbered_regs): Remove regs from
11188 hard_regs_saved when they are set.
11189
11190 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
11191
11192 PR target/41089
11193 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
11194 as volatile.
11195
11196 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
11197
11198 * common.opt (ftree-loop-distribute-patterns): New.
11199 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
11200 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
11201 at -O3.
11202 * tree-data-ref.c (stores_zero_from_loop): New.
11203 * tree-data-ref.h (stores_zero_from_loop): Declared.
11204 * tree-loop-distribution.c (tree_loop_distribution): Call
11205 stores_zero_from_loop.
11206 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
11207
11208 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11209
11210 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
11211 into account.
11212
11213 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
11214 * config/arm/arm.c (thumb1_code): New variable.
11215 (arm_override_options): Set it.
11216 (thumb1_final_prescan_insn): Keep track of condition code status.
11217 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
11218 jumps that depend on them.
11219 * config/arm/arm.h (thumb1_code): Declare variable.
11220 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
11221 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
11222 thumb1_cc_mode.
11223 (CC_STATUS_INIT): New macro.
11224 * config/arm/constraints.md (Pd): New constraint.
11225 * config/arm/predicates.md (noov_comparison_operator): New predicate.
11226 * config/arm/arm.md (is_thumb1): New define_attr.
11227 (conds): Set default to "clob" when generating Thumb1 code.
11228 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
11229 code are set. Use two-operand assembly syntax.
11230 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
11231 pattern.
11232 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
11233 codes are set. Use two-operand assembly syntax.
11234 (zero_extendhisi splitter): Remove constraints.
11235 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
11236 thumb1_movsf_insn): Set conds attribute as appropriate.
11237 (cbranchsi4_insn): Use condition code status from struct
11238 machine_function to determine whether the comparison can be eliminated.
11239 Discourage the alternative using high registers.
11240 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
11241 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
11242 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
11243 subsi3_cbranch): Delete.
11244 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
11245 one subtract and one cbranch insn.
11246
11247 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
11248 thumb2_movdf_soft_insn): Delete patterns.
11249 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
11250 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
11251 (pool_range, neg_pool_range): Use them to define defaults.
11252 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
11253 and allow for TARGET_32BIT.
11254
11255 PR target/40457
11256 * config/arm/arm.h (arm_regs_in_sequence): Declare.
11257 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
11258 load_multiple_sequence, store_multiple_sequence): Delete
11259 declarations.
11260 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
11261 declarations.
11262 * config/arm/ldmstm.md: New file.
11263 * config/arm/arm.c (arm_regs_in_sequence): New array.
11264 (load_multiple_sequence): Now static. New args SAVED_ORDER,
11265 CHECK_REGS. All callers changed.
11266 If SAVED_ORDER is nonnull, copy the computed order into it.
11267 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
11268 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
11269 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
11270 If SAVED_ORDER is nonnull, copy the computed order into it.
11271 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
11272 like REGS. Handle Thumb mode.
11273 (arm_gen_load_multiple_1): New function, broken out of
11274 arm_gen_load_multiple.
11275 (arm_gen_store_multiple_1): New function, broken out of
11276 arm_gen_store_multiple.
11277 (arm_gen_multiple_op): New function, with code from
11278 arm_gen_load_multiple and arm_gen_store_multiple moved here.
11279 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
11280 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
11281 changed.
11282 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
11283 * config/arm/predicates.md (commutative_binary_operator): New.
11284 (load_multiple_operation, store_multiple_operation): Handle more
11285 variants of these patterns with different starting offsets. Handle
11286 Thumb-1.
11287 * config/arm/arm.md: Include "ldmstm.md".
11288 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
11289 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
11290 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
11291 peepholes): Delete.
11292 * config/arm/ldmstm.md: New file.
11293 * config/arm/arm-ldmstm.ml: New file.
11294
11295 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
11296 if statement which adds extra costs to frame-related expressions.
11297
11298 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11299
11300 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
11301
11302 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
11303
11304 PR target/45142
11305 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
11306 alternative 2.
11307 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
11308 split V4SI operands.
11309
11310 2010-08-01 Anatoly Sokolov <aesok@post.ru>
11311
11312 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11313 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
11314 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
11315 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
11316
11317 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
11318
11319 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
11320 LOCAL_INCLUDE_DIR.
11321
11322 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11323
11324 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
11325 used in the call to optab_for_tree_code. Fix the second
11326 is_widening_mult_p call. Check that both unwidened operands
11327 have the same sign.
11328
11329 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
11330
11331 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
11332
11333 2010-07-31 Anatoly Sokolov <aesok@post.ru>
11334
11335 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11336
11337 2010-07-30 DJ Delorie <dj@redhat.com>
11338
11339 * config/rx/predicates.md (rx_constshift_operand): New.
11340 * config/rx/rx.md (zs_cond): New.
11341 (cbranchsi4): Remove mode.
11342 (*cbranchsi4_<code>): Likewise.
11343 (*tstbranchsi4_<code>): New.
11344 (*tstbranchsi4r_<code>): New.
11345 (*tstbranchsi4m_eq): New.
11346 (*tstbranchsi4m_ne): New.
11347 (cbranchsf4): Remove mode.
11348 (*cbranchsf4_<code>): Likewise.
11349
11350 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
11351
11352 * rtlanal.c (simplify_subreg_regno): Don't treat
11353 HARD_FRAME_POINTER_REGNUM specially.
11354
11355 2010-07-30 Joseph Myers <joseph@codesourcery.com>
11356
11357 * common.opt (-G): Don't define option here.
11358 * config/g.opt: New.
11359 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
11360 rs6000/powerpc and score targets.
11361 * opts.c (common_handle_option): Don't handle -G here.
11362 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
11363 * config/frv/frv.c (frv_handle_option): Handle -G.
11364 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
11365 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
11366 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
11367 * config/mips/mips.c (mips_handle_option): Handle -G.
11368 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
11369 * config/score/score.c (score_handle_option): Handle -G.
11370
11371 2010-07-30 Anatoly Sokolov <aesok@post.ru>
11372
11373 * config/mmix/mmix.c: Include basic-block.h.
11374
11375 2010-07-30 Jakub Jelinek <jakub@redhat.com>
11376
11377 PR debug/45055
11378 PR rtl-optimization/45137
11379 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
11380 prototypes.
11381 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
11382 New functions.
11383 * combine.c (next_nonnote_nondebug_insn): Removed.
11384 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
11385 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
11386 * sched-deps.c (sched_analyze_insn): Likewise.
11387 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
11388 * rtlanal.c (canonicalize_condition): Likewise.
11389 * postreload.c (reload_combine_recognize_pattern): Likewise.
11390 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
11391
11392 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
11393
11394 * config/i386/i386.md (int_cond): Remove code iterator.
11395 (fp_cond): Ditto.
11396 (cbranch<mode>4): Use ordered_comparison_operator predicate
11397 for operator0.
11398 (cstore<mode>4): Ditto for operator1.
11399 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
11400 (add<mode>cc): ditto.
11401
11402 2010-07-30 Richard Guenther <rguenther@suse.de>
11403
11404 PR middle-end/45141
11405 * expr.c (expand_expr_real_1): Check for not handled base address.
11406
11407 2010-07-30 Richard Guenther <rguenther@suse.de>
11408
11409 * ipa-prop.c (ipa_modify_formal_parameters): Use
11410 build_distinct_type_copy.
11411
11412 2010-07-30 Anthony Green <green@moxielogic.com>
11413
11414 * config/moxie/rtems.h: New file.
11415 * config.gcc: Add moxie-rtems support.
11416
11417 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
11418
11419 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
11420 df flags as in run_fast_df_dce.
11421
11422 2010-07-29 Jakub Jelinek <jakub@redhat.com>
11423
11424 Revert:
11425 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11426
11427 * rtl.def (NOTE): Swap operands 4 and 5.
11428 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
11429 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
11430 Adjust accordingly.
11431 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
11432
11433 2010-07-29 Jakub Jelinek <jakub@redhat.com>
11434
11435 PR debug/45110
11436 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
11437 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
11438 (gen_subprogram_die): Likewise. Remove it when removing declaration's
11439 formal parameters.
11440 (gen_decl_die): Change return type to dw_die_ref, return what
11441 gen_formal_parameter_die returned.
11442
11443 2010-07-29 Martin Jambor <mjambor@suse.cz>
11444
11445 * dbgcnt.def (eipa_sra): New counter.
11446 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
11447
11448 2010-07-29 Xinliang David Li <davidxl@google.com>
11449
11450 PR bootstrap/45119
11451 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
11452 in revision 162652.
11453
11454 2010-07-29 Richard Guenther <rguenther@suse.de>
11455
11456 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
11457 (TV_TREE_STORE_CCP): Likewise.
11458 (TV_TREE_REDPHI): Likewise.
11459
11460 2010-07-29 Richard Guenther <rguenther@suse.de>
11461
11462 * double-int.h (double_int_and_not): New function.
11463 * combine.c (try_combine): Use it.
11464 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
11465
11466 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
11467
11468 PR rtl-optimization/42575
11469 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
11470 Argument AU removed. All callers changed. Ignore artificial refs.
11471 Use return value of df_word_lr_simulate_defs to decide whether an insn
11472 is necessary.
11473 (fast_dce): Rename arg to WORD_LEVEL.
11474 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
11475 static.
11476 (pass_fast_rtl_byte_dce): Delete.
11477 * dce.h (run_word_dce): Declare.
11478 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
11479 All callers changed. Simplify code to only deal with two-word regs.
11480 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
11481 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
11482 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
11483 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
11484 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
11485 (df_word_lr_mark_ref): Declare.
11486 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
11487 df_word_lr_simulate_uses): Declare or rename from byte variants.
11488 (df_byte_lr_simulate_artificial_refs_at_top,
11489 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
11490 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
11491 declarations.
11492 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
11493 (enum df_mm): Delete.
11494 * df-byte-scan.c: Delete file.
11495 * df-problems.c (df_word_lr_problem_data): Renamed from
11496 df_byte_lr_problem_data, all members deleted except for
11497 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
11498 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
11499 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
11500 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
11501 df_byte_lr_confluence_0): Delete functions.
11502 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
11503 callers changed.
11504 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
11505 Don't initialize members that were deleted, don't try to discover data
11506 about registers. Ignore hard regs.
11507 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
11508 (df_word_lr_mark_ref): New function.
11509 (df_word_lr_bb_local_compute): Renamed from
11510 df_byte_bb_lr_local_compute; all callers changed. Use
11511 df_word_lr_mark_ref. Assert that artificial refs don't include
11512 pseudos. Ignore hard registers.
11513 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
11514 Assert that exit block uses don't contain pseudos.
11515 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
11516 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
11517 callers changed. Ignore hard regs.
11518 (df_word_lr_transfer_function): Renamed from
11519 df_byte_lr_transfer_function; all callers changed.
11520 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
11521 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
11522 changed.
11523 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
11524 callers changed.
11525 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
11526 confluence operator 0 set to NULL.
11527 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
11528 callers changed.
11529 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
11530 Return bool, true if bitmap changed or insn otherwise necessary.
11531 All callers changed. Simplify using df_word_lr_mark_ref.
11532 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
11533 all callers changed. Simplify using df_word_lr_mark_ref.
11534 * lower-subreg.c: Include "dce.h"
11535 (decompose_multiword_subregs): Call run_word_dce if df available.
11536 * Makefile.in (lower-subreg.o): Adjust dependencies.
11537 (df-byte-scan.o): Delete.
11538 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
11539
11540 2010-07-29 Richard Guenther <rguenther@suse.de>
11541
11542 * tree.c (build_vector): Assert that the vector constant
11543 has enough elements.
11544 (build_vector_from_ctor): Pad with trailing zeros.
11545
11546 2010-07-29 Richard Guenther <rguenther@suse.de>
11547
11548 PR tree-optimization/45120
11549 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11550 Handle offset in DEREFs properly.
11551 (get_constraint_for_1): Handle MEM_REF offset properly.
11552
11553 2010-07-29 Richard Guenther <rguenther@suse.de>
11554
11555 PR middle-end/45034
11556 * convert.c (convert_to_integer): Always use an unsigned
11557 type for narrowed negate and bitwise not.
11558
11559 2010-07-29 Ira Rosen <irar@il.ibm.com>
11560
11561 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
11562 to outer loop when creating reduction epilogue for double reduction,
11563 and switch back to the inner loop when updating the phi nodes.
11564 Update uses of outer loop exit phi nodes in double reduction (instead
11565 of uses of reduction).
11566
11567 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
11568
11569 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
11570 popcount on power7 and parity on power6 systems.
11571 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
11572 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
11573 instructions.
11574
11575 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
11576 (UNSPEC_PARITY): Ditto.
11577 (SFDF): New iterator for SF/DF.
11578 (rreg2): New mode attribute for floating register constraint.
11579 (TARGET_FLOAT): New mode attribute for whether single/double float
11580 is supported.
11581 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
11582 pattern.
11583 (parity<mode>2_cmpb): New insn for parity on power6 and newer
11584 machines.
11585 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
11586 pattern. Add support for fcpsgn instruction added in power6.
11587 (copysignsf3): Delete.
11588 (copysigndf3): Delete.
11589 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
11590 instead of if_then_else in RTL to avoid problems with -0.
11591
11592 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
11593 of if_then_else to mirror scalar code.
11594 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
11595 rs6000.md.
11596
11597 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
11598 instead of if_then_else.
11599
11600 2010-07-28 Xinliang David Li <davidxl@google.com>
11601
11602 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
11603 (dump_cand): Dump var_before/after.
11604 (htab_inv_expr_eq): New function.
11605 (htab_inv_expr_hash): New function.
11606 (tree_ssa_iv_optimize_init): Support pseudo invariants.
11607 (add_candidate_1): consider base type precision.
11608 (set_use_iv_cost): New parameter.
11609 (adjust_setup_cost): Use profile information.
11610 (get_address_cost): Do not hard code width in computing address
11611 offset limits.
11612 (compare_aff_trees): New function.
11613 (get_loop_invariant_expr_id): New function.
11614 (get_computation_cost_at): New parameter and use profile information.
11615 (get_computation_cost): New parameter.
11616 (determine_use_iv_cost_generic): Pass new parameter.
11617 (determine_use_iv_cost_address): Ditto.
11618 (determine_use_iv_cost_condition): Ditto.
11619 (autoinc_possible_for_pair): Ditto.
11620 (determine_use_iv_costs): More dumps.
11621 (iv_ca_get_num_inv_exprs): New function.
11622 (iv_ca_recount_cost): Consider loop invariants in register pressure
11623 cost.
11624 (iv_ca_add_use): New parameter.
11625 (iv_ca_dump): Better dumping.
11626 (iv_ca_extend): New parameter.
11627 (try_add_cand_for): Attempt to get better partial solution.
11628 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
11629 (create_new-ivs): More dumps.
11630 (rewrite_use_compare): Ditto.
11631 (free_loop_data): More cleanup.
11632 (treee_ssa_iv_optimize_finalize): Ditto.
11633
11634 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
11635
11636 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
11637 * config/i386/i386.c (ix86_profile_before_prologue): New.
11638 (override_options): Add special handling for -mfentry.
11639 (ix86_function_regparm): Likewise.
11640 (ix86_function_sseregparm): Likewise.
11641 (ix86_frame_pointer_required): Likewise.
11642 (ix86_expand_prologue): Check for ms_hook_prologue.
11643 (x86_function_profiler): Adjust mcount output.
11644 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
11645 * config/i386/i386.opt (mfentry): New.
11646 * doc/invoke.texi (mfentry): Add documentation.
11647 * doc/tm.texi: Regenerated..
11648 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
11649 * final.c (final_start_function): Replace macro
11650 PROFILE_BEFORE_PROLOGUE by target hook.
11651 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11652 * target.def (profile_before_prologue): New hook.
11653 * targhooks.c (default_profile_before_prologue): New.
11654 * targhooks.h (default_profile_before_prologue): New.
11655
11656 2010-07-28 Jakub Jelinek <jakub@redhat.com>
11657
11658 PR debug/45105
11659 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
11660
11661 PR debug/45103
11662 * dwarf2out.c (dwarf2out_var_location): Always consider
11663 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
11664
11665 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
11666
11667 PR rtl-optimization/45107
11668 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
11669
11670 2010-07-28 Richard Guenther <rguenther@suse.de>
11671
11672 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
11673 (set_lattice_value): Do not query an old default value.
11674 (get_value_for_expr): New function. Properly canonicalize
11675 float values.
11676 (ccp_visit_phi_node): Use it.
11677
11678 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
11679
11680 * config/arm/arm.c (arm_pcs_default): Remove static.
11681 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
11682 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
11683 (arm_pcs_default): Declare.
11684
11685 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
11686
11687 * config/rs6000/rs6000.c (rs6000_override_options):
11688 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
11689 ... to darwin_rs6000_override_options.
11690 (rs6000_return_in_memory): Update preceding comment for darwin
11691 64 bit ABI. Use TARGET_MACHO inline.
11692 (rs6000_darwin64_struct_check_p): New.
11693 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
11694 (function_arg): Likewise.
11695 (rs6000_arg_partial_bytes): Likewise.
11696 (rs6000_function_value): Likewise.
11697
11698 2010-07-28 Andi Kleen <ak@linux.intel.com>
11699
11700 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
11701
11702 2010-07-28 Richard Guenther <rguenther@suse.de>
11703
11704 PR middle-end/44903
11705 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
11706 targets try harder to not generate unaligned accesses.
11707
11708 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
11709
11710 PR rtl-optimization/45101
11711 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
11712 for gcse-las.
11713
11714 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
11715
11716 PR tree-optimization/44885
11717 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
11718 with non-aliased component.
11719
11720 2010-07-28 Joseph Myers <joseph@codesourcery.com>
11721
11722 * config/darwin-driver.c (SWITCH_TAKES_ARG,
11723 WORD_SWITCH_TAKES_ARG): Remove.
11724 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
11725 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
11726 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
11727 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
11728 definitions from gcc.c.
11729 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
11730 defaults.h.
11731 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
11732 Move to defaults.h.
11733 * opts-common.c: Include tm.h.
11734 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
11735 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
11736 Handle more than one argument. Set canonical_option_num_elements.
11737 (decode_cmdline_options_to_array): Set
11738 canonical_option_num_elements and trailing elements of
11739 canonical_option.
11740 * opts.h (struct cl_decoded_option): Allow four elements in
11741 canonical_option. Add field canonical_option_num_elements.
11742 * Makefile.in (opts-common.o): Update dependencies.
11743
11744 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
11745
11746 PR middle-end/44790
11747 PR middle-end/44993
11748 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
11749 sure the base has address_mode before adding the offset.
11750
11751 2010-07-27 Xinliang David Li <davidxl@google.com>
11752
11753 * tree-flow.h (create_mem_ref): Add one new parameter.
11754 * tree-ssa-address.c (create_mem_ref): New parameter.
11755 (addr_to_parts): Ditto.
11756 (move_variant_to_index): New function.
11757 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
11758
11759 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11760
11761 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
11762 4 and 5.
11763 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
11764 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
11765 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
11766 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
11767 CODE_LABELs and NOTEs.
11768 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
11769 * combine.c (try_combine): Likewise.
11770 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11771 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
11772
11773 2010-07-27 Joseph Myers <joseph@codesourcery.com>
11774
11775 * coretypes.h (struct cl_option_handlers): Declare.
11776 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
11777 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
11778 * langhooks-def.h (lhd_handle_option): Declare.
11779 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
11780 * langhooks.c (lhd_handle_option): New.
11781 * langhooks.h (struct lang_hooks): Update prototype and return
11782 value type of handle_option hook.
11783 * optc-gen.awk: Generate target_flags_explicit definition for the
11784 driver.
11785 * opts-common.c: Include diagnostic.h.
11786 (handle_option): Move from opts.c. Update prototype and return
11787 value type. Use handlers structure.
11788 (read_cmdline_option): Move from opts.c. Update prototype. Use
11789 handlers structure.
11790 (set_option): Move from opts.c.
11791 * opts.c (common_handle_option): Update prototype and return value
11792 type. Update calls to handle_option and enable_warning_as_error.
11793 (unknown_option_callback, post_handling_callback,
11794 lang_handle_option, target_handle_option): New.
11795 (handle_option, read_cmdline_option): Move to opts-common.c.
11796 (read_cmdline_options): Update prototype. Update call to
11797 read_cmdline_option.
11798 (decode_options): Initialize and use handlers structure.
11799 (set_option): Move to opts-common.c.
11800 (enable_warning_as_error): Update prototype. Update call to
11801 handle_option.
11802 * opts.h (struct cl_option_handler_func, struct
11803 cl_option_handlers): New.
11804 (handle_option, enable_warning_as_error): Update prototypes.
11805 (read_cmdline_option): Declare.
11806 * Makefile.in (opts-common.o): Update dependencies.
11807
11808 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11809
11810 * config/arm/arm.c (params.h): Include.
11811 (arm_override_options): Tune gcse-unrestricted-cost.
11812 * config/arm/t-arm (arm.o): Define dependencies.
11813
11814 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11815
11816 PR target/42495
11817 PR middle-end/42574
11818 * basic-block.h (get_dominated_to_depth): Declare.
11819 * dominance.c (get_dominated_to_depth): New function, use
11820 get_all_dominated_blocks as a base.
11821 (get_all_dominated_blocks): Use get_dominated_to_depth.
11822
11823 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
11824 (hoist_exprs): Remove.
11825 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
11826 (compute_code_hoist_vbeinout): Add debug print outs.
11827 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
11828
11829 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
11830 quadratic behavior.
11831 * params.h (MAX_HOIST_DEPTH): New macro.
11832 * doc/invoke.texi (max-hoist-depth): Document.
11833
11834 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11835
11836 PR rtl-optimization/40956
11837 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
11838 constants.
11839
11840 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11841
11842 PR target/42495
11843 PR middle-end/42574
11844 * config/arm/arm.c (legitimize_pic_address): Use
11845 gen_calculate_pic_address pattern to emit calculation of PIC address.
11846 (will_be_in_index_register): New function.
11847 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
11848 (thumb1_legitimate_address_p): Use it provided !strict_p.
11849 * config/arm/arm.md (calculate_pic_address): New expand and split.
11850
11851 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11852
11853 PR target/42495
11854 PR middle-end/42574
11855 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
11856 * config/arm/arm.md (define_split "J", define_split "K"): Make
11857 IRA/reload friendly.
11858
11859 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11860
11861 * gcse.c (insert_insn_end_basic_block): Update signature, remove
11862 unused checks.
11863 (pre_edge_insert, hoist_code): Update.
11864
11865 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11866
11867 PR target/42495
11868 PR middle-end/42574
11869 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
11870
11871 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11872
11873 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
11874
11875 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11876
11877 PR rtl-optimization/40956
11878 PR target/42495
11879 PR middle-end/42574
11880 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
11881 for hoisting.
11882 (hoist_code): Count occurences in current block too.
11883
11884 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11885
11886 * gcse.c (struct expr:max_distance): New field.
11887 (doing_code_hoisting_p): New static variable.
11888 (want_to_gcse_p): Change signature. Allow constrained hoisting of
11889 simple expressions, don't change behavior for PRE. Set max_distance.
11890 (insert_expr_in_table): Set new max_distance field.
11891 (hash_scan_set): Update.
11892 (hoist_expr_reaches_here_p): Stop search after max_distance
11893 instructions.
11894 (find_occr_in_bb): New static function. Use it in ...
11895 (hoist_code): Calculate sizes of basic block before any changes are
11896 done. Pass max_distance to hoist_expr_reaches_here_p.
11897 (one_code_hoisting_pass): Set doing_code_hoisting_p.
11898
11899 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
11900 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
11901 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
11902 macros.
11903 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
11904 Document.
11905
11906 2010-07-27 Jeff Law <law@redhat.com>
11907 Maxim Kuvyrkov <maxim@codesourcery.com>
11908
11909 * gcse.c (compute_transpout, transpout): Remove, move logic
11910 to prune_expressions.
11911 (compute_pre_data): Move pruning of trapping expressions ...
11912 (prune_expressions): ... here. New static function.
11913 (compute_code_hoist_data): Use it.
11914 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
11915
11916 2010-07-27 Xinliang David Li <davidxl@google.com>
11917
11918 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
11919 (rewrite_use_address): Adjust iv update position when needed.
11920
11921 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11922
11923 * dbgcnt.def (hoist_insn): New debug counter.
11924 * gcse.c (hoist_code): Use it.
11925
11926 2010-07-27 Xinliang David Li <davidxl@google.com>
11927
11928 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
11929 (niter_for_single_dom_exit): Passes additional parameter.
11930 (iv_period): Fix comments.
11931 (may_eliminate_iv): Handles multiple exit loops properly.
11932 (free_tree_niter_desc): New function.
11933 (free_loop_data): Frees up loop iteration descriptors.
11934
11935 2010-07-27 Jakub Jelinek <jakub@redhat.com>
11936
11937 PR target/44542
11938 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
11939 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
11940 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
11941 (expand_one_var): Don't consider DECL_ALIGN for variables for
11942 which expand_one_stack_var_at has been already called.
11943
11944 PR testsuite/44701
11945 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
11946 constraints on IA-64.
11947
11948 2010-07-27 Jie Zhang <jie@codesourcery.com>
11949
11950 PR target/44290
11951 Revert:
11952 2010-07-23 Jie Zhang <jie@codesourcery.com>
11953
11954 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
11955 false if ! tree_versionable_function_p.
11956
11957 2010-07-27 Jakub Jelinek <jakub@redhat.com>
11958
11959 * dwarf2out.c (add_data_member_location_attribute): Use
11960 add_AT_unsigned instead of add_AT_int if offset is non-negative.
11961
11962 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11963
11964 * postreload.c (try_replace_in_use): New static function.
11965 (reload_combine_recognize_const_pattern): Use it here. Allow
11966 substituting into a final add insn, and substituting into a memory
11967 reference in an insn that sets the reg.
11968
11969 2010-07-27 Joseph Myers <joseph@codesourcery.com>
11970
11971 * common.opt (o): Add MissingArgError.
11972 * doc/options.texi (MissingArgError): Document.
11973 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
11974 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
11975 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
11976 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
11977 * langhooks.h (struct lang_hooks): Remove missing_argument.
11978 * optc-gen.awk: Handle MissingArgError and output new structure
11979 field initializers.
11980 * opts.c (read_cmdline_option): Use missing_argument_error field
11981 instead of missing_argument langhook.
11982 * opts.h (struct cl_option): Add missing_argument_error field.
11983 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
11984
11985 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
11986
11987 PR target/29090
11988 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
11989 Darwin64 ABI, for zero-sized objects.
11990
11991 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
11992
11993 PR target/35491
11994 PR target/29090
11995
11996 Merge from Apple local 4.2.1.
11997 2005-05-11 Stan Shebs <shebs@apple.com>
11998 Fix 64-bit varargs for Darwin (Radar 4028089).
11999 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
12000 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12001 Add argument, add case for 8-byte register half-filled with a float.
12002 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
12003 single-precision floats specially.
12004
12005 2010-07-27 Ira Rosen <irar@il.ibm.com>
12006
12007 PR tree-optimization/44152
12008 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
12009 complex numbers for further check.
12010 (vect_supported_load_permutation_p): Check nodes with
12011 complex numbers.
12012
12013 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12014
12015 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
12016 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
12017 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
12018 (LANG_HOOKS_INITIALIZER): Add new hooks.
12019 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
12020 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
12021 and complain_wrong_lang_p. Update init_options prototype.
12022 * c-objc-common.c (c_initialize_diagnostics): First call
12023 c_common_initialize_diagnostics.
12024 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
12025 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
12026 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
12027 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
12028 (hook_uint_void_0): New.
12029 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
12030 (hook_uint_void_0): New.
12031 * opts-common.c (decode_cmdline_option,
12032 decode_cmdline_options_to_array): Also fill in canonical_option field.
12033 * opts.c (complain_wrong_lang): Use langhook to determine whether
12034 to complain instead of special-casing LTO.
12035 (decode_options): Separate lang_mask determination with
12036 option_lang_mask hook from call of init_options hook.
12037 * opts.h (struct cl_decoded_option): Add canonical_option.
12038
12039 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12040
12041 PR tree-optimization/45083
12042 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
12043
12044 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12045
12046 * postreload.c (reload_combine_recognize_const_pattern): Move test
12047 for limiting the insn movement to the right scope.
12048
12049 PR rtl-optimization/45051
12050 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
12051 than reg_mentioned_p.
12052
12053 2010-07-26 Richard Henderson <rth@redhat.com>
12054
12055 PR target/44132
12056 * tree-emutls.c: New file.
12057 * Makefile.in (OBJS-common): Add it.
12058 * tree-pass.h (pass_ipa_lower_emutls): Declare.
12059 * passes.c (init_optimization_passes): Add it.
12060
12061 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
12062 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
12063 * expr.c (emutls_var_address): Delete.
12064 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
12065 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
12066 (emutls_finish): Delete.
12067 * toplev.c (compile_file): Don't call it.
12068 * tree.h (emutls_decl): Delete.
12069 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
12070 (emutls_finish, emutls_finalize_control_var): Delete.
12071 (emutls_object_type): Move to tree-emutls.c.
12072 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
12073 default_emutls_var_fields, get_emutls_object_type,
12074 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
12075 default_emutls_var_init): Likewise.
12076 (get_variable_section): Don't special case emutls.
12077 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
12078 default_elf_select_section, default_unique_section,
12079 default_encode_section_info): Likewise.
12080 * varpool.c (decide_is_variable_needed): Likewise.
12081 * gimple-iterator.c (update_call_edge_frequencies): New
12082 (gsi_insert_on_edge_immediate): Use it.
12083 (gsi_insert_seq_on_edge_immediate): Likewise.
12084 (gsi_commit_one_edge_insert): Likewise.
12085
12086 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
12087 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
12088 (x86_64_elf_unique_section): Likewise.
12089
12090 2010-07-26 Jan Hubicka <jh@suse.cz>
12091
12092 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
12093 GTY((skip)).
12094
12095 2010-07-26 Anatoly Sokolov <aesok@post.ru>
12096
12097 * target.def (output_source_filename): New hook.
12098 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
12099 * doc/tm.texi: Regenerate.
12100 * toplev.c (output_file_directive) Remove function.
12101 * toplev.h (output_file_directive) Remove.
12102 * output.h (default_asm_output_source_filename,
12103 output_file_directive): Declare.
12104 * varasm.h (default_asm_output_source_filename,
12105 output_file_directive): New functions.
12106
12107 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12108 * config/mips/mips-protos.h (mips_output_filename): Remove.
12109 * config/mips/mips.c (mips_output_filename): Make Static.
12110 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12111
12112 2010-07-26 Richard Guenther <rguenther@suse.de>
12113
12114 PR tree-optimization/43784
12115 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
12116 if the destination is used by the call.
12117
12118 2010-07-26 Richard Guenther <rguenther@suse.de>
12119
12120 PR middle-end/45073
12121 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
12122 SSA updating on being in SSA form.
12123
12124 2010-07-26 Richard Guenther <rguenther@suse.de>
12125
12126 PR middle-end/45056
12127 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
12128
12129 2010-07-26 Richard Guenther <rguenther@suse.de>
12130
12131 PR tree-optimization/45071
12132 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
12133 adjust op->opcode.
12134
12135 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
12136
12137 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
12138 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
12139 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
12140 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
12141 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
12142 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
12143 save_r31, return_r31, save_interrupt, return_interrupt,
12144 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
12145 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
12146 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
12147 new ABI requirements.
12148 (save_r6_r9, L_callt_save_r6_r9): Remove.
12149 * config/v850/predicates.md (even_reg_operand, disp23_operand,
12150 const_float_1_operand const_float_0_operand): New Predicates.
12151 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
12152 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
12153 * config/v850/t-v850: Update multilibs for new target variants.
12154 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
12155 * config/v850/t-v850e: Likewise.
12156 * config/v850/v850.c (v850_issue_rate): New.
12157 (v850_strict_argument_naming): New.
12158 (function_arg): Modify to generate a different ABI.
12159 (print_operand): Update case 'z' to support float modes.
12160 (output_move_single): Modify to generate appropriate and better
12161 assembly.
12162 (v850_float_z_comparison_operator, v850_select_cc_mode,
12163 v850_float_nz_comparison_operator, v850_gen_float_compare,
12164 v850_gen_compare): New functions to support comparison of float values.
12165 (ep_memory_offset): Add support for V850E2 targets.
12166 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
12167 (INTERRUPT_REGPARM_NUM): Remove.
12168 (compute_register_save_size): Add extra case to save/restore long call.
12169 (use_prolog_function): New function to support prologue.
12170 (expand_prologue): Add support for V850E2 targets and modified
12171 as per the current ABI requirements.
12172 (expand_epilogue): Likewise.
12173 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
12174 (construct_save_jarl): Likewise.
12175 (construct_dispose_instruction): Update as per the current ABI
12176 requirements.
12177 (construct_prepare_instruction): Likewise.
12178 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
12179 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
12180 (CPP_SPEC): Updated to support v850e2 targets.
12181 (STRICT_ALIGNMENT): Modified.
12182 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
12183 (FIXED_REGISTERS): Likewise.
12184 (CALL_USED_REGISTERS): Likewise.
12185 (CONDITIONAL_REGISTER_USAGE): Updated.
12186 (HARD_REGNO_MODE_OK): Updated.
12187 (reg_class): Updated to add even registers.
12188 (REG_CLASS_NAMES): Likewise.
12189 (REG_CLASS_CONTENTS): Likewise.
12190 (REGNO_REG_CLASS): Updated for CC registers.
12191 (REG_CLASS_FROM_LETTER): Added support for even registers.
12192 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
12193 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
12194 ARG_POINTER_REGNUM): Updated.
12195 (FUNCTION_ARG_ADVANCE): Define.
12196 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
12197 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
12198 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
12199 (GO_IF_LEGITIMATE_ADDRESS): Updated.
12200 (SELECT_CC_MODE): Define.
12201 (REGISTER_NAMES): Updated to add psw and fcc registers.
12202 (ADDITIONAL_REGISTER_NAMES): Updated.
12203 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
12204 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
12205 * config/v850/v850.md (define_constants): Define new constants.
12206 (type): Update store,bit1,macc,div,fpu and single attributes.
12207 (cpu): New attribute.
12208 (cc): Add set_z attribute.
12209 (unsign23byte_load, sign23byte_load, unsign23hword_load,
12210 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
12211 23word_store): New instructions for 23-bit displacement load and store.
12212 (movqi_internal, movhi_internal): Update the attributes.
12213 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
12214 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
12215 the attributes.
12216 (v850_tst1): Modified using CC_REGNUM.
12217 (tstsi): Remove.
12218 (cmpsi): Modified as define_expand from define_insn.
12219 (cmpsi_insn, cmpsf, cmpdf): New instructions.
12220 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
12221 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
12222 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
12223 one_cmplsi2): Clobber the CC_REGNUM register.
12224 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
12225 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
12226 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
12227 (setf_insn, set_z_insn, set_nz_insn): New instructions for
12228 v850e2v3 target.
12229 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
12230 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
12231 targets.
12232 (sasf_1, sasf_2): Remove.
12233 (sasf): New instruction.
12234 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
12235 targets. CC_REGNUM register is clobbered and attributes are
12236 updated.
12237 (branch_z_normal, branch_z_invert, branch_nz_normal,
12238 branch_nz_invert): New branch related instructions.
12239 (jump): Updated the attributes.
12240 (switch): Update to support new targets. CC_REGNUM register is
12241 clobbered and attributes are updated.
12242 (call_internal_short, call_internal_long, call_value_internal_short,
12243 call_value_internal_long): Updated the attributes.
12244 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
12245 clobbered and attributes are updated.
12246 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
12247 Update to support new targets. CC_REGNUM register is clobbered.
12248 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
12249 instructions.
12250 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
12251 are updated.
12252 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
12253 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
12254 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
12255 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
12256 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
12257 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
12258 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
12259 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
12260 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
12261 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
12262 point instructions defined for V850e2v3 target.
12263 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
12264 Add support for V850E2 targets and CC_REGNUM register is clobbered.
12265 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
12266 support for new targets.
12267 * config/v850/v850-modes.def: New file.
12268 * config/v850/v850.opt(mstrict-align): Remove.
12269 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
12270 mv850e2v3): New command line options for V850.
12271 * config.gcc: Update the newly added files.
12272 * doc/invoke.texi: Update the newly added command line options for
12273 V850 target.
12274
12275 2010-07-26 Richard Guenther <rguenther@suse.de>
12276
12277 PR tree-optimization/45052
12278 * ipa-pure-const.c (check_stmt): Check volatileness.
12279
12280 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12281
12282 PR target/44707
12283 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
12284 * config/sparc/sparc.c: Include reload.h.
12285 (legitimize_tls_address): Rename into...
12286 (sparc_legitimize_tls_address): ...this.
12287 (legitimize_pic_address): Rename into...
12288 (sparc_legitimize_pic_address): ...this.
12289 (sparc_expand_move): Adjust to above renaming.
12290 (sparc_tls_referenced_p): Likewise.
12291 (sparc_legitimize_tls_address): Likewise.
12292 (sparc_legitimize_pic_address): Likewise.
12293 (sparc_legitimize_address): Likewise.
12294 (sparc_output_mi_thunk): Likewise.
12295 (sparc_legitimize_reload_address): New global function. Recognize
12296 (lo_sum (high ...) ...) patterns generated by earlier passes.
12297 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
12298
12299 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12300
12301 PR target/44484
12302 * config/sparc/predicates.md (memory_reg_operand): Delete.
12303 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
12304 (*sync_compare_and_swap): Encode the address form in the pattern.
12305 (*sync_compare_and_swapdi_v8plus): Likewise.
12306
12307 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
12308
12309 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
12310 Streamline paragraph on compatibility with the system compiler.
12311
12312 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
12313
12314 PR middle-end/45035
12315 * alias.c (true_dependence_1): Fix thinko in merge of old
12316 true_dependence and canon_true_dependence.
12317
12318 2010-07-23 Jan Hubicka <jh@suse.cz>
12319
12320 * lto-streamer-out.c (write_symbol): Fix visibilities of external
12321 references.
12322
12323 2010-07-23 Le-Chun Wu <lcwu@google.com>
12324
12325 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
12326 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
12327 and an unnecessary assignment.
12328 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
12329 self-assign warning.
12330 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
12331 unnecessary self-init.
12332
12333 2010-07-23 Richard Guenther <rguenther@suse.de>
12334
12335 PR lto/43071
12336 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
12337 for -flto and -fwhopr.
12338
12339 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
12340
12341 PR target/41943
12342 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
12343 (stmp-int-hdrs): Prefix/postfix headers by include_next.
12344 * config.gcc (user_headers_inc_next_pre): New.
12345 (user_headers_inc_next_post): Likewise.
12346 (*-w64-mingw*): Use for float.h post-fixing, and for
12347 stddef.h/stdarg.h pre-fixing by include_next.
12348 * configure.ac (user_headers_inc_next_post): New.
12349 (user_headers_inc_next_pre): New.
12350 * configure: Regenerated.
12351
12352 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12353
12354 * configure.ac: Don't disable TLS on Solaris 8/9 by default
12355 Set tga_func for Solaris 2/x86 resp. SPARC.
12356 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
12357 (LIB_THREAD_LDFLAGS_SPEC): Define.
12358 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
12359 * configure: Regenerate.
12360 * config.in: Regenerate.
12361 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
12362 -pthread, -threads, LIB_TLS_SPEC with -pthread.
12363 * doc/install.texi (Specific, *-*-solaris2*): Document use of
12364 alternate thread libraries on Solaris 8.
12365 Document TLS patch requirements.
12366 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
12367 Document tls.
12368
12369 PR target/18788
12370 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
12371 -shared.
12372
12373 2010-07-23 Jakub Jelinek <jakub@redhat.com>
12374
12375 * tree.h (struct tree_base): Add nameless_flag bitfield.
12376 (TYPE_NAMELESS, DECL_NAMELESS): Define.
12377 * omp-low.c (create_omp_child_function, scan_omp_parallel,
12378 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
12379 DECL_ARTIFICIAL where needed.
12380 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
12381 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
12382 has DECL_NAMELESS set.
12383
12384 2010-07-23 Martin Jambor <mjambor@suse.cz>
12385
12386 PR tree-optimization/44915
12387 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
12388 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
12389 (analyze_function): Likewise.
12390
12391 2010-07-23 Martin Jambor <mjambor@suse.cz>
12392
12393 PR tree-optimization/44914
12394 * tree-sra.c (sra_modify_function_body): Return true if CFG was
12395 changed, add purging dead eh edges.
12396 (ipa_sra_modify_function_body): Return true if CFG was changed,
12397 simplify purging dead eh edges.
12398 (modify_function): Return true if CFG was changed.
12399 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
12400 was changed.
12401 (ipa_early_sra): Likewise.
12402
12403 2010-07-23 Jie Zhang <jie@codesourcery.com>
12404
12405 PR target/44290
12406 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
12407 if "naked".
12408 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12409 false if ! tree_versionable_function_p.
12410
12411 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
12412
12413 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
12414 * ipa-pure-const.c (special_builtlin_state): Remove
12415 BUILT_IN_ARGS_INFO case.
12416 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12417 * builtins.c (expand_builtin): Likewise.
12418 (expand_builtin_args_info): Remove.
12419 * doc/tm.texi (__builtin_args_info): Remove.
12420 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
12421 * doc/tm.text.in: Likewise.
12422
12423 2010-07-23 Richard Guenther <rguenther@suse.de>
12424
12425 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
12426 (lto_symtab_merge_decls_2): Likewise.
12427 * tree-ssa.c (useless_type_conversion_p): Likewise.
12428 * lto-streamer-in.c (input_gimple_stmt): Likewise.
12429 * gimple.c (gtc_visited2, gtc_ob2): Remove.
12430 (struct type_pair_d): Make same_p an array indexed by mode.
12431 Update comment.
12432 (lookup_type_pair): Update initialization.
12433 (struct sccs): Adjust same_p type.
12434 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
12435 Adjust.
12436 (print_gimple_types_stats): Likewise.
12437 * gimple.h (enum gtc_mode): New.
12438 (gimple_types_compatible_p): Adjust prototype.
12439
12440 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
12441
12442 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
12443 again after processing insn.
12444
12445 2010-07-23 Jie Zhang <jie@codesourcery.com>
12446
12447 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
12448 proper words when !tree_versionable_function_p.
12449
12450 2010-07-23 Richard Guenther <rguenther@suse.de>
12451
12452 PR tree-optimization/45037
12453 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
12454
12455 2010-07-23 Jie Zhang <jie@codesourcery.com>
12456
12457 * doc/extend.texi: Remove IP2K from the description of naked attribute.
12458 Add MCORE instead.
12459
12460 2010-07-10 Andi Kleen <ak@linux.intel.com>
12461
12462 PR lto/44992
12463 * lto-opts.c (lto_write_options): Add NULL file_data argument to
12464 lto_get_section_name.
12465 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
12466 * lto-streamer-out.c (produce_asm): Likewise.
12467 (copy_function): Likewise.
12468 (produce_symtab): Likewise.
12469 (produce_asm_for_decls): Likewise.
12470 * lto-streamer.c (lto_get_section_name): Add file_data argument.
12471 Rewrite to add random postfix to LTO sections.
12472 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
12473 (lto_get_section_name): Add file_data argument to prototype.
12474
12475 2010-07-10 Andi Kleen <ak@linux.intel.com>
12476
12477 * lto-section-in.c (lto_section_name): Synchronize names
12478 with lto_get_section_name.
12479
12480 2010-07-10 Andi Kleen <ak@linux.intel.com>
12481
12482 * lto-opts.c (lto_read_file_options): Check for missing section.
12483
12484 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12485
12486 * ira.c (check_allocation): Correctly handle the case where an allocno
12487 with two objects was allocated to a single reg.
12488
12489 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
12490
12491 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
12492 (is_widening_mult_p): Likewise.
12493 (convert_to_widen): Use them.
12494 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
12495 well as integer ones.
12496
12497 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
12498
12499 * alias.c (true_dependence_1): New function, merged version of
12500 true_dependence and canon_true_dependence.
12501 (true_dependence): Simplify.
12502 (canon_true_dependence): Simplify.
12503
12504 2010-07-22 Richard Henderson <rth@redhat.com>
12505
12506 PR target/45027
12507 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
12508 of V4SFmode for the SSE saves; increase stack alignment if needed.
12509 (ix86_gimplify_va_arg): Don't increase stack alignment here.
12510
12511 2010-07-22 Jakub Jelinek <jakub@redhat.com>
12512
12513 PR bootstrap/45028
12514 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
12515 call cprop_find_used_regs again via note_uses.
12516
12517 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
12518
12519 * alias.c (get_alias_set): Fix formatting issues.
12520
12521 2010-07-22 Steve Ellcey <sje@cup.hp.com>
12522
12523 PR middle-end/44878
12524 * stmt.c (expand_value_return): Call promote_function_mode with
12525 a for_return argument of 2 when returning by reference.
12526
12527 2010-07-22 Dodji Seketeli <dodji@redhat.com>
12528
12529 PR debug/45024
12530 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
12531 unit DIE if we can find the scope DIE.
12532
12533 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12534
12535 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
12536 changed. Initialize OBJECT_SUBWORD.
12537 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
12538 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
12539 all callers changed.
12540 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
12541 (finish_allocno): Likewise.
12542 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
12543 (remove_low_level_allocnos): Likewise.
12544 (update_bad_spill_attribute): Likewise.
12545 (setup_min_max_allocno_live_range_point): Likewise.
12546 (sort_conflict_id_map): Likewise.
12547 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
12548 (ior_hard_reg_conflicts): New function.
12549 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
12550 (compress_conflict_vecs): Iterate over objects, not allocnos.
12551 (ira_add_live_range_to_object): New function.
12552 (object_range_compare_func): Renamed from allocno_range_compare_func.
12553 All callers changed.
12554 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
12555 subobjects, widen the min/max range of the lowest-order object to
12556 potentially include all other such low-order objects.
12557 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
12558 (check_allocation): Likewise. Use more fine-grained tests for register
12559 conflicts.
12560 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
12561 allocno subobjects.
12562 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
12563 choices about which bits to set in each set. Don't use
12564 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
12565 using the multiple sets we computed.
12566 (push_allocno_to_stack): Iterate over allocno subobjects.
12567 (all_conflicting_hard_regs_coalesced): New static function.
12568 (setup_allocno_available_regs_num): Use it.
12569 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
12570 subobjects.
12571 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
12572 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12573 by ALLOCNO_NUM_OBJECTS.
12574 (calculate_spill_cost): Likewise.
12575 (color_pass): Express if statement in a more normal way.
12576 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
12577 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
12578 (setup_slot_coalesced_allocno_live_ranges): Likewise.
12579 (allocno_reload_assign): Likewise.
12580 (ira_reassign_pseudos): Likewise.
12581 (fast_allocation): Likewise.
12582 * ira-conflicts.c (build_conflict_bit_table): Likewise.
12583 (print_allocno_conflicts): Likewise.
12584 (ira_build_conflicts): Likewise.
12585 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
12586 callers changed. Test subword 0 of each allocno for conflicts.
12587 (build_object_conflicts): Renamed from build_allocno_conflicts. All
12588 callers changed. Iterate over allocno subobjects.
12589 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
12590 * ira-int.h (struct ira_allocno): New member: num_objects.
12591 Rename object to objects and change it into an array.
12592 (ALLOCNO_OBJECT): Add new argument N.
12593 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
12594 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
12595 (ior_hard_reg_conflicts): Declare.
12596 (ira_add_live_range_to_object): Declare.
12597 (ira_allocno_object_iterator): New.
12598 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
12599 (FOR_EACH_ALLOCNO_OBJECT): New macro.
12600 * ira-lives.c (objects_live): Renamed from allocnos_live; all
12601 uses changed.
12602 (allocnos_processed): New sparseset.
12603 (make_object_born): Renamed from make_allocno_born; take an
12604 ira_object_t argument. All callers changed.
12605 (make_object_dead): Renamed from make_allocno_dead; take an
12606 ira_object_t argument. All callers changed.
12607 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
12608 All callers changed.
12609 (mark_pseudo_regno_live): Iterate over allocno subobjects.
12610 (mark_pseudo_regno_dead): Likewise.
12611 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
12612 functions.
12613 (mark_ref_live): Detect subword accesses and call
12614 mark_pseudo_regno_subword_live as appropriate.
12615 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
12616 (process_bb_nodes_live): Deal with object-related updates first; set
12617 and test bits in allocnos_processed to avoid computing allocno
12618 statistics more than once.
12619 (create_start_finish_chains): Iterate over objects, not allocnos.
12620 (print_object_live_ranges): New function.
12621 (print_allocno_live_ranges): Use it.
12622 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
12623 and objects_live.
12624
12625 2010-07-22 Richard Guenther <rguenther@suse.de>
12626
12627 PR lto/42451
12628 * gimple.c (gtc_next_dfs_num): New global.
12629 (struct sccs): Make value a union, add integer same_p member.
12630 (gtc_visit): New function.
12631 (gimple_types_compatible_p_1): New function, split out from ...
12632 (gimple_types_compatible_p): ... here. Start a DFS walk here.
12633 (iterative_hash_gimple_type): Adjust for sccs change.
12634
12635 2010-07-22 Martin Jambor <mjambor@suse.cz>
12636
12637 PR tree-optimization/44891
12638 * tree-sra.c: Include gimple-pretty-print.h.
12639 (replace_uses_with_default_def_ssa_name): Renamed to
12640 get_repl_default_def_ssa_name, return the new SSA name instead of
12641 replacing the old one.
12642 (sra_modify_assign): Dump a message when removing a load, if the LHS
12643 is an SSA_NAME, do not do any propagation, just set the RHS to a
12644 default definition SSA NAME, type convert if necessary.
12645 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
12646
12647 2010-07-22 Richard Guenther <rguenther@suse.de>
12648
12649 PR tree-optimization/45017
12650 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
12651 TYPE_PRECISION of integral types in addition to size.
12652
12653 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12654
12655 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
12656 when no C library is specified.
12657
12658 2010-07-22 Martin Jambor <mjambor@suse.cz>
12659
12660 * ipa-prop.h (struct ipa_node_params): Updated comment.
12661 (struct ipa_edge_args): Likewise.
12662 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
12663
12664 2010-07-22 Martin Jambor <mjambor@suse.cz>
12665
12666 * cgraphunit.c (verify_edge_count_and_frequency): New function.
12667 (verify_cgraph_node): Verify frequencies of indirect edges.
12668 * tree-inline.c (tree_function_versioning): Update frequencies of
12669 indirect edges.
12670
12671 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12672
12673 PR target/43698
12674 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
12675 Set *arm_rev to be predicable.
12676
12677 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
12678
12679 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
12680 (LINK_COMMAND_SPEC_A): New.
12681 (DSYMUTIL): New.
12682 (DSYMUTIL_SPEC): New.
12683 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
12684 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
12685
12686 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
12687
12688 * calls.c (load_register_parameters): Move check for zero
12689 sized items so that only the call to
12690 mem_overlaps_already_clobbered_arg_p () is protected.
12691
12692 2010-07-22 Jan Hubicka <jh@suse.cz>
12693
12694 * ipa-pure-const.c (varying_state): Break out from ...
12695 (get_function_state): ... here; always return varying_state
12696 when state would be NULL otherwise.
12697 (remove_node_data): Do not free varying state.
12698
12699 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12700
12701 PR bootstrap/44970
12702 PR middle-end/45009
12703 * postreload.c: Include "target.h".
12704 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
12705 into account.
12706 (fixup_debug_insns): Don't copy the rtx.
12707 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
12708 Don't copy when replacing. Call fixup_debug_insns in the case where
12709 we merged one add with another.
12710 (reload_combine_recognize_pattern): Fail if there aren't any uses.
12711 Try harder to determine whether we're picking a valid index register.
12712 Don't set store_ruid for an insn we're going to scan in the
12713 next iteration.
12714 (reload_combine): Remove unused code.
12715 (reload_combine_note_use): When updating use information for
12716 an old insn, ignore a use that occurs after store_ruid.
12717 * Makefile.in (postreload.o): Update dependencies.
12718
12719 * function.c (record_hard_reg_sets): Restrict the previous change
12720 to cases where the incoming nominal mode is the same as the
12721 incoming promoted mode and everything happens in MODE_INT.
12722
12723 2010-07-21 Jakub Jelinek <jakub@redhat.com>
12724
12725 PR debug/45015
12726 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
12727 ASM_OPERANDS_OUTPUT_IDX.
12728 (adjust_insn): For inline asm with multiple sets ensure first
12729 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
12730 the insn.
12731
12732 2010-07-21 Richard Henderson <rth@redhat.com>
12733
12734 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
12735 comparison for avoiding xmm register saves. Emit the xmm register
12736 saves explicitly.
12737 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
12738 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
12739 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
12740 Remove patterns and the associated splitters.
12741
12742 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
12743
12744 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
12745 and imagine parts of a complex, so that they can have the same
12746 base and fall into the same group.
12747
12748 2010-07-21 Richard Guenther <rguenther@suse.de>
12749
12750 PR lto/45018
12751 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
12752 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
12753 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
12754
12755 2010-07-21 Martin Jambor <mjambor@suse.cz>
12756
12757 PR tree-optimization/44900
12758 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
12759 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
12760
12761 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
12762
12763 PR middle-end/44738
12764 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
12765
12766 2010-07-21 Richard Guenther <rguenther@suse.de>
12767
12768 PR middle-end/45013
12769 * tree-ssa.c (useless_type_conversion_p): Dispatch to
12770 gimple_types_compatible_p only when in lto.
12771 * gimple.c (gimple_types_compatible_p): Use canonical types
12772 to speed up comparison.
12773
12774 2010-07-21 Richard Guenther <rguenther@suse.de>
12775
12776 * tree-flow.h (referenced_var): Move define ...
12777 * tree-flow-inline.h (referenced_var): ... here as an inline
12778 function. Assert here ...
12779 * tree-dfa.c (referenced_var_lookup): ... instead of here.
12780 * tree-ssa.c (maybe_optimize_var): Check if the variable
12781 is in referenced vars.
12782 (execute_update_addresses_taken): Remove old broken check.
12783 * gimple-pretty-print.c (pp_points_to_solution): Use
12784 referenced_var_lookup.
12785 * tree-into-ssa.c (dump_decl_set): Likewise.
12786
12787 2010-07-21 Jakub Jelinek <jakub@redhat.com>
12788
12789 PR debug/45003
12790 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
12791 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
12792 ZERO_EXTEND here.
12793
12794 2010-07-20 Richard Henderson <rth@redhat.com>
12795
12796 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
12797
12798 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
12799
12800 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
12801 computing the sum of the stack pointer and a large constant.
12802 * config/arm/constraints.md (M): Remove superfluous parentheses.
12803 (Pc): New constraint.
12804
12805 2010-07-20 Jakub Jelinek <jakub@redhat.com>
12806
12807 PR debug/45006
12808 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
12809 operand's type if exp is tcc_unary class tree.
12810
12811 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
12812
12813 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
12814 Reverse sense of if_then_else condition.
12815
12816 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
12817
12818 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
12819 * config/rs6000/rs6000.c (rs6000_override_options): Set
12820 rs6000_block_move_inline_limit appropriately.
12821 (expand_block_move): Use rs6000_block_move_inline_limit.
12822 * doc/invoke.texi (mblock-move-inline-limit): Document.
12823
12824 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
12825
12826 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
12827 FROM and TO. All callers changed. Don't look for tracked uses,
12828 just scan the RTL for DEBUG_INSNs and substitute.
12829 (reload_combine_recognize_pattern): Call fixup_debug_insns.
12830 (reload_combine): Ignore DEBUG_INSNs.
12831
12832 2010-07-20 Jakub Jelinek <jakub@redhat.com>
12833
12834 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
12835 depth to 8 from 5.
12836
12837 PR debug/45003
12838 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
12839 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
12840 instead of the result's type.
12841
12842 2010-07-20 Richard Guenther <rguenther@suse.de>
12843
12844 PR tree-optimization/44977
12845 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
12846 SSA form.
12847
12848 2010-07-20 Richard Guenther <rguenther@suse.de>
12849
12850 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
12851 (lto_symtab_merge_decls_2): Likewise.
12852 * gimple.h (gimple_types_compatible_p): Declare.
12853 * gimple.c (gimple_queue_type_fixup): Remove.
12854 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
12855 (gimple_compatible_complete_and_incomplete_type_p): New function.
12856 (gimple_types_compatible_p): Adjust.
12857 (gimple_register_type): Remove type fixup code.
12858 (print_gimple_types_stats): Adjust.
12859 (free_gimple_type_tables): Likewise.
12860 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
12861 * tree-ssa.c (useless_type_conversion_p): Likewise.
12862
12863 2010-07-20 Richard Guenther <rguenther@suse.de>
12864
12865 PR middle-end/44971
12866 PR middle-end/44988
12867 * tree-ssa.c (maybe_optimize_var): New function split out from ...
12868 (execute_update_addresses_taken): ... here.
12869 (non_rewritable_mem_ref_base): Likewise.
12870 (execute_update_addresses_taken): Do not iterate over all referenced
12871 vars but just all local decls and parms.
12872 Properly check call and asm arguments and rewrite call arguments.
12873
12874 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
12875
12876 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
12877 to top level.
12878 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
12879 definitions ...
12880 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
12881 New macro.
12882 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
12883
12884 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
12885
12886 * gengtype.c (start_root_entry): New function, split out from
12887 write_root. Check whether V is null and raise an error if so.
12888 (write_field_root): Check for V being null. Don't raise an error here;
12889 set V to null instead.
12890 (write_root): Update comment above function. Use start_root_entry.
12891
12892 2010-07-19 Xinliang David Li <davidxl@google.com>
12893
12894 PR testsuite/44932
12895 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
12896 def edges.
12897 (find_uninit_use): Add dump.
12898 (is_use_properly_guarded): Ditto.
12899 (warn_uninitialized_phi): Ditto.
12900 (execute_late_warn_uninitialized): Ditto.
12901
12902 2010-07-19 Richard Guenther <rguenther@suse.de>
12903
12904 PR middle-end/44941
12905 * expr.c (emit_block_move_hints): Move zero size check first.
12906 Move asserts to more useful places.
12907 * calls.c (load_register_parameters): Check for zero size.
12908
12909 2010-07-19 Richard Henderson <rth@redhat.com>
12910
12911 * tree-optimize.c (execute_all_early_local_passes): New. Change
12912 cgraph_state here ...
12913 (execute_early_local_optimizations): ... not here. Remove.
12914 (pass_early_local_passes, pass_all_early_optimizations): Update.
12915
12916 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
12917
12918 * postreload.c (reload_combine_closest_single_use): Ignore the
12919 number of uses for DEBUG_INSNs.
12920 (fixup_debug_insns): New static function.
12921 (reload_combine_recognize_const_pattern): Use it. Don't let the
12922 main loop be affected by DEBUG_INSNs.
12923 Really disallow moving adds past a jump insn.
12924 (reload_combine_recognize_pattern): Don't update use_ruid here.
12925 (reload_combine_note_use): Do it here.
12926 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
12927
12928 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
12929
12930 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
12931 of a loop.
12932 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
12933
12934 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
12935
12936 * config/i386/darwin.h: Define darwin_emit_branch_islands.
12937 (TARGET_MACHO_BRANCH_ISLANDS): New.
12938 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
12939 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
12940 default value.
12941 * config/i386/i386.c (output_pic_addr_const): Do not emit
12942 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
12943 (x86_output_mi_thunk): Adjust symbol creation.
12944 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
12945 Remove out of date comment.
12946 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
12947 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
12948 (DARWIN_GENERATE_ISLANDS): Ditto.
12949 (output_call): Do not emit branch islands unless
12950 darwin_emit_branch_islands is set.
12951 * config/darwin.c: Declare darwin_emit_branch_islands.
12952 (machopic_indirect_data_reference): Do not emit unless
12953 darwin_emit_branch_islands is set.
12954 (darwin_override_options): Set darwin_emit_branch_islands
12955 where it is needed.
12956 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
12957
12958 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12959
12960 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12961 sse_runtime, sse2_runtime.
12962
12963 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
12964
12965 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
12966 low half of a single-register SCmode return value before ORing
12967 it with the high half.
12968 * config/mips/mips16.S (MERGE_GPRf): Likewise.
12969
12970 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12971
12972 PR target/44805
12973 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
12974 on all targets.
12975
12976 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
12977
12978 PR target/42235
12979 * postreload.c (reload_cse_move2add): Return bool, true if anything.
12980 changed. All callers changed.
12981 (move2add_use_add2_insn): Likewise.
12982 (move2add_use_add3_insn): Likewise.
12983 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
12984 reload_combine.
12985 (RELOAD_COMBINE_MAX_USES): Bump to 16.
12986 (last_jump_ruid): New static variable.
12987 (struct reg_use): New members CONTAINING_MEM and RUID.
12988 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
12989 (reload_combine_split_one_ruid, reload_combine_split_ruids,
12990 reload_combine_purge_insn_uses, reload_combine_closest_single_use
12991 reload_combine_purge_reg_uses_after_ruid,
12992 reload_combine_recognize_const_pattern): New static functions.
12993 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
12994 is true for our reg and that we have available index regs.
12995 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
12996 callers changed. Use them to initialize fields in struct reg_use.
12997 (reload_combine): Initialize last_jump_ruid. Be careful when to
12998 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
12999 Call reload_combine_recognize_const_pattern.
13000 (reload_combine_note_store): Update REAL_STORE_RUID field.
13001
13002 2010-07-16 Jason Merrill <jason@redhat.com>
13003
13004 * Makefile.in (opts-common.o): Depend on options.h.
13005
13006 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13007
13008 * tree.c (build_common_builtin_nodes): Use build_function_type_list
13009 instead of build_function_type.
13010 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
13011 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13012
13013 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13014
13015 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
13016 do all the work.
13017 (rs6000_emit_int_cmove): Use function pointers for insn generation.
13018 Don't force values into registers unnecessarily.
13019 (output_isel): Assert that we're not given conditions we can't handle.
13020 Delete corresponding code.
13021 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
13022 scc_comparison_operator constraint. Permit 0 for the consequent
13023 operand. Permit any GPR for the alternative operand.
13024 (isel_unsigned_<mode>): Likewise.
13025
13026 2010-07-16 Jakub Jelinek <jakub@redhat.com>
13027
13028 PR target/44942
13029 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
13030 argument to const_tree.
13031 * config/i386/i386.c (function_arg_advance): If padding needs to be
13032 inserted before argument, increment cum->words by number of padding
13033 words as well.
13034 (contains_aligned_value_p): Change argument to const_tree.
13035 (ix86_function_arg_boundary): Change second argument to const_tree.
13036
13037 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
13038
13039 PR target/42235
13040 * function.c (record_hard_reg_sets): New static function.
13041 (assign_parm_setup_reg): If an optab for extending exists and the
13042 generated code clobbbers no hard regs, emit the insn directly and
13043 create a REG_EQUIV note.
13044
13045 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13046
13047 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
13048 TREE_CHAIN.
13049 * c-typeck.c (push_init_level): Likewise.
13050 (process_init_element): Likewise.
13051
13052 2010-07-15 Anatoly Sokolov <aesok@post.ru>
13053
13054 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
13055 (integer_three_node): Add.
13056 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
13057 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
13058 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
13059 of call build_int_cst.
13060 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
13061 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
13062 (find_interesting_uses_address): Ditto.
13063 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
13064 * tree-eh.c (lower_eh_constructs_2): Ditto.
13065 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
13066 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
13067 * expmed.c (expand_divmod): Ditto.
13068 * tree-mudflap.c (mx_register_decls): Ditto.
13069 * varasm.c (array_size_for_constructor): Ditto.
13070 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
13071 * c-parser.c (c_parser_postfix_expression): Ditto.
13072
13073 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
13074
13075 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
13076 New static variables.
13077 (reload_combine_recognize_pattern): New static function, broken out
13078 of reload_combine.
13079 (reload_combine): Use it. Only initialize first_index_reg and
13080 last_index_reg once.
13081
13082 2010-07-15 Richard Henderson <rth@redhat.com>
13083
13084 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
13085 when done.
13086
13087 2010-07-15 Jan Hubicka <jh@suse.cz>
13088
13089 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
13090 comdats for broken gold.
13091 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
13092
13093 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13094
13095 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
13096
13097 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13098
13099 * tree.h (DECL_CHAIN): Define.
13100 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
13101 * c-decl.c: Likewise.
13102 * c-parser.c: Likewise.
13103 * c-typeck.c: Likewise.
13104 * cfgexpand.c: Likewise.
13105 * cgraph.c: Likewise.
13106 * cgraphunit.c: Likewise.
13107 * combine.c: Likewise.
13108 * config/alpha/alpha.c: Likewise.
13109 * config/arm/arm.c: Likewise.
13110 * config/frv/frv.c: Likewise.
13111 * config/i386/i386.c: Likewise.
13112 * config/i386/winnt-cxx.c: Likewise.
13113 * config/ia64/ia64.c: Likewise.
13114 * config/iq2000/iq2000.c: Likewise.
13115 * config/mep/mep.c: Likewise.
13116 * config/mips/mips.c: Likewise.
13117 * config/pa/som.h: Likewise.
13118 * config/rs6000/rs6000.c: Likewise.
13119 * config/s390/s390.c: Likewise.
13120 * config/sh/sh.c: Likewise.
13121 * config/sh/symbian-cxx.c: Likewise.
13122 * config/sparc/sparc.c: Likewise.
13123 * config/spu/spu.c: Likewise.
13124 * config/stormy16/stormy16.c: Likewise.
13125 * config/vxworks.c: Likewise.
13126 * config/xtensa/xtensa.c: Likewise.
13127 * coverage.c: Likewise.
13128 * dbxout.c: Likewise.
13129 * dwarf2out.c: Likewise.
13130 * emit-rtl.c: Likewise.
13131 * expr.c: Likewise.
13132 * function.c: Likewise.
13133 * gimple-low.c: Likewise.
13134 * gimple-pretty-print.c: Likewise.
13135 * gimplify.c: Likewise.
13136 * integrate.c: Likewise.
13137 * ipa-inline.c: Likewise.
13138 * ipa-prop.c: Likewise.
13139 * ipa-split.c: Likewise.
13140 * ipa-struct-reorg.c: Likewise.
13141 * ipa-type-escape.c: Likewise.
13142 * langhooks.c: Likewise.
13143 * lto-cgraph.c: Likewise.
13144 * omp-low.c: Likewise.
13145 * stor-layout.c: Likewise.
13146 * tree-cfg.c: Likewise.
13147 * tree-complex.c: Likewise.
13148 * tree-dfa.c: Likewise.
13149 * tree-dump.c: Likewise.
13150 * tree-inline.c: Likewise.
13151 * tree-mudflap.c: Likewise.
13152 * tree-nested.c: Likewise.
13153 * tree-object-size.c: Likewise.
13154 * tree-pretty-print.c: Likewise.
13155 * tree-sra.c: Likewise.
13156 * tree-ssa-live.c: Likewise.
13157 * tree-ssa-loop-niter.c: Likewise.
13158 * tree-ssa-math-opts.c: Likewise.
13159 * tree-ssa-reassoc.c: Likewise.
13160 * tree-ssa-sccvn.c: Likewise.
13161 * tree-ssa-structalias.c: Likewise.
13162 * tree-tailcall.c: Likewise.
13163 * tree-vrp.c: Likewise.
13164 * tree.c: Likewise.
13165 * var-tracking.c: Likewise.
13166 * varasm.c: Likewise.
13167
13168 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13169
13170 PR target/44877
13171 * config/spu/spu.c (spu_expand_builtin_1): Allow references
13172 (as well as pointers) as argument to mask_for_load builtins.
13173
13174 2010-07-15 Richard Guenther <rguenther@suse.de>
13175
13176 PR tree-optimization/44946
13177 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
13178 with accessing only padding properly.
13179
13180 2010-07-15 Jan Hubicka <jh@suse.cz>
13181
13182 * ipa.c (function_and_variable_visibility): Variables marked as used
13183 should not be localized.
13184
13185 2010-07-15 Jan Hubicka <jh@suse.cz>
13186
13187 * cgraph.c: Include lto-streamer.h
13188 (change_decl_assembler_name): Work when assembler name hash is at place.
13189 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
13190 be sure to rename it to avoid name clash.
13191 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
13192 Localize hidden symbols only when locally defined.
13193
13194 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
13195
13196 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
13197
13198 2010-07-15 Magnus Granberg <zorry@gentoo.org>
13199 Kevin F. Quinn <kevquinn@gentoo.org>
13200
13201 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
13202 * common.opt: Add -Wtrampolines.
13203 * doc/invoke.texi: Add -Wtrampolines.
13204
13205 2010-07-15 Jie Zhang <jie@codesourcery.com>
13206
13207 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
13208 cortex_a8_issue_ls.
13209
13210 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
13211
13212 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
13213 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
13214
13215 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13216
13217 * config/spu/spu.c (reg_names): Remove prototype.
13218 (call_used_regs): Likewise.
13219
13220 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
13221
13222 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
13223 "unused" with attribute "used".
13224 (__JCR_END__): Likewise.
13225 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
13226 "used" attribute.
13227 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
13228
13229 2010-07-14 Richard Guenther <rguenther@suse.de>
13230
13231 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
13232 (maybe_fixup_decls): Likewise.
13233 (input_gimple_stmt): Do not fixup anything.
13234 * lto-streamer-out.c (output_gimple_stmt): Make sure all
13235 non-automatic variable uses are wrapped inside a MEM_REF.
13236
13237 2010-07-14 Richard Henderson <rth@redhat.com>
13238
13239 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
13240 for functions.
13241 * varasm.c (assemble_variable): Remove early exit for functions;
13242 assert that we're given a variable.
13243
13244 2010-07-14 Jie Zhang <jie@codesourcery.com>
13245
13246 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
13247 cortex_a8_default when neon_type is not none.
13248
13249 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13250
13251 * lower-subreg.c (subreg_context): New static bitmap.
13252 (decompose_multiword_subregs): Allocate and free it.
13253 (find_decomposable_subregs): Set a bit in it for a register that
13254 occurs in a subreg that changes mode but not size.
13255 (can_decompose_p): Test it instead of non_decomposable_context.
13256
13257 2010-07-14 Richard Guenther <rguenther@suse.de>
13258
13259 PR tree-optimization/44824
13260 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
13261 is_gimple_mem_ref_addr.
13262 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
13263 non-decl_address_invariant_p addresses.
13264
13265 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13266
13267 * reload.c (find_reloads): Revert code to penalize small register
13268 classes that was brought in with the IRA merge.
13269
13270 2010-07-14 Richard Guenther <rguenther@suse.de>
13271
13272 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
13273 as base of ARRAY_REFs.
13274
13275 2010-07-14 Richard Guenther <rguenther@suse.de>
13276
13277 PR middle-end/44930
13278 * tree-pretty-print.c (do_niy): Do not print a newline.
13279
13280 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13281
13282 * ira-int.h (struct ira_object): New.
13283 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
13284 (struct ira_allocno): Remove members min, max,
13285 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
13286 conflict_allocnos_num and conflict_vec_p. Add new member object.
13287 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
13288 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
13289 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
13290 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
13291 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
13292 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
13293 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
13294 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
13295 an ira_object_t rather than ira_allocno_t. All uses changed.
13296 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13297 contains a vector of ira_object_t; all uses changed.
13298 (ira_objects_num): Declare variable.
13299 (ira_create_allocno_object): Declare function.
13300 (ira_conflict_vector_profitable_p): Adjust prototype.
13301 (ira_allocate_conflict_vec): Renamed from
13302 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
13303 (ira_allocate_object_conflicts): Renamed from
13304 ira_allocate_allocno_conflicts; first arg now ira_object_t.
13305 (struct ira_object_iterator): New.
13306 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
13307 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
13308 to conflict_vec_p. All uses changed.
13309 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
13310 Changed to take into account that conflicts are now tracked for
13311 objects.
13312 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
13313 Args changed to accept ira_object_t. All uses changed.
13314 (allocnos_conflict_p): New static function.
13315 (collected_conflict_objects): Renamed from collected_allocno_objects;
13316 now a vector of ira_object_t. All uses changed.
13317 (build_conflict_bit_table): Changed to take into account that
13318 conflicts are now tracked for objects.
13319 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
13320 (print_allocno_conflicts, ira_build_conflicts): Likewise.
13321 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
13322 setup_allocno_left_conflicts_size, allocno_reload_assign,
13323 fast_allocation): Likewise.
13324 * ira-lives.c (make_hard_regno_born, make_allocno_born)
13325 process_single_reg_class_operands, process_bb_node_lives): Likewise.
13326 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
13327 Likewise.
13328 * ira-build.c (ira_objects_num): New variable.
13329 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13330 contains a vector of ira_object_t; all uses changed.
13331 (ira_object_id_map_vec): Corresponding change.
13332 (object_pool): New static variable.
13333 (initiate_allocnos): Initialize it.
13334 (finish_allocnos): Free it.
13335 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
13336 New functions.
13337 (ira_create_allocno): Don't set members that were removed.
13338 (ira_set_allocno_cover_class): Don't change conflict hard regs.
13339 (merge_hard_reg_conflicts): Changed to take into account that
13340 conflicts are now tracked for objects.
13341 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
13342 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
13343 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
13344 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
13345 setup_min_max_conflict_allocno_ids, ): Likewise.
13346 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
13347 to ira_object_t; all callers changed.
13348 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
13349 to ira_object_t, all callers changed.
13350 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
13351 to ira_object_t, all callers changed.
13352 (conflict_check, curr_conflict_check_tick): Renamed from
13353 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
13354 changed.
13355 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
13356 arg changed to ira_object_t, all callers changed.
13357 (create_cap_allocno): Call ira_create_allocno_object.
13358 (finish_allocno): Free the corresponding object.
13359 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
13360 callers changed. Adjusted for dealing with objects.
13361 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
13362 dealing with objects.
13363 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
13364
13365 * ira-int.h (struct live_range): Rename allocno member to object
13366 and change type to ira_object_t.
13367 (struct ira_object): New member live_ranges.
13368 (struct ira_allocno): Remove member live_ranges.
13369 (ALLOCNO_LIVE_RANGES): Remove.
13370 (OBJECT_LIVE_RANGES): New macro.
13371 (ira_create_live_range, ira_copy_live_range_list,
13372 ira_merge_live_range_list, ira_live_ranges_intersect_p,
13373 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
13374 * ira-build.c (ira_create_object): Initialize live ranges here.
13375 (ira_create_allocno): Not here.
13376 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
13377 changed to ira_object_t, all callers changed.
13378 (copy_live_range): Rename from copy_allocno_live_range, all callers
13379 changed.
13380 (ira_copy_live_range_list): Rename from
13381 ira_copy_allocno_live_range_list, all callers changed.
13382 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
13383 all callers changed.
13384 (ira_live_ranges_intersect_p): Rename from
13385 ira_allocno_live_ranges_intersect_p, all callers changed.
13386 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
13387 callers changed.
13388 (ira_finish_live_range_list): Rename from
13389 ira_finish_allocno_live_range_list, all callers changed.
13390 (change_object_in_range_list): Rename from change_allocno_in_range_list,
13391 last arg changed to ira_object_t, all callers changed.
13392 (finish_allocno): Changed to expect live ranges in the allocno's object.
13393 (move_allocno_live_ranges, copy_allocno_live_ranges,
13394 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
13395 ira_flattening, ira_build): Likewise.
13396 * ira-color.c (allocnos_have_intersected_live_ranges_p,
13397 slot_coalesced_allocno_live_ranges_intersect,
13398 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
13399 * ira-conflicts.c (build_conflict_bit_table): Likewise.
13400 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13401 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
13402 make_allocno_dead, create_start_finish_chains,
13403 remove_some_program_points_and_update_live_ranges,
13404 ira_debug_live_range_list): Likewise.
13405
13406 * ira-int.h (ira_object_conflict_iterator): Rename from
13407 ira_allocno_conflict_iterator.
13408 (ira_object_conflict_iter_init): Rename from
13409 ira_allocno_conflict_iter_init, second arg changed to
13410 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
13411 FOR_EACH_ALLOCNO_CONFLICT.
13412 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
13413 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
13414 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
13415 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13416
13417 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
13418
13419 PR other/44874
13420 * tree-dump.c (dump_options): Add enumerate_locals entry.
13421 Add TDF_NOID exclusion to all entry.
13422 * tree-dump.h (dump_enumerated_decls): Declare.
13423 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
13424 Don't display type uid.
13425 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
13426 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
13427 * tree-ssa-live.c: Include gimple.h.
13428 (numbered_tree_d): New struct.
13429 (numbered_tree): New typedef.
13430 (DEF_VEC_O (numbered_tree): New.
13431 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
13432 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
13433 (dump_enumerated_decls): Likewise.
13434 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
13435 debug info and flag_dump_final_insns, call dump_enumerated_decls.
13436 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
13437 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
13438
13439 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
13440
13441 * expmed.h (MAX_BITS_PER_WORD): Move to...
13442 * defaults.h (MAX_BITS_PER_WORD): ...here.
13443
13444 2010-07-13 DJ Delorie <dj@redhat.com>
13445
13446 * config/h8300/h8300.c (h8300_init_once): Default to
13447 -fstrict_volatile_bitfields.
13448
13449 * config/sh/sh.c (sh_override_options): Default to
13450 -fstrict_volatile_bitfields.
13451
13452 * config/rx/rx.c (rx_option_override): New.
13453
13454 * config/m32c/m32c.c (m32c_override_options): Default to
13455 -fstrict_volatile_bitfields.
13456
13457 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
13458
13459 * tree.h (build_function_call_expr): Delete.
13460 (build_call_expr_loc_array): New function.
13461 (build_call_expr_loc_vec): New function.
13462 * tree-flow.h (struct omp_region): Change type of ws_args field
13463 to a VEC.
13464 * builtins.c (build_function_call_expr): Delete.
13465 (build_call_expr_loc_array): New function.
13466 (build_call_expr_loc): Call it. Use XALLOCAVEC.
13467 (build_call_expr): Likewise.
13468 (build_call_expr_loc_vec): New function.
13469 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
13470 build_function_call_expr.
13471 * expr.c (emutls_var_address): Likewise.
13472 * varasm.c (emutls_common_1): Likewise.
13473 * omp-low.c (expand_omp_atomic_mutex): Likewise.
13474 (expand_omp_taskreg): Adjust for new type of region->ws_args.
13475 (get_ws_args_for): Return a VEC instead of a tree.
13476 (expand_parallel_call): Call build_call_expr_loc_vec instead of
13477 build_function_call_expr.
13478 * stor-layout.c (self_referential_size): Likewise.
13479
13480 2010-07-13 Jakub Jelinek <jakub@redhat.com>
13481
13482 PR testsuite/44701
13483 * recog.c (constrain_operands): Allow side-effects in memory
13484 operands if either < or > constraint is used, rather than if
13485 both < and > is used.
13486
13487 2010-07-13 Richard Guenther <rguenther@suse.de>
13488
13489 PR middle-end/44911
13490 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
13491 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
13492 without name.
13493
13494 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
13495
13496 PR target/44761
13497 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
13498 to variable emited.
13499 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
13500 * config/sh/sh.md (symGOT_load): Likewise.
13501 (symDTPOFF2reg): Likewise.
13502 (symTPOFF2reg): Likewise.
13503
13504 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13505
13506 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
13507 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
13508
13509 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13510
13511 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
13512 explanation.
13513 Find ucontext_t * on Solaris 11.
13514 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
13515 Handle new Solaris 11 __sighndlr patterns.
13516
13517 2010-07-13 Jakub Jelinek <jakub@redhat.com>
13518
13519 PR debug/44901
13520 * vec.h (VEC_block_remove): Fix comment.
13521 * tree-ssa-live.c (remove_unused_locals): Don't use
13522 VEC_unordered_remove on local_decls, instead replace a single
13523 vector element in each iteration if at least one element had
13524 to be removed and VEC_truncate at the end.
13525 * omp-low.c (expand_omp_taskreg): Likewise.
13526
13527 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13528
13529 * c-decl.c (finish_function): Fix typo in comment.
13530
13531 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
13532
13533 PR bootstrap/44921
13534 * postreload.c (move2add_use_add3_insn): Silence gcc warning
13535 on min_regno.
13536
13537 2010-07-12 Jakub Jelinek <jakub@redhat.com>
13538
13539 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
13540 (simplify_stmt_using_ranges): Use it.
13541
13542 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13543
13544 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
13545 member. Do not mark as GTY(()).
13546 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
13547 (spu_builtin_decls): New static variable.
13548 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
13549 (spu_init_builtins): Likewise.
13550 (spu_builtin_mul_widen_even): Likewise.
13551 (spu_builtin_mul_widen_odd): Likewise.
13552 (spu_builtin_mask_for_load): Likewise.
13553 (spu_builtin_vec_perm): Likewise.
13554 * config/spu/spu-c.c: Include "target.h".
13555 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
13556 of using spu_builtins[].fndecl.
13557
13558 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13559
13560 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
13561 imply -minterlink-mips16.
13562
13563 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13564
13565 * config/mips/mips.h (mips16_globals): Declare.
13566 (SWITCHABLE_TARGET): Define.
13567 * config/mips/mips.c: Include target-globals.h.
13568 (mips16_globals): New variable.
13569 (mips_set_mips16_mode): Use save_target_globals and
13570 restore_target_globals instead of target_reinit.
13571
13572 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13573
13574 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
13575 to say that the function can be called more than once.
13576 * target-globals.c (save_target_globals): Call init_reg_sets.
13577
13578 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13579
13580 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
13581 * bb-reorder.h: New file.
13582 * bb-reorder.c (default_target_bb_reorder): New variable.
13583 (this_target_bb_reorder): New conditional variable.
13584 (uncond_jump_length): Redefine as a macro.
13585 * target-globals.h (this_target_bb_reorder): Declare.
13586 (target_globals): Add a bb_reorder field.
13587 (restore_target_globals): Copy the bb_reorder field to
13588 this_target_bb-reorder.
13589 * target-globals.c: Include bb-reorder.h.
13590 (default_target_globals): Initialize the bb_reorder field.
13591 (save_target_globals): Likewise.
13592
13593 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13594
13595 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
13596 * gcse.h: New file.
13597 * gcse.c: Include gcse.h.
13598 (default_target_gcse): New variable.
13599 (this_target_gcse): New conditional variable.
13600 (can_copy): Redefine as a macro.
13601 (can_copy_init_p): New macro.
13602 (can_copy_p): Remove can_copy_init_p.
13603 * target-globals.h (this_target_gcse): Declare.
13604 (target_globals): Add a gcse field.
13605 (restore_target_globals): Copy the gcse field to this_target_gcse.
13606 * target-globals.c: Include gcse.h.
13607 (default_target_globals): Initialize the gcse field.
13608 (save_target_globals): Likewise.
13609
13610 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13611
13612 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
13613 and x_ira_prohibited_mode_move_regs_initialized_p.
13614 (ira_prohibited_mode_move_regs): Redefine as a macro.
13615 * ira.c (ira_prohibited_mode_move_regs): Delete.
13616 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
13617
13618 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13619
13620 * reload.h (target_reload): Add x_cached_reg_save_code and
13621 x_cached_reg_restore_code.
13622 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
13623 Redefine as macros.
13624
13625 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13626
13627 * Makefile.in (target-globals.o): Depend on builtins.h.
13628 * builtins.h: New file.
13629 * builtins.c: Include builtins.h.
13630 (default_target_builtins): New variable.
13631 (this_target_builtins): New conditional variable.
13632 (apply_args_mode, apply_result_mode): Redefine as macros.
13633 * target-globals.h (this_target_builtins): Declare.
13634 (target_globals): Add a builtins field.
13635 (restore_target_globals): Copy the builtins field to
13636 this_target_builtins.
13637 * target-globals.c: Include builtins.h.
13638 (default_target_globals): Initialize the builtins field.
13639 (save_target_globals): Likewise.
13640
13641 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13642
13643 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
13644 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
13645 from expmed.c.
13646 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
13647 (alg_hash, alg_hash_used_p): New macros.
13648 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
13649 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
13650 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
13651
13652 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13653
13654 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
13655 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
13656 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
13657 (this_op_costs, costs_classes): Redefine as macros.
13658 (record_reg_classes): Don't take op_costs as a parameter.
13659 (record_operand_costs): Likewise. Update calls to record_reg_classes.
13660 (scan_one_insn): Update call to record_operand_costs.
13661
13662 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13663
13664 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
13665 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
13666 (target_ira_int): New structure.
13667 (default_target_ira_int): Declare.
13668 (this_target_ira_int): Declare as a variable or define as a macro.
13669 (ira_reg_mode_hard_regset, ira_register_move_cost)
13670 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
13671 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
13672 (prohibited_class_mode_regs, ira_important_classes_num)
13673 (ira_important_classes, ira_reg_class_intersect)
13674 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
13675 (ira_reg_class_union): Redefine as macros.
13676 * ira.h (target_ira): New structure.
13677 (default_target_ira): Declare.
13678 (this_target_ira): Declare as a variable or define as a macro.
13679 (ira_available_class_regs, ira_hard_regno_cover_class)
13680 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
13681 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
13682 (ira_class_hard_regs_num): Redefine as macros.
13683 * ira.c (default_target_ira, default_target_ira_int): New variables.
13684 (this_target_ira, this_target_ira_int): New conditional variables.
13685 (ira_reg_mode_hard_regset, ira_memory_move_cost)
13686 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
13687 (ira_class_subset_p): Delete.
13688 (no_unit_alloc_regs): Redefine as a macro.
13689 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
13690 (ira_class_hard_regs_num, ira_class_hard_reg_index)
13691 (ira_available_class_regs): Delete.
13692 (alloc_reg_class_subclasses): Redefine as a macro.
13693 (ira_reg_class_cover_size, ira_reg_class_cover)
13694 (ira_important_classes_num, ira_important_classes)
13695 (ira_important_class_nums, ira_class_translate): Delete.
13696 (cover_class_order): Document the variable's lifetime.
13697 (reorder_important_classes): Don't set ira_important_class_nums.
13698 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
13699 (ira_reg_class_super_classes, ira_reg_class_union)
13700 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
13701 Delete.
13702 (setup_reg_class_nregs): Don't set ira_max_regs.
13703 (prohibited_class_mode_regs): Delete.
13704 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
13705 (target_globals): Add ira and ira_int fields.
13706 (restore_target_globals): Copy the ira field to this_target_ira
13707 and the ira_int field to this_target_ira_int.
13708 * target-globals.c: Include ira-int.h.
13709 (default_target_globals): Initialize the ira and ira_int fields.
13710 (save_target_globals): Likewise.
13711
13712 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13713
13714 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
13715 * cfgloop.h (target_cfgloop): New structure.
13716 (default_target_cfgloop): Declare.
13717 (this_target_cfgloop): Declare as a variable or define as a macro.
13718 (target_avail_regs, target_clobbered_regs, target_res_regs)
13719 (target_reg_cost, target_spill_cost): Redefine as macros.
13720 * cfgloopanal.c (default_target_cfgloop): New variable.
13721 (this_target_cfgloop): New conditional variable.
13722 (target_avail_regs, target_clobbered_regs, target_res_regs)
13723 (target_reg_cost, target_spill_cost): Delete.
13724 * target-globals.h (this_target_cfgloop): Declare.
13725 (target_globals): Add a cfgloop field.
13726 (restore_target_globals): Copy the cfgloop field to
13727 this_target_cfgloop.
13728 * target-globals.c: Include cfgloop.h.
13729 (default_target_globals): Initialize the cfgloop field.
13730 (save_target_globals): Likewise.
13731
13732 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13733
13734 * regs.h (target_regs): Add x_direct_load, x_direct_store and
13735 x_float_extend_from_mem.
13736 (direct_load, direct_store, float_extend_from_mem): New macros.
13737 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
13738
13739 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13740
13741 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
13742 (target-globals.o): Depend on $(LIBFUNCS_H).
13743 * libfuncs.h: Include hashtab.h.
13744 (libfunc_entry): Moved from optabs.c.
13745 (target_libfuncs): New structure.
13746 (default_target_libfuncs): Declare.
13747 (this_target_libfuncs): Declare as a variable or define as a macro.
13748 (libfunc_table): Redefine as a macro.
13749 * optabs.c (default_target_libfuncs): New variable.
13750 (this_target_libfuncs): New conditional variable.
13751 (libfunc_table): Delete.
13752 (libfunc_entry): Moved to optabs.h.
13753 (libfunc_hash): Redefine as a macro.
13754 (hash_libfunc, eq_libfunc): Fix comments.
13755 (init_optabs): Use libfunc_hash to detect cases where the function
13756 has already been called. Clear the hash table instead of
13757 recreating it.
13758 * target-globals.h (this_target_libfuncs): Declare.
13759 (target_globals): Add a libfuncs field.
13760 (restore_target_globals): Copy the libfuncs field to
13761 this_target_libfuncs.
13762 * target-globals.c: Include libfuncs.h.
13763 (default_target_globals): Initialize the libfuncs field.
13764 (save_target_globals): Likewise.
13765
13766 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13767
13768 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
13769 in all dependency lists.
13770
13771 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13772
13773 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
13774 * optabs.h (target_optabs): New structure.
13775 (default_target_optabs): Declare.
13776 (this_target_optabs): Declare as a variable or define as a macro.
13777 (optab_table, convert_optab_table, direct_optab_table): Redefine
13778 as macros.
13779 * optabs.c (default_target_optabs): New variable.
13780 (this_target_optabs): New conditional variable.
13781 (optab_table, convert_optab_table, direct_optab_table): Delete.
13782 * target-globals.h (this_target_optabs): Declare.
13783 (target_globals): Add a optabs field.
13784 (restore_target_globals): Copy the optabs field to
13785 this_target_optabs.
13786 * target-globals.c: Include expr.h and optabs.h.
13787 (default_target_globals): Initialize the optabs field.
13788 (save_target_globals): Likewise.
13789
13790 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13791
13792 * flags.h (target_flagstate): Add x_flag_excess_precision.
13793 (flag_excess_precision): Redefine as a macro.
13794 * toplev.c (flag_excess_precision): Delete.
13795
13796 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13797
13798 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
13799 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
13800 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
13801 (no_caller_save_reg_set): Redefine as a macro.
13802 * reload.h (target_reload): Add x_caller_save_initialized_p and
13803 x_regno_save_mode.
13804 (caller_save_initialized_p): Redefine as a macro.
13805 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
13806 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
13807 (regno_save_mode): Redefine as a macro.
13808
13809 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13810
13811 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
13812 * expmed.h: New file.
13813 * expmed.c (default_target_costs): New variable.
13814 (this_target_costs): New conditional variable.
13815 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
13816 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
13817 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
13818 * target-globals.h (this_target_expmed): Declare.
13819 (target_globals): Add a expmed field.
13820 (restore_target_globals): Copy the expmed field to
13821 this_target_expmed.
13822 * target-globals.c: Include expmed.h.
13823 (default_target_globals): Initialize the expmed field.
13824 (save_target_globals): Likewise.
13825
13826 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13827
13828 * Makefile.in (target-globals.o): Depend on reload.h.
13829 * reload.h (target_reload): New structure.
13830 (default_target_reload): Declare.
13831 (this_target_reload): Declare as a variable or define as a macro.
13832 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
13833 * reload1.c (default_target_reload): New variable
13834 (this_target_reload): New conditional variable.
13835 (indirect_symref_ok, double_reg_address_ok): Delete.
13836 (spill_indirect_levels): Redefine as a macro.
13837 * target-globals.h (this_target_reload): Declare.
13838 (target_globals): Add a reload field.
13839 (restore_target_globals): Copy the reload field to
13840 this_target_reload.
13841 * target-globals.c: Include hard-reg-set.h.
13842 (default_target_globals): Initialize the reload field.
13843 (save_target_globals): Likewise.
13844
13845 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13846
13847 * rtl.h (target_rtl): Add x_static_reg_base_value.
13848 * alias.c (static_reg_base_value): Redefine as a macro.
13849
13850 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13851
13852 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
13853 (GTFILES): Remove reginfo.c.
13854 * rtl.h (target_rtl): Add x_top_of_stack.
13855 (top_of_stack): New macro.
13856 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
13857 (top_of_stack): Delete.
13858
13859 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13860
13861 * regs.h (target_regs): Add x_hard_regs_of_mode,
13862 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
13863 x_may_move_out_cost and x_last_mode_for_init_move_cost.
13864 (have_regs_of_mode, contains_reg_of_mode, move_cost)
13865 (may_move_in_cost, may_move_out_cost): Redefine as macros.
13866 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
13867 (may_move_in_cost, may_move_out_cost): Delete.
13868 (last_mode_for_init_move_cost): Redefine as a macro.
13869
13870 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13871
13872 * hard-reg-set.h (target_hard_regs): New structure.
13873 (default_target_hard_regs): Declare.
13874 (this_target_hard_regs): Declare as a variable or define as a macro.
13875 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
13876 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
13877 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
13878 (reg_class_size, reg_class_subclasses, reg_class_subunion)
13879 (reg_class_superunion, reg_names): Redefine as macros.
13880 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
13881 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
13882 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
13883 (reg_class_contents, reg_class_size, reg_class_subclasses)
13884 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
13885 (default_target_hard_regs): New variable
13886 (this_target_hard_regs, initial_call_really_used_regs)
13887 (initial_reg_alloc_order): New conditional variables.
13888 (initial_reg_names): New variable.
13889 (init_reg_sets): Assert that initial_call_really_used_regs,
13890 initial_reg_alloc_order and initial_reg_names
13891 are all the same size as their variable counterparts. Use them to
13892 initialize those counterparts.
13893 * target-globals.h (this_target_hard_regs): Declare.
13894 (target_globals): Add a hard_regs field.
13895 (restore_target_globals): Copy the hard_regs field to
13896 this_target_hard_regs.
13897 * target-globals.c: Include hard-reg-set.h.
13898 (default_target_globals): Initialize the hard_regs field.
13899 (save_target_globals): Likewise.
13900
13901 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13902
13903 * Makefile.in (target-globals.o): Depend on $(RTL_H).
13904 * rtl.h (target_rtl): New structure.
13905 (default_target_rtl): Declare.
13906 (this_target_rtl): Declare as a variable or define as a macro.
13907 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
13908 Redefine as macros.
13909 * emit-rtl.c (default_target_rtl): New variable.
13910 (this_target_rtl): New conditional variable.
13911 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
13912 (return_address_pointer_rtx): Delete.
13913 (initial_regno_reg_rtx): New macro.
13914 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
13915 (init_emit_regs): Likewise.
13916 * target-globals.h (this_target_rtl): Declare.
13917 (target_globals): Add a rtl field.
13918 (restore_target_globals): Copy the rtl field to this_target_rtl.
13919 * target-globals.c: Include rtl.h.
13920 (default_target_globals): Initialize the rtl field.
13921 (save_target_globals): Likewise.
13922
13923 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13924
13925 * Makefile.in (target-globals.o): Depend on $(REGS_H).
13926 * regs.h (target_reg_modes): New structure.
13927 (default_target_reg_modes): Declare.
13928 (this_target_reg_modes): Declare as a variable or define as a macro.
13929 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
13930 * reginfo.c (default_target_reg_modes): New variable.
13931 (this_target_reg_modes): New conditional variable.
13932 (hard_regno_nregs, reg_raw_mode): Delete.
13933 * target-globals.h (this_target_regs): Declare.
13934 (target_globals): Add a regs field.
13935 (restore_target_globals): Copy the regs field to this_target_regs.
13936 * target-globals.c: Include regs.h.
13937 (default_target_globals): Initialize the regs field.
13938 (save_target_globals): Likewise.
13939
13940 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13941
13942 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
13943 * doc/tm.texi: Regenerate.
13944 * Makefile.in (OBJS-common): Add target-globals.o.
13945 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
13946 and target-globals.h.
13947 (target-globals.o): New rule.
13948 (GTFILES): Include $(srcdir)/target-globals.h.
13949 * defaults.h (SWITCHABLE_TARGET): Define.
13950 * gengtype.c (open_base_files): Add target-globals.h to the
13951 list of includes.
13952 * target-globals.h: New file.
13953 * target-globals.c: Likewise.
13954
13955 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
13956 * flags.h (target_flag_state): New structure.
13957 (default_target_flag_state): Declare.
13958 (this_target_flag_state): Declare as a variable or define as a macro.
13959 (align_loops_log): Redefine as a macro.
13960 (align_loops_max_skip, align_jumps_log): Likewise.
13961 (align_jumps_max_skip, align_labels_log): Likewise.
13962 (align_labels_max_skip, align_functions_log): Likewise.
13963 * toplev.c (default_target_flag_state): New variable.
13964 (this_target_flag_state): New conditional variable.
13965 (align_loops_log): Delete.
13966 (align_loops_max_skip, align_jumps_log): Likewise.
13967 (align_jumps_max_skip, align_labels_log): Likewise.
13968 (align_labels_max_skip, align_functions_log): Likewise.
13969 * target-globals.h (this_target_flag_state): Declare.
13970 (target_globals): Add a flag_state field.
13971 (restore_target_globals): Copy the flag_state field to
13972 this_target_flag_state.
13973 * target-globals.c: Include flags.h.
13974 (default_target_globals): Initialize the flag_state field.
13975 (save_target_globals): Likewise.
13976
13977 2010-07-12 Jie Zhang <jie@codesourcery.com>
13978
13979 * postreload.c (reg_symbol_ref[]): New.
13980 (move2add_use_add2_insn): New.
13981 (move2add_use_add3_insn): New.
13982 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
13983 (move2add_note_store): Likewise.
13984
13985 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
13986
13987 PR rtl-optimization/44752
13988 * genautomata.c (main): Don't emit an empty file even if there
13989 is no automaton.
13990
13991 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13992
13993 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
13994 ix86_solaris_return_in_memory.
13995 * config/i386-protos.h: Reflect this.
13996 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
13997 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
13998 Move ...
13999 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
14000
14001 2010-07-12 Jie Zhang <jie@codesourcery.com>
14002
14003 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
14004 align the stack when it's going to be saved.
14005
14006 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14007
14008 PR pch/14940
14009 * config/host-solaris.c (mmap_fixed): New function.
14010 (sol_gt_pch_get_address): Use it.
14011 (sol_gt_pch_use_address): Likewise.
14012
14013 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14014
14015 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14016 pentiumpro on Solaris 8 and 9/x86.
14017 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
14018 Document SSE/SSE2 support.
14019 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
14020
14021 2010-07-12 Andi Kleen <ak@linux.intel.com>
14022
14023 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
14024 instead of gcc_assert to print better error message for multiple
14025 prevailing defs.
14026
14027 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
14028
14029 * config/i386/i386.c (ix86_asm_output_function_label): Change format
14030 string placeholder from 0x%x to %#x.
14031 (ix86_code_end): Use putc to output '\n'.
14032 (ix86_print_operand) <case ';'>: Use putc to output ';'.
14033
14034 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
14035
14036 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
14037 in directive -export.
14038
14039 2010-07-10 Anatoly Sokolov <aesok@post.ru>
14040
14041 * reginfo.h (reg_classes_intersect_p): Change arguments type to
14042 reg_class_t.
14043 * rtl.h (reg_classes_intersect_p): Adjust prototype.
14044
14045 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14046 Remove macros.
14047 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
14048 rs6000_memory_move_cost): Remove
14049 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
14050 TARGET_MEMORY_MOVE_COST): Define.
14051 (rs6000_register_move_cost): Make static. Change arguments type from
14052 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
14053 (rs6000_memory_move_cost): Make static. Change arguments type from
14054 'enum reg_class' to reg_class_t.
14055
14056 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
14057
14058 PR middle-end/42505
14059 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
14060 lookup code into....
14061 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
14062 new functions.
14063 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
14064 * cfgloopanal.c (target_clobbered_regs): Define.
14065 (init_set_costs): Initialize target_clobbered_regs.
14066 (estimate_reg_pressure_cost): Add call_p argument. When true,
14067 adjust the number of available registers to exclude the
14068 call-clobbered registers.
14069 * cfgloop.h (target_clobbered_regs): Declare.
14070 (estimate_reg_pressure_cost): Adjust declaration.
14071 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
14072 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
14073 (determine_set_costs): Dump target_clobbered_regs.
14074 (loop_body_includes_call): New function.
14075 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
14076 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
14077 call_p flag through.
14078 (best_gain_for_invariant): Likewise.
14079 (find_invariants_to_move): Likewise.
14080 (move_single_loop_invariants): Likewise, using already-computed
14081 has_call field.
14082
14083 2010-07-10 Richard Guenther <rguenther@suse.de>
14084 Joern Rennecke <joern.rennecke@embecosm.com>
14085
14086 PR debug/44832
14087 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
14088 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
14089 unless they have DECL_IGNORED_P set.
14090
14091 2010-07-10 Richard Guenther <rguenther@suse.de>
14092
14093 PR lto/44889
14094 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
14095 helper function.
14096 (gimple_types_compatible_p): Similar to pointed-to
14097 types allow and merge a mix of complete and incomplete aggregate.
14098 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
14099 (iterative_hash_gimple_type): Adjust for that.
14100
14101 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
14102
14103 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
14104
14105 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
14106
14107 PR objc/44140
14108 * config/darwin.c (output_objc_section_asm_op): Save and restore
14109 section when outputting ObjC section list.
14110
14111 2010-07-09 Jan Hubicka <jh@suse.cz>
14112
14113 * lto-streamer-out.c (produce_symtab): Do not write alias
14114 cgraph/varpool nodes.
14115
14116 2010-07-09 Jan Hubicka <jh@suse.cz>
14117
14118 * tree-inline.c (declare_return_variable): Fix ICE while
14119 inlining DECL_BY_VALUE function not in SSA form
14120
14121 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
14122
14123 PR tree-optimization/44576
14124 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
14125 New. Pull out from is_loop_prefetching_profitable to implement
14126 the trip count to ahead ratio heuristic.
14127 (mem_ref_count_reasonable_p): New. Pull out from
14128 is_loop_prefetching_profitable to implement the instruction to
14129 memory reference ratio heuristic. Also consider not reasonable if
14130 the memory reference count is above a threshold (to avoid
14131 explosive compilation time.
14132 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
14133 is_loop_prefetching_profitable to implement the instruction to
14134 prefetch ratio heuristic.
14135 (is_loop_prefetching_profitable): Removed.
14136 (loop_prefetch_arrays): Distribute the cost analysis across the
14137 function to allow early exit of the prefetch analysis.
14138 is_loop_prefetching_profitable is splitted into three functions,
14139 with each one called as early as possible.
14140 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
14141 number of memory references in a loop is considered too many.
14142
14143 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14144
14145 * reload.c (find_reloads): Don't clear badop if we have a winreg
14146 alternative, but not win, and the class only has fixed regs.
14147 * hard-reg-set.h (class_only_fixed_regs): Declare.
14148 * reginfo.c (class_only_fixed_regs): New array.
14149 (init_reg_sets_1): Initialize it.
14150 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
14151 discourage alternatives using the stack pointer.
14152
14153 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
14154
14155 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
14156
14157 * config/arm/arm.md (cbranchqi4): Fix array size.
14158 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
14159 calculating length.
14160
14161 2010-07-09 Richard Guenther <rguenther@suse.de>
14162
14163 * gimple.c (struct type_fixup_s): New struct and VEC type.
14164 (gimple_register_type_fixups): New static global.
14165 (gimple_queue_type_fixup): New function.
14166 (gimple_types_compatible_p): Queue type fixups instead of
14167 applying them here.
14168 (gimple_register_type): Apply queued fixups for the
14169 canonical type. Empty the type fixup queue.
14170
14171 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14172
14173 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
14174 * configure: Regenerate.
14175 * config.in: Ditto.
14176
14177 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14178 Denys Vlasenko <dvlasenk@redhat.com>
14179 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14180
14181 PR tree-optimization/28632
14182 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
14183 (extract_range_from_binary_expr): Further optimize
14184 BIT_AND_EXPR and BIT_IOR_EXPR.
14185
14186 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
14187
14188 * tree-if-conv.c (fold_or_predicates): New.
14189 (add_to_predicate_list): Call it.
14190
14191 2010-07-09 Richard Guenther <rguenther@suse.de>
14192
14193 PR middle-end/44890
14194 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
14195 if base is a pointer.
14196 * tree-cfg.c (verify_expr): Update MEM_REF checking.
14197
14198 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14199
14200 PR target/44877
14201 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
14202 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
14203 builtin mask for load/store builtins.
14204
14205 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14206
14207 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
14208 for "lock addl".
14209 * configure: Regenerate.
14210 * config/i386/i386.c (ix86_print_operand) <case ';'>:
14211 Remove TARGET_MACHO.
14212
14213 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
14214
14215 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
14216 default ISA flags.
14217 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
14218
14219 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
14220
14221 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
14222
14223 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14224
14225 * config/picochip/picochip.md (commsTestPort): Emit more
14226 efficient sequence for tstport instruction.
14227
14228 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14229
14230 * config/i386/i386.c (ix86_veclib_handler): Make static.
14231
14232 2010-07-09 Richard Guenther <rguenther@suse.de>
14233
14234 PR tree-optimization/44852
14235 * tree-ssa-alias.c: Include toplev.h for exact_log2.
14236 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
14237 in MEM_REF.
14238 (indirect_refs_may_alias_p): Likewise.
14239 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
14240
14241 2010-07-09 Richard Guenther <rguenther@suse.de>
14242
14243 PR tree-optimization/44882
14244 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
14245 sets do conflict.
14246 (vectorizable_load): Likewise.
14247
14248 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14249
14250 PR target/40657
14251 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
14252 All callers changed.
14253 Handle the case when we're called for the epilogue.
14254 (thumb_unexpanded_epilogue): Use it.
14255 (thumb1_expand_epilogue): Likewise.
14256
14257 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14258
14259 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
14260 both ranges are range_int_cst_p with non-negative minimum,
14261 try harder to derive smaller range.
14262
14263 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14264
14265 * genrecog.c: Include diagnostic-core.h before toplev.h.
14266 * genoutput.c: Likewise.
14267 * genextract.c: Likewise.
14268 * genautomata.c: Likewise.
14269 * genemit.c: Likewise.
14270 * genpeep.c: Likewise.
14271 * genattrtab.c: Likewise.
14272 * genconditions.c: Likewise.
14273 * genpreds.c: Likewise.
14274
14275 2010-07-08 Andi Kleen <ak@linux.intel.com>
14276
14277 * lto-section-in.c (lto_section_name): Add missing comma.
14278
14279 2010-07-08 Anatoly Sokolov <aesok@post.ru>
14280
14281 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
14282 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
14283 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
14284 (ia64_override_options): Rename to...
14285 (ia64_option_override): ... this one. Make static.
14286
14287 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14288
14289 PR middle-end/44843
14290 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
14291 pointed-to type of the offset in a MEM_REF to compute the alignment.
14292
14293 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
14294
14295 * final.c (final_scan_insn): Replace
14296 TARGET_UNWIND_INFO macro check by unwind_emit
14297 hook NULL check.
14298 * targhooks.c (default_unwind_emit): Removed.
14299 * targhooks.h (default_unwind_emit): Likewise.
14300 * target.def (unwind_emit): Set default value to NULL.
14301
14302 * config/i386/i386-protos.h (ix86_asm_output_function_label):
14303 New prototype.
14304 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
14305 for NULL fntype argument and allow 64-bit targets.
14306 (ix86_asm_output_function_label): New function.
14307 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
14308 (ix86_handle_fndecl_attribute): Likewise.
14309 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
14310 * doc/doc/tm.texi: Regenerated.
14311 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
14312 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
14313 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
14314 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
14315 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
14316 * config/elfos.h: Likewise.
14317 * config/i386/cygming.h: Likewise.
14318 * config/netbsd-aout.h: Likewise.
14319 * config/openbsd.h: Likewise.
14320 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
14321 by ix86_asm_output_function_label function call.
14322 * varasm.c (assemble_start_function): Use
14323 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
14324
14325 2010-07-08 Jan Hubicka <jh@suse.cz>
14326
14327 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
14328 New function.
14329 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
14330 Declare.
14331 * ipa-cp.c (ipcp_estimate_growth): Use it.
14332 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
14333 Likewise.
14334
14335 2010-07-08 Jan Hubicka <jh@suse.cz>
14336
14337 * tree-inline.c (declare_return_variable): Allocate annotation for new
14338 temporary.
14339
14340 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
14341
14342 PR tree-optimization/44710
14343 * tree-if-conv.c (parse_predicate): New.
14344 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
14345 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
14346
14347 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
14348
14349 * common.opt (ftree-loop-if-convert): New flag.
14350 * doc/invoke.texi (ftree-loop-if-convert): Documented.
14351 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
14352 when flag_tree_loop_if_convert is set.
14353
14354 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
14355
14356 * config/i386/i386.c: Use short syntax for function calls
14357 through function pointers.
14358 * config/i386/i386.md: Ditto.
14359
14360 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14361
14362 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
14363
14364 2010-07-08 Richard Guenther <rguenther@suse.de>
14365
14366 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
14367 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
14368
14369 2010-07-08 Jakub Jelinek <jakub@redhat.com>
14370
14371 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
14372 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
14373 (loc_list_from_tree): Likewise.
14374 (output_loc_operands): Handle outputting DW_OP_const[48]u
14375 with loc->dtprel set.
14376 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
14377
14378 2010-07-08 Jan Hubicka <jh@suse.cz>
14379
14380 * ipa.c: Include pointer-set.h
14381 (cgraph_externally_visible_p): New attribute ALIASED;
14382 when in LTO, hidden symbols are local unless they are aliased.
14383 (function_and_variable_visibility): Compute aliased nodes;
14384 handle LTO and hidden symbol on functions and vars.
14385 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
14386 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
14387
14388 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14389
14390 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14391 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14392 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14393 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14394 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14395 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
14396 (ix86_gen_probe_stack_range): Likewise.
14397 (override_options): Set them.
14398 (ix86_target_stack_probe): New function.
14399 (ix86_compute_frame_layout): Force use of push instructions to
14400 save registers if stack checking with probes is enabled.
14401 (get_scratch_register_on_entry): New function.
14402 (release_scratch_register_on_entry): Likewise.
14403 (ix86_adjust_stack_and_probe): Likewise.
14404 (output_adjust_stack_and_probe): Likewise.
14405 (ix86_emit_probe_stack_range): Likewise.
14406 (output_probe_stack_range): Likewise.
14407 (ix86_expand_prologue): Emit stack checking code if static built-in
14408 stack checking is enabled.
14409 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
14410 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
14411 (output_adjust_stack_and_probe): Likewise.
14412 (output_probe_stack_range): Likewise.
14413 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14414 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
14415 TARGET_STACK_PROBE.
14416 (allocate_stack_worker_64): Likewise.
14417 (allocate_stack): Likewise.
14418 (adjust_stack_and_probe): New insn.
14419 (probe_stack_range): Likewise.
14420
14421 2010-07-08 Richard Guenther <rguenther@suse.de>
14422
14423 PR tree-optimization/44831
14424 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
14425 a MEM_REF preserving TBAA info of the original dereference.
14426 Dereference the original pointer if the address is not invariant.
14427 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
14428 at least one invariant address that we are going to dereference.
14429
14430 2010-07-08 Richard Guenther <rguenther@suse.de>
14431
14432 PR tree-optimization/44861
14433 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
14434 information when building MEM_REFs.
14435 (vectorizable_load): Likewise.
14436 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
14437
14438 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14439
14440 * config/sol2-c.c: Do not include diagnostic-core.h.
14441
14442 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14443
14444 PR bootstrap/44768
14445 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
14446 with respect to current_function_decl. Pass decl of the function.
14447 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
14448 * ipa-inline.c (compute_inline_parameters): Pass decl to
14449 estimated_stack_frame_size.
14450
14451 2010-07-08 Richard Guenther <rguenther@suse.de>
14452
14453 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14454 New function.
14455 (valueize_refs): Call it.
14456
14457 2010-07-08 Richard Guenther <rguenther@suse.de>
14458
14459 PR rtl-optimization/44838
14460 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
14461 SSA form do not use pointer equivalence.
14462
14463 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14464
14465 * dwarf2out.c (AT_linkage_name): Delete.
14466 (add_linkage_attr): New function.
14467 (add_linkage_name): Call it to emit the linkage attribute.
14468 (dwarf2out_finish): Likewise.
14469 (move_linkage_attr): Explicitly accept both attribute variants.
14470
14471 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14472
14473 * toplev.h: Do not include diagnostic-core.h.
14474 Include diagnostic-core.h in every file that includes toplev.h.
14475 * c-tree.h: Do not include toplev.h.
14476 * pretty-print.h: Update comment.
14477 * Makefile.in: Update dependencies.
14478 * alias.c: Include diagnostic-core.h in every file that includes
14479 toplev.h.
14480 * attribs.c: Likewise.
14481 * auto-inc-dec.c: Likewise.
14482 * bb-reorder.c: Likewise.
14483 * bt-load.c: Likewise.
14484 * caller-save.c: Likewise.
14485 * calls.c: Likewise.
14486 * cfg.c: Likewise.
14487 * cfganal.c: Likewise.
14488 * cfgbuild.c: Likewise.
14489 * cfgcleanup.c: Likewise.
14490 * cfghooks.c: Likewise.
14491 * cfgloop.c: Likewise.
14492 * combine.c: Likewise.
14493 * config/alpha/alpha.c: Likewise.
14494 * config/arc/arc.c: Likewise.
14495 * config/arm/arm.c: Likewise.
14496 * config/arm/pe.c: Likewise.
14497 * config/avr/avr.c: Likewise.
14498 * config/bfin/bfin.c: Likewise.
14499 * config/cris/cris.c: Likewise.
14500 * config/crx/crx.c: Likewise.
14501 * config/darwin-c.c: Likewise.
14502 * config/darwin.c: Likewise.
14503 * config/fr30/fr30.c: Likewise.
14504 * config/frv/frv.c: Likewise.
14505 * config/h8300/h8300.c: Likewise.
14506 * config/host-darwin.c: Likewise.
14507 * config/i386/i386.c: Likewise.
14508 * config/i386/netware.c: Likewise.
14509 * config/i386/nwld.c: Likewise.
14510 * config/i386/winnt-cxx.c: Likewise.
14511 * config/i386/winnt-stubs.c: Likewise.
14512 * config/i386/winnt.c: Likewise.
14513 * config/ia64/ia64-c.c: Likewise.
14514 * config/ia64/ia64.c: Likewise.
14515 * config/iq2000/iq2000.c: Likewise.
14516 * config/lm32/lm32.c: Likewise.
14517 * config/m32c/m32c-pragma.c: Likewise.
14518 * config/m32c/m32c.c: Likewise.
14519 * config/m32r/m32r.c: Likewise.
14520 * config/m68hc11/m68hc11.c: Likewise.
14521 * config/m68k/m68k.c: Likewise.
14522 * config/mcore/mcore.c: Likewise.
14523 * config/mep/mep-pragma.c: Likewise.
14524 * config/mep/mep.c: Likewise.
14525 * config/mmix/mmix.c: Likewise.
14526 * config/mn10300/mn10300.c: Likewise.
14527 * config/moxie/moxie.c: Likewise.
14528 * config/pa/pa.c: Likewise.
14529 * config/pdp11/pdp11.c: Likewise.
14530 * config/picochip/picochip.c: Likewise.
14531 * config/rs6000/rs6000-c.c: Likewise.
14532 * config/rs6000/rs6000.c: Likewise.
14533 * config/rx/rx.c: Likewise.
14534 * config/s390/s390.c: Likewise.
14535 * config/score/score.c: Likewise.
14536 * config/score/score3.c: Likewise.
14537 * config/score/score7.c: Likewise.
14538 * config/sh/sh.c: Likewise.
14539 * config/sh/symbian-base.c: Likewise.
14540 * config/sh/symbian-c.c: Likewise.
14541 * config/sh/symbian-cxx.c: Likewise.
14542 * config/sol2-c.c: Likewise.
14543 * config/sol2.c: Likewise.
14544 * config/sparc/sparc.c: Likewise.
14545 * config/spu/spu.c: Likewise.
14546 * config/stormy16/stormy16.c: Likewise.
14547 * config/v850/v850-c.c: Likewise.
14548 * config/v850/v850.c: Likewise.
14549 * config/vax/vax.c: Likewise.
14550 * config/vxworks.c: Likewise.
14551 * config/xtensa/xtensa.c: Likewise.
14552 * convert.c: Likewise.
14553 * cse.c: Likewise.
14554 * cselib.c: Likewise.
14555 * dbgcnt.c: Likewise.
14556 * dbxout.c: Likewise.
14557 * ddg.c: Likewise.
14558 * dominance.c: Likewise.
14559 * emit-rtl.c: Likewise.
14560 * explow.c: Likewise.
14561 * expmed.c: Likewise.
14562 * fixed-value.c: Likewise.
14563 * fold-const.c: Likewise.
14564 * fwprop.c: Likewise.
14565 * gcse.c: Likewise.
14566 * ggc-common.c: Likewise.
14567 * ggc-page.c: Likewise.
14568 * ggc-zone.c: Likewise.
14569 * gimple-low.c: Likewise.
14570 * gimplify.c: Likewise.
14571 * graph.c: Likewise.
14572 * haifa-sched.c: Likewise.
14573 * ifcvt.c: Likewise.
14574 * implicit-zee.c: Likewise.
14575 * integrate.c: Likewise.
14576 * ira-build.c: Likewise.
14577 * ira-color.c: Likewise.
14578 * ira-conflicts.c: Likewise.
14579 * ira-costs.c: Likewise.
14580 * ira-lives.c: Likewise.
14581 * ira.c: Likewise.
14582 * lists.c: Likewise.
14583 * loop-doloop.c: Likewise.
14584 * loop-iv.c: Likewise.
14585 * lto-opts.c: Likewise.
14586 * lto-symtab.c: Likewise.
14587 * main.c: Likewise.
14588 * modulo-sched.c: Likewise.
14589 * optabs.c: Likewise.
14590 * params.c: Likewise.
14591 * plugin.c: Likewise.
14592 * postreload-gcse.c: Likewise.
14593 * postreload.c: Likewise.
14594 * predict.c: Likewise.
14595 * profile.c: Likewise.
14596 * real.c: Likewise.
14597 * regcprop.c: Likewise.
14598 * reginfo.c: Likewise.
14599 * regmove.c: Likewise.
14600 * reorg.c: Likewise.
14601 * resource.c: Likewise.
14602 * rtl.c: Likewise.
14603 * rtlanal.c: Likewise.
14604 * sched-deps.c: Likewise.
14605 * sched-ebb.c: Likewise.
14606 * sched-rgn.c: Likewise.
14607 * sdbout.c: Likewise.
14608 * sel-sched-dump.c: Likewise.
14609 * sel-sched-ir.c: Likewise.
14610 * simplify-rtx.c: Likewise.
14611 * stmt.c: Likewise.
14612 * stor-layout.c: Likewise.
14613 * store-motion.c: Likewise.
14614 * targhooks.c: Likewise.
14615 * tree-cfg.c: Likewise.
14616 * tree-cfgcleanup.c: Likewise.
14617 * tree-dump.c: Likewise.
14618 * tree-eh.c: Likewise.
14619 * tree-inline.c: Likewise.
14620 * tree-nomudflap.c: Likewise.
14621 * tree-object-size.c: Likewise.
14622 * tree-optimize.c: Likewise.
14623 * tree-outof-ssa.c: Likewise.
14624 * tree-phinodes.c: Likewise.
14625 * tree-profile.c: Likewise.
14626 * tree-ssa-ccp.c: Likewise.
14627 * tree-ssa-coalesce.c: Likewise.
14628 * tree-ssa-live.c: Likewise.
14629 * tree-ssa-loop-niter.c: Likewise.
14630 * tree-ssa-loop-prefetch.c: Likewise.
14631 * tree-ssa-loop.c: Likewise.
14632 * tree-ssa-structalias.c: Likewise.
14633 * tree-ssa-uninit.c: Likewise.
14634 * tree-ssa.c: Likewise.
14635 * tree-vect-data-refs.c: Likewise.
14636 * tree-vect-loop-manip.c: Likewise.
14637 * tree-vect-loop.c: Likewise.
14638 * tree-vect-patterns.c: Likewise.
14639 * tree-vect-stmts.c: Likewise.
14640 * tree-vrp.c: Likewise.
14641 * varasm.c: Likewise.
14642 * vec.c: Likewise.
14643 * web.c: Likewise.
14644 * xcoffout.c: Likewise.
14645
14646 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
14647
14648 * gengtype.c (write_field_root): New function.
14649 (write_root): Use it.
14650
14651 2010-07-07 Wei Guozhi <carrot@google.com>
14652
14653 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
14654 of lowest bits to lshift/compare): Add a missing line.
14655
14656 2010-07-07 Wei Guozhi <carrot@google.com>
14657
14658 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
14659 of lowest bits to lshift/compare): New.
14660
14661 2010-07-07 Tom Tromey <tromey@redhat.com>
14662
14663 * doc/tm.texi: Update.
14664 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
14665 Add @hook.
14666 * target.def (want_debug_pub_sections): New hook.
14667 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
14668 * dwarf2out.c (add_pubname_string): Check
14669 targetm.want_debug_pub_sections.
14670 (add_pubname): Likewise.
14671 (add_pubtype): Likewise.
14672
14673 2010-07-07 Jie Zhang <jie@codesourcery.com>
14674
14675 * genautomata.c (output_automata_list_min_issue_delay_code):
14676 Correctly decompress min_issue_delay.
14677
14678 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
14679
14680 PR rtl-optimization/44404
14681 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
14682 possible, use reg_overlap_mentioned_p instead.
14683
14684 2010-07-07 Duncan Sands <baldrick@free.fr>
14685
14686 PR middle-end/41355
14687 * tree.c (build_function_type_skip_args): Copy the original type using
14688 build_distinct_type_copy rather than copy_node.
14689
14690 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
14691
14692 PR target/44850
14693 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
14694 revision 161876.
14695 (ix86_expand_prologue): Likewise.
14696 (ix86_handle_fndecl_attribute): Likewise.
14697 (ix86_asm_declare_function_name): Likewise.
14698 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14699 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14700 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
14701 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
14702 * doc/extend.texi: Likewise.
14703
14704 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
14705
14706 PR target/44844
14707 * config/i386/i386.md (rdrand<mode>): Changed to expand to
14708 retry if the carry flag isn't valid.
14709 (rdrand<mode>_1): New.
14710
14711 2010-07-07 Richard Guenther <rguenther@suse.de>
14712
14713 PR middle-end/44790
14714 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
14715 for expanding the constant offset for MEM_REFs.
14716
14717 2010-07-07 Richard Guenther <rguenther@suse.de>
14718
14719 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
14720 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
14721 * gimple.h (is_gimple_operand): Remove.
14722 * gimple.c (is_gimple_operand): Likewise.
14723 (walk_gimple_op): Fix wi->val_only setting for calls.
14724 * tree-cfg.c (verify_gimple_call): Fix argument validation.
14725 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
14726 invalid gimple calls.
14727
14728 2010-07-06 Jan Hubicka <jh@suse.cz>
14729
14730 * lto-cgraph.c (output_cgraph): Add missing declaration.
14731
14732 2010-07-06 Jan Hubicka <jh@suse.cz>
14733
14734 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
14735 partition.
14736
14737 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
14738
14739 * doc/gimple.texi (GIMPLE_DEBUG): Document.
14740 * doc/rtl.texi (Debug Information): New node.
14741 (NOTE_INSN_VAR_LOCATION): Document.
14742 (debug_insn): Likewise.
14743 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
14744
14745 2010-07-07 Jan Hubicka <jh@suse.cz>
14746
14747 With parts by Richard Guenther.
14748
14749 PR middle-end/44813
14750 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
14751 for functions passed by reference.
14752 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
14753 in memory when passed by reference.
14754 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
14755 beggining.
14756 * ipa-split.c (split_function): Cleanup way return value is passed;
14757 handle SSA DECL_BY_REFERENCE retvals.
14758 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
14759 DECL_BY_REFERENCE is set.
14760 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
14761 find_what_p_points_to): Handle RESULT_DECL.
14762 * tree-inline.c (declare_return_variable): Get new entry_block argument;
14763 when passing by reference ensure that RESULT_DECL is gimple_val.
14764 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
14765 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
14766
14767 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
14768
14769 PR rtl-optimization/44787
14770 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
14771 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
14772
14773 2010-07-06 Jan Hubicka <jh@suse.cz>
14774
14775 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
14776 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
14777 with body can prevail.
14778 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
14779 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
14780 * cgraph.c (cgraph_get_node_or_alias): New function.
14781 * cgraph.h (cgraph_get_node_or_alias): Declare.
14782
14783 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
14784
14785 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
14786 support.
14787 (ix86_expand_prologue): Likewise.
14788 (ix86_handle_fndecl_attribute): Likewise.
14789 (ix86_asm_declare_function_name): New function for
14790 ASM_DECLARE_FUNCTION_NAME.
14791 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
14792 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
14793 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
14794 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
14795 * doc/extend.texi: Adjust documentation about ms_hook_prologue
14796 attribute.
14797
14798 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
14799
14800 * config/i386/i386.md (immediate_operand): New mode attribute.
14801
14802 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
14803 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
14804 using P mode iterator.
14805 (pro_epilogue_adjust_stack_di_2): Rename from
14806 pro_epilogue_adjust_stack_rex64_2.
14807
14808 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
14809
14810 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
14811
14812 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
14813 through gen_mov_insv_1 function pointer.
14814 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
14815 gen_truncxf<mode>2 through gen_truncxf function pointer.
14816 (remainder<mode>3): Ditto.
14817 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
14818 (allocate_stack): Call gen_allocate_stack_worker_64 or
14819 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
14820 function pointer.
14821 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
14822 function pointer.
14823
14824 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
14825
14826 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
14827 operand constraint instead of <r><i>m.
14828
14829 2010-07-06 Richard Guenther <rguenther@suse.de>
14830
14831 PR middle-end/44828
14832 * convert.c (convert_to_integer): Watch out for overflowing
14833 MULT_EXPR as well.
14834
14835 2010-07-05 Jan Hubicka <jh@suse.cz>
14836
14837 * lto-streamer.c (write_symbol_vec): Rename to ...
14838 (write_symbol) ... this one; write only symbol given and when
14839 present in cache. Sanity check that what is defined is present
14840 in cgraph/varpool with body/finalized decl.
14841 (write_symbols_of_kind): Remove.
14842 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
14843 pairs to produce symtab.
14844 (produce_asm_for_decls): Update call of produce_symtab; don't do so
14845 when doing WPA streaming.
14846
14847 2010-07-05 Jan Hubicka <jh@suse.cz>
14848
14849 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
14850 function is still available to fold into.
14851
14852 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
14853
14854 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
14855 * function.h (struct_function): Change type of local_decls field
14856 to a VEC.
14857 (add_local_decl): New function.
14858 (FOR_EACH_LOCAL_DECL): New macro.
14859 * cfgexpand.c (init_vars_expansion): Adjust for new type of
14860 cfun->local_decls.
14861 (estimated_stack_frame_size): Likewise.
14862 (expand_used_vars): Likewise.
14863 * cgraphbuild.c (build_cgraph_edges): Likewise.
14864 * function.c (instantiate_decls_1): Likewise.
14865 * ipa-struct-reorg.c (build_data_structure): Likewise.
14866 * ipa-type-escape.c (analyze_function): Likewise.
14867 * lto-streamer-in.c (input_function): Likewise.
14868 * lto-streamer-out.c (output_function): Likewise.
14869 * tree-ssa-live.c (remove_unused_locals): Likewise.
14870 * tree.c (free_lang_data_in_decl): Likewise.
14871 (find_decls_types_in_node): Likewise.
14872 * omp-low.c (remove_exit_barrier): Likewise.
14873 (expand_omp_taskreg): Likewise.
14874 (list2chain): Rename to...
14875 (vec2chain): ...this. Adjust.
14876 * cgraphunit.c (assemble_thunk): Call add_local_decl.
14877 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
14878 * gimple-low.c (record_vars_into): Likewise.
14879 * tree-inline.c (remap_decls): Likewise.
14880 (declare_return_variable): Likewise.
14881 (declare_inline_vars): Likewise.
14882 (copy_forbidden): Adjust for new type of cfun->local_decls.
14883 (add_local_variables): New function.
14884 (expand_call_inline): Call it.
14885 (tree_function_versioning): Likewise.
14886
14887 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
14888
14889 AVX Programming Reference (June, 2010)
14890 * config/i386/cpuid.h (bit_F16C): New.
14891 (bit_RDRND): Likewise.
14892 (bit_FSGSBASE): Likewise.
14893
14894 * config/i386/i386-builtin-types.def: Add
14895 "DEF_FUNCTION_TYPE (UINT16)", function types for
14896 float16 <-> float conversions and
14897 "DEF_FUNCTION_TYPE (VOID, UINT64)".
14898
14899 * config/i386/i386-c.c (ix86_target_macros_internal): Support
14900 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
14901 OPTION_MASK_ISA_F16C.
14902
14903 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
14904 (OPTION_MASK_ISA_RDRND_SET): Likewise.
14905 (OPTION_MASK_ISA_F16C_SET): Likewise.
14906 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
14907 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
14908 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
14909 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
14910 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
14911 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
14912 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
14913 (override_options): Handle them.
14914 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
14915 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
14916 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
14917 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
14918 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
14919 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
14920 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
14921 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
14922 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
14923 (bdesc_args): Likewise.
14924 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
14925 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
14926 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
14927 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
14928 Handle non-memory store.
14929
14930 * config/i386/i386.h (TARGET_FSGSBASE): New.
14931 (TARGET_RDRND): Likewise.
14932 (TARGET_F12C): Likewise.
14933
14934 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
14935 (UNSPEC_VCVTPS2PH): Likewise.
14936 (UNSPECV_RDFSBASE): Likewise.
14937 (UNSPECV_RDGSBASE): Likewise.
14938 (UNSPECV_WRFSBASE): Likewise.
14939 (UNSPECV_WRGSBASE): Likewise.
14940 (UNSPECV_RDRAND): Likewise.
14941 (rdfsbase<mode>): Likewise.
14942 (rdgsbase<mode>): Likewise.
14943 (wrfsbase<mode>): Likewise.
14944 (wrgsbase<mode>): Likewise.
14945 (rdrand<mode>): Likewise.
14946
14947 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
14948
14949 * config/i386/immintrin.h (_rdrand_u16): New.
14950 (_rdrand_u32): Likewise.
14951 (_readfsbase_u32): Likewise.
14952 (_readfsbase_u64): Likewise.
14953 (_readgsbase_u32): Likewise.
14954 (_readgsbase_u64): Likewise.
14955 (_writefsbase_u32): Likewise.
14956 (_writefsbase_u64): Likewise.
14957 (_writegsbase_u32): Likewise.
14958 (_writegsbase_u64): Likewise.
14959 (_rdrand_u64): Likewise.
14960 (_cvtsh_ss): Likewise.
14961 (_mm_cvtph_ps): Likewise.
14962 (_mm256_cvtph_ps): Likewise.
14963 (_cvtss_sh): Likewise.
14964 (_mm_cvtps_ph): Likewise.
14965 (_mm256_cvtps_ph): Likewise.
14966
14967 * config/i386/sse.md (vcvtph2ps): New.
14968 (*vcvtph2ps_load): Likewise.
14969 (vcvtph2ps256): Likewise.
14970 (vcvtps2ph): Likewise.
14971 (*vcvtps2ph): Likewise.
14972 (*vcvtps2ph_store): Likewise.
14973 (vcvtps2ph256): Likewise.
14974
14975 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
14976
14977 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
14978
14979 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
14980
14981 PR bootstrap/44512
14982 * genenums.c (main): Output include of insn-constants.h
14983 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
14984
14985 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
14986
14987 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
14988 (override_options): Initialize it.
14989 (ix86_expand_prologue): Use it.
14990
14991 2010-07-05 Jakub Jelinek <jakub@redhat.com>
14992
14993 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
14994
14995 2010-07-05 Anatoly Sokolov <aesok@post.ru>
14996
14997 * double-int.h (fit_double_type): Remove declaration.
14998 * double-int.c (fit_double_type): Remove function.
14999 * tree.h (int_fits_type_p): Adjust prototype.
15000 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
15001 instead of fit_double_type.
15002 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
15003 instead of fit_double_type and build_int_cst_wide.
15004 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
15005 instead of fit_double_type and build_int_cst_wide.
15006 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
15007 of fit_double_type.
15008
15009 2010-07-05 Jan Hubicka <jh@suse.cz>
15010
15011 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
15012 in_other_partition.
15013 * lto-cgraph.c (referenced_from_other_partition_p,
15014 reachable_from_other_partition_p): Use in_other_partition flags.
15015 (output_node, output_varpool_node): COMDAT nodes always have private
15016 copies and thus are never used from other partition.
15017
15018 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15019
15020 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
15021 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
15022 * config/ia64/ia64.c Include reload.h.
15023 (ia64_memory_move_cost): New function.
15024 (TARGET_MEMORY_MOVE_COST): Define.
15025 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
15026 memory_move_cost.
15027
15028 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
15029
15030 PR middle-end/42505
15031 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
15032 comments about cost model.
15033 (try_add_cand_for): Add second strategy for choosing initial set
15034 based on original IVs, controlled by ORIGINALP argument.
15035 (get_initial_solution): Add ORIGINALP argument.
15036 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
15037 (find_optimal_iv_set): Try two different strategies for choosing
15038 the IV set, and return the one with lower cost.
15039
15040 2010-07-05 Richard Guenther <rguenther@suse.de>
15041
15042 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
15043
15044 2010-07-05 Richard Guenther <rguenther@suse.de>
15045
15046 * tree.c (reference_alias_ptr_type): New function.
15047 * tree.h (reference_alias_ptr_type): Declare.
15048 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
15049 allow non-TARGET_MEM_REF new refs.
15050 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
15051 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
15052 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
15053 (create_mem_ref): Get alias pointer type. Adjust calls to
15054 create_mem_ref_raw.
15055 (maybe_fold_tmr): Likewise.
15056 * tree-flow.h (create_mem_ref): Adjust prototype.
15057
15058 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15059
15060 PR c++/44808
15061 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
15062 *from_p is VAR_DECL.
15063
15064 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15065
15066 * tree.h (build_call_list): Remove.
15067 * tree.c (build_call_list): Remove.
15068
15069 2010-07-05 Richard Guenther <rguenther@suse.de>
15070
15071 * double-int.h (double_int_sub): Declare.
15072 * double-int.c (double_int_sub): New function.
15073 * dwarf2out.c (field_byte_offset): Use it.
15074 * fixed-value.c (do_fixed_add): Likewise.
15075 (do_fixed_multiply): Likewise.
15076 (do_fixed_divide): Likewise.
15077 * tree-predcom.c (add_ref_to_chain): Likewise.
15078 (determine_roots_comp): Likewise.
15079 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15080
15081 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15082
15083 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
15084 implementations.
15085
15086 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
15087
15088 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
15089 * arm-modes.def (CC_NOTB): Don't define.
15090 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
15091 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
15092 (LTUGEU): New code_iterator.
15093 (cnb, optab): New corresponding code_attrs.
15094 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
15095 to canonical form. Operands 1 and 2 are commutative. Parametrize
15096 using LTUGEU.
15097 (addsi3_carryin_shift_<optab>): Likewise.
15098 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
15099 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
15100 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
15101 (subsi3_compare): Renamed from subsi3_compare0_c.
15102 Change CC_NOTB to CC.
15103 (arm_subsi3_insn): Allow constants for operand 0.
15104 (compare_scc peephole for eq case): New.
15105 (compare_scc splitters): Change CC_NOTB to CC.
15106
15107 2010-07-05 Richard Guenther <rguenther@suse.de>
15108
15109 * tree-ssa-loop-im.c (for_each_index): Do not handle
15110 ALIGN_INDIRECT_REF.
15111 (gen_lsm_tmp_name): Likewise.
15112 * tree-dump.c (dequeue_and_dump): Likewise.
15113 * tree-pretty-print.c (dump_generic_node): Likewise.
15114 (op_code_prio): Likewise.
15115 (op_symbol_code): Likewise.
15116 * tree.c (staticp): Likewise.
15117 (build1_stat): Likewise.
15118 * tree.h (INDIRECT_REF_P): Likewise.
15119 * fold-const.c (maybe_lvalue_p): Likewise.
15120 (operand_equal_p): Likewise.
15121 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15122 (ao_ref_init_from_vn_reference): Likewise.
15123 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
15124 (find_interesting_uses_address): Likewise.
15125 * dwarf2out.c (loc_list_from_tree): Likewise.
15126 * gimplify.c (gimplify_expr): Likewise.
15127 * tree-eh.c (tree_could_trap_p): Likewise.
15128 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15129 * cfgexpand.c (expand_debug_expr): Likewise.
15130 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15131 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
15132 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
15133 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
15134 * tree-ssa-operands.c (get_expr_operands): Likewise.
15135 * expr.c (safe_from_p): Likewise.
15136 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
15137 * tree-vect-data-refs.c (vect_setup_realignment): Build
15138 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
15139 * tree-vect-stmts.c (vectorizable_load): Likewise.
15140 * tree.def (ALIGN_INDIRECT_REF): Remove.
15141
15142 2010-07-05 Richard Guenther <rguenther@suse.de>
15143
15144 PR tree-optimization/44784
15145 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
15146 for inserted stmts.
15147 (find_or_generate_expression): Fix SCCVN insertion check.
15148
15149 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
15150
15151 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
15152 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
15153 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
15154 directives.
15155
15156 2010-07-05 Ira Rosen <irar@il.ibm.com>
15157
15158 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
15159 statements that are not vectorized.
15160 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
15161 in INSIDE_COST.
15162
15163 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
15164
15165 PR bootstrap/44820
15166 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
15167
15168 2010-07-05 Richard Guenther <rguenther@suse.de>
15169
15170 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
15171 RESULT_DECLs properly.
15172
15173 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
15174
15175 PR rtl-optimization/44695
15176 * config/i386/i386.md (extract_code): Removed.
15177 (<u>divmodqi4): Likewise.
15178 (divmodqi4): New.
15179 (udivmodqi4): Likewise.
15180 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
15181 (udivmodhiqi3): Likewise.
15182
15183 2010-07-04 Jan Hubicka <jh@suse.cz>
15184
15185 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
15186
15187 2010-07-04 Jan Hubicka <jh@suse.cz>
15188
15189 * cgraphunit.c (init_cgraph): Only initialize dump file if it
15190 is not already initialized.
15191
15192 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15193
15194 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
15195 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
15196 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
15197 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
15198 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
15199 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
15200 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
15201 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
15202 (sync_new_nand_optab): Redefine as macros.
15203 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
15204 Delete.
15205 (direct_optab_index): New enum.
15206 (direct_optab_d): New structure.
15207 (direct_optab): New typedef.
15208 (direct_optab_table): Declare.
15209 (direct_optab_handler, set_direct_optab_handler): New functions.
15210 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
15211 (sync_lock_release_optab): New macros.
15212 * optabs.c (direct_optab_table): New variable.
15213 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
15214 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
15215 cmpstr_optab and cmpstrn_optab.
15216 (emit_conditional_move): Likewise for movcc_optab.
15217 (can_conditionally_move_p): Likewise for movcc_gen_code.
15218 (init_insn_codes): Clear direct_optab_table.
15219 (init_optabs): Don't initialize the new "direct optabs" here.
15220 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
15221 vcond_gen_code.
15222 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
15223 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
15224 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
15225 (expand_sync_operation): Likewise other sync_*_optabs.
15226 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
15227 to sync_compare_and_swap_optab.
15228 (expand_sync_lock_test_and_set): Use direct_optab_handler for
15229 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
15230 to the names of both.
15231 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
15232 cmpstr_optab and cmpstrn_optab.
15233 (expand_builtin_lock_release): Likewise sync_lock_release.
15234 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
15235 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
15236 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
15237 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
15238 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
15239 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
15240 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
15241 (sync_lock_test_and_set, sync_lock_release): Delete.
15242 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
15243 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
15244 * genopinit.c (optabs): Use set_direct_optab_handler for the new
15245 macro optabs.
15246 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
15247 the "optab" local variable. Use direct_optab_handler for optab and
15248 sync_compare_and_swap_optab.
15249 * reload1.c (reload_in_optab, reload_out_optab): Delete.
15250 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
15251 reload_in_optab and reload_out_optab.
15252 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
15253 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
15254 * config/pa/pa.c (pa_secondary_reload): Likewise.
15255 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
15256 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
15257 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
15258 (VMSupportsCS8_builtin): Likewise.
15259
15260 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15261
15262 * optabs.h (optab_handlers): Change type of insn_code to int.
15263 (optab_handler, set_optab_handler, convert_optab_handler)
15264 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
15265 CODE_FOR_nothing".
15266 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
15267 (init_insn_codes): Zero both the above arrays.
15268 (init_optabs): Never call init_insn_codes first time around.
15269
15270 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15271
15272 * optabs.h (optab_handler, convert_optab_handler): Turn into
15273 inline functions that return an insn code.
15274 (set_optab_handler, set_convert_optab_handler): New functions.
15275 * builtins.c: Replace optab_handler(X)->insn_code with
15276 optab_handler or set_optab_handler thoughout. Likewise
15277 convert_optab_handler(X)->insn_code with convert_optab_handler
15278 and set_convert_optab_handler.
15279 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
15280 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
15281 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
15282 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15283 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
15284 config/spu/spu.c: Likewise.
15285
15286 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
15287
15288 PR target/44531
15289 * config.gcc (sh*-*-*): Use regular expressions instead of
15290 the 'i' modifier for sed substitutions.
15291
15292 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
15293
15294 * gimple.c (gimple_body): Comments added.
15295
15296 2010-07-04 Richard Guenther <rguenther@suse.de>
15297
15298 PR middle-end/44809
15299 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
15300 of an INDIRECT_REF.
15301
15302 2010-07-04 Richard Guenther <rguenther@suse.de>
15303
15304 PR tree-optimization/44479
15305 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
15306 extra SSA name copy statements which preserves points-to
15307 information.
15308 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15309 Copy points-to information for all pointers. Properly handle
15310 MEM_REFs.
15311 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
15312 copy statements.
15313 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
15314 dependency.
15315
15316 2010-07-04 Richard Guenther <rguenther@suse.de>
15317
15318 PR middle-end/44785
15319 * tree-inline.c (initialize_inlined_parameters): Do not
15320 re-use pointer-map slot over remap_type call.
15321
15322 2010-07-04 Richard Guenther <rguenther@suse.de>
15323
15324 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
15325
15326 2010-07-04 Richard Guenther <rguenther@suse.de>
15327
15328 PR tree-optimization/44656
15329 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
15330 again after value-replacing in the defintions lhs.
15331
15332 2010-07-04 Ira Rosen <irar@il.ibm.com>
15333 Revital Eres <eres@il.ibm.com>
15334
15335 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
15336 Document new arguments.
15337 * doc/tm.texi: Regenerate.
15338 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
15339 Handle unaligned store.
15340 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
15341 * target.def (builtin_vectorization_cost): Add new arguments.
15342 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
15343 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
15344 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
15345 (vect_vfa_segment_size): Fix indentation.
15346 * tree-vectorizer.h (struct _vect_peel_info): New.
15347 (struct _vect_peel_extended_info): New.
15348 (struct _loop_vec_info): Add new field for peeling hash table and a
15349 macro for its access.
15350 (VECT_MAX_COST): Define.
15351 (vect_get_load_cost): Declare.
15352 (vect_get_store_cost, vect_get_known_peeling_cost,
15353 vect_get_single_scalar_iteraion_cost): Likewise.
15354 (vect_supportable_dr_alignment): Add new argument.
15355 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
15356 field.
15357 (destroy_loop_vec_info): Free peeling hash table.
15358 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
15359 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
15360 vect_analyze_slp. Fix indentation.
15361 (vect_get_single_scalar_iteraion_cost): New function.
15362 (vect_get_known_peeling_cost): Likewise.
15363 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
15364 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
15365 statement. Move outside cost calculation inside unknown peeling case.
15366 Call vect_get_known_peeling_cost for known amount of peeling.
15367 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
15368 reference to the print message of forced alignment.
15369 (vect_verify_datarefs_alignment): Update call to
15370 vect_supportable_dr_alignment.
15371 (vect_get_data_access_cost): New function.
15372 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
15373 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
15374 vect_peeling_hash_choose_best_peeling): Likewise.
15375 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
15376 to store all the accesses in the loop and find best possible access to
15377 align using peeling for known alignment case. For unknown alignment
15378 check if stores are preferred or if peeling is worthy.
15379 (vect_find_same_alignment_drs): Analyze pairs of loads too.
15380 (vect_supportable_dr_alignment): Add new argument and check aligned
15381 accesses according to it.
15382 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
15383 (cost_for_stmt): Call vect_get_stmt_cost.
15384 (vect_model_simple_cost): Likewise.
15385 (vect_model_store_cost): Call vect_get_stmt_cost. Call
15386 vect_get_store_cost to calculate the cost of the statement.
15387 (vect_get_store_cost): New function.
15388 (vect_model_load_cost): Call vect_get_stmt_cost. Call
15389 vect_get_load_cost to calculate the cost of the statement.
15390 (vect_get_load_cost): New function.
15391 (vectorizable_store): Update call to vect_supportable_dr_alignment.
15392 (vectorizable_load): Likewise.
15393 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
15394 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
15395 arguments. Handle unaligned store.
15396 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
15397 (rs6000_builtin_support_vector_misalignment): Return true for word and
15398 double word alignments for VSX.
15399 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
15400 vect_supportable_dr_alignment and builtin_vectorization_cost.
15401
15402 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15403
15404 PR target/44597
15405 * config/pa/predicates.md (prefetch_cc_operand): Remove.
15406 (prefetch_nocc_operand): Likewise.
15407 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
15408 (prefetch_20): New insn.
15409 (prefetch_cc): Remove.
15410 (prefetch_nocc): Likewise.
15411
15412 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15413
15414 * expr.c (vector_mode_valid_p): Move to c-common.c.
15415 * expr.h (vector_mode_valid_p): Do not declare here.
15416 * system.h: Poison GCC_EXPR_H in front-ends.
15417 * Makefile.in: Update dependencies.
15418
15419 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15420
15421 PR target/44705
15422 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
15423
15424 2010-07-03 Jan Hubicka <jh@suse.cz>
15425
15426 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
15427 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
15428 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
15429 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
15430 Likewise.
15431
15432 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
15433 Update timevars.V
15434 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
15435 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
15436 TV_IPA_LTO_DECL_OUT): New.
15437 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
15438
15439 2010-07-03 Jan Hubicka <jh@suse.cz>
15440
15441 * ipa-inline.c (update_edge_key): Break out from ...
15442 update_callers_keys): ... here;
15443 (update_callee_keys): Update only the edges from caller to callee.
15444 (update_all_calle_keys): Do what update_calle_keys did.
15445 (decide_inlining_of_small_functions): Avoid recomputing of all
15446 callees when badness increase.
15447
15448 2010-07-03 Jie Zhang <jie@codesourcery.com>
15449
15450 * config/arm/arm.c (arm_attr_length_move_neon): New.
15451 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
15452 * config/arm/neon.md (define_mode_attr V_slen): Remove.
15453 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
15454 to compute length attribute.
15455
15456 2010-07-03 Jie Zhang <jie@codesourcery.com>
15457
15458 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
15459 as predicate for operand 1 and remove its constraint.
15460 * config/arm/predicates.md (vfp_register_operand): New.
15461 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
15462 (*push_fp_multi): Likewise.
15463
15464 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
15465
15466 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
15467
15468 2010-07-03 Jan Hubicka <jh@suse.cz>
15469
15470 * config/i386/i386.c (override_options): Revert accidental commit.
15471
15472 2010-07-02 Le-Chun Wu <lcwu@google.com>
15473
15474 PR c++/44128
15475 * doc/invoke.texi: Update documentation of -Wshadow.
15476
15477 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
15478 Julian Brown <julian@codesourcery.com>
15479 Sandra Loosemore <sandra@codesourcery.com>
15480
15481 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
15482 comparisons. Adjust to take both operands.
15483 (arm_select_cc_mode): Handle DImode comparisons.
15484 (arm_gen_compare_reg): Generate a scratch register for DImode
15485 comparisons which require one. Use xor for Thumb equality checks.
15486 (arm_const_double_by_immediates): New.
15487 (arm_print_operand): Allow 'Q' and 'R' for constants.
15488 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
15489 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
15490 arm_canonicalize_comparison.
15491 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
15492 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
15493 prototype.
15494 (arm_const_double_by_immediates): Declare.
15495 * config/arm/constraints.md (Di): New constraint.
15496 * config/arm/predicates.md (arm_immediate_di_operand)
15497 (arm_di_operand, cmpdi_operand): New.
15498 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
15499 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
15500 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
15501 (cstoredi4): Handle non-Cirrus also.
15502
15503 2010-07-02 Julian Brown <julian@codesourcery.com>
15504 Sandra Loosemore <sandra@codesourcery.com>
15505
15506 PR target/43703
15507 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
15508 (smax<mode>3): Disable for NEON float modes when
15509 flag_unsafe_math_optimizations is false.
15510 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
15511 (*mul<mode>3_neon)
15512 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
15513 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
15514 for NEON float modes when flag_unsafe_math_optimizations is false.
15515 (quad_halves_<code>v4sf): Only enable if
15516 flag_unsafe_math_optimizations is true.
15517 * doc/invoke.texi (ARM Options): Add note about floating point
15518 vectorization requiring -funsafe-math-optimizations.
15519
15520 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15521 Julian Brown <julian@codesourcery.com>
15522
15523 * config/arm/neon.md (UNSPEC_VABA): Delete.
15524 (UNSPEC_VABAL): Delete.
15525 (UNSPEC_VABS): Delete.
15526 (UNSPEC_VMUL_N): Delete.
15527 (adddi3_neon): New.
15528 (subdi3_neon): New.
15529 (mul<mode>3add<mode>_neon): Make the pattern named.
15530 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
15531 (neon_vadd<mode>): Replace with define_expand, and move the remaining
15532 unspec parts...
15533 (neon_vadd<mode>_unspec): ...to this.
15534 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
15535 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
15536 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
15537 (neon_vaba<mode>): Rewrite in terms of vabd.
15538 (neon_vabal<mode>): Rewrite in terms of vabdl.
15539 (neon_vabs<mode>): Rewrite without unspec.
15540 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
15541 (*arm_subdi3): Likewise.
15542 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
15543 No_op attribute to disable assembly output checks.
15544 * config/arm/arm_neon.h: Regenerated.
15545 * doc/arm-neon-intrinsics.texi: Regenerated.
15546
15547 2010-07-02 Jan Hubicka <jh@suse.cz>
15548
15549 * ipa-split.c (split_function): For aggregate values, set the return
15550 slot optimization bit. When passing DECL_BY_REFERENCE, produce
15551 *<retval> = fncall.part ().
15552 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
15553
15554 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15555
15556 * config/arm/neon.md (UNSPEC_VAND): Delete.
15557 (UNSPEC_VBIC): Delete.
15558 (UNSPEC_VCLZ): Delete.
15559 (UNSPEC_VCNT): Delete.
15560 (UNSPEC_VEOR): Delete.
15561 (UNSPEC_VORN): Delete.
15562 (UNSPEC_VORR): Delete.
15563 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
15564 core registers too.
15565 (anddi3_neon): Likewise.
15566 (orndi3_neon): Likewise.
15567 (bicdi3_neon): Likewise.
15568 (xordi3_neon): Likewise.
15569 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
15570 rid of unspec and handle unused operand.
15571 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
15572 * config/arm/predicates.md (imm_for_neon_logic_operand):
15573 Require TARGET_NEON.
15574 (imm_for_neon_inv_logic_operand): Likewise.
15575 * config/arm/arm.md (define_split for logical_binary_operator):
15576 Disable for NEON registers.
15577 (anddi3): Add new define_expand, and rename the insn. Disable
15578 this insn for NEON, where anddi3_neon now applies.
15579 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
15580 (iordi3): As for anddi3.
15581 (xordi3): Likewise.
15582 * config/arm/neon.ml (Vand): Split DImode variants and mark them
15583 as No_op to disable testing for exact instruction match.
15584 (Vorr): Likewise.
15585 (Veor): Likewise.
15586 (Vbic): Likewise.
15587 (Vorn): Likewise.
15588 * config/arm/arm_neon.h: Regenerated.
15589 * doc/arm-neon-intrinsics.texi: Regenerated.
15590
15591 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
15592
15593 * expr.h (emit_stack_probe): Declare.
15594 * explow.c (emit_stack_probe): Make global.
15595 (anti_adjust_stack_and_probe): Fix comments.
15596 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15597 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15598 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15599 * config/sparc/sparc.c: Include except.h.
15600 (sparc_emit_probe_stack_range): New function.
15601 (output_probe_stack_range): Likewise.
15602 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
15603 built-in stack checking is enabled.
15604 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
15605 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15606 (probe_stack_range): New insn.
15607
15608 2010-07-02 Richard Guenther <rguenther@suse.de>
15609
15610 PR target/43958
15611 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
15612 for argument alignment.
15613
15614 2010-07-02 Jan Hubicka <jh@suse.cz>
15615
15616 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
15617 walk backwards from entry_bb to check only those basic block of header
15618 that might lead to execution of split part.
15619 (consider_split) ... here.
15620 (find_return_bb): Allow assignment in return BB.
15621 (find_retval): New.
15622 (split_function): Fix name of cloned function; take care of updating
15623 return value in return_bb containing move.
15624
15625 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
15626
15627 PR target/44771
15628 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
15629 used variable insn.
15630
15631 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
15632
15633 * implicit-zee.c (combine_reaching_defs): Fix long lines.
15634 (is_set_with_extension_DI): Delete.
15635 (struct zero_extend_info): New structure.
15636 (add_removable_zero_extend): New function.
15637 (find_removable_zero_extends): Use note_stores to find SETs.
15638 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
15639
15640 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
15641
15642 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
15643 is_miss_rate_acceptable. Pull total_positions computation
15644 out of the loops. Early return if miss_positions exceeds
15645 the acceptable threshold.
15646 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
15647 is_miss_rate_acceptable after renaming of compute_miss_rate.
15648
15649 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
15650
15651 PR middle-end/44576
15652 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
15653 of 1000) for miss rate if the address diference is greater than or
15654 equal to the cache line size (the two reference will never hit the
15655 same cache line).
15656
15657 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
15658
15659 PR target/42835
15660 * config/arm/arm-modes.def (CC_NOTB): New mode.
15661 * config/arm/arm.c (get_arm_condition_code): Handle it.
15662 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
15663 * config/arm/arm.md (subsi3_compare0_c): New pattern.
15664 (compare_scc): Now a define_and_split. Add a number of extra
15665 splitters before it.
15666
15667 PR target/42172
15668 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
15669 and ZERO_EXTEND.
15670 (arm_rtx_costs_1): Likewise.
15671 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
15672 * config/arm/arm.md (is_arch6): New attribute.
15673 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
15674 extendqisi2): Tighten the code somewhat, avoiding invalid
15675 RTL to occur in the expander patterns.
15676 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
15677 (thumb1_zero_extendhisi2_v6): Delete.
15678 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
15679 (thumb1_extendhisi2_v6): Delete.
15680 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
15681 (thumb1_extendqisi2_v6): Delete.
15682 (zero_extendhisi2 for register input splitter): New.
15683 (zero_extendqisi2 for register input splitter): New.
15684 (thumb1_extendhisi2 for register input splitter): New.
15685 (extendhisi2 for register input splitter): New.
15686 (extendqisi2 for register input splitter): New.
15687 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
15688 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
15689 and add support for a register alternative requiring a split.
15690 (thumb1_zero_extendqisi2): Likewise.
15691 (arm_zero_extendqisi2): Likewise.
15692 (arm_extendhisi2): Likewise.
15693 (arm_extendqisi2): Likewise.
15694
15695 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15696
15697 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
15698 instead of an unspec.
15699 (neon_expand_vector_init): Likewise.
15700 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
15701 (UNSPEC_VDUP_LANE): Delete.
15702 (UNSPEC VDUP_N): Delete.
15703 (UNSPEC_VGET_HIGH): Delete.
15704 (UNSPEC_VGET_LANE): Delete.
15705 (UNSPEC_VGET_LOW): Delete.
15706 (UNSPEC_VMVN): Delete.
15707 (UNSPEC_VSET_LANE): Delete.
15708 (V_double_vector_mode): New.
15709 (vec_set<mode>_internal): Make code emitted match that for the
15710 corresponding intrinsics.
15711 (vec_setv2di_internal): Likewise.
15712 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
15713 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
15714 (neon_vset_lane<mode>): Combine double and quad patterns and
15715 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
15716 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
15717 (neon_vdup_n<mode>): Rewrite RTL without unspec.
15718 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
15719 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
15720 with neon_vdup_lanev2di, adjusting the pattern from the latter
15721 to be predicable for consistency.
15722 (neon_vdup_lane<mode>_internal): New.
15723 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
15724 to avoid using an unspec.
15725 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
15726 (neon_vdup_lanev2di): Turn into a define_expand.
15727 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
15728 (neon_vget_high<mode>): Replace with....
15729 (neon_vget_highv16qi): New pattern using canonical RTL.
15730 (neon_vget_highv8hi): Likewise.
15731 (neon_vget_highv4si): Likewise.
15732 (neon_vget_highv4sf): Likewise.
15733 (neon_vget_highv2di): Likewise.
15734 (neon_vget_low<mode>): Replace with....
15735 (neon_vget_lowv16qi): New pattern using canonical RTL.
15736 (neon_vget_lowv8hi): Likewise.
15737 (neon_vget_lowv4si): Likewise.
15738 (neon_vget_lowv4sf): Likewise.
15739 (neon_vget_lowv2di): Likewise.
15740
15741 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
15742 test for this emitting vmov.
15743 (Vset_lane): Likewise.
15744 (Vdup_n): Likewise.
15745 (Vmov_n): Likewise.
15746
15747 * doc/arm-neon-intrinsics.texi: Regenerated.
15748
15749 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15750
15751 * config/arm/neon.md (vec_extractv2di): Correct error in register
15752 numbering to reconcile with neon_vget_lanev2di.
15753
15754 2010-07-02 Richard Guenther <rguenther@suse.de>
15755
15756 * tree-ssa-structalias.c (pt_solution_set_var): New function.
15757 * tree-ssa-alias.h (pt_solution_set_var): Declare.
15758 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
15759 points-to information.
15760
15761 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
15762
15763 * config/s390/s390.c (override_options): Adopt prefetching
15764 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
15765
15766 2010-07-02 Jan Hubicka <jh@suse.cz>
15767
15768 * df-problems.c (df_kill_notes): Do not collect dead notes.
15769 (df_set_note): Just call add_reg_note.
15770 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
15771 df_create_unused_note): Do not deal with lists of old notes.
15772 (df_note_bb_compute): Likewise.
15773
15774 2010-07-02 Richard Guenther <rguenther@suse.de>
15775
15776 * tree-ssa-structalias.c (find_func_aliases): Handle
15777 pointer alignment via BIT_AND_EXPR.
15778 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
15779
15780 2010-07-02 Richard Guenther <rguenther@suse.de>
15781
15782 * tree-data-ref.c (initialize_data_dependence_relation): Handle
15783 mismatching number of dimensions properly.
15784
15785 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15786
15787 PR target/44707
15788 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
15789 (lo_sum (high ...) ...) patterns generated by earlier passes.
15790
15791 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15792
15793 * doc/install.texi (Prerequisites): Document Perl requirement on
15794 Solaris 2.
15795 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
15796
15797 2010-07-02 Richard Guenther <rguenther@suse.de>
15798
15799 PR middle-end/44777
15800 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
15801
15802 2010-07-02 Jan Hubicka <jh@suse.cz>
15803
15804 PR middle-end/44706
15805 * predict.c (predict_paths_for_bb): Handle case when control dependence
15806 BB has only abnormal edges.
15807
15808 2010-07-02 Richard Guenther <rguenther@suse.de>
15809
15810 PR tree-optimization/44748
15811 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
15812 the embedded conversion in MEM_REFs.
15813
15814 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
15815
15816 * reload.c: Include toplev.h.
15817 * recog.c: Likewise.
15818 * Makefile.in: Adjust dependencies.
15819
15820 2010-07-01 Jakub Jelinek <jakub@redhat.com>
15821
15822 PR debug/44694
15823 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
15824 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
15825
15826 2010-07-01 Richard Guenther <rguenther@suse.de>
15827
15828 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
15829 types for offsets.
15830
15831 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
15832
15833 PR target/44732
15834 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
15835 Fix argument types.
15836
15837 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
15838
15839 PR target/44727
15840 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
15841 Make sure operand 0 dies.
15842
15843 2010-07-01 Richard Guenther <rguenther@suse.de>
15844
15845 PR middle-end/42834
15846 PR middle-end/44468
15847 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
15848 * doc/generic.texi (References to storage): Document MEM_REF.
15849 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
15850 (print_call_name): Likewise.
15851 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
15852 (build_simple_mem_ref_loc): New function.
15853 (mem_ref_offset): Likewise.
15854 * tree.h (build_simple_mem_ref_loc): Declare.
15855 (build_simple_mem_ref): Define.
15856 (mem_ref_offset): Declare.
15857 * fold-const.c: Include tree-flow.h.
15858 (operand_equal_p): Handle MEM_REF.
15859 (build_fold_addr_expr_with_type_loc): Likewise.
15860 (fold_comparison): Likewise.
15861 (fold_unary_loc): Fold
15862 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
15863 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
15864 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
15865 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
15866 (ptr_deref_may_alias_ref_p_1): Likewise.
15867 (ao_ref_base_alias_set): Properly differentiate base object for
15868 offset and TBAA.
15869 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
15870 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
15871 (indirect_refs_may_alias_p): Likewise.
15872 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
15873 chasing code.
15874 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
15875 (call_may_clobber_ref_p_1): Likewise.
15876 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
15877 * expr.c (expand_assignment): Handle MEM_REF.
15878 (store_expr): Handle MEM_REFs from STRING_CSTs.
15879 (store_field): If expanding a MEM_REF of a non-addressable
15880 decl use bitfield operations.
15881 (get_inner_reference): Handle MEM_REF.
15882 (expand_expr_addr_expr_1): Likewise.
15883 (expand_expr_real_1): Likewise.
15884 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
15885 * alias.c (ao_ref_from_mem): Handle MEM_REF.
15886 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
15887 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
15888 (dr_analyze_indices): Likewise.
15889 (dr_analyze_alias): Likewise.
15890 (object_address_invariant_in_loop_p): Likewise.
15891 * gimplify.c (mark_addressable): Handle MEM_REF.
15892 (gimplify_cond_expr): Build MEM_REFs.
15893 (gimplify_modify_expr_to_memcpy): Likewise.
15894 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
15895 (gimple_fold_indirect_ref): Adjust.
15896 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
15897 * tree.def (MEM_REF): New tree code.
15898 * tree-dfa.c: Include toplev.h.
15899 (get_ref_base_and_extent): Handle MEM_REF.
15900 (get_addr_base_and_unit_offset): New function.
15901 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
15902 * gimple-fold.c (may_propagate_address_into_dereference): Handle
15903 MEM_REF.
15904 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
15905 accesses if the array has just one dimension. Remove always true
15906 parameter. Do not require type compatibility here.
15907 (maybe_fold_offset_to_component_ref): Remove.
15908 (maybe_fold_stmt_indirect): Remove.
15909 (maybe_fold_reference): Remove INDIRECT_REF handling.
15910 Fold back to non-MEM_REF.
15911 (maybe_fold_offset_to_address): Simplify. Deal with type
15912 mismatches here.
15913 (maybe_fold_reference): Likewise.
15914 (maybe_fold_stmt_addition): Likewise. Also handle
15915 &ARRAY + I in addition to &ARRAY[0] + I.
15916 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
15917 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
15918 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
15919 * tree-ssa.c (useless_type_conversion_p): Make most pointer
15920 conversions useless.
15921 (warn_uninitialized_var): Handle MEM_REF.
15922 (maybe_rewrite_mem_ref_base): New function.
15923 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
15924 to SSA form.
15925 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
15926 INDIRECT_REF handling.
15927 (copy_tree_body_r): Handle MEM_REF.
15928 * gimple.c (is_gimple_addressable): Adjust.
15929 (is_gimple_address): Likewise.
15930 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
15931 invariant base are invariant.
15932 (is_gimple_min_lval): Adjust.
15933 (is_gimple_mem_ref_addr): New function.
15934 (get_base_address): Handle MEM_REF.
15935 (count_ptr_derefs): Likewise.
15936 (get_base_loadstore): Likewise.
15937 * gimple.h (is_gimple_mem_ref_addr): Declare.
15938 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
15939 * tree-cfg.c (verify_address): New function, split out from ...
15940 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
15941 the address operand of MEM_REFs. Verify MEM_REFs. Reject
15942 INDIRECT_REFs.
15943 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
15944 INDIRECT_REF. Allow conversions.
15945 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
15946 a register does not change its size.
15947 (verify_types_in_gimple_reference): Verify MEM_REF.
15948 (verify_gimple_assign_single): Disallow INDIRECT_REF.
15949 Handle MEM_REF.
15950 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
15951 New.
15952 (mark_address_taken): Handle MEM_REF.
15953 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
15954 (get_asm_expr_operands): Pass opf_not_non_addressable.
15955 (get_expr_operands): Handle opf_[not_]non_addressable.
15956 Handle MEM_REF. Remove INDIRECT_REF handling.
15957 * tree-vrp.c (check_array_ref): Handle MEM_REF.
15958 (search_for_addr_array): Likewise.
15959 (check_array_bounds): Likewise.
15960 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
15961 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
15962 (ref_always_accessed_p): Likewise.
15963 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
15964 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
15965 Handle MEM_REF.
15966 * cgraphbuild.c (mark_load): Properly check for NULL result
15967 from get_base_address.
15968 (mark_store): Likewise.
15969 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
15970 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
15971 handling for MEM_REF.
15972 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
15973 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
15974 * builtins.c (stabilize_va_list_loc): Use the function ABI
15975 valist type if we couldn't canonicalize the argument type.
15976 Always dereference with the canonical va-list type.
15977 (maybe_emit_free_warning): Handle MEM_REF.
15978 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
15979 memmove to memcpy.
15980 * builtins.c (fold_builtin_memory_op): Use ref-all types
15981 for all memcpy foldings.
15982 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
15983 (build_outer_var_ref): Likewise.
15984 (scan_omp_1_op): Likewise.
15985 (lower_rec_input_clauses): Likewise.
15986 (lower_lastprivate_clauses): Likewise.
15987 (lower_reduction_clauses): Likewise.
15988 (lower_copyprivate_clauses): Likewise.
15989 (expand_omp_atomic_pipeline): Likewise.
15990 (expand_omp_atomic_mutex): Likewise.
15991 (create_task_copyfn): Likewise.
15992 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
15993 Remove old union trick. Initialize constant offsets.
15994 (ao_ref_init_from_vn_reference): Likewise. Do not handle
15995 INDIRECT_REF. Init base_alias_set properly.
15996 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
15997 (vn_reference_fold_indirect): Adjust for MEM_REFs.
15998 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
15999 for ARRAY_REFs.
16000 (may_insert): Remove.
16001 (visit_reference_op_load): Do not test may_insert.
16002 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
16003 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16004 a field to store the constant offset this op applies.
16005 (run_scc_vn): Adjust prototype.
16006 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
16007 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
16008 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
16009 bother about volatile qualifiers on pointers.
16010 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
16011 * tree-ssa-loop-ivopts.c
16012 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
16013 (strip_offset_1): Likewise.
16014 (find_interesting_uses_address): Replace INDIRECT_REF handling with
16015 MEM_REF handling.
16016 (get_computation_cost_at): Likewise.
16017 * ipa-pure-const.c (check_op): Handle MEM_REF.
16018 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
16019 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
16020 and constants.
16021 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
16022 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
16023 (eliminate_local_variables_1): Likewise.
16024 (create_call_for_reduction_1): Likewise.
16025 (create_loads_for_reductions): Likewise.
16026 (create_loads_and_stores_for_name): Likewise.
16027 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
16028 (ssa_accessed_in_tree): Handle MEM_REF.
16029 (ssa_accessed_in_assign_rhs): Likewise.
16030 (update_type_size): Likewise.
16031 (analyze_accesses_for_call_stmt): Likewise.
16032 (analyze_accesses_for_assign_stmt): Likewise.
16033 (transform_access_sites): Likewise.
16034 (transform_allocation_sites): Likewise.
16035 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
16036 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
16037 not handle INDIRECT_REF.
16038 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
16039 (cond_store_replacement): Likewise.
16040 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16041 MEM_REF, no not handle INDIRECT_REFs.
16042 (insert_into_preds_of_block): Properly initialize avail.
16043 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
16044 for ARRAY_REFs. Properly handle reference lookups that
16045 require a bit re-interpretation.
16046 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
16047 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
16048 (build_ref_for_offset_1): Remove.
16049 (build_ref_for_offset): Build MEM_REFs.
16050 (gate_intra_sra): Disable for now.
16051 (sra_ipa_modify_expr): Handle MEM_REF.
16052 (ipa_early_sra_gate): Disable for now.
16053 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
16054 MEM_REF handling.
16055 (disqualify_base_of_expr): Likewise.
16056 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
16057 MEM_REF handling.
16058 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
16059 Use mem_ref_offset. Remove bogus folding.
16060 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
16061 (make_fancy_name_1): Add support for MEM_REF.
16062 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
16063 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
16064 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
16065 (compute_complex_ancestor_jump_func): Likewise.
16066 (ipa_analyze_virtual_call_uses): Likewise.
16067 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
16068 INDIRECT_REF folding with more generalized MEM_REF folding.
16069 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
16070 (forward_propagate_addr_into_variable_array_index): Also handle
16071 &ARRAY + I in addition to &ARRAY[0] + I.
16072 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
16073 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
16074 creates assignments with overlap.
16075 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
16076 (get_frame_field): Likewise.
16077 (get_nonlocal_debug_decl): Likewise.
16078 (convert_nonlocal_reference_op): Likewise.
16079 (struct nesting_info): Add mem_refs pointer-set.
16080 (create_nesting_tree): Allocate it.
16081 (convert_local_reference_op): Insert to be folded mem-refs.
16082 (fold_mem_refs): New function.
16083 (finalize_nesting_tree_1): Perform defered folding of mem-refs
16084 (free_nesting_tree): Free the pointer-set.
16085 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
16086 (vectorizable_load): Likewise.
16087 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
16088 (propagate_with_phi): Likewise.
16089 * tree-object-size.c (addr_object_size): Handle MEM_REFs
16090 instead of INDIRECT_REFs.
16091 (compute_object_offset): Handle MEM_REF.
16092 (plus_stmt_object_size): Handle MEM_REF.
16093 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
16094 for &MEM_REF.
16095 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
16096 (symbol_marked_for_renaming): Likewise.
16097 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
16098 (fold-const.o): Add $(TREE_FLOW_H).
16099 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
16100 (find_func_clobbers): Likewise.
16101 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
16102 (decompose_access): Likewise.
16103 (replace_field_acc): Likewise.
16104 (replace_field_access_stmt): Likewise.
16105 (insert_new_var_in_stmt): Likewise.
16106 (get_stmt_accesses): Likewise.
16107 (reorg_structs_drive): Disable.
16108 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
16109 (ix86_canonical_va_list_type): Likewise.
16110
16111 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16112
16113 PR other/44566
16114 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
16115 * target.def (struct gcc_target): Replace enum reg_class with
16116 reg_class_t in hook argument / return types.
16117 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
16118 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
16119 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
16120 * targhooks.h (default_branch_target_register_class): Likewise.
16121 (default_ira_cover_classes, default_secondary_reload): Likewise.
16122 (default_memory_move_cost, default_register_move_cost): Likewise.
16123 * targhooks.c (default_branch_target_register_class): Likewise.
16124 (default_ira_cover_classes, default_secondary_reload): Likewise.
16125 (default_memory_move_cost, default_register_move_cost): Likewise.
16126 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
16127 * bt-load.c (branch_target_load_optimize): Likewise.
16128 * ira.c (setup_cover_and_important_classes): Likewise.
16129 * ira-costs.c (copy_cost): Likewise.
16130 * reload1.c (emit_input_reload_insns): Likewise.
16131 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16132 * config/frv/frv.c (frv_secondary_reload): Likewise.
16133 * config/s390/s390.c (s390_secondary_reload): Likewise.
16134 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
16135 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
16136 (ix86_register_move_cost): Likewise.
16137 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
16138 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
16139 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
16140 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
16141 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
16142 (rs6000_ira_cover_classes): Likewise.
16143 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
16144 * config/picochip/picochip-protos.h (picochip_secondary_reload):
16145 Likewise.
16146 * config/pa/pa.c (pa_secondary_reload): Likewise.
16147 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
16148 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
16149 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
16150 * doc/tm.texi: Regenerate.
16151
16152 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
16153
16154 PR bootstrrap/44726
16155 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
16156 use.
16157 (build_alias_set_optimal_p): Likewise.
16158 (build_base_obj_set_for_drs): Likewise.
16159
16160 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16161
16162 * target.def: Remove comment about licensing problems of function
16163 declarations.
16164
16165 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
16166 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
16167 * doc/tm.texi: Regenerate.
16168
16169 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
16170 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
16171
16172 * target.def (enum_va_list_p): Use DEFHOOK.
16173 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
16174 Rename ptype to ptree.
16175 * doc/tm.texi: Regenerate.
16176
16177 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
16178 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
16179 * doc/tm.texi: Regenerate.
16180
16181 * target.def (memory_move_cost): Use DEFHOOK.
16182 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
16183 Rename regclass AKA class to rclass.
16184 * doc/tm.texi: Regenerate.
16185
16186 * target.def (pragma_parse): Use DEFHOOK.
16187 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
16188 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
16189 * doc/tm.texi: Regenerate.
16190
16191 * target.def (pass_by_reference): Use DEFHOOK.
16192 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
16193 * doc/tm.texi: Regenerate.
16194
16195 * target.def (resolve_overloaded_builtin): Rename params to arglist.
16196 Use DEFHOOK.
16197 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
16198 * doc/tm.texi: Regenerate.
16199
16200 * target.def (return_pops_args): Use DEFHOOK.
16201 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
16202 Rename stack-size to size.
16203 * doc/tm.texi: Regenerate.
16204
16205 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
16206 last-sched_cycle to last_clock, cur_cycle to clock.
16207 * doc/tm.texi.in: Use @hook.
16208 * doc/tm.texi: Regenerate.
16209
16210 * target.def (print_operand, print_operand_address): Update comment.
16211 (print_operand_punct_valid_p): Likewise.
16212
16213 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16214
16215 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
16216 to rtl.h.
16217 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
16218 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
16219 * rtl-error.h: New.
16220 * regrename.c: Do not include toplev.h. Include rtl-error.h.
16221 * rtl-error.c: Likewise.
16222 * reload.c: Likewise.
16223 * recog.c: Likewise.
16224 * sel-sched.c: Likewise.
16225 * function.c: Likewise.
16226 * reg-stack.c: Likewise.
16227 * cfgrtl.c: Likewise.
16228 * reload1.c: Likewise.
16229 * final.c: Include rtl-error.
16230 * Makefile.in: Adjust dependencies.
16231
16232 2010-06-30 Jan Hubicka <jh@suse.cz>
16233
16234 PR middle-end/PR44706
16235 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
16236 to return the value.
16237
16238 2010-06-30 Michael Matz <matz@suse.de>
16239
16240 PR bootstrap/44699
16241 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
16242 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
16243 a gimple reg, attach the original VDEF to the last store in the
16244 sequence.
16245
16246 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
16247
16248 PR other/44034
16249 * config/darwin.c (darwin_override_options): Use renamed
16250 targetm.asm_out.emit_unwind_label.
16251
16252 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16253
16254 PR tree-optimization/39799
16255 * tree-inline.c (remap_ssa_name): Initialize variable only if
16256 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
16257
16258 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
16259
16260 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
16261
16262 2010-06-30 Richard Guenther <rguenther@suse.de>
16263
16264 PR target/44722
16265 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
16266 against oscillation with reverse peephole2.
16267
16268 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
16269
16270 PR target/44721
16271 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16272 Fix last commit.
16273
16274 2010-06-30 Nick Clifton <nickc@redhat.com>
16275
16276 * config/rx/rx-modes.def: New file.
16277 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
16278 (CC_REGNUM): Define.
16279 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
16280 register.
16281 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
16282 (SELECT_CC_MODE): Define.
16283 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
16284 (reg:CC CC_REG) instead of (cc0).
16285 (attr "cc"): Delete.
16286 (cbranchsi4): Do not split compare and branch here. Instead move
16287 it to...
16288 (cbranchsi4_<code>): ... here. New patterns.
16289 (cmpsi): Call rx-compare_redundant to find out if it is necessary
16290 to emit the compare instruction.
16291 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
16292 cc_status flags.
16293 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
16294 FIRST_PSEUDO_REGNUM.
16295 (rx_expand_prologue, rx_expand_epilogue): Likewise.
16296 (rx_notice_update_cc): Delete.
16297 (rx_cc_modes_compatible): New function.
16298 (flags_needed_for_conditional): New function.
16299 (flags_from_mode): New function.
16300 (rx_compare_redundant): New function - scans backwards through
16301 insn list to find out if condition flags are already set correctly.
16302 (TARGET_CC_MODES_COMPATIBLE): Define.
16303 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
16304
16305 * config/rx/rx.h (BRANCH_COST): Define.
16306 (REGISTER_MOVE_COST): Define.
16307 * config/rx/predicates (rx_source_operand): Allow all constant types.
16308 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
16309 (tstsi4): New pattern.
16310 * config/rx/rx.c (rx_memory_move_cost): Define.
16311 (TARGET_MEMORY_MOVE_COST): Define.
16312
16313 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16314
16315 * tree.h (block_may_fallthru): Declare here.
16316 * tree-flow.h (block_may_fallthru): Do not declare here.
16317 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
16318 bitmap.h
16319 * Makefile.in (c-typeck.o): Update dependencies.
16320
16321 2010-06-30 Jakub Jelinek <jakub@redhat.com>
16322
16323 PR debug/44694
16324 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
16325 * cselib.c (cfa_base_preserved_regno): New static variable.
16326 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
16327 of REGNO (cfa_base_preserved_val->locs->loc).
16328 (cselib_preserve_cfa_base_value): Add regno argument, set
16329 cfa_base_preserved_regno to it.
16330 (cselib_invalidate_regno): Allow removal of registers other than
16331 cfa_base_preserved_regno from cfa_base_preserved_val.
16332 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
16333 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
16334 of MEM addresses, if not on LHS.
16335 (reverse_op): Don't add reverse ops for cfa_base_rtx.
16336 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
16337
16338 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16339
16340 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
16341 static variables.
16342 (peep2_buf_position): New static function.
16343 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
16344 peephole2_optimize): Use it.
16345 (peep2_attempt, peep2_update_life): New static functions, broken out
16346 of peephole2_optimize.
16347 (peep2_fill_buffer): New static function.
16348 (peephole2_optimize): Change the main loop to try to fill the buffer
16349 with the maximum number of insns before matching them against
16350 peepholes. Use a forward scan. Remove special case for targets with
16351 conditional execution.
16352 * genrecog.c (change_state): Delete dead code.
16353 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16354 Rewrite so as not to expect the second insn to have had a peephole
16355 applied yet.
16356
16357 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16358
16359 * genhooks.c (emit_findices): Cast field precision to int.
16360 (emit_documentation): Likewise.
16361
16362 2010-06-29 Jakub Jelinek <jakub@redhat.com>
16363
16364 PR tree-optimization/43801
16365 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
16366 if old_decl was DECL_ONE_ONLY.
16367
16368 PR debug/44668
16369 * dwarf2out.c (add_accessibility_attribute): New function.
16370 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
16371 instead of adding DW_AT_accessibility manually.
16372 (gen_enumeration_type_die, gen_struct_or_union_type_die,
16373 gen_typedef_die): Use it.
16374
16375 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16376
16377 * vmsdbgout.c (full_name): Just output the file name if not native.
16378
16379 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16380
16381 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
16382 (funcnam_table): New static table.
16383 (funcnum_table): New static table.
16384 (write_rtnbeg): Write value saved in funcnum_table.
16385 (write_rtnend): Write value saved in funcnum_table.
16386 (vmsdbgout_begin_function): Save current function info in
16387 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
16388 (vmsdbgout_finish): Iterate over funcnum_table.
16389
16390 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16391
16392 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
16393 (vmsdbgout_type_decl): Declare
16394 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
16395 (FUNC_EPILOGUE_LABEL): New macro
16396 (vmsdbgout_begin_epilogue): New function.
16397 (vmsdbgout_type_decl): New function.
16398
16399 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16400
16401 * vmsdbg.h: Update copyright.
16402
16403 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16404
16405 * vmsdbg.h (DST_K_TBG): New DST constant.
16406 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
16407 (write_modbeg): Cast module_language to avoid warning.
16408 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
16409
16410 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
16411
16412 PR other/44034
16413 * target.def, doc/tm.texi.in, genhooks.c: New files.
16414 * target.h: Instead of defining individual hook members,
16415 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
16416 include target.def.
16417 * target-def.h: Instead of defining individual hook initializers,
16418 include target-hooks-def.h.
16419 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
16420 targetm.live_on_entry -> targetm.extra_live_on_entry
16421 targetm.sched.md_finish ->targetm.sched.finish
16422 targetm.sched.md_init -> targetm.sched.init
16423 targetm.sched.md_init_global -> targetm.sched.init_global
16424 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
16425 targetm.asm_out.except_table_label ->
16426 targetm.asm_out.emit_except_table_label
16427 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
16428 targetm.target_help -> targetm.help
16429 targetm.vectorize.builtin_support_vector_misalignment ->
16430 targetm.vectorize.support_vector_misalignment
16431 targetm.file_start_app_off -> targetm.asm_file_start_app_off
16432 targetm.file_start_file_directive ->
16433 targetm.asm_file_start_file_directive
16434 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
16435 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
16436 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
16437 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
16438 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
16439 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
16440 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
16441 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
16442 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
16443 * Makefile.in (TARGET_H): Depend on target.def.
16444 (TARGET_DEF_H): Depend on target-hooks-def.h.
16445 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
16446 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
16447 * doc/tm.texi: Regenerate.
16448
16449 * Makefile.in (s-tm-texi): Remove stray tab / rule.
16450
16451 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
16452 (targetm.sched.init): Likewise.
16453
16454 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16455
16456 PR bootstrap/44713
16457 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
16458 (function_arg_advance_32): Const-ify TYPE parameter.
16459 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
16460 (ix86_function_arg_advance): Change type of NAMED to bool.
16461 (function_arg_32): Const-ify CUM and TYPE parameters.
16462 (function_arg_64): Likewise. Change type of NAMED to bool.
16463 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
16464 to bool.
16465 (ix86_function_arg): Change type of NAMED to bool.
16466 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
16467 last argument as a bool.
16468
16469 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
16470
16471 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
16472 (OVERRIDE_OPTIONS): Add note of obsolescence.
16473 Replace references with references to TARGET_OPTION_OVERRIDE.
16474 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
16475 the macro).
16476 * targhooks.c (default_target_option_override): New function.
16477 * targhooks.h (default_target_option_override): Declare.
16478 * target.h (struct gcc_target): Add override member to
16479 target_option member.
16480 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
16481 targetm.target_option.override call.
16482 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
16483 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
16484
16485 2010-06-29 Jan Hubicka <jh@suse.cz>
16486
16487 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
16488
16489 2010-06-29 Jan Hubicka <jh@suse.cz>
16490
16491 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
16492 unreachable.
16493 (rebuild_frequencies): New function.
16494 * predict.h (rebuild_frequencies): Declare.
16495 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
16496 entry block and edge reaching new_entry.
16497 (tree_function_versioning): When doing partial cloning, rebuild
16498 frequencies when done.
16499 * passes.c (execute_function_todo): Use rebild_frequencies.
16500
16501 2010-06-29 Richard Guenther <rguenther@suse.de>
16502
16503 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
16504 * tree-flow.h (enum noalias_state): Remove.
16505 (struct var_ann_d): Remove noalias_state member.
16506
16507 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
16508
16509 PR target/43902
16510 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
16511 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
16512 (maddhidi4): Likewise.
16513
16514 Revert parts of the change for PR25130.
16515 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
16516 MEM_ALIAS_SET.
16517
16518 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16519
16520 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
16521 targetm.calls.function_incoming_arg, and
16522 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
16523 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
16524 * target.h (struct gcc_target): Add function_arg_advance,
16525 function_arg, and function_incoming_arg fields.
16526 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
16527 (TARGET_FUNCTION_INCOMING_ARG): Define.
16528 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
16529 and TARGET_FUNCTION_INCOMING_ARG.
16530 * targhooks.h (default_function_arg_advance): Declare.
16531 (default_function_arg, default_function_incoming_arg): Declare.
16532 * targhooks.c (default_function_arg_advance): New function.
16533 (default_function_arg, default_function_incoming_arg): New function.
16534 * config/i386/i386.c (function_arg_advance): Rename to...
16535 (ix86_function_arg_advance): ...this. Make static.
16536 (function_arg): Rename to...
16537 (ix86_function_arg): ...this. Make static.
16538 (TARGET_FUNCTION_ARG_ADVANCE): Define.
16539 (TARGET_FUNCTION_ARG): Define.
16540 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
16541 (FUNCTION_ARG): Delete.
16542 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
16543 (function_arg): Delete prototype.
16544
16545 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16546
16547 * reginfo.c (init_reg_sets_1): Adjust comments.
16548 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
16549 * calls.c (prepare_call_address): Likewise.
16550 (emit_call_1): Use targetm.calls.return_pops_args.
16551 (expand_call): Likewise.
16552 * function.c (assign_parms): Likewise.
16553 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
16554 * target.h (struct gcc_target) [struct calls]: Add
16555 return_pops_args field.
16556 * targhooks.h (default_return_pops_args): Declare.
16557 * targhooks.c (default_return_pops_args): Define.
16558 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
16559 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
16560 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
16561 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
16562 documentation.
16563 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
16564 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
16565 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
16566 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
16567 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
16568 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
16569 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
16570 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
16571 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
16572 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
16573 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
16574 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
16575 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
16576 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
16577 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
16578 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
16579 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
16580 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
16581 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
16582 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
16583 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
16584 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
16585 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
16586 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
16587 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
16588 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
16589 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
16590 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
16591 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
16592 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
16593 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
16594 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
16595 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
16596 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
16597 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
16598 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
16599 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
16600 * config/i386/i386.c (ix86_return_pops_args): Make static.
16601 Constify arguments.
16602 (TARGET_RETURN_POPS_ARGS): Define.
16603 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
16604 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
16605 (TARGET_RETURN_POPS_ARGS): Define.
16606 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
16607 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
16608 (TARGET_RETURN_POPS_ARGS): Define.
16609
16610 2010-06-29 Richard Guenther <rguenther@suse.de>
16611
16612 PR middle-end/44667
16613 * tree-inline.c (initialize_inlined_parameters): Make sure
16614 to remap the inlined parameter variable substitutions types.
16615
16616 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
16617
16618 PR rtl-optimization/44659
16619 * combine.c (make_compound_operation) <SUBREG>: Do not return the
16620 result of force_to_mode if it partially re-expanded the compound.
16621
16622 2010-06-28 Jan Hubicka <jh@suse.cz>
16623
16624 PR middle-end/44671
16625 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
16626 RESULT_DECL.
16627
16628 2010-06-28 Anatoly Sokolov <aesok@post.ru>
16629
16630 * double-int.h (force_fit_type_double): Remove declaration.
16631 * double-int.c (force_fit_type_double): Move to tree.c.
16632 * tree.h (force_fit_type_double): Declare.
16633 * tree.h (force_fit_type_double): Moved from double-int.c. Use
16634 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
16635 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
16636 * convert.c (convert_to_pointer): Adjust call to
16637 force_fit_type_double.
16638 * tree-vrp.c (extract_range_from_assert,
16639 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
16640 * fold-const.c: Update comment.
16641 (int_const_binop, fold_convert_const_int_from_int,
16642 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
16643 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
16644 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
16645 round_up_loc): Adjust call to force_fit_type_double.
16646
16647 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16648
16649 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
16650
16651 2010-06-28 Martin Jambor <mjambor@suse.cz>
16652
16653 * tree-sra.c (convert_callers): New parameter, change fndecls of
16654 recursive calls.
16655 (modify_function): Pass the old decl to convert_callers.
16656
16657 2010-06-28 Martin Jambor <mjambor@suse.cz>
16658
16659 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
16660 ipa_check_create_node_params and ipa_initialize_node_params with
16661 checking asserts they are not necessary.
16662
16663 2010-06-28 Jan Hubicka <jh@suse.cz>
16664
16665 PR tree-optimization/44687
16666 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
16667
16668 2010-06-28 Martin Jambor <mjambor@suse.cz>
16669
16670 PR c++/44535
16671 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
16672 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
16673 instead of BINFO_BASE_BINFO.
16674
16675 2010-06-28 Michael Matz <matz@suse.de>
16676
16677 PR middle-end/44592
16678 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
16679 proper VDEF chain for intermediate stores in the sequence.
16680
16681 2010-06-28 Jan Hubicka <jh@suse.cz>
16682
16683 PR tree-optimization/44357
16684 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
16685 uninlinable functions.
16686
16687 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16688
16689 * config.gcc (powerpc*-*-*): Handle titan.
16690 * config/rs6000/rs6000.c (titan_cost): New costs.
16691 (rs6000_override_options): Add "titan" to processor_target_table.
16692 Add Titan to branch alignment logic.
16693 Correctly set rs6000_cost for titan.
16694 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
16695 * config/rs6000/titan.md: New file.
16696 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
16697
16698 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
16699
16700 * tree-browser.c (TB_history_stack): Convert to a VEC.
16701 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
16702 (TB_history_prev): Likewise.
16703
16704 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
16705
16706 * vec.h (vec_heap_free): Add parentheses around free.
16707
16708 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
16709
16710 * system.h: Poison GCC_EXCEPT_H for front-end files.
16711
16712 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
16713 langhook.
16714 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
16715 Define to NULL by default.
16716 * except.h: Define GCC_EXCEPT_H.
16717 (doing_eh): Remove prototype.
16718 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
16719 (lang_protect_cleanup_actions): Remove.
16720 * except.c (lang_protect_cleanup_actions): Remove.
16721 (doing_eh): Remove.
16722 (gen_eh_region): Don't check doing_eh here.
16723 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
16724 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
16725 instead of lang_protect_cleanup_actions.
16726 * omp-low.c (maybe_catch_exception): Likewise.
16727 * Makefile.in: Update dependencies.
16728
16729 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
16730
16731 * cgraph.h (struct varpool_node): new used_from_object_file flag.
16732 (struct cgraph_local_info): new used_from_object_file flag.
16733 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
16734 (cgraph_clone_node): initialize used_from_object_file.
16735 (cgraph_create_virtual_clone): initialize used_from_object_file.
16736 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
16737 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
16738 when compiling with -fwhole-program.
16739 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
16740 internal resolver.
16741 * ipa.c (function_and_variable_visibility): Set externally_visible
16742 flag of varpool_node if used_from_object_file flag is set.
16743 (cgraph_externally_visible_p): check used_from_object_file flag.
16744 * doc/invoke.texi (-fwhole-program option): Change description of
16745 externally_visible attribute accordingly.
16746 * doc/extend.texi (externally_visible): Ditto.
16747
16748 2010-06-27 Jan Hubicka <jh@suse.cz>
16749
16750 * params.def (max-inline-insns-auto): Default to 40.
16751 * doc/invoke.texi (max-inline-insns-auto): Document the change.
16752
16753 2010-06-27 Jan Hubicka <jh@suse.cz>
16754
16755 PR middle-end/44671
16756 PR middle-end/44686
16757 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
16758 signature change.
16759 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
16760 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
16761
16762 2010-06-27 Anatoly Sokolov <aesok@post.ru>
16763
16764 * target.h (struct gcc_target): Add register_move_cost field.
16765 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
16766 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
16767 * targhooks.c (default_register_move_cost): New function.
16768 * targhooks.h (default_register_move_cost): Declare function.
16769 * defaults.h (REGISTER_MOVE_COST): Delete.
16770 * ira-int.h (ira_register_move_cost): Update comment.
16771 * ira.c (ira_register_move_cost): Update comment.
16772 * reload.h (register_move_cost): Declare.
16773 * reginfo.c (register_move_cost): New function.
16774 (move_cost): Update comment.
16775 (init_move_cost, memory_move_secondary_cost): Replace
16776 REGISTER_MOVE_COST with register_move_cost.
16777 * postreload.c (reload_cse_simplify_set): (Ditto.).
16778 * reload.c (find_valid_class, find_reloads): (Ditto.).
16779 * reload1.c (choose_reload_regs): (Ditto.).
16780 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
16781 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
16782 * doc/md.texi (can_create_pseudo_p): Update documentation.
16783
16784 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
16785 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
16786 * config/i386/i386.h (ix86_memory_move_cost): Make static.
16787 (TARGET_MEMORY_MOVE_COST): Define.
16788
16789 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
16790 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
16791 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
16792 (TARGET_MEMORY_MOVE_COST): Define.
16793
16794 2010-06-27 Richard Guenther <rguenther@suse.de>
16795
16796 PR tree-optimization/44683
16797 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
16798 false edge from the inverted condition.
16799
16800 2010-06-27 Richard Guenther <rguenther@suse.de>
16801
16802 PR middle-end/44684
16803 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
16804 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
16805 for register LHS. Or non-store assignments.
16806
16807 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
16808
16809 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
16810 (sparc_emit_set_const64): Likewise. Remove disabled code.
16811 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
16812 (sparc_emit_set_const64): Likewise.
16813
16814 2010-06-26 Catherine Moore <clm@codesourcery.com>
16815
16816 * config/mips/mips.md (alu_type): New attribute.
16817 (type): Infer type from alu_type.
16818 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
16819 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
16820 *subsi3_extended, negsi2, negdi2, *low<mode>,
16821 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
16822 xor<mode>3, *nor<mode>3,
16823 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
16824 *zero_extendhi_truncqi): Set alu_type instead of type.
16825
16826 2010-06-26 Douglas B Rupp <rupp@gnat.com>
16827
16828 * config/alpha/alpha.c (alpha_need_linkage): Adjust
16829 splay_tree_new_ggc call.
16830 (alpha_use_linkage): Likewise.
16831
16832 2010-06-26 Joseph Myers <joseph@codesourcery.com>
16833
16834 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
16835 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
16836 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
16837 (static_specs): Remove switches_need_spaces.
16838 (process_command, do_self_spec): Hardcode handling "-o" instead of
16839 checking switches_need_spaces.
16840 * system.h (SWITCHES_NEED_SPACES): Poison.
16841
16842 2010-06-26 Richard Guenther <rguenther@suse.de>
16843
16844 PR tree-optimization/44393
16845 * tree-loop-distribution.c (generate_loops_for_partition): Fix
16846 stmt removal and VOP renaming.
16847 (generate_memset_zero): Remove redundant stmt updating.
16848 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
16849 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
16850
16851 2010-06-26 Jan Hubicka <jh@suse.cz>
16852
16853 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
16854 edges comming from header are equivalent.
16855 (visit_bb): Handle PHIs correctly.
16856 * tree-inline.c (copy_phis_for_bb): Be able to copy
16857 PHI from entry edge.
16858 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
16859
16860 2010-06-26 Richard Guenther <rguenther@suse.de>
16861
16862 PR middle-end/44674
16863 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
16864 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
16865
16866 2010-06-26 Joseph Myers <joseph@codesourcery.com>
16867
16868 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
16869 add_infile, alloc_switch): New.
16870 (process_command): Remove variable lang_n_infiles. Process
16871 options in a single pass. Use new functions for allocating
16872 infiles and switches arrays. Properly skip operands of
16873 -Xpreprocessor and -Xassembler.
16874
16875 2010-06-26 Jan Hubicka <jh@suse.cz>
16876
16877 PR middle-end/44671
16878 * cgraphunit.c (cgraph_function_versioning): Remove wrong
16879 cgraph_make_decl_local call; fix typo copying RTL data.
16880
16881 2010-06-25 DJ Delorie <dj@redhat.com>
16882
16883 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
16884 (m32c_output_aligned_common): Likewise.
16885 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
16886 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
16887 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
16888 (m32c_register_pragmas): Register it.
16889 * config/m32c/m32c.c (m32c_get_pragma_address): New.
16890 (m32c_insert_attributes): Set #pragma address decls volatile.
16891 (pragma_entry_eq): New.
16892 (pragma_entry_hash): New.
16893 (m32c_note_pragma_address): New.
16894 (m32c_get_pragma_address): New.
16895 (m32c_output_aligned_common): New.
16896 * doc/extend.texi: Document the new pragma.
16897
16898 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
16899 also.
16900 * config/m32c/predicates.md (m32c_any_operand): Check the code
16901 instead of memory_operand so as to allow matching volatile MEMs.
16902 (m32c_nonimmediate_operand): Likewise.
16903 (mra_operand): Allow volatiles.
16904
16905 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
16906
16907 PR debug/44610
16908 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
16909 address if the offset is unknown.
16910
16911 2010-06-25 Douglas B Rupp <rupp@gnat.com>
16912
16913 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
16914 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
16915 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
16916 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
16917 to ia64_start_function. Invoke it.
16918 * config/ia64/ia64.c (ia64_start_function): Call new function
16919 dwarf2out_vms_debug_main_pointer.
16920
16921 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
16922
16923 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
16924 statements computing the true predicate.
16925
16926 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
16927
16928 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
16929 to boolean_true_node.
16930 (reset_bb_predicate): New.
16931 (predicate_bbs): Call reset_bb_predicate.
16932
16933 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
16934
16935 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
16936 (tree_if_conversion): Returns true when something has been changed.
16937 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
16938 changed something.
16939
16940 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
16941
16942 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
16943 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
16944 * tree-if-conv.c: Include dbgcnt.h.
16945 (tree_if_conversion): Use if_conversion_tree to count the number of
16946 if-convertible loops.
16947
16948 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
16949
16950 * common.opt (fprefetch-loop-arrays): Re-define
16951 -fprefetch-loop-arrays as a tri-state option with the initial
16952 value of -1.
16953 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
16954 pass only when flag_prefetch_loop_arrays > 0.
16955 * toplev.c (process_options): Note that, with tri-states,
16956 flag_prefetch_loop_arrays>0 means prefetching is enabled.
16957 * config/i386/i386.c (override_options): Enable prefetching at -O3
16958 for a set of CPUs that sw prefetching is helpful.
16959 (software_prefetching_beneficial_p): New. Return TRUE if software
16960 prefetching is beneficial for the given CPU.
16961
16962 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
16963
16964 PR rtl-optimization/44326
16965 * implicit-zee.c (find_removable_zero_extends): Replace
16966 INSN_P with NONDEBUG_INSN_P.
16967
16968 2010-06-25 Martin Jambor <mjambor@suse.cz>
16969
16970 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
16971 (struct ipa_node_params): Removed the modification_analysis_done flag.
16972 (ipa_is_param_modified): Removed.
16973 (ipa_analyze_node): Declare.
16974 (ipa_compute_jump_functions): Remove declaration.
16975 (ipa_count_arguments): Likewise.
16976 (ipa_detect_param_modifications): Likewise.
16977 (ipa_analyze_params_uses): Likewise.
16978 * ipa-prop.c (struct param_analysis_info): New type.
16979 (visit_store_addr_for_mod_analysis): Removed.
16980 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
16981 moved down in the file.
16982 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
16983 (ipa_count_arguments): Made static.
16984 (mark_modified): New function.
16985 (is_parm_modified_before_call): New function.
16986 (compute_pass_through_member_ptrs): New parameter parms_info, call
16987 is_parm_modified_before_call instead of ipa_is_param_modified.
16988 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
16989 it to compute_pass_through_member_ptrs.
16990 (ipa_compute_jump_functions): New parameter parms_info, pass it to
16991 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
16992 on the callee if it is analyzed. Made static.
16993 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
16994 is_parm_modified_before_call instead of ipa_is_param_modified.
16995 (ipa_analyze_call_uses): New parameter parms_info, pass it to
16996 ipa_analyze_indirect_call_uses.
16997 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
16998 ipa_analyze_call_uses.
16999 (ipa_analyze_params_uses): New parameter parms_info, pass it to
17000 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
17001 (ipa_analyze_node): New function.
17002 (ipa_print_node_params): Do not dump the modified flag.
17003 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
17004 it. Do not stream the modified parameter flag.
17005 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
17006 it. Do not stream the modified parameter flag.
17007 * ipa-cp.c (ipcp_analyze_node): Removed.
17008 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
17009 with only a call to ipa_analyze_node.
17010 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
17011 node with only a call to ipa_analyze_node.
17012
17013 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17014
17015 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
17016
17017 2010-06-25 Jan Hubicka <jh@suse.cz>
17018
17019 * tree-pass.h (pass_split_functions): Declare.
17020 * opts.c (decode_options): Enable function splitting at -O2
17021 * timevar.def (TV_IPA_FNSPLIT): New macro.
17022 * ipa-split.c: New file.
17023 * common.opt (-fpartial-inlining): New flag.
17024 * Makefile.in (ipa-split.o): New object file.
17025 * passes.c (init_optimization_passes): Add ipa-split.
17026 * params.def (partial-inlining-entry-probability): New parameters.
17027 * doc/invoke.texi (-fpartial-inlining): New.
17028
17029 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17030
17031 PR 44665
17032 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
17033 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
17034 (gimplify_expr): Likewise.
17035
17036 2010-06-25 Martin Jambor <mjambor@suse.cz>
17037
17038 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
17039 statements instead of bailing out on them.
17040 (ipa_analyze_indirect_call_uses): Do not require that loads from the
17041 parameter are in the same BB as the condition. Update comments.
17042
17043 2010-06-25 Jakub Jelinek <jakub@redhat.com>
17044
17045 PR middle-end/43866
17046 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
17047 true or always false, return NULL_TREE.
17048 (tree_unswitch_single_loop): Optimize conditions even when reaching
17049 max-unswitch-level parameter. If num > 0, optimize first all conditions
17050 using entry checks, then do still reachable block discovery and consider
17051 only conditions in still reachable basic blocks in the loop.
17052
17053 PR tree-optimization/44539
17054 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
17055 the call doesn't have LHS, but has VDEF.
17056
17057 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17058
17059 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
17060 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
17061 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
17062 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
17063 * system.h (MODIFY_TARGET_NAME): Poison.
17064
17065 2010-06-25 Alan Modra <amodra@gmail.com>
17066
17067 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
17068 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
17069 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
17070 CMODEL_LARGE as default.
17071 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
17072 (offsettable_ok_by_alignment): Delete.
17073 (rs6000_emit_move): Remove mcmodel=medium optimization.
17074
17075 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17076
17077 With large parts from Jim Wilson:
17078 PR target/43902
17079 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
17080 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17081 * optabs.c (optab_for_tree_code): Likewise.
17082 (expand_widen_pattern_expr): Likewise.
17083 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
17084 out of execute_optimize_widening_mul.
17085 (convert_plusminus_to_widen): New function.
17086 (execute_optimize_widening_mul): Use the two new functions.
17087 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
17088 Remove code to generate widening multiply-accumulate. Add support
17089 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17090 * gimple-pretty-print.c (dump_ternary_rhs): New function.
17091 (dump_gimple_assign): Call it when appropriate.
17092 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
17093 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
17094 (expand_gimple_stmt_1): Likewise.
17095 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
17096 WIDEN_MULT_MINUS_EXPR.
17097 * tree-ssa-operands.c (get_expr_operands): Likewise.
17098 * tree-inline.c (estimate_operator_cost): Likewise.
17099 * gimple.c (extract_ops_from_tree_1): Renamed from
17100 extract_ops_from_tree. Add new arg for a third operand; fill it.
17101 (gimple_build_assign_stat): Support operations with three operands.
17102 (gimple_build_assign_with_ops_stat): Likewise.
17103 (gimple_assign_set_rhs_from_tree): Likewise.
17104 (gimple_assign_set_rhs_with_ops_1): Renamed from
17105 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
17106 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
17107 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
17108 WIDEN_MULT_MINUS_EXPR.
17109 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
17110 (extract_ops_from_tree_1): Adjust declaration.
17111 (gimple_assign_set_rhs_with_ops_1): Likewise.
17112 (gimple_build_assign_with_ops): Pass NULL for last operand.
17113 (gimple_build_assign_with_ops3): New macro.
17114 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
17115 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
17116 functions.
17117 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
17118 (verify_gimple_assign): Call it.
17119 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
17120 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
17121 functions for dealing with three-operand statements.
17122 * tree.c (commutative_ternary_tree_code): New function.
17123 * tree.h (commutative_ternary_tree_code): Declare it.
17124 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
17125 ternary statements.
17126 (gimple_assign_nonzero_warnv_p): Likewise.
17127 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
17128 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
17129 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
17130 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
17131 (struct hashtable_expr): New member ternary in the union.
17132 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
17133 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
17134 (iterative_hash_hashable_expr): Likewise.
17135 (print_expr_hash_elt): Handle EXPR_TERNARY.
17136 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
17137 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
17138 statements. Handle GIMPLE_TERNARY_RHS.
17139
17140 2010-06-25 Jan Hubicka <jh@suse.cz>
17141
17142 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
17143
17144 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
17145
17146 PR c/44517
17147 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
17148 parameters are not good.
17149 (c_parser_parameter_declaration): Error unknown type name if the type
17150 name can't start declaration specifiers.
17151
17152 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17153
17154 * gcc.c (translate_options): Don't mention +e in comment.
17155 (process_command): Don't handle +e specially.
17156
17157 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17158
17159 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
17160
17161 * ira-build.c (merge_hard_reg_conflicts): New function.
17162 (create_cap_allocno, copy_info_to_removed_store_destinations,
17163 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
17164 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
17165 (remove_unnecessary_allocnos, remove_low_level_allocnos)
17166 copy_nifo_to_removed_store_destination): Use them.
17167 * ira-lives.c (make_hard_regno_born): New function, split out of
17168 make_regno_born.
17169 (make_allocno_born): Likewise.
17170 (make_hard_regno_dead): New function, split out of make_regno_dead.
17171 (make_allocno_dead): Likewise.
17172 (inc_register_pressure): New function, split out of set_allocno_live.
17173 (dec_register_pressure): New function, split out of clear_allocno_live.
17174 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
17175 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
17176 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
17177 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
17178 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
17179 mark_pseudo_regno_live.
17180 (process_bb_node_lives): Use mark_pseudo_regno_live,
17181 make_hard_regno_born and make_allocno_dead.
17182 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
17183 set_allocno_live, clear_allocno_live): Delete functions.
17184
17185 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
17186 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
17187 functions.
17188 (ira_flattening): Use ira_parent_allocno.
17189 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
17190 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
17191
17192 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
17193 statement.
17194
17195 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
17196 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
17197 minmax_set_iter_cond, minmax_set_iter_next,
17198 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
17199 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
17200 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
17201 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
17202 uses changed.
17203
17204 * ira-int.h (struct live_range, live_range_t): Renamed from struct
17205 ira_allocno_live_range and allocno_live_range_t; all uses changed.
17206 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
17207 All uses changed.
17208
17209 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
17210
17211 * thumb2.md (thumb2_tlobits_cbranch): Delete.
17212 (peephole2 to convert zero_extract/compare of single bit to
17213 lshift/compare): New.
17214
17215 2010-06-24 Anatoly Sokolov <aesok@post.ru>
17216
17217 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
17218 recursive call and call to 'int_const_binop'.
17219 (build_range_check, fold_cond_expr_with_comparison, unextend,
17220 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
17221 multiple_of_p): Adjust call to const_binop.
17222
17223 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
17224
17225 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
17226 determine size of XFmode operand.
17227 (XFmode extended DFmode push splitter): Ditto.
17228 (XFmode extended SFmode push splitter): Ditto.
17229
17230 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
17231
17232 PR target/44588
17233 * config/i386/i386.md (extract_code): New.
17234 (<u>divmodqi4): Likewise.
17235 (divmodhiqi3): Likewise.
17236 (udivmodhiqi3): Likewise.
17237 (<u>divqi3): Remvoved.
17238
17239 2010-06-24 Jakub Jelinek <jakub@redhat.com>
17240
17241 PR middle-end/44492
17242 * recog.h (struct recog_data): Add is_asm field.
17243 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
17244 present in constraints of inline-asm operand and memory operand
17245 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
17246 (extract_insn): Initialize recog_data.is_asm.
17247 * doc/md.texi (Constraints): Document operand side-effect rules.
17248
17249 2010-06-24 Andi Kleen <ak@linux.intel.com>
17250
17251 * c-parser.c (c_parser_conditional_expression): Call
17252 warn_for_omitted_condop.
17253 * doc/invoke.texi: Document omitted condop warning.
17254
17255 2010-06-24 Nick Clifton<nickc@redhat.com>
17256
17257 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
17258 insn in the sequence is a jump insn before setting its label.
17259
17260 2010-06-24 Alan Modra <amodra@gmail.com>
17261
17262 * collect2.c (main): Match exactly --version and --help.
17263
17264 2010-06-24 DJ Delorie <dj@redhat.com>
17265
17266 * config/m32c/m32c-pragma.c: Don't include rtl.h.
17267
17268 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
17269
17270 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
17271 using X87MODEF mode iterator.
17272 (pushsf splitter): Macroize splitter using P mode iterator.
17273 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
17274 mode iterator.
17275
17276 (*movxf_internal): Rename from *movxf_integer.
17277 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
17278 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
17279 (*movdf_internal): Rename from *movdf_integer.
17280 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
17281 (*movsf_internal): Rename from *movdf_1.
17282
17283 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
17284
17285 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
17286 (const_gimple_seq_node): Removed typedefs.
17287
17288 * gimple.h (gimple_seq_node_d, gimple_seq_node)
17289 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
17290
17291 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
17292
17293 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
17294 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
17295 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
17296 and CODE_FOR_vec_extract_lo_v4df.
17297
17298 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
17299 Changed to define_insn_and_split.
17300 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
17301 (vec_extract_lo_v16hi): Likewise.
17302 (vec_extract_lo_v32qi): Likewise.
17303 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
17304 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
17305
17306 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
17307
17308 PR target/44640
17309 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
17310 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
17311 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
17312 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
17313 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
17314
17315 PR target/44640
17316 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
17317
17318 PR other/44644
17319 * df-core.c (struct df): Rename to df_d.
17320 * df.h (struct df): Likewise.
17321 * dse.h (struct df): Remove forward declaration.
17322 * recog.h (struct insn_data): Rename to:
17323 (struct_insn_data_d). Adjusted all users.
17324
17325 2010-06-23 Arnaud Charlet <charlet@adacore.com
17326
17327 PR ada/22220
17328 * doc/install.texi: Update requirements to build GNAT.
17329
17330 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
17331
17332 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
17333 enum type.
17334 (m68k_sched_attr_opx_type): Remove unreachable return.
17335 (m68k_sched_attr_opy_type): Likewise.
17336 (m68k_sched_attr_size): Likewise.
17337 (sched_get_opxy_mem_type): Likewise.
17338 (m68k_sched_attr_op_mem): Likewise.
17339
17340 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
17341
17342 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
17343 new statement and adjust VDEF only if necessary. Remove superfluous
17344 call to maybe_clean_or_replace_eh_stmt.
17345 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
17346 copy the flags.
17347 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
17348 * tree-inline.c (copy_bb): ...and not there.
17349
17350 2010-06-22 Cary Coutant <ccoutant@google.com>
17351
17352 * dwarf2out.c (is_nested_in_subprogram): New function.
17353 (should_move_die_to_comdat): Use it.
17354 (copy_ancestor_tree): Don't mark DIEs here.
17355 (copy_decls_walk): Start walk from root of newly-added tree;
17356 mark DIEs here instead.
17357
17358 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
17359
17360 * config/i386/i386.md (unit): Also check sseishft1.
17361
17362 2010-06-22 Jan Hubicka <jh@suse.cz>
17363
17364 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
17365 enabled.
17366
17367 2010-06-22 Jan Hubicka <jh@suse.cz>
17368
17369 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
17370 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
17371 Return true if something changed.
17372 * df.h (df_confluence_function_n): Return bool.
17373 * df-core.c (df_worklist_propagate_forward,
17374 df_worklist_propagate_backward): Track changes and ages.
17375 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
17376 track ages.
17377 * dse.c (dse_confluence_n): Return always true.
17378
17379 2010-06-22 Jan Hubicka <jh@suse.cz>
17380
17381 * bitmap.c (bitmap_clear_bit): Micro optimize.
17382
17383 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
17384
17385 * config/i386/i386.md (SWI1248x): New mode iterator.
17386 (SWI48x): Ditto.
17387 (SWI12): Ditto.
17388 (SWI24): Ditto.
17389
17390 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
17391 SWI1248x mode iterator.
17392 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
17393 using SWI124 mode iterator.
17394 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
17395 mode iterator.
17396 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
17397 *pushdi2_prologue_rex64 using P mode iterator.
17398 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
17399 using SWI48 mode iterator.
17400 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
17401 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
17402 using SWI1248x mode iterator.
17403 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
17404 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
17405 SWI48 mode iterator.
17406 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
17407 iterator.
17408 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
17409 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
17410 SWI12 mode iterator.
17411 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
17412 SWI12 mode iterator.
17413 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
17414 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
17415 SWI24 mode iterator.
17416 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
17417 SWI48 mode iterator.
17418 (mov<mode>_insn_1): New expander.
17419 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
17420 using SWI48x mode iterator.
17421
17422 (*movoi_internal_avx): Rename from *movoi_internal.
17423 (*movti_internal_rex64): Rename from *movti_rex64.
17424 (*movti_internal_sse): Rename from *movti_sse.
17425 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
17426 (*movdi_internal): Rename from *movdi_2.
17427 (*movsi_internal): Rename from *movsi_1.
17428 (*movhi_internal): Rename from *movhi_1.
17429 (*movqi_internal): Rename from *movqi_1.
17430
17431 (insv): Update the call to gen_movsi_insv_1 for rename.
17432 * config/i386/i386.c (promote_duplicated_reg): Ditto.
17433
17434 2010-06-22 Jan Hubicka <jh@suse.cz>
17435
17436 * passes.c (execute_function_todo): Move call of statistics_fini_pass
17437 to ...
17438 (execute_todo) ... this one.
17439
17440 2010-06-22 Alan Modra <amodra@gmail.com>
17441
17442 PR target/44364
17443 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
17444 * caller-save.c (insert_restore, insert_save): Use non-validate
17445 form of adjust_address.
17446
17447 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17448
17449 PR target/39690
17450 * config/pa/pa.c (override_options): Disable
17451 -freorder-blocks-and-partition.
17452
17453 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
17454
17455 PR target/44615
17456 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
17457
17458 * config/i386/i386.md (type): Add sseishft1
17459
17460 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
17461 (ppro_insn_load): Likewise.
17462 (ppro_insn_store): Likewise.
17463 (ppro_insn_both): Likewise.
17464
17465 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
17466 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
17467 for type.
17468 (*vec_extractv2di_1_avx): Likewise.
17469 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
17470 type. Remove atom_unit.
17471 (*vec_extractv2di_1_sse2): Likewise.
17472
17473 2010-06-21 DJ Delorie <dj@redhat.com>
17474
17475 * diagnostic.h (diagnostic_classification_change_t): New.
17476 (diagnostic_context): Add history and push/pop list.
17477 (diagnostic_push_diagnostics): Declare.
17478 (diagnostic_pop_diagnostics): Declare.
17479 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
17480 from pragmas in a history chain instead of the global table.
17481 (diagnostic_push_diagnostics): New.
17482 (diagnostic_pop_diagnostics): New.
17483 (diagnostic_report_diagnostic): Scan history chain to find state
17484 of diagnostics as of the diagnostic location.
17485 * opts.c (set_option): Pass UNKNOWN_LOCATION to
17486 diagnostic_classify_diagnostic.
17487 (enable_warning_as_error): Likewise.
17488 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
17489 use in the history chain.
17490 * doc/extend.texi: Document pragma GCC diagnostic changes.
17491
17492 2010-06-21 Jakub Jelinek <jakub@redhat.com>
17493
17494 * dwarf2out.c (add_linkage_name): New function. Don't add
17495 anything to DW_TAG_member DIEs.
17496 (add_name_and_src_coords_attributes): Use it.
17497 (gen_variable_die): Call it for C++ static data members if
17498 specification is DW_TAG_member.
17499
17500 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
17501 C++ char16_t and char32_t.
17502
17503 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
17504 * genattrtab.c: Include vecprim.h.
17505 (cached_attrs, cached_attr_count, attrs_seen_once,
17506 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
17507 attrs_cached_after): New variables.
17508 (find_attrs_to_cache): New function.
17509 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
17510 (write_test_expr): Add attrs_cached argument, return it too,
17511 attempt to cache non-const attributes used more than once in
17512 a single case handling.
17513 (write_attr_get): Use find_attrs_to_cache, for caching candidates
17514 emit cached_* variables. Adjust write_attr_set callers.
17515 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
17516 to find attributes that should be cached in this block. Adjust
17517 write_test_expr callers.
17518 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
17519 callers.
17520 (make_automaton_attrs): Adjust write_test_expr caller.
17521
17522 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
17523 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
17524 (make_automaton_attrs): If find_tune_attr returns non-NULL,
17525 write separate internal_dfa_insn_code_* and insn_default_latency_*
17526 functions for each attribute's value and emit init_sched_attrs
17527 function and function pointers.
17528 * genattr.c (const_attrs, reservations): New variables.
17529 (gen_attr): Add const attributes to const_attrs vector.
17530 (check_tune_attr, find_tune_attr): New functions.
17531 (main): Add reservations to reservations vector. If find_tune_attr
17532 returns true, add prototype for init_sched_attrs and make
17533 internal_dfa_insn_code and insn_default_latency function pointers,
17534 otherwise define init_sched_attrs as dummy macro.
17535 * cfgexpand.c: Include insn-attr.h.
17536 (gimple_expand_cfg): Call init_sched_attrs.
17537
17538 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
17539
17540 PR target/44575
17541 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
17542 va_arg from a set of register save slots into a temporary,
17543 if the container is bigger than type size, do the copying
17544 using smaller mode or using memcpy.
17545
17546 PR bootstrap/44426
17547 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
17548 prototype.
17549 (sel_print_to_dot): Remove macro.
17550 (sel_print): Likewise. New prototype.
17551 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
17552 (sel_print): New function.
17553
17554 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17555
17556 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
17557 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
17558
17559 2010-06-21 Nick Clifton <nickc@redhat.com>
17560
17561 * config/rx/rx.h (PTRDIFF_TYPE): Define.
17562 (SMALL_REGISTER_CLASS): Define (to zero).
17563 (PRINT_OPERAND): Delete.
17564 (PRINT_OPERAND_ADDRESS): Delete.
17565 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
17566 (rx_print_operand_address): Delete prototype.
17567 * config/rx/rx.c (rx_print_operand): Make static.
17568 Allow %H and %L to handle CONST_DOUBLEs.
17569 (rx_print_operand_address): Make static.
17570 (rx_gen_move_template): Rename local variable 'template' to
17571 out_template.
17572 (rx_function_arg): Do not pass unknown sized objects in registers.
17573 (TARGET_PRINT_OPERAND): Define.
17574 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17575
17576 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17577
17578 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
17579
17580 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
17581
17582 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
17583 stack-alignment for simple leaf-functions.
17584
17585 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
17586
17587 * doc/install.texi: Document bootstrap-lto.
17588
17589 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
17590
17591 PR debug/44248
17592 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
17593 (input_function): Drop them here, if VTA is disabled.
17594
17595 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
17596
17597 PR target/44546
17598 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
17599 New predicate.
17600 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
17601 ix86_swapped_fp_comparsion_operator instead of
17602 ix86_fp_comparison_operator.
17603
17604 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
17605 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
17606 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
17607 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
17608 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
17609 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
17610
17611 2010-06-20 Joseph Myers <joseph@codesourcery.com>
17612
17613 PR other/32998
17614 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
17615 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
17616 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
17617 (decode_cmdline_option): Update for this return value. Set
17618 orig_option_with_args_text field. Set arg field for unknown
17619 options. Make static.
17620 (decode_cmdline_options_to_array): New.
17621 (prune_options): Update handling of find_opt return value.
17622 * opts.c (read_cmdline_option): Take decoded option. Return void.
17623 (read_cmdline_options): Take decoded options.
17624 (decode_options): Add parameters for decoded options. Use
17625 decode_cmdline_options_to_array. Use decoded options for -O
17626 scan. Use integral_argument for -O parameters. Update call to
17627 read_cmdline_options.
17628 (enable_warning_as_error): Update handling of find_opt return value.
17629 * opts.h: Update comment on unknown options.
17630 (struct cl_decoded_option): Update comments on opt_index and arg.
17631 Add orig_option_with_args_text.
17632 (decode_cmdline_option): Remove.
17633 (decode_cmdline_options_to_array): Declare.
17634 (decode_options): Update prototype.
17635 * toplev.c (save_argv): Remove.
17636 (save_decoded_options, save_decoded_options_count): New.
17637 (read_integral_parameter): Remove.
17638 (print_switch_values): Use decoded options.
17639 (toplev_main): Don't set save_argv. Update call to decode_options.
17640 * toplev.h (read_integral_parameter): Remove.
17641 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
17642
17643 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
17644
17645 PR target/44072
17646 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
17647 immediate.
17648 * constraints.md (Pw, Px): New constraints.
17649 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
17650
17651 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
17652
17653 * config/i386/sse.md (fma4modesuffixf4): Removed.
17654 (ssemodesuffixf2s): Likewise.
17655 (ssemodesuffixf4): Likewise.
17656 (ssemodesuffixf2c): Likewise.
17657 (ssescalarmodesuffix2s): Likewise.
17658 (avxmodesuffixf2c): Likewise.
17659 (ssemodesuffix): New.
17660 (ssescalarmodesuffix): Likewise.
17661 Update patterns with ssemodesuffix and ssescalarmodesuffix.
17662
17663 2010-06-19 Philip Herron <herron.philip@googlemail.com>
17664
17665 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
17666
17667 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
17668
17669 * stor-layout.c (debug_rli): Remove unused local variables.
17670
17671 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
17672
17673 PR rtl-optimization/40900
17674 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
17675 original expression for later reuse.
17676 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
17677 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
17678
17679 2010-06-18 Anatoly Sokolov <aesok@post.ru>
17680
17681 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
17682 double_int_fits_in_uhwi_p): Implement as static inline.
17683 (double_int_xor): New inline function.
17684 (double_int_lrotate, double_int_rrotate, double_int_max,
17685 double_int_umax, double_int_smax, double_int_min, double_int_umin,
17686 double_int_smin): Declare.
17687 (lrotate_double, rrotate_double): Remove declaration.
17688 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
17689 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
17690 (double_int_lrotate, double_int_rrotate, double_int_max,
17691 double_int_umax, double_int_smax, double_int_min, double_int_umin,
17692 double_int_smin): New function.
17693 * fold-const.c (int_const_binop): Clean up, use double_int_*
17694 functions.
17695 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
17696 double_int_* and immed_double_int_const functions.
17697
17698 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
17699
17700 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
17701 * function.c (types_used_by_cur_var_decl): Likewise.
17702 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
17703
17704 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
17705
17706 * tree.h (record_layout_info): Change type of pending_statics field
17707 to a VEC.
17708 * stor-layout.c (start_record_layout): Store NULL into
17709 pending_statics.
17710 (debug_rli): Call debug_vec_tree instead of debug_tree.
17711 (place_field): Likewise.
17712 (finish_record_layout): Likewise.
17713
17714 2010-06-18 Alan Modra <amodra@gmail.com>
17715
17716 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
17717
17718 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17719
17720 PR target/43740
17721 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
17722 for SET source operand from SET destination operand.
17723
17724 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
17725
17726 PR rtl-optimization/39871
17727 * reload1.c (init_eliminable_invariants): For flag_pic, disable
17728 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
17729 (function_invariant_p): Rule out a plus of frame or arg pointer with
17730 a SYMBOL_REF.
17731 * ira.c (find_reg_equiv_invariant_const): Likewise.
17732
17733 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
17734
17735 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
17736 print_operand_address and puts to output the operand for CONST.
17737
17738 2010-06-17 Jakub Jelinek <jakub@redhat.com>
17739
17740 PR debug/44572
17741 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
17742 hook.
17743
17744 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17745
17746 * v850-protos.h (print_operand): Delete.
17747 (print_operand_address): Delete.
17748 * v850.h (PRINT_OPERAND): Delete.
17749 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17750 (PRINT_OPERAND_ADDRESS): Delete.
17751 * v850.c (print_operand_address): Rename to...
17752 (v850_print_operand_address): ...this. Make static. Call
17753 v850_print_operand.
17754 (print_operand): Rename to...
17755 (v850_print_operand): ...this. Make static. Call
17756 v850_print_operand_address.
17757 (v850_print_operand_punct_valid_p): New function.
17758 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17759 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17760
17761 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17762
17763 * config/sh/sh-protos.h (print_operand): Delete.
17764 (print_operand_address): Delete.
17765 * config/sh/sh.h (PRINT_OPERAND): Delete.
17766 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17767 (PRINT_OPERAND_ADDRESS): Delete.
17768 * config/sh/sh.c (sh_print_operand_address): Make static.
17769 (sh_print_operand): Make static. Call sh_print_operand_address
17770 and sh_print_operand.
17771 (sh_print_operand_punct_valid_p): New function.
17772 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17773 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17774
17775 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17776
17777 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
17778 (mcore_print_operand_address): Delete.
17779 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
17780 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17781 (PRINT_OPERAND_ADDRESS): Delete.
17782 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
17783 (mcore_print_operand): Make static.
17784 (mcore_print_operand_punct_valid_p): New function.
17785 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
17786 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17787
17788 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17789
17790 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
17791 (print_operand_address): Delete.
17792 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
17793 (PRINT_OPERAND_ADDRESS): Delete.
17794 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
17795 static.
17796 (m68hc11_print_operand): Make static.
17797 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17798
17799 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17800
17801 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
17802 (m32r_print_operand_address): Delete.
17803 * config/m32r/m32r.h (m32r_punct_chars): Delete.
17804 (PRINT_OPERAND): Delete.
17805 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17806 (PRINT_OPERAND_ADDRESS): Delete.
17807 * config/m32r/m32r.c (m32r_punct_chars): Make static.
17808 (m32r_print_operand_address): Make static.
17809 (m32r_print_operand): Make static.
17810 (m32r_print_operand_punct_valid_p): New function.
17811 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17812 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17813
17814 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17815
17816 * config/iq2000/iq2000-protos.h (print_operand): Delete.
17817 (print_operand_address): Delete.
17818 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
17819 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17820 (PRINT_OPERAND_ADDRESS): Delete.
17821 (iq2000_print_operand_punct): Delete.
17822 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
17823 (iq2000_print_operand_address): Make static.
17824 (iq2000_print_operand): Make static.
17825 (iq2000_print_operand_punct_valid_p): New function.
17826 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17827 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17828
17829 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17830
17831 * config/frv/frv-protos.h (frv_print_operand): Delete.
17832 (frv_print_operand_address): Delete.
17833 * config/frv/frv.h (PRINT_OPERAND): Delete.
17834 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17835 (PRINT_OPERAND_ADDRESS): Delete.
17836 * config/frv/frv.c (frv_print_operand_address): Make static.
17837 (frv_print_operand): Make static.
17838 (frv_print_operand_punct_valid_p): New function.
17839 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17840 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17841
17842 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17843
17844 * tree.h (vec_member): Declare.
17845 * tree.c (vec_member): Define.
17846
17847 2010-06-17 Richard Guenther <rguenther@suse.de>
17848
17849 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
17850 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
17851
17852 2010-06-17 Richard Guenther <rguenther@suse.de>
17853
17854 * tree-inline.c (declare_return_variable): Remove bogus code.
17855
17856 2010-06-17 Richard Guenther <rguenther@suse.de>
17857
17858 * gimplify.c (gimplify_bind_expr): Always promote complex
17859 and vector variables to registers if possible.
17860
17861 2010-06-17 Richard Guenther <rguenther@suse.de>
17862
17863 * expr.c (get_inner_reference): Use double_int for bit_offset
17864 calculation.
17865
17866 2010-06-16 DJ Delorie <dj@redhat.com>
17867
17868 * common.opt (-fstrict-volatile-bitfields): new.
17869 * doc/invoke.texi: Document it.
17870 * fold-const.c (optimize_bit_field_compare): For volatile
17871 bitfields, use the field's type to determine the mode, not the
17872 field's size.
17873 * expr.c (expand_assignment): Likewise.
17874 (get_inner_reference): Likewise.
17875 (expand_expr_real_1): Likewise.
17876 * expmed.c (store_fixed_bit_field): Likewise.
17877 (extract_bit_field_1): Likewise.
17878 (extract_fixed_bit_field): Likewise.
17879
17880 2010-06-16 Richard Guenther <rguenther@suse.de>
17881
17882 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
17883
17884 2010-06-16 Douglas B Rupp <rupp@gnat.com>
17885
17886 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
17887 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
17888 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
17889 * debug.c: Likewise.
17890 * sdbout.c: Likewise.
17891 * vmsdbgout.c: Likewise.
17892 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
17893 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
17894 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
17895 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
17896 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
17897 * dwarf2out.c (dw_fde_struct): New fields
17898 dw_fde_vms_{end,begin}_prologue.
17899 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
17900 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
17901 (dwarf2out_vms_end_prologue): New function.
17902 (dwarf2out_vms_begin_epilogue): New function.
17903 (dw_val_struct): New value dw_val_class_vms_delta.
17904 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
17905 begin_epilogue for VMS.
17906 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
17907 new static functions.
17908 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
17909 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
17910 static functions.
17911 (print_die): New case dw_val_class_vms_delta.
17912 (attr_checksum): Likewise.
17913 (same_dw_val_p: Likewise.
17914 (size_of_die): Likewise.
17915 (value_format): Likewise.
17916 (output_die): Likewise.
17917 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
17918 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
17919 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
17920 dwarf2out_cfi_begin_epilogue
17921 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
17922
17923 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
17924
17925 * config/cris/cris-protos.h (cris_print_operand): Delete.
17926 (cris_print_operand_address): Delete.
17927 * config/cris/cris.h (PRINT_OPERAND): Delete.
17928 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17929 (PRINT_OPERAND_ADDRESS): Delete.
17930 * config/cris/cris.c (cris_print_operand_address): Make static.
17931 (cris_print_operand): Make static.
17932 (cris_print_operand_punct_valid_p): New function.
17933 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17934 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17935
17936 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
17937
17938 * config/arm/arm-protos.h (arm_print_operand): Delete.
17939 (arm_print_operand_address): Delete.
17940 * config/arm/arm.h (PRINT_OPERAND): Delete.
17941 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17942 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
17943 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
17944 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
17945 (arm_print_operand): Make static.
17946 (arm_print_operand_punct_valid_p): New function.
17947 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17948 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17949
17950 2010-06-16 Nick Clifton <nickc@redhat.com>
17951
17952 * config/rx/constraints.md (NEGint4): New constraint.
17953 * config/rx/rx.md (attr cc): Add set_zsc.
17954 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
17955 initialised.
17956 (cmpsf): Likewise.
17957 (call_internal): Clobber the cc0 register.
17958 (call_value_internal): Likewise.
17959 (cstoresi4): Likewise.
17960 (movsieq): Likewise.
17961 (movsine): Likewise.
17962 (addsi3): Add alternative to handle small negative constants.
17963 (sunsi3): Likewise.
17964 (addsi3): Do not set the O bit in the cc0 register.
17965 (adddi3): Likewise.
17966 (subsi3): Likewise.
17967 (subdi3): Likewise.
17968 (andsi3): Reorder alternatives to prefer shorter forms.
17969 (mulsi3): Likewise.
17970 (iorsi3): Likewise.
17971 (negsi2): Note that the cc0 flags are set.
17972 (rotlsi3): Note that only the Z and S bits are set in cc0.
17973 (lshrsi3): Likewise.
17974 (ashlsi3): Likewise.
17975 (subsf3): Use %Q for the MEM operand.
17976 (fix_truncsfsi2): Likewise.
17977 (floatsisf2): Likewise.
17978 (bitset): Remove early clobber from destination.
17979 (bitset_in_memory): Likewise.
17980 (lrintsf2): Clobber the cc0 register.
17981 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
17982 (rx_print_operand): Handle %N.
17983
17984 2010-06-16 Jan Hubicka <jh@suse.cz>
17985
17986 * df-core.c (df_compact_blocks): Free problem_temps vector.
17987
17988 2010-06-16 Martin Jambor <mjambor@suse.cz>
17989
17990 PR tree-optimization/43905
17991 * tree-sra.c: Include tree-inline.h.
17992 (create_abstract_origin): Removed.
17993 (modify_function): Version the call graph node instead of creating
17994 abstract origins and dealing with same_body aliases.
17995 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
17996 function is versionable.
17997 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
17998
17999 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
18000
18001 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
18002 (CHOOSE_DYNAMIC_LINKER): Update.
18003
18004 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
18005
18006 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
18007 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
18008 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
18009 *prefetch_3dnow_rex.
18010
18011 2010-06-15 Anatoly Sokolov <aesok@post.ru>
18012
18013 * target.h (struct asm_out):Add declare_constant_name field.
18014 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18015 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
18016 * output.h (default_asm_declare_constant_name): Declare.
18017 (assemble_label): Update prototype.
18018 * varasm.c (assemble_constant_contents): Use
18019 targetm.asm_out.declare_constant_name target hook.
18020 (assemble_label): Add 'file' argument.
18021 (default_asm_declare_constant_name): New function.
18022 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
18023 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
18024 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
18025
18026 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
18027 * config/darwin.c (darwin_asm_declare_constant_name): New function.
18028 (machopic_output_indirection): Update assemble_label argument list.
18029 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
18030 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18031
18032 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
18033
18034 PR middle-end/44391
18035 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18036 size_one_node for pointer types. Do not call gmp_cst_to_tree.
18037
18038 2010-06-15 Richard Guenther <rguenther@suse.de>
18039
18040 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
18041
18042 2010-06-15 Paul Brook <paul@codesourcery.com>
18043
18044 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
18045 hard-float ABI.
18046
18047 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
18048
18049 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
18050 don't get a vector type for output.
18051
18052 2010-06-15 Jakub Jelinek <jakub@redhat.com>
18053
18054 PR fortran/44536
18055 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
18056 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
18057 (LANG_HOOKS_DECLS): Add it.
18058 * gimplify.c (omp_notice_variable): Call
18059 lang_hooks.decls.omp_report_decl.
18060
18061 2010-06-15 Martin Jambor <mjambor@suse.cz>
18062
18063 PR lto/44464
18064 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
18065 on the newly dead SSA name.
18066
18067 2010-06-15 Alan Modra <amodra@gmail.com>
18068
18069 * doc/invoke.texi: Add mcmodel to powerpc options.
18070 * configure.ac: Add HAVE_LD_LARGE_TOC test.
18071 * configure: Regenerate.
18072 * config.in: Regenerate.
18073 * config/rs6000/linux64.opt (mcmodel): New.
18074 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
18075 (TARGET_CMODEL, SET_CMODEL): Define.
18076 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
18077 select CMODEL_MEDIUM default.
18078 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
18079 (TARGET_CMODEL): Define default.
18080 * config/rs6000/rs6000.c (cmodel): New variable.
18081 (rs6000_explicit_options): Add cmodel field.
18082 (rs6000_handle_option): Handle -mcmodel.
18083 (create_TOC_reference): Add largetoc_reg param. Generate high,
18084 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
18085 (rs6000_delegitimize_address): Recognise new toc reference rtl
18086 and minimal-toc rtl.
18087 (rs6000_legitimize_reload_address): Handle new toc references.
18088 (print_operand_address): Handle legitimate_constant_pool_address_p
18089 match before lo_sum.
18090 (rs6000_eliminate_indexed_memrefs): Tidy.
18091 (rs6000_emit_move): Tweak threshold for inlining constants.
18092 Keep rs6000_emit_allocate_stack large stack frame offsets
18093 loaded into r0 inline.
18094 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
18095 (tocrel_base, tocrel_offset): New variables.
18096 (toc_relative_expr_p): Set them here.
18097 (print_operand_address): Skip over any offset on constant pool address.
18098 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
18099 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
18100 (offsettable_ok_by_alignment): New function.
18101 (rs6000_emit_move): Address suitably aligned local symbol_refs
18102 relative to the toc pointer for -mcmodel=medium.
18103 (legitimate_constant_pool_address_p): Make param const_rtx. Add
18104 strict param. Allow lo_sum version of addressing. Verify reg
18105 used for -mminimal-toc and -mcmodel != small. Update all callers.
18106 * config/rs6000/constraints.md: Update for above change.
18107 * config/rs6000/predicates.md: Likewise.
18108 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
18109 code.
18110 (tls_gd): Split for -mcmodel=medium/large.
18111 (tls_gd_high, tls_gd_low): New.
18112 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
18113 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
18114 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
18115 (largetoc_high, largetoc_low): New.
18116 (cmptf_internal2): Add clobber.
18117 * config/rs6000/rs6000-protos.h: Update.
18118
18119 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
18120
18121 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
18122 true if no prefetch is going to be generated for a given group.
18123 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
18124 estimate the prefetch_count.
18125 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
18126 prefetch count by considering the unroll_factor and prefetch_mod
18127 for is_loop_prefetching_profitable.
18128
18129 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
18130
18131 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
18132 anything if the argument is not a MEM.
18133
18134 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18135
18136 PR debug/43650
18137 PR debug/44181
18138 PR debug/44247
18139 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
18140 debug stmts.
18141 (canonicalize_loop_ivs): Likewise.
18142
18143 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18144
18145 PR debug/43656
18146 * haifa-sched.c (setup_insn_reg_pressure_info,
18147 update_register_pressure): Reject debug insns.
18148 (ready_sort): Don't setup reg pressure for debug insns.
18149 (schedule_insn): Don't update reg pressure for debug insns.
18150
18151 2010-06-14 Richard Guenther <rguenther@suse.de>
18152
18153 * lto-streamer.c (cached_bp): Remove.
18154 (bitpack_delete): Likewise.
18155 (bitpack_create): Likewise.
18156 (bp_get_next_word): Likewise.
18157 (bp_pack_value, bp_unpack_value): Move ...
18158 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
18159 Re-implement.
18160 (struct bitpack_d): Likewise.
18161 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
18162 New inline functions.
18163 * lto-streamer-out.c (lto_output_bitpack): Remove.
18164 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18165 (pack_value_fields): Adjust.
18166 (lto_write_tree): Likewise.
18167 (output_gimple_stmt): Likewise.
18168 (output_function): Likewise.
18169 * lto-streamer-in.c (input_gimple_stmt): Adjust.
18170 (input_function): Likewise.
18171 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18172 (lto_input_bitpack): Remove.
18173 (lto_materialize_tree): Adjust.
18174 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
18175 * lto-cgraph.c (lto_output_edge): Adjust.
18176 (lto_output_node): Likewise.
18177 (lto_output_varpool_node): Likewise.
18178 (lto_output_ref): Likewise.
18179 (input_node): Likewise.
18180 (input_varpool_node): Likewise.
18181 (input_ref): Likewise.
18182 (input_edge): Likewise.
18183 (output_node_opt_summary): Likewise.
18184 (input_node_opt_summary): Likewise.
18185 * ipa-pure-const.c (pure_const_write_summary): Likewise.
18186 (pure_const_read_summary): Likewise.
18187 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
18188 (ipa_read_indirect_edge_info): Likewise.
18189 (ipa_write_node_info): Likewise.
18190 (ipa_read_node_info): Likewise.
18191
18192 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
18193
18194 PR target/44534
18195 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
18196 (vec_extract_lo_v16hi): Likewise.
18197 (vec_extract_lo_v32qi): Likewise.
18198
18199 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18200
18201 PR bootstrap/44426
18202 * tree.h (build_call_expr): Don't define as vararg macro, instead
18203 add a prototype.
18204 * builtins.c (build_call_nofold): Remove.
18205 (expand_builtin_int_roundingfn, expand_builtin_pow,
18206 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
18207 expand_builtin_memset_args, expand_builtin_strcmp,
18208 expand_builtin_strncmp, expand_builtin_memory_chk): Use
18209 build_call_nofold_loc instead of build_call_nofold.
18210 (build_call_expr): New function.
18211
18212 PR tree-optimization/44508
18213 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
18214 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
18215 don't eliminate trivially dead stmts.
18216 * tree-vrp.c (vrp_finalize): Pass false as last argument
18217 to substitute_and_fold.
18218 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
18219 to substitute_and_fold.
18220 * tree-ssa-ccp.c (ccp_finalize): Likewise.
18221
18222 PR bootstrap/44509
18223 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
18224
18225 2010-06-14 Ira Rosen <irar@il.ibm.com>
18226
18227 PR tree-optimization/44507
18228 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
18229 to build initial vector for BIT_AND_EXPR.
18230 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
18231
18232 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18233
18234 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
18235 adjust z10prop set_attr.
18236
18237 2010-06-13 Jan Hubicka <jh@suse.cz>
18238
18239 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
18240 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
18241 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
18242 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
18243 datastructure checks into checking asserts.
18244 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
18245 * tree-ssa-sccvn.c (VN_INFO): Likewise.
18246 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
18247 df_ref_create_structure): Likewise.
18248 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
18249 pool_free): Use gcc_checking_assert.
18250 * alias.c (get_alias_set): Likewise.
18251 * var-tracking.c (variable_htab_free, shared_hash_copy,
18252 canonicalize_values_mark, variable_merge_over_cur): Likewise.
18253 * lto-streamer.c (bp_unpack_value): Likewise.
18254
18255 2010-06-13 Richard Guenther <rguenther@suse.de>
18256
18257 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
18258 Do not stream but initialize TYPE_CANONICAL to NULL.
18259 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
18260 * gimple.c (gimple_types_compatible_p): Disregard
18261 TYPE_STRUCTURAL_EQUALITY_P.
18262 (gimple_register_type): Use TYPE_CANONICAL as cache.
18263 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
18264 before registering common types.
18265 * config/i386/i386.c (ix86_function_arg_boundary): Do not
18266 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
18267 * tree.h (TYPE_CANONICAL): Clarify documentation.
18268
18269 2010-06-13 Anatoly Sokolov <aesok@post.ru>
18270
18271 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
18272 LIBCALL_VALUE): Remove macros.
18273 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
18274 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18275 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18276 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
18277 (ia64_function_value): Make static. Handle receiving the function
18278 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
18279
18280 2010-06-12 Jan Hubicka <jh@suse.cz>
18281
18282 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
18283 at correct place.
18284
18285 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
18286
18287 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
18288
18289 2010-06-12 Jan Hubicka <jh@suse.cz>
18290
18291 * df-core.c (df_clear_bb_info): New function.
18292 (df_set_blocks): bb_info is always allocated.
18293 (df_get_bb_info): Use block_info_elt_size.
18294 (df_set_bb_info): Likewise.
18295 (df_compact_blocks): Update for new block_info.
18296 (grow_bb_info): New function.
18297 * df-problems.c (df_grow_bb_info): Move to df-core.c
18298 (df_rd_set_bb_info): Remove.
18299 (df_rd_free_bb_info): Do not free block pool.
18300 (df_rd_alloc): Do not create pool, use check for
18301 obstack presence instead of NULL pointer for new blocks.
18302 (df_rd_free): DO not free alloc pool; clear block_info.
18303 (problem_RD): Add size of block info structure.
18304 (df_lr_set_bb_info): Remove.
18305 (df_lr_free_bb_info): Do not free block pool.
18306 (df_lr_alloc): Do not create pool, use check for
18307 obstack presence instead of NULL pointer for new blocks.
18308 (df_lr_free): DO not free alloc pool; clear block_info.
18309 (problem_LR): Add size of block info structure.
18310 (df_live_set_bb_info): Remove.
18311 (df_live_free_bb_info): Do not free block pool.
18312 (df_live_alloc): Do not create pool, use check for
18313 obstack presence instead of NULL pointer for new blocks.
18314 (df_live_free): DO not free alloc pool; clear block_info.
18315 (problem_LIVE): Add size of block info structure.
18316 (problem_CHAIN): Add size of block info structure.
18317 (df_byte_lr_set_bb_info): Remove.
18318 (df_byte_lr_free_bb_info): Do not free block pool.
18319 (df_byte_lr_alloc): Do not create pool, use check for
18320 obstack presence instead of NULL pointer for new blocks.
18321 (df_byte_lr_free): DO not free alloc pool; clear block_info.
18322 (problem_BYTE_LR): Add size of block info structure.
18323 (problem_NOTE): Add size of block info structure.
18324 (df_byte_MD_set_bb_info): Remove.
18325 (df_byte_MD_free_bb_info): Do not free block pool.
18326 (df_byte_MD_alloc): Do not create pool, use check for
18327 obstack presence instead of NULL pointer for new blocks.
18328 (df_byte_MD_free): DO not free alloc pool; clear block_info.
18329 (problem_BD): Add size of block info structure.
18330 * df-scan.c (df_scan_free_internal): Free block pool.
18331 (df_scan_set_bb_info): Remove.
18332 (df_scan_free_bb_info): Check for artificial_defs instead
18333 of bb_info being non-NULL.
18334 (df_scan_alloc): DO not create df_scan_block pool.
18335 (problem_SCAN): Set size of block info.
18336 (df_bb_refs_record): Do not allocate bb_info.
18337 * df.h (df_problem): Add block_info_elt_size.
18338 (struct dataflow): Change block_info to void *.
18339 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
18340 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
18341 in-line structures.
18342
18343 2010-06-12 Jan Hubicka <jh@suse.cz>
18344
18345 PR tree-optimize/44485
18346 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
18347 containing use of return value of noreturn function.
18348
18349 2010-06-12 Anatoly Sokolov <aesok@post.ru>
18350
18351 * targhooks.c (default_function_value): Don't use
18352 FUNCTION_OUTGOING_VALUE.
18353 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
18354 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
18355
18356 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
18357
18358 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
18359 Add crtfastmath.o to extra_parts.
18360 * config/mips/crtfastmath.c: New.
18361 * config/mips/linux.h (ENDFILE_SPEC): New.
18362
18363 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
18364
18365 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
18366 old_type in parameter.
18367 (gcc_type_for_value): Update call to gcc_type_for_interval.
18368 (compute_type_for_level_1): Renamed compute_type_for_level.
18369 Update call to gcc_type_for_interval.
18370
18371 2010-06-11 Joseph Myers <joseph@codesourcery.com>
18372
18373 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
18374 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
18375
18376 2010-06-11 Joseph Myers <joseph@codesourcery.com>
18377
18378 * opts-common.c: Include options.h.
18379 (integral_argument): Move from opts.c.
18380 (decode_cmdline_option): New. Based on read_cmdline_option.
18381 * opts.c (integral_argument): Move to opts-common.c.
18382 (read_cmdline_option): Move most contents to
18383 decode_cmdline_option. Use %qs in diagnostics.
18384 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
18385 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
18386 decode_cmdline_option): New.
18387
18388 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18389
18390 PR target/44481
18391 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
18392 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
18393 (partiysi2_cmp): Ditto.
18394 (*partiyhi2_cmp): Ditto.
18395 (*parityqi2_cmp): Remove.
18396
18397 2010-06-11 Jan Hubicka <jh@suse.cz>
18398
18399 * bitmap.h (bmp_iter_next_bit): New.
18400 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
18401
18402 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
18403 Eric Botcazou <ebotcazou@adacore.com>
18404
18405 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
18406 computed cost.
18407
18408 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18409
18410 * config/i386/i386.md (unspec): New define_c_enum.
18411 (unspecv): Ditto.
18412
18413 2010-06-10 Jakub Jelinek <jakub@redhat.com>
18414
18415 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
18416
18417 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
18418
18419 PR middle-end/44483
18420 * tree-if-conv.c (bb_predicate_s): New struct.
18421 (bb_predicate_p): New.
18422 (bb_has_predicate): New.
18423 (bb_predicate): New.
18424 (set_bb_predicate): New.
18425 (bb_predicate_gimplified_stmts): New.
18426 (set_bb_predicate_gimplified_stmts): New.
18427 (add_bb_predicate_gimplified_stmts): New.
18428 (init_bb_predicate): New.
18429 (free_bb_predicate): New.
18430 (is_predicated): Use bb_predicate.
18431 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
18432 (predicate_bbs): Same. Gimplify the condition of the basic blocks
18433 before processing their successors.
18434 (clean_predicate_lists): Removed.
18435 (find_phi_replacement_condition): Use bb_predicate.
18436 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
18437 computations.
18438 (insert_gimplified_predicates): New.
18439 (combine_blocks): Call insert_gimplified_predicates.
18440 (tree_if_conversion): Call free_bb_predicate instead of
18441 clean_predicate_lists.
18442
18443 2010-10-11 Paul Brook <paul@codesourcery.com>
18444
18445 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
18446 * config/arm/arm.c (all_architectures): Change v7e-m default to
18447 cortexm4.
18448 * config/arm/arm-cores.def: Add cortex-m4.
18449 * config/arm/arm-tune.md: Regenerate.
18450
18451 2010-06-11 Jan Hubicka <jh@suse.cz>
18452
18453 * ipa-pure-const.c (special_builtlin_state): New function.
18454 (check_call): Use it instead of special casign BUILT_IN_RETURN.
18455 (propagate_pure_const): Use it.
18456
18457 2010-06-11 Jan Hubicka <jh@suse.cz>
18458
18459 * df-problems.c (df_live_scratch): Convert to bitmap_head.
18460 (df_live_alloc): Initialize df_live_scratch when initializing
18461 problem_data.
18462 (df_live_transfer_function): Update uses of df_live_scratch.
18463 (df_live_free): Free problem_data; clear df_live_scratch before
18464 releasing the obstack.
18465 (df_md_free): Free problem data.
18466
18467 2010-06-11 Jan Hubicka <jh@suse.cz>
18468
18469 * doc/invoke.texi (Wsuggest-attribute): Document.
18470 (Wmissing-noreturn): Remove.
18471 * ipa-pure-const.c (warn_function_noreturn): New function.
18472 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
18473 warn_missing_noreturn.
18474 * common.opt (Wsuggest-attribute=noreturn): New.
18475 * tree-flow.h (warn_function_noreturn): Declare.
18476 * tree-cfg.c (execute_warn_function_noreturn): Use
18477 warn_function_noreturn.
18478 (gate_warn_function_noreturn): New.
18479 (pass_warn_function_noreturn): Update.
18480
18481 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
18482
18483 * c-typeck.c (handle_warn_cast_qual): Add loc
18484 parameter. Improve warning message.
18485 (build_c_cast): Pass location to handle_warn_cast_qual.
18486
18487 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18488
18489 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
18490 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
18491 insn mnemonic.
18492 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
18493
18494 2010-06-10 Dodji Seketeli <dodji@redhat.com>
18495
18496 Fix bootstap on mips
18497 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
18498 be naming typedefs.
18499
18500 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
18501
18502 * system.h (helper_const_non_const_cast): New inline for
18503 gcc version <= 4.0.
18504 (CONST_CAST2): For gcc version <= 4.0 use
18505 new helper to do const/non-const casting.
18506
18507 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18508
18509 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
18510 * Makefile.in (OBJS-common): Include insn-enums.o.
18511 (insn-enums.o): New rule.
18512 (simple_generated_c): Add insn-enums.c.
18513 (build/genenums.o): New rule.
18514 (genprogmd): Add "enums".
18515 * genconstants.c (print_enum_type): Declare a C string array
18516 for each enum.
18517 * genenums.c: New file.
18518 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
18519 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
18520 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
18521
18522 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18523
18524 * doc/md.texi (define_enum_attr): Document.
18525 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
18526 * read-md.h (lookup_enum_type): Declare.
18527 * read-md.c (lookup_enum_type): New function.
18528 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
18529 * genattrtab.c (attr_desc): Add an enum_name field.
18530 (evaluate_eq_attr): Take the associated attribute as argument.
18531 Get the enum prefix from the enum_name field, if defined.
18532 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
18533 (simplify_test_exp): Pass attr to evaluate_eq_attr.
18534 (add_attr_value): New function, split out from...
18535 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
18536 (write_test_expr): Pass attr to evaluate_eq_attr.
18537 (write_attr_get): Use the enum_name as the enum tag, if defined.
18538 (write_attr_valueq): Use the enum_name as a prefix, if defined.
18539 (find_attr): Initialize enum_name.
18540 (main): Handle DEFINE_ENUM_ATTR.
18541 * gensupport.c (process_rtx): Likewise.
18542 * config/mips/mips.h (mips_tune_attr): Delete.
18543 * config/mips/mips.md (cpu): Use define_attr_enum.
18544
18545 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18546
18547 * doc/md.texi (define_c_enum, define_enum): Document.
18548 * read-md.h (md_constant): Add a parent_enum field.
18549 (enum_value, enum_type): New structures.
18550 (upcase_string, traverse_enum_types): Declare.
18551 * read-md.c (enum_types): New variable.
18552 (upcase_string, add_constant): New functions.
18553 (handle_constants): Don't create the hash table here.
18554 Use add_constant.
18555 (traverse_md_constants): Don't check for a null md_constants.
18556 (decimal_string, handle_enum, traverse_enum_types): New functions.
18557 (read_md_files): Initialize md_constants and md_enums.
18558 * genconstants.c (print_md_constant): Ignore info argument.
18559 Only print constants that belong to no enum.
18560 (print_enum_type): New function.
18561 (main): Don't pass stdout to print_md_constant. Call print_enum_type
18562 for each defined enum type.
18563 * config/mips/mips.md (processor): New define_enum.
18564 (unspec): New define_c_enum.
18565 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
18566 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
18567 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
18568 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
18569 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
18570 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
18571 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
18572 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
18573 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
18574 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
18575 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
18576 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
18577 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
18578 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
18579 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
18580 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
18581 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
18582 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
18583 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
18584 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
18585 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
18586 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
18587 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
18588 (UNSPEC_RDDSP): Move to mips-dsp.md.
18589 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
18590 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
18591 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
18592 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
18593 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
18594 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
18595 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
18596 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
18597 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
18598 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
18599 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
18600 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
18601 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
18602 Moved to mips-dspr2.md.
18603 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
18604 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
18605 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
18606 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
18607 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
18608 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
18609 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
18610 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
18611 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
18612 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
18613 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
18614 UNSPEC_LOONGSON_PSADBH)
18615 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
18616 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
18617 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
18618 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
18619 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
18620 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
18621 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
18622 (cpu): Update comment.
18623 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
18624 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
18625 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
18626 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
18627 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
18628 UNSPEC_LOONGSON_PCMPEQ)
18629 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
18630 UNSPEC_LOONGSON_PINSR_0)
18631 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
18632 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
18633 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
18634 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
18635 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
18636 UNSPEC_LOONGSON_PSADBH)
18637 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
18638 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
18639 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
18640 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
18641 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
18642 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
18643 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
18644 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
18645 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
18646 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
18647 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
18648 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
18649 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
18650 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
18651 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
18652 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
18653 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
18654 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
18655 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
18656 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
18657 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
18658 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
18659 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
18660 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
18661 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
18662 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
18663 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
18664 (UNSPEC_RDDSP): Moved from mips.md.
18665 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
18666 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
18667 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
18668 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
18669 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
18670 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
18671 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
18672 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
18673 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
18674 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
18675 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
18676 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
18677 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
18678 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
18679 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
18680 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
18681 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
18682 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
18683 (UNSPEC_SCC): Moved from mips.md.
18684 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
18685 "processor_type" to "processor".
18686 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
18687 * config/mips/mips.h (processor_type): Delete.
18688 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
18689 "processor_type" to "processor".
18690
18691 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18692
18693 * configure.ac (tm_include_list): Add insn-constants.h.
18694 * configure: Regenerate.
18695 * Makefile.in (GTM_H): Move insn-constants.h here from...
18696 (TM_H): ...here.
18697 * mkconfig.sh: Remove special handling for insn-constants.h.
18698
18699 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18700
18701 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
18702 (BUILD_MD): ...this new variable.
18703 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
18704 that include the old contents of simple_generated_h and
18705 simple_generated_c.
18706 (simple_generated_h, simple_generated_c): Include them. Add
18707 insn-constants.h.
18708 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
18709 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
18710 Remove these dependencies from the main rule and include
18711 insn-conditions.md in the command line only if it appears
18712 in the dependency list.
18713 (insn-constants.h, s-constants): Delete.
18714 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
18715 or gensupport.h.
18716 (build/genmddeps.o): Likewise.
18717 (genprogrtl): New variable that contains everything from genprogmd
18718 except mddeps and constants.
18719 (genprogmd): Redefine in terms of genprogrtl. Make these programs
18720 depend on $(BUILD_MD)
18721 (genprog): New variable. Make these programs depend on
18722 $(BUILD_ERRORS).
18723 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
18724 (main): Use read_md_files instead of init_rtx_reader_args.
18725 * genconstants.c: As for genmddeps.c.
18726 * read-md.h (read_skip_construct): Declare.
18727 * read-md.c (read_skip_construct): New function.
18728 (handle_file): Allow a null handle_directive, skipping the
18729 construct if so.
18730 (parse_include): Update the comment accordingly.
18731
18732 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18733
18734 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
18735 * genmddeps.c: Include read-md.h.
18736 (main): Call init_rtx_reader_args instead of init_md_reader_args.
18737 * genattr.c (main): Likewise.
18738 * genattrtab.c (main): Likewise.
18739 * genautomata.c (main): Likewise.
18740 * gencodes.c (main): Likewise.
18741 * genconditions.c (main): Likewise.
18742 * genconfig.c (main): Likewise.
18743 * genconstants.c (main): Likewise.
18744 * genemit.c (main): Likewise.
18745 * genextract.c (main): Likewise.
18746 * genflags.c (main): Likewise.
18747 * genopinit.c (main): Likewise.
18748 * genoutput.c (main): Likewise.
18749 * genpeep.c (main): Likewise.
18750 * genrecog.c (main): Likewise.
18751 * genpreds.c (main): Likewise.
18752 * gensupport.h (in_fname): Move to read-md.h.
18753 (init_md_reader_args_cb): Rename to...
18754 (init_rtx_reader_args_cb): ...this and return a bool.
18755 (init_md_reader_args): Rename to...
18756 (init_rtx_reader_args): ...this and return a bool.
18757 (include_callback): Move to read-md.h.
18758 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
18759 (file_name_list, first_dir_md_include): Move to read-md.c
18760 (first_bracket_include): Delete unused variable.
18761 (last_dir_md_include): Move to read-md.c.
18762 (process_include): Delete, moving code to read-md.c:handle_include.
18763 (process_rtx): Don't handle INCLUDE.
18764 (save_string): Delete.
18765 (rtx_handle_directive): New function.
18766 (init_md_reader_args_cb): Rename to...
18767 (init_rtx_reader_args_cb): ...this and return a boolean success value.
18768 Use read_md_args.
18769 (init_md_reader_args): Rename to...
18770 (init_rtx_reader_args): ...this and return a boolean success value.
18771 * rtl.def (INCLUDE): Delete.
18772 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
18773 argument.
18774 * read-rtl.c (read_conditions): Don't gobble ')' here.
18775 (read_mapping): Likewise.
18776 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
18777 Handle top-level non-rtx constructs here rather than in read_rtx_1.
18778 Store the whole queue in *X. Remove call to init_md_reader.
18779 (read_rtx_1): Rename to...
18780 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
18781 Don't handle top-level non-rtx constructs here. Don't handle (nil)
18782 here.
18783 (read_nested_rtx): New function. Handle (nil) here rather than
18784 in read_rtx_code.
18785 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
18786 gobble ')' here.
18787 * read-md.h (directive_handler_t): New type.
18788 (in_fname, include_callback): Moved from read-md.h.
18789 (read_constants, init_md_reader): Delete.
18790 (read_md_files): Declare.
18791 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
18792 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
18793 from gensupport.c.
18794 (read_constants): Rename to...
18795 (handle_constants): ...this. Don't gobble ')' here.
18796 (handle_include, handle_file, handle_toplevel_file)
18797 (parse_include): New functions, mostly taken from gensupport.c.
18798 (init_md_reader): Subsume into...
18799 (read_md_files): ...this new function.
18800
18801 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18802
18803 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
18804 (unread_char): Decrement read_md_lineno after putting back '\n'.
18805 * read-md.c (fatal_with_file_and_line): Push back any characters
18806 that we decide not to add to the context.
18807 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
18808 fatal_expected_char in cases where '/' ends a line (for example).
18809 (read_name): Don't increment read_md_lineno here.
18810 (read_escape): Likewise.
18811 (read_quoted_string): Likewise.
18812 (read_braced_string): Likewise.
18813
18814 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18815
18816 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
18817 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
18818 * genconstants.c: Include read-md.h.
18819 * read-rtl.c (md_constants): Move to read-md.c.
18820 (md_name): Move to read-md.h.
18821 (initialize_iterators): Use leading_string_hash instead of def_hash
18822 and leading_string_eq_p instead of def_name_eq_p.
18823 (read_name): Move to read-md.c.
18824 (def_hash, def_name_eq_p): Delete.
18825 (read_constants, traverse_md_constants): Move to read-md.c.
18826 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
18827 * read-md.h: Include hashtab.h.
18828 (md_name): Moved from read-rtl.c.
18829 (md_constant): Moved from read-md.h.
18830 (leading_string_hash, leading_string_eq_p, read_name)
18831 (read_constants, traverse_md_constants): Declare.
18832 * read-md.c (md_constants): Moved from read-rtl.c.
18833 (leading_string_hash, leading_string_eq_p): New functions.
18834 (read_name, read_constants, traverse_md_constants): Moved from
18835 read-rtl.c.
18836
18837 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18838
18839 * read-rtl.c (md_name): New structure.
18840 (read_name): Take an md_name instead of a buffer pointer.
18841 Use the "string" field instead of strcpy when expanding constants.
18842 (read_constants): Remove the tmp_char argument. Update the calls
18843 to read_name, using two local name buffers instead of the tmp_char
18844 argument. Merge the constant-creation code.
18845 (read_conditions): Remove the tmp_char argument. Update the calls
18846 to read_name, using a local name buffer instead of the tmp_char
18847 argument.
18848 (read_mapping): Replace tmp_char variable with a local name buffer.
18849 Update the calls to read_name.
18850 (read_rtx_1): Likewise. Update the calls to read_constants and
18851 read_conditions.
18852
18853 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18854
18855 * Makefile.in (build/read-md.o): Depend on errors.h.
18856 * read-md.h (error_with_line): Declare.
18857 * read-md.c: Include errors.h.
18858 (message_with_line_1): New function, extracted from...
18859 (message_with_line): ...here.
18860 (error_with_line): New function.
18861 * genattrtab.c: If a call to message_with_line is followed by
18862 "have_error = 1;", replace both statements with a call to
18863 error_with_line.
18864 * genoutput.c: Likewise.
18865 * genpreds.c: Likewise.
18866 * genrecog.c: If a call to message_with_line is followed by
18867 "error_count++;", replace both statements with a call to
18868 error_with_line.
18869 (errorcount): Delete.
18870 (main): Don't check it.
18871 * gensupport.c: If a call to message_with_line is followed by
18872 "errors = 1;", replace both statements with a call to error_with_line.
18873 (errors): Delete.
18874 (process_define_cond_exec): Check have_error instead of errors.
18875 (init_md_reader_args_cb): Likewise. Don't set errors.
18876
18877 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18878
18879 * read-md.h (read_md_file): Declare.
18880 (read_char, unread_char): New functions.
18881 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
18882 (read_quoted_string, read_string): Remove FILE * argument.
18883 * read-md.c (read_md_file): New variable.
18884 (read_md_filename, read_md_lineno): Update comments and remove
18885 unnecessary initialization.
18886 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
18887 (read_escape, read_quoted_string, read_braced_string, read_string):
18888 Remove FILE * argument. Update calls accordingly, using read_char
18889 and unread_char instead of getc and ungetc.
18890 * rtl.h (read_rtx): Remove FILE * argument.
18891 * read-rtl.c (iterator_group): Remove FILE * argument from
18892 "find_builtin".
18893 (iterator_traverse_data): Remove "infile" field.
18894 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
18895 (add_mapping, read_name, read_constants, read_conditions)
18896 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
18897 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
18898 Remove file arguments from all calls, using read_char and unread_char
18899 instead of getc and ungetc.
18900 * gensupport.c (process_include): Preserve read_md_file around
18901 the include. Set read_md_file to the handle of the included file.
18902 Update call to read_rtx.
18903 (init_md_reader_args_cb): Set read_md_file to the handle of the file
18904 and remove local FILE *. Update calls to read_rtx.
18905
18906 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18907
18908 * read-md.h (read_rtx_lineno): Rename to...
18909 (read_md_lineno): ...this.
18910 (read_rtx_filename): Rename to...
18911 (read_md_filename): ...this.
18912 (copy_rtx_ptr_loc): Rename to...
18913 (copy_md_ptr_loc): ...this.
18914 (print_rtx_ptr_loc): Rename to...
18915 (print_md_ptr_loc): ...this.
18916 * read-md.c: Likewise. Update references after renaming.
18917 (string_obstack): Replace RTL with MD in comment.
18918 (set_rtx_ptr_loc): Rename to...
18919 (set_md_ptr_loc): ...this.
18920 (get_rtx_ptr_loc): Rename to...
18921 (get_md_ptr_loc): ...this.
18922 * genconditions.c: Update references after renaming.
18923 * genemit.c: Likewise.
18924 * genoutput.c: Likewise.
18925 * genpreds.c: Likewise.
18926 * gensupport.c: Likewise.
18927 * read-rtl.c: Likewise.
18928
18929 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18930
18931 * Makefile.in (READ_MD_H): New variable.
18932 (BUILD_RTL): Add build/read-md.o.
18933 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
18934 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
18935 (build/genattrtab.o, build/genconditions.o build/genemit.o)
18936 (build/genextract.o, build/genflags.o, build/genoutput.o)
18937 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
18938 (build/read-md.o): New rule.
18939 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
18940 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
18941 * coretypes.h: ...here.
18942 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
18943 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
18944 * genattr.c: Include read-md.h.
18945 * genattrtab.c: Likewise.
18946 * genconditions.c: Likewise.
18947 * genemit.c: Likewise.
18948 * genextract.c: Likewise.
18949 * genflags.c: Likewise.
18950 * genoutput.c: Likewise.
18951 * genpreds.c: Likewise.
18952 * genrecog.c: Likewise.
18953 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
18954 (join_c_conditions, print_c_condition, read_rtx_filename)
18955 (read_rtx_lineno): Move to read-md.h.
18956 * read-rtl.c: Include read-md.h.
18957 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
18958 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
18959 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
18960 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
18961 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
18962 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
18963 (read_braced_string, read_string): Move to read-md.c.
18964 (read_rtx): Move some initialization to init_md_reader and call
18965 init_md_reader here.
18966 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
18967 Move to read-md.h.
18968 * gensupport.c: Include read-md.h.
18969 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
18970 * read-md.h, read-md.c: New files.
18971
18972 2010-06-10 Anatoly Sokolov <aesok@post.ru>
18973
18974 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
18975 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18976 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
18977 * config/moxie/moxie.c (moxie_function_value): Make static.
18978 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
18979 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18980
18981 2010-06-10 Martin Jambor <mjambor@suse.cz>
18982
18983 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
18984 * dbgcnt.def (tree_sra): New counter.
18985 * tree-sra.c: Include dbgcnt.h.
18986 (gate_intra_sra): Check tree_sra debug counter.
18987
18988 2010-06-10 Martin Jambor <mjambor@suse.cz>
18989
18990 PR tree-optimization/44258
18991 * tree-sra.c (build_access_subtree): Return false iff there is a
18992 partial overlap.
18993 (build_access_trees): Likewise.
18994 (analyze_all_variable_accesses): Disqualify candidates if
18995 build_access_trees returns true for them.
18996
18997 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
18998
18999 PR debug/41371
19000 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
19001 tail-recurse into canonical node. Fast-forward over
19002 non-canonical VALUEs.
19003
19004 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
19005
19006 PR boostrap/44470
19007 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
19008 (*addsi_1_zext) <TYPE_LEA>: Likewise.
19009 (add lea splitter): Likewise.
19010 (add_zext lea splitter): Likewise.
19011
19012 2010-06-10 Joseph Myers <joseph@codesourcery.com>
19013
19014 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
19015
19016 2010-06-10 Jan Hubicka <jh@suse.cz>
19017
19018 * df-problems.c (df_live_problem_data): Add live_bitmaps.
19019 (df_live_alloc): Initialize problem data and live_osbtacks.
19020 (df_live_finalize): Remove obstack, problem data; do not
19021 clear all bitmaps.
19022 (df_live_top_dump, df_live_bottom_dump): Do not dump old
19023 data when not allocated.
19024 (df_live_verify_solution_start): Do not allocate problem data.
19025 (df_live_verify_solution_end): Check if out is allocated.
19026 (struct df_md_problem_data): New structure.
19027 (df_md_alloc): Allocate problem data.
19028 (df_md_free): Free problem data; do not clear bitmaps.
19029
19030 2010-06-10 Jan Beulich <jbeulich@novell.com>
19031
19032 PR bootstrap/37304
19033 * configure.ac: Replace $() with ${} when intending to expand
19034 variables rather than invoking commands.
19035 * configure: Re-generate.
19036
19037 2010-06-10 Jan Hubicka <jh@suse.cz>
19038
19039 PR rtl-optimization/44460
19040 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
19041 TYPE_NEEDS_CONSTRUCTING sanity check.
19042
19043 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
19044
19045 * doc/include/fdl.texi: Move to GFDL version 1.3.
19046
19047 * doc/cpp.texi: Move to GFDL version 1.3.
19048 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
19049 * doc/gccint.texi: Move to GFDL version 1.3.
19050 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
19051 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
19052 * doc/invoke.texi: Move to GFDL version 1.3.
19053
19054 2010-06-09 Jan Hubicka <jh@suse.cz>
19055
19056 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
19057 Break out from ...
19058 (propagate) ... here; swap the order.
19059
19060 2010-06-09 Jan Hubicka <jh@suse.cz>
19061
19062 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
19063 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
19064 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
19065 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
19066
19067 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19068
19069 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
19070 Do not the gather memory reference in the outer loop if the step
19071 is not a constant.
19072
19073 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19074
19075 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
19076 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
19077 8 to 4. Minor change of the related comments.
19078
19079 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19080
19081 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
19082 the scev analysis when the variable is not used outside the loop
19083 in a close phi node: call compute_overall_effect_of_inner_loop.
19084
19085 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19086
19087 * graphite-sese-to-poly.c (single_pred_cond): Renamed
19088 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
19089 (build_sese_conditions_before): Renamed call to single_pred_cond.
19090 (build_sese_conditions_after): Same.
19091
19092 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19093
19094 * graphite-poly.h: Fix comments and indentation.
19095 * graphite-sese-to-poly.c: Same.
19096 (build_sese_conditions_before): Compute stmt and gbb only when needed.
19097 * tree-chrec.c: Fix comments and indentation.
19098 (tree-ssa-loop-niter.c): Same.
19099
19100 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
19101
19102 PR rtl-optimization/42461
19103 * dce.c (deletable_insn_p): Return true for const or pure calls again.
19104 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
19105
19106 2010-06-09 Jan Hubicka <jh@suse.cz>
19107
19108 * bitmap.c (bitmap_and): Walk array forward.
19109 (bitmap_and_compl_into): Likewise.
19110 (bitmap_xor): Likewise.
19111 (bitmap_xor_into): Likewise.
19112 (bitmap_equal_p): Likewise.
19113 (bitmap_intersect_p): Likewise.
19114 (bitmap_intersect_compl_p): Likewise.
19115 (bitmap_ior_and_into): Likewise.
19116 (bitmap_elt_copy): Likewise.
19117 (bitmap_and_compl): Likewise.
19118 (bitmap_elt_ior): Likewise.
19119
19120 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
19121
19122 * opts-common.c (prune_options): Ensure replacement argv array
19123 is correctly terminated by a NULL entry.
19124
19125 2010-06-09 Jan Hubicka <jh@suse.cz>
19126
19127 * cgraph.h (varpool_first_static_initializer,
19128 varpool_next_static_initializer): Make checking only when
19129 checking enabled.
19130 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
19131 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
19132 gcc_assert to gcc_checking_assert.
19133 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
19134 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
19135 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
19136 op_iter_init_phiuse, op_iter_init_phidef,
19137 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
19138 gcc_checking_assert.
19139 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
19140 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
19141 partition_is_global, live_on_entry, live_on_exit,
19142 live_merge_and_clear): Likewise.
19143 * system.h (gcc_checking_assert): New macro.
19144 * gimple.h (set_bb_seq): Use gcc_checking_assert.
19145
19146 2010-06-09 Jason Merrill <jason@redhat.com>
19147
19148 * Makefile.in (TAGS): Collect tags info from c-family.
19149
19150 2010-06-09 Jan Hubicka <jh@suse.cz>
19151
19152 * gimple.h (gcc_gimple_checking_assert): New macro.
19153 (gimple_set_def_ops, gimple_set_use_ops,
19154 gimple_set_vuse, gimple_set_vdef,
19155 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
19156 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
19157 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
19158 gimple_asm_output_op, gimple_asm_output_op_ptr,
19159 gimple_asm_set_output_op, gimple_asm_clobber_op,
19160 gimple_asm_set_clobber_op, gimple_asm_label_op,
19161 gimple_asm_set_label_op, gimple_try_set_kind,
19162 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
19163 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
19164 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
19165 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
19166 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
19167 gimple_omp_for_set_initial, gimple_omp_for_final,
19168 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
19169 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
19170 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
19171 conditional with ENABLE_GIMPLE_CHECKING.
19172 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
19173
19174 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
19175
19176 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
19177 (get_computation_cost_at): Use it.
19178 (determine_use_iv_cost_condition): Likewise.
19179 (determine_iv_cost): Likewise.
19180
19181 2010-06-09 Richard Guenther <rguenther@suse.de>
19182
19183 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
19184 replace constants.
19185
19186 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
19187
19188 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
19189
19190 2010-06-09 Martin Jambor <mjambor@suse.cz>
19191
19192 PR tree-optimization/44423
19193 * tree-sra.c (dump_access): Dump also grp_assignment_read.
19194 (analyze_access_subtree): Pass negative allow_replacements to children
19195 if the current type is scalar.
19196
19197 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19198
19199 PR testsuite/42843
19200 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
19201 * doc/plugins.texi (Plugin license check): Update information
19202 on type of plugin_is_GPL_compatible.
19203 * Makefile.in (PLUGINCC): Define as $(COMPILER).
19204 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
19205
19206 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
19207
19208 * config/arm/arm.c (thumb2_reorg): New function.
19209 (arm_reorg): Call it.
19210 * config/arm/thumb2.md (define_peephole2 for flag clobbering
19211 arithmetic operations): Delete.
19212
19213 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
19214
19215 PR target/44067
19216 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
19217 e500v2 target.
19218
19219 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19220
19221 PR plugins/44459
19222 * gcc-plugin.h: Encapsulate all declarations in extern "C".
19223
19224 2010-06-08 Jan Hubicka <jh@suse.cz>
19225
19226 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
19227 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
19228
19229 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
19230
19231 PR tree-optimization/39874
19232 PR middle-end/28685
19233 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
19234 Declare.
19235 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
19236 same_bool_result_p): New.
19237 (and_var_with_comparison, and_var_with_comparison_1,
19238 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
19239 (or_var_with_comparison, or_var_with_comparison_1,
19240 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
19241 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
19242 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
19243 of combine_comparisons.
19244 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
19245
19246 2010-06-08 Anatoly Sokolov <aesok@post.ru>
19247
19248 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19249 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19250 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
19251 pdp11_function_value_regno_p): New functions.
19252 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19253 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19254
19255 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
19256
19257 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
19258 Thumb-2 in the MINUS case.
19259
19260 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
19261
19262 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
19263
19264 * doc/gty.texi (GTY Options): Document typed GC allocation and
19265 variable_size GTY option.
19266
19267 * ggc-internal.h: New.
19268
19269 * ggc.h: Update copyright year.
19270 (digit_string): Move to stringpool.c.
19271 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
19272 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
19273 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
19274 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
19275 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
19276 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
19277 (ggc_force_collect, ggc_get_size, ggc_statistics)
19278 (ggc_print_common_statistics): Move to ggc-internal.h.
19279 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
19280 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
19281 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
19282 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
19283 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
19284 (ggc_alloc_zone_pass_stat): Remove.
19285 (ggc_internal_alloc_stat, ggc_internal_alloc)
19286 (ggc_internal_cleared_alloc_stat): New.
19287 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
19288 (ggc_internal_vec_alloc_stat)
19289 (ggc_internal_cleared_vec_alloc_stat)
19290 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
19291 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
19292 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
19293 (ggc_cleared_alloc_ptr_array_two_args): New.
19294 (htab_create_ggc, splay_tree_new_ggc): Redefine.
19295 (ggc_splay_alloc): Change the type of the first argument to
19296 enum gt_types_enum.
19297 (ggc_alloc_string): Make macro.
19298 (ggc_alloc_string_stat): New.
19299 (ggc_strdup): Redefine.
19300 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
19301 (ggc_alloc_rtvec_sized): New.
19302 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
19303 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
19304 (ggc_internal_cleared_alloc_zone_stat)
19305 (ggc_internal_zone_alloc_stat)
19306 (ggc_internal_zone_cleared_alloc_stat)
19307 (ggc_internal_zone_vec_alloc_stat)
19308 (ggc_alloc_zone_rtx_def_stat)
19309 (ggc_alloc_zone_tree_node_stat)
19310 (ggc_alloc_zone_cleared_tree_node_stat)
19311 (ggc_alloc_cleared_gimple_statement_d_stat): New.
19312
19313 * ggc-common.c: Include ggc-internal.h.
19314 (ggc_internal_cleared_alloc_stat): Rename from
19315 ggc_alloc_cleared_stat.
19316 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
19317 (ggc_calloc): Remove.
19318 (ggc_cleared_alloc_htab_ignore_args): New.
19319 (ggc_cleared_alloc_ptr_array_two_args): New.
19320 (ggc_splay_alloc): Add obj_type parameter.
19321 (init_ggc_heuristics): Formatting fixes.
19322
19323 * ggc-none.c: Update copyright year.
19324 (ggc_alloc_stat): Rename to ggc_alloc_stat.
19325 (ggc_alloc_cleared_stat): Rename to
19326 ggc_internal_cleared_alloc_stat.
19327 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
19328
19329 * ggc-page.c: Update copyright year. Include ggc-internal.h.
19330 Remove references to ggc_alloc in comments.
19331 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
19332 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
19333 (new_ggc_zone, destroy_ggc_zone): Remove.
19334 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
19335
19336 * ggc-zone.c: Include ggc-internal.h. Remove references to
19337 ggc_alloc in comments.
19338 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
19339 (ggc_internal_alloc_zone_pass_stat): New.
19340 (ggc_internal_cleared_alloc_zone_stat): New.
19341 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
19342 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
19343 (new_ggc_zone, destroy_ggc_zone): Remove.
19344
19345 * stringpool.c: Update copyright year. Include ggc-internal.h
19346 (digit_vector): Make static.
19347 (digit_string): Moved from ggc.h.
19348 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
19349 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
19350
19351 * Makefile.in (GGC_INTERNAL_H): New.
19352 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
19353 $(GGC_INTERNAL_H) to dependencies.
19354
19355 * gentype.c: Update copyright year.
19356 (walk_type): Accept variable_size GTY option.
19357 (USED_BY_TYPED_GC_P): New macro.
19358 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
19359 whitespace at the end of strings.
19360 (get_type_specifier, variable_size_p): New functions.
19361 (alloc_quantity, alloc_zone): New enums.
19362 (write_typed_alloc_def): New function.
19363 (write_typed_struct_alloc_def): Likewise.
19364 (write_typed_typed_typedef_alloc_def): Likewise.
19365 (write_typed_alloc_defns): Likewise.
19366 (output_typename, write_splay_tree_allocator_def): Likewise.
19367 (write_splay_tree_allocators): Likewise.
19368 (main): Call write_typed_alloc_defns and
19369 write_splay_tree_allocators.
19370
19371 * lto-streamer.h (lto_file_decl_data_ptr): New.
19372
19373 * passes.c (order): Define using cgraph_node_ptr.
19374
19375 * strinpool.c (struct string_pool_data): Declare nested_ptr using
19376 ht_identifier_ptr.
19377
19378 * gimple.h (union gimple_statement_d): Likewise.
19379
19380 * rtl.h (struct rtx_def): Likewise.
19381 (struct rtvec_def): Likewise.
19382
19383 * tree.h (union tree_node): Likewise.
19384
19385 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
19386
19387 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
19388
19389 * tree-scalar-evolution.c (scev_initialize): Likewise.
19390
19391 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
19392
19393 * dwarf2asm.c (dw2_force_const_mem): Likewise.
19394
19395 * omp-low.c (lower_omp_critical): Likewise.
19396
19397 * bitmap.h (struct bitmap_head_def): Update comment to not
19398 reference ggc_alloc.
19399
19400 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
19401
19402 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
19403
19404 * ipa-prop.c (duplicate_ggc_array): Rename to
19405 duplicate_ipa_jump_func_array. Use typed GC allocation.
19406 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
19407
19408 * gimple.c (gimple_alloc_stat): Use
19409 ggc_alloc_cleared_gimple_statement_d_stat.
19410
19411 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
19412
19413 * tree.c (make_node_stat): Use
19414 ggc_alloc_zone_cleared_tree_node_stat.
19415 (make_tree_vec_stat): Likewise.
19416 (build_vl_exp_stat): Likewise.
19417 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
19418 (make_tree_binfo_stat): Likewise.
19419 (tree_cons_stat): Likewise.
19420
19421 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
19422 (shallow_copy_rtx_stat): Likewise.
19423 (make_node_stat): Likewise.
19424
19425 * lto-symtab.c: Fix comment.
19426
19427 * tree-cfg.c (create_bb): Update comment to not reference
19428 ggc_alloc_cleared.
19429 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
19430
19431 * varpool.c (varpool_node): Use typed GC allocation.
19432 (varpool_extra_name_alias): Likewise.
19433
19434 * varasm.c (emutls_decl): Likewise.
19435 (get_unnamed_section): Likewise.
19436 (get_noswitch_section): Likewise.
19437 (get_section): Likewise.
19438 (get_block_for_section): Likewise.
19439 (build_constant_desc): Likewise.
19440 (create_constant_pool): Likewise.
19441 (force_const_mem): Likewise.
19442
19443 * tree.c (build_vl_exp_stat): Likewise.
19444 (build_real): Likewise.
19445 (build_string): Likewise.
19446 (decl_debug_expr_insert): Likewise.
19447 (decl_value_expr_insert): Likewise.
19448 (type_hash_add): Likewise.
19449 (build_omp_clause): Likewise.
19450
19451 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
19452
19453 * tree-ssa.c (init_tree_ssa): Likewise.
19454
19455 * tree-ssa-structalias.c (heapvar_insert): Likewise.
19456
19457 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19458
19459 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19460
19461 * tree-ssa-alias.c (get_ptr_info): Likewise.
19462
19463 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19464
19465 * tree-phinodes.c (allocate_phi_node): Likewise.
19466
19467 * tree-iterator.c (tsi_link_before): Likewise.
19468 (tsi_link_after): Likewise.
19469
19470 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19471
19472 * tree-dfa.c (create_var_ann): Likewise.
19473
19474 * tree-cfg.c (create_bb): Likewise.
19475
19476 * toplev.c (alloc_for_identifier_to_locale): Likewise.
19477 (general_init): Likewise.
19478
19479 * stringpool.c (stringpool_ggc_alloc): Likewise.
19480 (gt_pch_save_stringpool): Likewise.
19481
19482 * sese.c (if_region_set_false_region): Likewise.
19483
19484 * passes.c (do_per_function_toporder): Likewise.
19485
19486 * optabs.c (set_optab_libfunc): Likewise.
19487 (set_conv_libfunc): Likewise.
19488
19489 * lto-symtab.c (lto_symtab_register_decl): Likewise.
19490
19491 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19492 (input_eh_region): Likewise.
19493 (input_eh_lp): Likewise.
19494 (make_new_block): Likewise.
19495 (unpack_ts_real_cst_value_fields): Likewise.
19496
19497 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19498
19499 * lto-cgraph.c (input_node_opt_summary): Likewise.
19500
19501 * loop-init.c (loop_optimizer_init): Likewise.
19502
19503 * lambda.h (lambda_vector_new): Likewise.
19504
19505 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
19506
19507 * ira.c (update_equiv_regs): Likewise.
19508
19509 * ipa.c (cgraph_node_set_new): Likewise.
19510 (cgraph_node_set_add): Likewise.
19511 (varpool_node_set_new): Likewise.
19512 (varpool_node_set_add): Likewise.
19513
19514 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
19515 (duplicate_ipa_jump_func_array): Likewise.
19516 (ipa_read_node_info): Likewise.
19517
19518 * ipa-cp.c (ipcp_create_replace_map): Likewise.
19519
19520 * integrate.c (get_hard_reg_initial_val): Likewise.
19521
19522 * gimple.c (gimple_alloc_stat): Likewise.
19523 (gimple_build_omp_for): Likewise.
19524 (gimple_seq_alloc): Likewise.
19525 (gimple_copy): Likewise.
19526
19527 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
19528 (gsi_insert_after_without_update): Likewise.
19529
19530 * function.c (add_frame_space): Likewise.
19531 (insert_temp_slot_address): Likewise.
19532 (assign_stack_temp_for_type): Likewise.
19533 (allocate_struct_function): Likewise.
19534 (types_used_by_var_decl_insert): Likewise.
19535
19536 * except.c (init_eh_for_function): Likewise.
19537 (gen_eh_region): Likewise.
19538 (gen_eh_region_catch): Likewise.
19539 (gen_eh_landing_pad): Likewise.
19540 (add_call_site): Likewise.
19541
19542 * emit-rtl.c (get_mem_attrs): Likewise.
19543 (get_reg_attrs): Likewise.
19544 (start_sequence): Likewise.
19545 (init_emit): Likewise.
19546
19547 * dwarf2out.c (new_cfi): Likewise.
19548 (queue_reg_save): Likewise.
19549 (dwarf2out_frame_init): Likewise.
19550 (new_loc_descr): Likewise.
19551 (find_AT_string): Likewise.
19552 (new_die): Likewise.
19553 (add_var_loc_to_decl): Likewise.
19554 (clone_die): Likewise.
19555 (clone_as_declaration): Likewise.
19556 (break_out_comdat_types): Likewise.
19557 (new_loc_list): Likewise.
19558 (loc_descriptor): Likewise.
19559 (add_loc_descr_to_each): Likewise.
19560 (add_const_value_attribute): Likewise.
19561 (tree_add_const_value_attribute): Likewise.
19562 (add_comp_dir_attribute): Likewise.
19563 (add_name_and_src_coords_attributes): Likewise.
19564 (lookup_filename): Likewise.
19565 (store_vcall_insn): Likewise.
19566 (dwarf2out_init): Likewise.
19567
19568 * dbxout.c (dbxout_init): Likewise.
19569
19570 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19571
19572 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19573
19574 * config/score/score7.c (score7_output_external): Likewise.
19575
19576 * config/score/score3.c (score3_output_external): Likewise.
19577
19578 * config/s390/s390.c (s390_init_machine_status): Likewise.
19579
19580 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19581 (rs6000_init_machine_status): Likewise.
19582 (output_toc): Likewise.
19583
19584 * config/pa/pa.c (pa_init_machine_status): Likewise.
19585 (get_deferred_plabel): Likewise.
19586
19587 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19588
19589 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19590
19591 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19592
19593 * config/mep/mep.c (mep_init_machine_status): Likewise.
19594 (mep_note_pragma_flag): Likewise.
19595
19596 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19597
19598 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19599
19600 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19601
19602 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19603 (i386_pe_maybe_record_exported_symbol): Likewise.
19604
19605 * config/i386/i386.c (get_dllimport_decl): Likewise.
19606 (ix86_init_machine_status): Likewise.
19607 (assign_386_stack_local): Likewise.
19608
19609 * config/frv/frv.c (frv_init_machine_status): Likewise.
19610
19611 * config/darwin.c (machopic_indirection_name): Likewise.
19612
19613 * config/cris/cris.c (cris_init_machine_status): Likewise.
19614
19615 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19616
19617 * config/avr/avr.c (avr_init_machine_status): Likewise.
19618
19619 * config/arm/arm.c (arm_init_machine_status): Likewise.
19620
19621 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19622 (alpha_need_linkage): Likewise.
19623 (alpha_use_linkage): Likewise.
19624
19625 * cgraph.c (cgraph_allocate_node): Likewise.
19626 (cgraph_create_edge_1): Likewise.
19627 (cgraph_create_indirect_edge): Likewise.
19628 (cgraph_add_asm_node): Likewise.
19629
19630 * cfgrtl.c (init_rtl_bb_info): Likewise.
19631
19632 * cfgloop.c (alloc_loop): Likewise.
19633 (rescan_loop_exit): Likewise.
19634
19635 * cfg.c (init_flow): Likewise.
19636 (alloc_block): Likewise.
19637 (unchecked_make_edge): Likewise.
19638
19639 * c-parser.c (c_parse_init): Likewise.
19640 (c_parse_file): Likewise.
19641
19642 * c-decl.c (bind): Likewise.
19643 (record_inline_static): Likewise.
19644 (push_scope): Likewise.
19645 (make_label): Likewise.
19646 (lookup_label_for_goto): Likewise.
19647 (finish_struct): Likewise.
19648 (finish_enum): Likewise.
19649 (c_push_function_context): Likewise.
19650
19651 * bitmap.c (bitmap_element_allocate): Likewise.
19652 (bitmap_gc_alloc_stat): Likewise.
19653
19654 * alias.c (record_alias_subset): Likewise.
19655 (init_alias_analysis): Likewise.
19656
19657 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
19658
19659 * fold-const.c (fold_comparison): Remove redundant parenthesis.
19660 * tree-inline.c (expand_call_inline): Pass translated return value of
19661 cgraph_inline_failed_string to diagnostic function.
19662
19663 2010-06-08 Andrew Pinski <pinskia@gmail.com>
19664 Shujing Zhao <pearly.zhao@oracle.com>
19665
19666 PR c/37724
19667 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
19668 implicit bad conversions is initialization.
19669 (error_init): Use gmsgid instead of msgid for argument name and change
19670 the call for error.
19671 (pedwarn_init): Use gmsgid instead of msgid for argument name and
19672 change the call for pedwarn.
19673 (warning_init): Use gmsgid instead of msgid for argument name and
19674 change the call for warning.
19675
19676 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
19677
19678 * config/mips/mips-protos.h (mips_print_operand): Delete.
19679 (mips_print_operand_address): Delete.
19680 * config/mips/mips.h (mips_print_operand_punct): Delete.
19681 (PRINT_OPERAND): Delete.
19682 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19683 (PRINT_OPERAND_ADDRESS): Delete.
19684 * config/mips/mips.c (mips_print_operand_punct): Make static.
19685 (mips_print_operand_address): Make static.
19686 (mips_print_operand): Make static. Call
19687 mips_print_operand_punct_valid_p.
19688 (mips_print_operand_punct_valid_p): New function.
19689 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19690 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19691
19692 2010-06-07 Jan Hubicka <jh@suse.cz>
19693
19694 PR middle-end/44454
19695 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
19696 are allocated.
19697
19698 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
19699
19700 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
19701 name of RECORD.
19702
19703 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19704
19705 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19706 attributes): Document gas.
19707
19708 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
19709
19710 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
19711 <TYPE_LEA>: Split instruction.
19712 <default>: Remove alternative 2 handling.
19713 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
19714 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
19715 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
19716
19717 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
19718 (ashift_zext lea splitter): Use DImode for multiplication.
19719
19720 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
19721 to generate addition.
19722
19723 2010-06-07 Joseph Myers <joseph@codesourcery.com>
19724
19725 * common.opt (fira-verbose): Use Var.
19726 (fpcc-struct-return): Use Init instead of VarExists.
19727 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
19728 toplev.c.
19729 * flags.h (flag_signed_char, flag_short_enums,
19730 flag_pcc_struct_return, flag_ira_verbose,
19731 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
19732 * toplev.c (flag_detailed_statistics, flag_signed_char,
19733 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
19734 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
19735 * toplev.h (flag_crossjumping, flag_if_conversion,
19736 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
19737 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
19738 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
19739 flag_cprop_registers, time_report, flag_ira_loop_pressure,
19740 flag_ira_coalesce, flag_ira_move_spills,
19741 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
19742
19743 2010-06-07 Jan Hubicka <jh@suse.cz>
19744
19745 * df-core.c (df_analyze_problem): Do verification after allocation.
19746
19747 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
19748 (df_lr_alloc): Initialize problem data; move bitmaps to
19749 lr_bitmaps obstack.
19750 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
19751 (df_lr_verify_solution_start): Do not initialize problem data;
19752 allocate bitmaps in lr_bitmaps.
19753 (df_lr_verify_solution_end): Do not free problem data.
19754
19755 2010-06-07 Jan Hubicka <jh@suse.cz>
19756
19757 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
19758 if caller is noreturn.
19759 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
19760 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
19761 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
19762 * ipa-pure-const.c (check_decl): Add IPA parameter.
19763 (state_from_flags): New function.
19764 (better_state, worse_state): New functions.
19765 (check_call): When in IPA mode, do not care about callees.
19766 (check_load, check_store): Update.
19767 (check_ipa_load, check_ipa_store): New.
19768 (check_stmt): When in IPA mode, use IPA checkers.
19769 (analyze_function): Use state_from_flags.
19770 (propagate): Check indirect edges and references.
19771
19772 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
19773
19774 PR rtl-optimization/44404
19775 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
19776 of count_occurrences to see if it's safe to modify mem_insn.
19777
19778 2010-06-07 Richard Guenther <rguenther@suse.de>
19779
19780 * gimplify.c (gimplify_cleanup_point_expr): For empty body
19781 and EH-only cleanup drop the cleanup instead of inserting it
19782 unconditionally.
19783
19784 2010-06-07 Ira Rosen <irar@il.ibm.com>
19785
19786 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
19787 documentation.
19788 * targhooks.c (default_builtin_vectorization_cost): New function.
19789 * targhooks.h (default_builtin_vectorization_cost): Declare.
19790 * target.h (enum vect_cost_for_stmt): Define.
19791 (builtin_vectorization_cost): Change argument and comment.
19792 * tree-vectorizer.h: Remove cost model macros.
19793 * tree-vect-loop.c: Include target.h.
19794 (vect_get_cost): New function.
19795 (vect_estimate_min_profitable_iters): Replace cost model macros with
19796 calls to vect_get_cost.
19797 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
19798 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
19799 default implementation.
19800 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
19801 calls to target hook builtin_vectorization_cost.
19802 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
19803 Likewise.
19804 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
19805 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
19806 implementation to return costs.
19807 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
19808 * config/spu/spu.h: Remove vectorizer cost model macros.
19809 * config/i386/i386.h: Likewise.
19810 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
19811 a call to target hook builtin_vectorization_cost.
19812
19813 2010-06-06 Sriraman Tallam <tmsriram@google.com>
19814
19815 PR target/44319
19816 * config/i386/i386.c (override_options): Turn zee pass on for level 2
19817 and above and defer till target is known.
19818 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
19819 turn off otherwise.
19820
19821 2010-05-25 Jan Hubicka <jh@suse.cz>
19822
19823 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
19824 (df_compact_blocks): Likewise.
19825 * df.h (struct df): Turn hardware_regs_used,
19826 regular_block_artificial_uses, eh_block_artificial_uses,
19827 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
19828 bitmap_head.
19829 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
19830 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
19831 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
19832 df_scan_blocks, df_insn_delete, df_insn_rescan,
19833 df_insn_rescan_debug_internal, df_insn_rescan_all,
19834 df_process_deferred_rescans, df_process_deferred_rescans,
19835 df_notes_rescan, df_get_call_refs, df_get_call_refs,
19836 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
19837 df_record_entry_block_defs, df_record_exit_block_uses,
19838 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
19839 df_scan_verify): Update.
19840
19841 2010-05-25 Dodji Seketeli <dodji@redhat.com>
19842
19843 PR c++/44188
19844 * c-common.c (is_typedef_decl): Move this definition ...
19845 * tree.c (is_typedef_decl): ... here.
19846 (typdef_variant_p): Move definition here from cp/tree.c.
19847 * c-common.h (is_typedef_decl): Move this declaration ...
19848 * tree.h (is_typedef_decl): ... here.
19849 (typedef_variant_p): Move declaration here from cp/cp-tree.h
19850 * dwarf2out.c (is_naming_typedef_decl): New function.
19851 (gen_tagged_type_die): Split out of ...
19852 (gen_type_die_with_usage): ... this function. When an anonymous
19853 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
19854 is emitted for the typedef.
19855 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
19856 anonymous tagged types.
19857
19858 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
19859
19860 PR c/20000
19861 * c-decl.c (grokdeclarator): Delete warning.
19862
19863 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
19864
19865 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
19866 newly built CALL_EXPR.
19867 * tree-profile.c (tree_profiling): Don't profile functions produced
19868 for built-in stuff.
19869
19870 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
19871
19872 PR bootstrap/44427
19873 PR bootstrap/44428
19874 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
19875 endianness-independent.
19876
19877 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
19878
19879 * c-common.c: Move to c-family/.
19880 * c-common.def: Likewise.
19881 * c-common.h: Likewise.
19882 * c-cppbuiltin.c: Likewise.
19883 * c-dump.c: Likewise.
19884 * c-format.c: Likewise.
19885 * c-format.h : Likewise.
19886 * c-gimplify.c: Likewise.
19887 * c-lex.c: Likewise.
19888 * c-omp.c: Likewise.
19889 * c.opt: Likewise.
19890 * c-opts.c: Likewise.
19891 * c-pch.c: Likewise.
19892 * c-ppoutput.c: Likewise.
19893 * c-pragma.c: Likewise.
19894 * c-pragma.h: Likewise.
19895 * c-pretty-print.c: Likewise.
19896 * c-pretty-print.h: Likewise.
19897 * c-semantics.c: Likewise.
19898 * stub-objc.c: Likewise.
19899
19900 * gengtype.c (get_file_langdir): Special-case files in c-family/.
19901 (get_output_file_with_visibility): Fix name for c-common.h.
19902 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
19903
19904 * c-tree.h: Update include path for moved files.
19905 * c-lang.c: Likewise.
19906 * c-lang.h: Likewise.
19907 * c-parser.c: Likewise.
19908 * c-convert.c: Likewise.
19909 * c-decl.c: Likewise.
19910 * c-objc-common.c: Likewise.
19911 * configure.ac: Make sure c-family/ exists in the build directory.
19912 * configure: Regenerate.
19913 * Makefile.in: Update paths for moved files. Regroup files per
19914 location and update dependencies. Move generated_files down after
19915 ALL_GTFILES_H.
19916
19917 * config/spu/spu-c.c: Update paths for moved files.
19918 * config/mep/mep-pragma.c: Likewise.
19919 * config/darwin-c.c: Likewise.
19920 * config/i386/msformat-c.c: Likewise.
19921 * config/i386/i386-c.c: Likewise.
19922 * config/avr/avr-c.c: Likewise.
19923 * config/sol2-c.c: Likewise.
19924 * config/ia64/ia64-c.c: Likewise.
19925 * config/rs6000/rs6000-c.c: Likewise.
19926 * config/arm/arm.c: Likewise.
19927 * config/arm/arm-c.c: Likewise.
19928 * config/h8300/h8300.c: Likewise.
19929 * config/v850/v850-c.c: Likewise.
19930
19931 * config/t-darwin: Fix dependencies for moved files.
19932 * config/t-sol2: Fix dependencies for moved files.
19933 * config/mep/t-mep: Fix dependencies for moved files.
19934 * config/ia64/t-ia64: Fix dependencies for moved files.
19935 * config/rs6000/t-rs6000: Fix dependencies for moved files.
19936 * config/v850/t-v850: Fix dependencies for moved files.
19937 * config/v850/t-v850e: Fix dependencies for moved files.
19938
19939 * config/m32c/m32c-pragma.c
19940
19941 * po/exgettext: Look in c-family/ also.
19942
19943 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
19944
19945 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
19946 (mark_control_dependent_edges_necessary): Call it instead of marking
19947 the last statement manually.
19948 (propagate_necessity): Likewise.
19949
19950 2010-06-05 Jan Hubicka <jh@suse.cz>
19951
19952 * basic-block.h (compute_dominance_frontiers): Updated.
19953 (compute_idf): Likewise.
19954
19955 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
19956 for dominance frontiers.
19957 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
19958 (insert_updated_phi_nodes_for): Likewise.
19959 (update_ssa): Likewise.
19960 * cfganal.c (compute_dominance_frontiers_1): Likewise.
19961 (compute_dominance_frontiers): Likewise.
19962 (compute_idf): Likewise.
19963 * df-problems.c (df_md_local_compute): Likewise.
19964
19965 2010-06-05 Anatoly Sokolov <aesok@post.ru>
19966
19967 * target.h (struct gcc_target): Add memory_move_cost field.
19968 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
19969 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
19970 * targhooks.c (default_memory_move_cost): New function.
19971 * targhooks.h (default_memory_move_cost): Declare function.
19972 * reload.h (memory_move_cost): Declare.
19973 (memory_move_secondary_cost): Change type of 'in' argument to bool.
19974 * reginfo.c (memory_move_cost): New function.
19975 (memory_move_secondary_cost): Change type of 'in' argument to bool.
19976 * ira.h (ira_memory_move_cost): Update comment.
19977 * ira.c (ira_memory_move_cost): Update comment.
19978 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
19979 with memory_move_cost.
19980 * postreload.c (reload_cse_simplify_set): (Ditto.).
19981 * reload1.c (choose_reload_regs): (Ditto.).
19982 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
19983 (MEMORY_MOVE_COST): Revise documentation.
19984
19985 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
19986 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
19987 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
19988 type of 'in' argument to bool.
19989 (TARGET_MEMORY_MOVE_COST): Define.
19990
19991 2010-06-05 Jan Hubicka <jh@suse.cz>
19992
19993 * ipa-pure-const.c (propagate): Fix typo in handling of functions
19994 that cannot return. Be more careful when merging the results with
19995 previously known ones.
19996
19997 2010-06-05 Matthias Klose <doko@ubuntu.com>
19998
19999 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
20000 function to add the -iplugindir option.
20001 (find_plugindir_spec_function): Add new declaration and function.
20002 (static_spec_func): Use it for "find-plugindir".
20003
20004 2010-06-05 Jakub Jelinek <jakub@redhat.com>
20005
20006 PR c++/44361
20007 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
20008 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
20009 statement expression.
20010
20011 2010-06-05 Jan Hubicka <jh@suse.cz>
20012
20013 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
20014 (df_rd_problem_data): Convert sparse_invalidated_by_call,
20015 dense_invalidated_by_call to bitmap head.
20016 (df_rd_alloc, df_rd_bb_local_compute_process_def,
20017 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
20018 df_rd_start_dump, df_lr_verify_transfer_functions,
20019 df_live_verify_transfer_functions, df_chain_create_bb,
20020 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
20021 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
20022 df_simulate_one_insn_forwards, df_md_alloc,
20023 df_md_bb_local_compute_process_def,
20024 df_md_bb_local_compute_process_def, df_md_local_compute,
20025 df_md_transfer_function df_md_free): Update.
20026
20027 2010-06-05 Joseph Myers <joseph@codesourcery.com>
20028
20029 PR c/44322
20030 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
20031 target type for ADDR_EXPR; require no changes to qualifiers except
20032 for function types.
20033 * c-tree.h (c_build_type_variant): Remove.
20034
20035 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20036
20037 * genautomata.c (get_excl_set): Do work per element, not per char.
20038 (check_presence_pattern_sets): Similar.
20039 (check_absence_pattern_sets): Similar.
20040
20041 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20042
20043 * genautomata.c (curr_state_pass_num): Delete.
20044 (min_issue_delay_pass_states): Delete.
20045 (min_issue_delay): Delete.
20046 (initiate_min_issue_delay_pass_states): Delete.
20047 (output_min_issue_delay_table): Compute min_issue_delay_vect
20048 using a breadth-first search variant.
20049 (output_tables): Don't call initiate_min_issue_delay_pass_states.
20050
20051 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
20052
20053 PR boostrap/44421
20054 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
20055 (df_byte_lr_bb_local_compute): Likewise.
20056
20057 2010-06-03 Jason Merrill <jason@redhat.com>
20058
20059 Implement noexcept operator (5.3.7)
20060 * c-common.c (c_common_reswords): Add noexcept.
20061 * c-common.h (enum rid): Add RID_NOEXCEPT.
20062
20063 2010-06-04 Joseph Myers <joseph@codesourcery.com>
20064
20065 * config/darwin-driver.c (darwin_default_min_version): Use
20066 GCC-specific formats in diagnostics.
20067 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
20068 diagnostics.
20069 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
20070 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
20071 eval_spec_function, handle_braces, process_brace_body, main,
20072 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
20073 getenv_spec_function, compare_version_strings,
20074 version_compare_spec_function): Use GCC-specific formats in
20075 diagnostics.
20076
20077 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20078
20079 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
20080 that operand 0 and operand 1 are equal.
20081 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
20082 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
20083 and operand 1 are equal.
20084 <default>: Ditto. Remove ??? comment.
20085 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
20086 and operand 1 are equal.
20087 <default>: Ditto. Remove ??? comment.
20088 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
20089 are equal.
20090 (*add<mode>_4) <default>: Ditto.
20091 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
20092
20093 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
20094
20095 * config/i386/i386-protos.h (ix86_print_operand): Declare.
20096 * config/i386/i386.c (ix86_print_operand): Make non-static.
20097 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
20098 * output.h (output_operand): Declare.
20099 * final.c (output_operand): Make non-static.
20100
20101 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
20102
20103 PR rtl-optimization/44013
20104 * sched-deps.c (add_dependence_list_and_free): Don't free lists
20105 when processing debug insns.
20106
20107 PR debug/41371
20108 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
20109 recursing. Check that recursion is bounded. Rename inner var
20110 to avoid hiding incoming argument.
20111
20112 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20113
20114 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
20115 operands[2] == 255.
20116 (*addqi_3): Ditto.
20117 (*addqi_4): Ditto.
20118 (*addqi_5): Ditto.
20119 (*addqi_ext_1_rex64): Ditto.
20120 (*addqi_ext_1): Ditto.
20121
20122 (*addqi_4): Check for incdec_operand in QImode.
20123
20124 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
20125 using SWI mode iterator.
20126 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
20127 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
20128 mode iterator.
20129 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
20130 using SWI mode iterator.
20131
20132 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
20133
20134 PR c/25880
20135 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
20136 * c-format.c (gcc_diag_flag_specs): Add hash.
20137 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
20138 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
20139 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
20140 pp_c_cv_qualifiers. Handle qualifiers spelling here.
20141 (pp_c_type_qualifier_list): Call the function above.
20142 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
20143 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
20144 (WARN_FOR_QUALIFIERS): New macro.
20145 (convert_for_assignment): Use it.
20146
20147 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
20148
20149 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
20150
20151 2010-06-04 Jan Hubicka <jh@suse.cz>
20152
20153 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
20154 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
20155 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
20156 DF_BYTE_LR_OUT): Update for embedded bitmaps.
20157 * fwprop.c (single_def_use_enter_block): Likewise.
20158 * ddg.c (create_ddg_dep_from_intra_loop_link,
20159 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
20160 * loop-iv.c (latch_dominating_def): Likewise.
20161 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
20162 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
20163 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
20164 df_rd_transfer_function, df_rd_top_dump,
20165 df_rd_bottom_dump): Update.
20166 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
20167 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
20168 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
20169 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
20170 df_lr_verify_solution_start, df_lr_verify_solution_end,
20171 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
20172 df_live_free_bb_info, df_live_alloc, df_live_reset,
20173 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
20174 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
20175 df_live_verify_solution_start, df_live_verify_solution_end,
20176 df_live_verify_transfer_functions, df_chain_create_bb,
20177 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
20178 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20179 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20180 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
20181 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
20182 df_byte_lr_transfer_function, df_byte_lr_top_dump,
20183 df_byte_lr_bottom_dump, df_create_unused_note,
20184 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
20185 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
20186 df_md_transfer_function, df_md_init, df_md_confluence_0,
20187 df_md_confluence_n,
20188 df_md_top_dump, df_md_bottom_dump): Update.
20189 (struct df_lr_problem_data): Embedd bitmap headers.
20190
20191 2010-06-04 Jan Hubicka <jh@suse.cz>
20192
20193 * dce.c (dce_process_block): Do not re-scan already marked
20194 instructions.
20195
20196 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
20197
20198 PR rtl-optimization/39871
20199 PR rtl-optimization/40615
20200 PR rtl-optimization/42500
20201 PR rtl-optimization/42502
20202 * ira.c (init_reg_equiv_memory_loc: New function.
20203 (ira): Call it twice.
20204 * reload.h (calculate_elim_costs_all_insns): Declare.
20205 * ira-costs.c: Include "reload.h".
20206 (regno_equiv_gains): New static variable.
20207 (init_costs): Allocate it.
20208 (finish_costs): Free it.
20209 (ira_costs): Call calculate_elim_costs_all_insns.
20210 (find_costs_and_classes): Take estimated elimination costs
20211 into account.
20212 (ira_adjust_equiv_reg_cost): New function.
20213 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
20214 * reload1.c (init_eliminable_invariants, free_reg_equiv,
20215 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
20216 (elim_bb): New static variable.
20217 (reload): Move code out of here into init_eliminable_invariants and
20218 free_reg_equiv. Call them.
20219 (calculate_elim_costs_all_insns): New function.
20220 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
20221 all callers changed. If FOR_COSTS is true, don't call alter_reg,
20222 but call note_reg_elim_costly if we turned a valid memory address
20223 into an invalid one.
20224 * Makefile.in (ira-costs.o): Depend on reload.h.
20225
20226 2010-06-04 Julian Brown <julian@codesourcery.com>
20227
20228 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
20229 for pool ranges.
20230
20231 2010-06-04 Richard Guenther <rguenther@suse.de>
20232
20233 PR lto/41584
20234 * cgraph.h (struct varpool_node): Add lto_file_data field.
20235 * lto-cgraph.c (input_varpool_node): Initialize it.
20236
20237 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20238
20239 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
20240 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
20241 predicate in "type" attribute calculation.
20242 (*addsi_1_zext): Ditto.
20243 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
20244 (*addsi_2_zext): Ditto.
20245 (*add<mode>_3): Ditto.
20246 (*addsi_3_zext): Ditto.
20247 (*add<mode>_5): Ditto.
20248
20249 2010-06-03 Jan Hubicka <jh@suse.cz>
20250
20251 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
20252 of bitmap_bit_p.
20253 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20254
20255 2010-06-03 Jan Hubicka <jh@suse.cz>
20256
20257 * df-problems.c (df_create_unused_note, df_note_bb_compute):
20258 micro-optimize the checks when to add new note.
20259
20260 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
20261
20262 * final.c (output_asm_insn): Call
20263 targetm.asm_out.print_operand_punct_valid_p. Update comments.
20264 (output_operand): Call targetm.asm_out.print_operand. Update comments.
20265 (output_address): Call targetm.asm_out.print_operand_address.
20266 Update comments.
20267 * target.h (struct gcc_target): Add print_operand,
20268 print_operand_address, and print_operand_punct_valid_p fields.
20269 * targhooks.h (default_print_operand): Declare.
20270 (default_print_operand_address): Declare.
20271 (default_print_operand_punct_valid_p): Declare.
20272 * targhooks.c (default_print_operand): Define.
20273 (default_print_operand_address): Define.
20274 (default_print_operand_punct_valid_p): Define.
20275 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
20276 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
20277 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
20278 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
20279 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
20280 * vmsdbgout.c (addr_const_to_string): Update comment.
20281 * config/i386/i386.c (print_operand): Rename to...
20282 (ix86_print_operand): ...this. Make static.
20283 (print_operand_address): Rename to...
20284 (ix86_print_operand_address): ...this. Make static. Call
20285 ix86_print_operand instead of PRINT_OPERAND.
20286 (ix86_print_operand_punct_valid_p): New function.
20287 (TARGET_PRINT_OPERAND): Define.
20288 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20289 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20290 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
20291 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20292 (PRINT_OPERAND): Delete.
20293 (PRINT_OPERAND_ADDRESS): Delete.
20294 * config/i386/i386-protos.h (print_operand): Delete prototype.
20295 (print_operand_address): Delete prototype.
20296
20297 2010-06-03 Richard Guenther <rguenther@suse.de>
20298
20299 PR tree-optimization/44403
20300 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20301 Preserve pointer qualifiers.
20302 (vect_create_data_ref_ptr): Likewise.
20303
20304 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
20305
20306 PR c++/44294
20307 * defaults.h (MAX_FIXED_MODE_SIZE): New.
20308
20309 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
20310
20311 2010-06-03 Jakub Jelinek <jakub@redhat.com>
20312
20313 PR debug/44375
20314 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
20315 return false if merging the bbs would lead to goto_locus
20316 location being lost from the IL.
20317
20318 2010-06-03 Jan Hubicka <jh@suse.cz>
20319 Jakub Jelinek <jakub@redhat.com>
20320
20321 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
20322 set->regs[i] is NULL or has just one entry.
20323
20324 2010-06-03 Jan Hubicka <jh@suse.cz>
20325
20326 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
20327 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
20328
20329 2010-06-03 Paul Brook <paul@codesourcery.com>
20330
20331 * config/arm/arm.c (FL_TUNE): Define.
20332 (arm_default_cpu, arm_cpu_select): Remove.
20333 (all_cores): Populate core field.
20334 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
20335 (arm_find_cpu): New function.
20336 (arm_handle_option): Lookup cpu/architecture names.
20337 (arm_override_options): Cleanup mcpu/march/mtune handling.
20338 (arm_file_start): Ditto.
20339
20340 2010-06-03 Alan Modra <amodra@gmail.com>
20341
20342 PR target/44169
20343 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
20344 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
20345 rtx to gen_load_toc_v4_PIC_1b. Tidy.
20346 (rs6000_emit_load_toc_table): Likewise.
20347
20348 2010-06-02 Jan Hubicka <jh@suse.cz>
20349
20350 * passes.c (init_optimization_passes): Put ipa reference
20351 after ipa pure-const.
20352
20353 2010-06-02 Jan Hubicka <jh@suse.cz>
20354
20355 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
20356 calls_read_all and calls_write_all.
20357 (get_reference_optimization_summary): Fix formatting.
20358 (is_proper_for_analysis): Check that decl is not readonly.
20359 (propagate_bits): Check CONST/PURE/noreturn flags.
20360 (ipa_init): Move all_module_statics to optimization_summary_obstack.
20361 (analyze_function): Ignore indirect edges.
20362 (copy_global_bitmap): For all module statics, do nothing.
20363 (generate_summary): Do not print calls_read_all/calls_write_all.
20364 (read_write_all_from_decl): Take node as argument; check
20365 cgraph_node_cannot_return.
20366 (propagate): Reorganize read_all/write_all computation;
20367 check indirect edges; check ecf flags; use all_module_statics
20368 in the results; do not free all_module_statics.
20369 (stream_out_bitmap): Handle all_module_statics.
20370 (ipa_reference_write_optimization_summary): Likewise; use
20371 varpool/cgraph encoders to get boundaries.
20372 (ipa_reference_read_optimization_summary): Read in all_module_statics;
20373 use it when possible.
20374
20375 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20376
20377 PR target/44218
20378 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
20379 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
20380
20381 * doc/extend.texi (powerpc builtins): Document vec_recip,
20382 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
20383
20384 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
20385 (rs6000_emit_swrsqrt): Ditto.
20386 (rs6000_emit_swdivsf): Delete.
20387 (rs6000_emit_swdivdf): Ditto.
20388 (rs6000_emit_swrsqrtsf): Ditto.
20389
20390 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
20391 describe the reciprocal estimate support for each type.
20392 (recip_options): Map -mrecip=<opt> into option bits.
20393 (gen_2arg_fn_t): New typedef for binary rtx gen function.
20394 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
20395 reciprocal estimate instructions.
20396 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
20397 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
20398 Set up rs6000_recip_bits based on the -mrecip* options. Print the
20399 cost information if -mdebug=cost or -mdebug=reg.
20400 (rs6000_override_options): Set -mrecip-precision for power6, and
20401 power7 machines. If -mvsx or -mdfp, enable various options that
20402 came in previous instruction set ISAs, unless the option was
20403 explicitly disabled by the command line option. Parse
20404 -mrecip=<opt> options.
20405 (rs6000_builtin_vectorized_function): Add support for vectorizing
20406 the reciprocal estimate builtins and expansions.
20407 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
20408 (bdesc_2arg): Add reciprocal estimate builtins.
20409 (bdesc_1arg): Add reciprocal square root estimate builtins.
20410 (rs6000_expand_builtin): Rewrite to use a switch statement,
20411 instead of multiple if/then/elses. Add reciprocal estimate builtins.
20412 (rs6000_init_builtins): Create declarations for reciprocal
20413 estimate builtins.
20414 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
20415 sized, prefer traditional floating point registers, if integer
20416 vector types, prefer altivec registers. Don't actually look at
20417 the memory address any more.
20418 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
20419 builtins.
20420 (rs6000_load_constant_and_splat): New helper function to load up
20421 the constant for reciprocal estimate instructions.
20422 (rs6000_emit_madd): New helper function for generating
20423 multiply/add type instructions, based on the current switches.
20424 (rs6000_emit_msub): Ditto.
20425 (rs6000_emit_mnsub): Ditto.
20426 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
20427 replace a divide with a reciprocal estimate and fixup, adding
20428 support for machines with high precision and vectors.
20429 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
20430 low precision machines.
20431 (rs6000_emit_swdiv): New common function to be called to replace a
20432 division with reciprocal estimate and fixup.
20433 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
20434 for double and vector types. Add support for high precision machines.
20435
20436 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
20437 the reciprocal estimate instructions can be generated.
20438 (TARGET_FRE): Ditto.
20439 (TARGET_FRSQRTES): Ditto.
20440 (TARGET_FRSQRTE): Ditto.
20441 (RS6000_RECIP_*): New macros for reciprocal estimate support.
20442
20443 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
20444 square root estimate on vectors.
20445 (re<mode>2): New insn for reciprocal division estimate on vectors.
20446
20447 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
20448 New builtin.
20449 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
20450 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
20451 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
20452 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
20453 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
20454 (RS6000_BUILTIN_RSQRT): Ditto.
20455 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
20456 floating point builtin.
20457
20458 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20459 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
20460 __RECIP_PRECISION__ based on the command line switches.
20461 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
20462
20463 * config/rs6000/rs6000.opt (-mrecip): Document add support for
20464 replacing division instructions with reciprocal estimate and fixup.
20465 (-mrecip=<opt>): New option.
20466 (-mrecip-precision): Ditto.
20467
20468 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
20469 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
20470 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
20471 precision scalar.
20472
20473 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
20474 (UNSPEC_VREFP): Ditto.
20475 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
20476 conterparts with regard to support of -mno-fused-madd and -ffast-math.
20477 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
20478 reciprocal estimate instructions to be generated.
20479 (altivec_vrefp): Ditto.
20480
20481 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
20482 estimate support.
20483 (rreg): New mode attribute for reciprocal estimate support.
20484 (recip<mode>3): New insn for division using reciprocal estimate
20485 and fixup builtins.
20486 (divide define_split): New define_split to convert floating point
20487 division to use reciprocal estimate if the user used the
20488 appropriate options and the split is run when we can add new
20489 pseudo registers for the fixup.
20490 (rsqrt<mode>2): New insn for reciprocal square root support.
20491 (recipsf3): Move into recip<mode>3.
20492 (recipdf3): Ditto.
20493 (fres): Use TARGET_FRES.
20494 (rsqrtsf2): Move into rsqrt<mode>2.
20495 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
20496 (copysignsf3): Add support for VSX.
20497 (fred): Use TARGET_FRE.
20498 (fred_fpr): Ditto.
20499 (rsqrtdf_internal1): New function for frsqrte instruciton.
20500
20501 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
20502 (vec_rsqrt): Ditto.
20503
20504 2010-06-03 Richard Guenther <rguenther@suse.de>
20505
20506 PR middle-end/44291
20507 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
20508 (set_user_assembler_libfunc): Likewise.
20509
20510 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20511
20512 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
20513 defaults.h.
20514 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
20515 to defaults.h
20516 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
20517 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
20518 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
20519 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
20520 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
20521 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
20522 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
20523 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
20524 * defaults.h: Updated for above mentioned changes.
20525
20526 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
20527
20528 * c-common.c: Remove header include of tm_p.h.
20529 * Makefile.in (c-common.o): Remove TM_P_H dependency.
20530
20531 2010-06-02 Jakub Jelinek <jakub@redhat.com>
20532
20533 * tree.h (struct tree_decl_map): New type.
20534 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
20535 (tree_decl_map_hash): New prototype.
20536 (debug_expr_for_decl, value_expr_for_decl): Change into
20537 tree_decl_map hashtab from tree_map.
20538 (init_ttree): Adjust initialization.
20539 (tree_decl_map_hash): New function.
20540 (decl_debug_expr_lookup, decl_debug_expr_insert,
20541 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
20542
20543 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20544
20545 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
20546 linker emulations.
20547 * configure: Regenerate.
20548 * config.in: Regenerate.
20549
20550 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
20551 (X86_64_EMULATION): Define.
20552 (TARGET_LD_EMULATION): Use them.
20553
20554 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
20555 (SPARC64_EMULATION): Define.
20556 (LINK_ARCH_SPEC): Use them.
20557
20558 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20559
20560 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
20561 smallest_mode_for_size for computing the precision types of new
20562 graphite IVs. Do not call lang_hooks.types.type_for_size.
20563
20564 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20565
20566 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
20567 information.
20568 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
20569
20570 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20571
20572 PR middle-end/44363
20573 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
20574 return false instead.
20575
20576 2010-06-02 Jan Hubicka <jh@suse.cz>
20577
20578 PR middle-end/44295
20579 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
20580 create new cgraph node to check callee.
20581
20582 2010-06-02 Richard Guenther <rguenther@suse.de>
20583
20584 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
20585
20586 2010-06-02 Richard Guenther <rguenther@suse.de>
20587
20588 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
20589 (lto_wrapper_cleanup): ... this. Do not exit.
20590 (fatal): Adjust. Exit here.
20591 (fatal_perror): Likewise.
20592 (fatal_signal): New function.
20593 (main): Set up signal handlers to cleanup temporary files.
20594 * Makefile.in (lto-wrapper.o): Adjust dependencies.
20595
20596 2010-06-02 Richard Guenther <rguenther@suse.de>
20597
20598 PR tree-optimization/44377
20599 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
20600
20601 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20602
20603 * config/s390/2097.md (z10_fhex): Remove insn reservation.
20604 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
20605 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
20606 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
20607 instruction.
20608 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
20609
20610 2010-06-02 Jan Hubicka <jh@suse.cz>
20611
20612 * bitmap.c (bitmap_descriptor): Add search_iter.
20613 (bitmap_find_bit): Increment it.
20614 (print_statistics): Print it.
20615
20616 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
20617
20618 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
20619 instead of gimple_build_call_vec. Delete unnecessary local variable.
20620
20621 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20622
20623 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
20624 change from yesterday.
20625
20626 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20627
20628 * c-ada-spec.c: Clean up redundant includes.
20629
20630 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
20631
20632 * gimplify.c: Do not include except.h and optabs.h.
20633 (gimplify_body): Do not initialize RTL profiling.
20634 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
20635 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
20636 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
20637 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
20638 langhooks.h.
20639
20640 * tree-pretty-print.h: Include pretty-print.h.
20641 * gimple-pretty-print.h: Include pretty-print.h.
20642
20643 * tree-pretty-print.c: Do not include diagnostic.h.
20644 * tree-vrp.c: Likewise.
20645 * tree-tailcall.c: Likewise
20646 * tree-scalar-evolution.c: Likewise
20647 * tree-ssa-dse.c: Likewise
20648 * tree-chrec.c: Likewise
20649 * tree-ssa-sccvn.c: Likewise
20650 * tree-ssa-copyrename.c: Likewise
20651 * tree-nomudflap.c: Likewise
20652 * tree-call-cdce.c: Likewise
20653 * tree-stdarg.c: Likewise
20654 * tree-ssa-math-opts.c: Likewise
20655 * tree-nrv.c: Likewise
20656 * tree-ssa-sink.c: Likewise
20657 * tree-browser.c: Likewise
20658 * tree-ssa-loop-ivcanon.c: Likewise
20659 * tree-ssa-loop.c: Likewise
20660 * tree-parloops.c: Likewise
20661 * tree-ssa-address.c: Likewise
20662 * tree-ssa-ifcombine.c: Likewise
20663 * tree-if-conv.c: Likewise
20664 * tree-data-ref.c: Likewise
20665 * tree-affine.c: Likewise
20666 * tree-ssa-phiopt.c: Likewise
20667 * tree-ssa-coalesce.c: Likewise
20668 * tree-ssa-pre.c: Likewise
20669 * tree-ssa-live.c: Likewise
20670 * tree-predcom.c: Likewise
20671 * tree-ssa-forwprop.c: Likewise
20672 * tree-ssa-dce.c: Likewise
20673 * tree-ssa-ter.c: Likewise
20674 * tree-ssa-loop-prefetch.c: Likewise
20675 * tree-optimize.c: Likewise
20676 * tree-ssa-phiprop.c: Likewise
20677 * tree-object-size.c: Likewise
20678 * tree-outof-ssa.c: Likewise
20679 * tree-ssa-structalias.c: Likewise
20680 * tree-switch-conversion.c: Likewise
20681 * tree-ssa-reassoc.c: Likewise
20682 * tree-ssa-operands.c: Likewise
20683 * tree-vectorizer.c: Likewise
20684 * tree-vect-data-refs.c: Likewise
20685 * tree-vect-generic.c: Likewise
20686 * tree-vect-stmts.c: Likewise
20687 * tree-vect-patterns.c: Likewise
20688 * tree-vect-slp.c: Likewise
20689 * tree-vect-loop.c: Likewise
20690 * tree-ssa-loop-ivopts.c: Likewise
20691 * tree-ssa-loop-im.c: Likewise
20692 * tree-ssa-loop-niter.c: Likewise
20693 * tree-ssa-loop-unswitch.c: Likewise
20694 * tree-ssa-loop-manip.c: Likewise
20695 * tree-ssa-loop-ch.c: Likewise
20696 * tree-dump.c: Likewise
20697 * tree-complex.c: Likewise
20698
20699 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
20700 * tree-ssa-uninit.c: Likewise
20701 * tree-ssa-threadupdate.c: Likewise
20702 * tree-ssa-uncprop.c: Likewise
20703 * tree-ssa-ccp.c: Likewise
20704 * tree-ssa-dom.c: Likewise
20705 * tree-ssa-propagate.c: Likewise
20706 * tree-ssa-alias.c: Likewise
20707 * tree-dfa.c: Likewise
20708 * tree-cfgcleanup.c: Likewise
20709 * tree-sra.c: Likewise
20710 * tree-ssa-copy.c: Likewise
20711 * tree-ssa.c: Likewise
20712 * tree-profile.c: Likewise
20713 * tree-cfg.c: Likewise
20714 * tree-ssa-threadedge.c: Likewise
20715 * tree-vect-loop-manip.c: Likewise
20716
20717 * tree-inline.c: Do not include diagnostic.h and expr.h.
20718 Include rtl.h.
20719 (copy_decl_for_dup_finish): Do not use NULL_RTX.
20720
20721 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
20722 * tree-loop-distribution.c: Likewise.
20723
20724 2010-06-01 Jan Hubicka <jh@suse.cz>
20725
20726 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
20727
20728 2010-06-01 Jan Hubicka <jh@suse.cz>
20729
20730 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
20731 remove return value.
20732 (split_bbs_on_noreturn_calls) .... here.
20733 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
20734 * tree-flow.h (fixup_noreturn_call): New.
20735
20736 2010-06-01 Jan Hubicka <jh@suse.cz>
20737
20738 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
20739
20740 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
20741
20742 * tree.h (build_nt_call_list): Delete.
20743 * tree.c (build_nt_call_list): Delete.
20744
20745 2010-06-01 Jan Hubicka <jh@suse.cz>
20746
20747 * fwprop.c: Make emit-rtl.h include last.
20748 * rtlanal.c: Include emit-rtl.h.
20749 * genautomata.c: Output emit-rtl include into insn-automata.c
20750 * df-scan.c: Include emit-rtl.h.
20751 * haifa-sched.c: Indlude emit-rtl.h.
20752 * mode-switching.c: Indlude emit-rtl.h.
20753 * graph.c: Indlude emit-rtl.h.
20754 * sel-sched.c: Include emit-rtl.h.
20755 * sel-sched-ir.c: Include emit-rtl.h.
20756 * ira-build.c: Include emit-rtl.h.
20757 * emit-rtl.c (first_insn, last_insn): Remove defines.
20758 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
20759 Move to emit-rtl.h.
20760 (set_new_first_and_last_insn, get_last_insn_anywhere,
20761 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
20762 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
20763 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
20764 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
20765 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
20766 Use accessor functions.
20767 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
20768 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
20769 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
20770 mem_expr_equal_p): Move here from rtl.h.
20771 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
20772 Move here from emit-rtl.c; make inline.
20773 * cfglayout.h: Include emit-rtl.h.
20774 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
20775 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
20776 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
20777 mem_expr_equal_p, get_insns, set_first-insn,
20778 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
20779 * reg-stack.c: Include emit-rtl.h.
20780 * dce.c: Likewise.
20781
20782 2010-06-01 Jan Hubicka <jh@suse.cz>
20783
20784 * cgraph.h (tree_function_versioning): Update prototype.
20785 (cgraph_function_versioning): Update prototype.
20786 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
20787 bitmap.
20788 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
20789 (cgraph_materialize_clone, save_inline_function_body): Update use of
20790 tree_function_versioning.
20791 * tree-inline.c (copy_bb): Look for previous copied block to link
20792 after; fix debug output.
20793 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
20794 (copy_body): Likewise.
20795 (expand_call_inline): Update use of copy_body.
20796 (tree_function_versioning): Update use of copy body; accept
20797 blocks_to_copy and new_entry.
20798
20799 2010-06-01 Jan Hubicka <jh@suse.cz>
20800
20801 * gegenrtl.c: Remove unnecesary prototypes.
20802 (gendecl): Remove.
20803 (gendef): Produce static inline.
20804 (gencode): Remove.
20805 (main): Do not decode parameters; generate header only.
20806 * Makefile.in (genrtl.c): Remove.
20807
20808 2010-06-01 Jan Hubicka <jh@suse.cz>
20809
20810 * tree-switch-conversion.c (build_one_array): Make it readonly.
20811
20812 2010-06-01 Richard Guenther <rguenther@suse.de>
20813
20814 * optabs.c (init_optabs): Guard all accesses to reinit.
20815 * ipa-pure-const.c (propagate): Fix another typo.
20816 * opts.c (common_handle_option): Split assignment to bool.
20817 * c-opts.c (c_common_handle_option): Likewise.
20818
20819 2010-06-01 Arnaud Charlet <charlet@adacore.com>
20820 Matthew Gingell <gingell@adacore.com>
20821
20822 * doc/invoke.texi: Mention -fdump-ada-spec.
20823 * tree-dump.c (dump_files): Add ada-spec.
20824 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
20825 * tree-pass.h (tree_dump_index): Add TDI_ada.
20826 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
20827 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
20828 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
20829 * c-decl.c: Include c-ada-spec.h.
20830 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
20831 functions.
20832 (c_write_global_declarations): Add handling of -fdump-ada-spec.
20833 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
20834 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
20835 * c-ada-spec.h, c-ada-spec.c: New files.
20836
20837 2010-06-01 Richard Guenther <rguenther@suse.de>
20838
20839 PR lto/43853
20840 * ipa-pure-const.c (get_function_state): Hand back varying state
20841 if we do not have one.
20842 (has_function_state): New function.
20843 (duplicate_node_data): Adjust.
20844 (remove_node_data): Likewise.
20845 (pure_const_write_summary): Likewise.
20846 (propagate): Likewise. Fix typo.
20847
20848 2010-06-01 Jan Hubicka <jh@suse.cz>
20849
20850 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
20851 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
20852 (execute_all_ipa_transforms): Do not play with the states.
20853
20854 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20855
20856 * config/arm/t-linux-androideabi: New.
20857 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
20858
20859 2010-06-01 Jan Hubicka <jh@suse.cz>
20860
20861 * tree-inline.c (estimate_num_insns): For stdarg functions look
20862 into call statement to count cost of argument passing.
20863
20864 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
20865
20866 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
20867 argument for fprintf.
20868 (ix86_output_addr_diff_elt): Likewise.
20869 (x86_function_profiler): Likewise.
20870 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
20871 (LPREFIX): Likewise.
20872 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20873
20874 2010-05-31 Jakub Jelinek <jakub@redhat.com>
20875
20876 PR target/44338
20877 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
20878 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
20879 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
20880 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
20881 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
20882 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
20883 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
20884 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
20885 TARGET_FUSED_MADD.
20886
20887 2010-05-31 Jan Hubicka <jh@suse.cz>
20888
20889 * tree.h (tree_range_check_failed): Declare noreturn.
20890
20891 2010-05-31 Jan Hubicka <jh@suse.cz>
20892
20893 * gimple.c (gimple_call_builtin_p): New function.
20894 * gimple.h (gimple_call_builtin_p): Declare.
20895 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
20896 to exit.
20897 (execute_warn_function_return): BUILT_IN_RETURN is return.
20898 (split_critical_edges): Return edges are not critical.
20899 (is_ctrl_altering_stmt): Builtin_in_return is altering.
20900 (gimple_verify_flow_info): Handle built_in_return.
20901 (execute_warn_function_return): Handle built_in_return.
20902 * ipa-pure-const.c (check_call): Ignore builtin_return.
20903
20904 2010-05-31 Jakub Jelinek <jakub@redhat.com>
20905
20906 PR middle-end/44337
20907 * expr.c (expand_assignment): Don't store anything for out-of-bounds
20908 array accesses with non-MEM.
20909
20910 PR tree-optimization/44182
20911 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
20912 newly needs to end a bb is followed by debug stmts, instead return
20913 true from the function at the end.
20914 (maybe_move_debug_stmts_to_successors): New function.
20915 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
20916
20917 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
20918
20919 PR target/44161
20920 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
20921
20922 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
20923
20924 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
20925 for nested functions in non-optimized compilation.
20926
20927 2010-05-31 Richard Guenther <rguenther@suse.de>
20928
20929 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
20930
20931 2010-05-30 Jan Hubicka <jh@suse.cz>
20932
20933 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
20934
20935 2010-05-30 Richard Guenther <rguenther@suse.de>
20936
20937 PR lto/42975
20938 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
20939 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
20940 no longer needed.
20941
20942 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
20943
20944 * config/darwin.c (output_objc_section_asm_op): Add comment.
20945 (name_needs_quotes): Add '_' to list of valid comment chars.
20946 (machopic_output_function_base_name): Remove unneeded quotes.
20947 (darwin_encode_section_info): Adjust asm whitespace.
20948 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
20949 (ASM_OUTPUT_LOCAL): Ditto.
20950 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
20951 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
20952 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
20953
20954 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
20955
20956 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
20957 RS6000_OUTPUT_BASENAME unconditionally.
20958 (rs6000_output_function_epilogue): Likewise.
20959
20960 2010-05-30 Jan Hubicka <jh@suse.cz>
20961
20962 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
20963 nodes.
20964
20965 2010-05-30 Richard Guenther <rguenther@suse.de>
20966
20967 * tree-cfg.c (verify_gimple_assign_single): Implement
20968 verification for COND_EXPR rhs.
20969
20970 2010-05-30 Jan Hubicka <jh@suse.cz>
20971
20972 * cgraph.h (cgraph_dump_file): Declare.
20973 * cgraphunit.c (cgraph_dump_file): Export.
20974 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
20975
20976 2010-05-30 Jan Hubicka <jh@suse.cz>
20977
20978 * dwarf2out.c (reference_to_unused,
20979 premark_types_used_by_global_vars_helper): Avoid creation of new
20980 varpool nodes.
20981
20982 2010-05-30 Jan Hubicka <jh@suse.cz>
20983
20984 * cgraph.h (cgraph_node_cannot_return,
20985 cgraph_edge_cannot_lead_to_return): New functions.
20986 * cgraph.c (cgraph_node_cannot_return,
20987 cgraph_edge_cannot_lead_to_return): Use them.
20988 * ipa-pure-const.c (pure_const_names): New static var.
20989 (check_call): Handle calls not leading to return.
20990 (pure_const_read_summary): Dump info read.
20991 (propagate): Dump info about propagation process; ignore side effects
20992 of functions not leading to exit; fix handling of pure functions.
20993
20994 2010-05-30 Jan Hubicka <jh@suse.cz>
20995
20996 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
20997 for tail call epilogues.
20998
20999 2010-05-30 Jan Hubicka <jh@suse.cz>
21000
21001 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
21002 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
21003 dump files.
21004
21005 2010-05-29 Jan Hubicka <jh@suse.cz>
21006
21007 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
21008 node; remove references in node we no longer keep in cgrpah but need
21009 body of.
21010
21011 2010-05-29 Jan Hubicka <jh@suse.cz>
21012
21013 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
21014
21015 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21016
21017 PR target/44165
21018 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
21019
21020 2010-05-29 Jan Hubicka <jh@suse.cz>
21021
21022 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
21023 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
21024 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
21025 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
21026 debug_names_replaced_by, debug_update_ssa): Likewise.
21027 * sbitmap.c (debug_sbitmap): Likewise.
21028 * genrecog.c (debug_decision, debug_decision_list): Likewise.
21029 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
21030 debug_tree_chain): Likewise.
21031 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
21032 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
21033 * optabs.c (debug_optab_libfuncs): Likewise.
21034 (verify_loop_closed_ssa): Likewise.
21035 * value-prof.c (verify_histograms): Likewise.
21036 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
21037 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
21038 * cfghooks.c (verify_flow_info): Likewise.
21039 * fold-const.c (debug_fold_checksum): Likewise.
21040 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
21041 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
21042 Likewise.
21043 * omega.c (debug_omega_problem): Likewise.
21044 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
21045 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
21046 * dominance.c (verify_dominators, debug_dominance_info,
21047 debug_dominance_tree): Likewise.
21048 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
21049 * df_regno_debug, df_ref_debug,
21050 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
21051 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
21052 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
21053 * sel-sched.c (debug_state): Likewise.
21054 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
21055 Likewise.
21056 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
21057 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
21058 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
21059 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
21060 Likewise.
21061 * c-pretty-print.c (debug_c_tree): Likewise.
21062 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
21063 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
21064 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
21065 * ebitmap.c (debug_ebitmap): Likewise.
21066 * function.c (debug_find_var_in_block_tree): Likewise.
21067 * print-rtl.c (debug_rtx): Likewise.
21068 (debug_rtx_count): Likewise.
21069 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
21070 * stor-layout.c (debug_rli): Likewise.
21071 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
21072 * tree-data-ref.c (debug_data_references,
21073 debug_data_dependence_relations, debug_data_reference,
21074 debug_data_dependence_relation, debug_rdg_vertex,
21075 debug_rdg_component, debug_rdg): Likewise.
21076 * tree-affine.c (debug_aff): Likewise.
21077 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
21078 Likewise.
21079 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
21080 * emit-rtl.c (verify_rtl_sharing): Likewise.
21081 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
21082 debug_value_expressions): Likewise.
21083 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
21084 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
21085 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
21086 * cfglayout.c (verify_insn_chain): Likewise.
21087 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
21088 debug_clast_stmt, debug_generated_program): Likewise.
21089 * ggc-page.c (debug_print_page_list): Likewise.
21090 * tree-ssa-ter.c (debug_ter): Likewise.
21091 * graphite-dependences.c (debug_pddr): Likewise.
21092 * sched-deps.c (debug_ds): Likewise.
21093 * tree-ssa.c (verify_ssa): Likewise.
21094 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
21095 debug_scattering_functions, debug_iteration_domains, debug_pdr,
21096 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
21097 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
21098 * tree-inline.c (debug_find_tree): Likewise.
21099 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
21100 debug_ppl_powerset_matrix): Likewise.
21101 * var-tracking.c (debug_dv): Likewise.
21102 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
21103 * cfgloop.c (verify_loop_structure): Likewise.
21104 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
21105 * c-common.c (verify_sequence_points): Likewise.
21106 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
21107 debug_candidates, debug_rgn_dependencies): Likewise.
21108 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
21109 * debug_constraint_graph, debug_solution_for_var,
21110 debug_sa_points_to_info): Likewise.
21111 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
21112 Likewie.
21113 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
21114 debug_loops, debug_loop, debug_loop_num): Likewise.
21115 * passes.c (debug_pass): Likewise.
21116 (dump_properties): Likewise; add cfglayout property.
21117 (debug_properties): Likewise.
21118 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
21119 * varpool.c (debug_varpool): Likewise.
21120 * regcprop.c (debug_value_data): Likewise.
21121 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
21122 debug_immediate_uses_for): Likewise.
21123
21124 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21125
21126 PR bootstrap/44315
21127 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
21128 Filter out insn-flags.h.
21129
21130 2010-05-29 Jan Hubicka <jh@suse.cz>
21131
21132 * cgraph.h (struct varpool_node_set_def,
21133 struct cgraph_node_set_def): Remove unused AUX pointer.
21134 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
21135 VEC_empty macro.
21136
21137 2010-05-29 Jan Hubicka <jh@suse.cz>
21138
21139 PR middle-end/44324
21140 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
21141
21142 2010-05-29 Richard Guenther <rguenther@suse.de>
21143
21144 * lto-streamer.c (cached_bp): New global variable.
21145 (bitpack_create): Return the cached bitpack, if available.
21146 (bitpack_delete): Clear and cache the bitpack, if appropriate.
21147 (bp_pack_value): Remove redundant asserts.
21148
21149 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21150
21151 PR middle-end/44306
21152 * tree-if-conv.c (is_true_predicate): New.
21153 (is_predicated): Use is_true_predicate.
21154 (add_to_predicate_list): Same. Do not use unshare_expr.
21155 (add_to_dst_predicate_list): Same.
21156
21157 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21158
21159 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
21160 field on edges.
21161 (predicate_bbs): Same.
21162 (clean_predicate_lists): Same.
21163 (find_phi_replacement_condition): Do not AND the predicate from
21164 edge->aux.
21165
21166 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21167
21168 PR bootstrap/44315
21169 * Makefile.in (build/gencondmd.o): Add a missing `\'.
21170
21171 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21172
21173 PR target/44261
21174 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
21175 (negdf2): Adjust expander pattern and use negdf2_slow.
21176 (negsf2): Likewise.
21177
21178 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
21179
21180 * basic-block.h (struct control_flow_graph): Move last_label_uid field
21181 up.
21182 * df.h (struct df_base_ref): Move regno field up.
21183 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
21184 * expr.h (struct separate_ops): Move location field up.
21185 * optabs.h (struct optab_d): Move libcall_basename field down.
21186 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
21187 * config/i386/i386.h (struct machine_function): Convert call_abi field
21188 into a bitfield. Move cfa field to the end of the structure.
21189
21190 2010-05-29 Jan Hubicka <jh@suse.cz>
21191
21192 * varpool.c (varpool_get_node): Fix lookup.
21193
21194 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21195
21196 * config/spu/spu-protos.h: Do not include rtl.h. Protect
21197 RTL specific prototypes with #ifdef RTX_CODE.
21198 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
21199 * config/spu/t-spu-elf: Fix dependencies.
21200
21201 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
21202
21203 2010-05-29 Mike Stump <mikestump@comcast.net>
21204
21205 PR bootstrap/44315
21206 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
21207 TM_H when building to avoid dependency loops.
21208
21209 2010-05-29 Jan Hubicka <jh@suse.cz>
21210
21211 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
21212 refs and body; not the whole node for masters of materialized clones.
21213
21214 2010-05-29 Mike Stump <mikestump@comcast.net>
21215
21216 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
21217
21218 2010-05-29 Jan Hubicka <jh@suse.cz>
21219
21220 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
21221 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
21222 use of clone_function_name.
21223 * cgraph.h (cgraph_create_virtual_clone,
21224 cgraph_function_versioning): update prototypes.
21225 (clone_function_name): Declare.
21226 * ipa-cp.c (ipcp_insert_stage): Update call of
21227 cgraph_create_virtual_clone.
21228 * omp-low.c (create_omp_child_function_name): Use
21229 cgraph_create_virtual_clone.
21230 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
21231 (cgraph_function_versioning): Take SUFFIX argument; produce new name
21232 and make decl local.
21233
21234 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21235
21236 * vec.h: Include statistics.h
21237 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
21238 with VEC_H.
21239
21240 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21241
21242 * c-lex.c: Do not include c-tree.h.
21243 * c-pretty-print.c: Likewise.
21244 * c-opts.c: Likewise.
21245 * c-gimplify.c: Likewise.
21246 * c-common.c: Likewise.
21247 * c-dump.c: Likewise. Include c-common.h.
21248
21249 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21250
21251 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
21252 before including diagnostic-core.h.
21253 (c_cpp_error): New prototype moved from c-tree.h.
21254 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
21255 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
21256 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
21257 (c_cpp_error): Prototype moved to c-common.h.
21258 * Makefile.in: Update dependency for C_COMMON_H.
21259
21260 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21261
21262 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
21263 * c-common.c (c_register_addr_space): Remove here.
21264 * c-decl.c (c_register_addr_space): Re-add here.
21265
21266 2010-05-28 Mike Stump <mikestump@comcast.net>
21267
21268 * config/darwin-c.c: Remove c-tree.h include.
21269
21270 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21271
21272 * gcc.c: Include diagnostic.h.
21273 (error_count): Remove. All users changed to use errorcount.
21274 (programname): Remove. All users changed to use progname.
21275 (fancy_abort, internal_error, fatal_error, error, warning, inform,
21276 fnotice): Remove.
21277 (execute): Don't include "Internal error" and bug reporting
21278 information in argument of internal_error call.
21279 (process_command): Don't increment error_count after calling
21280 perror_with_name.
21281 (input_filename): Rename to gcc_input_filename. All users
21282 changed.
21283 (main): Call diagnostic_initialize. Register delete_temp_files
21284 with atexit. Use seen_error to test for errors.
21285 * gcc.h: Include diagnostic-core.h.
21286 (fatal_error, error, warning): Remove.
21287 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
21288 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
21289 (gcc.o): Update dependencies.
21290
21291 2010-05-28 Jeff Law <law@redhat.com>
21292
21293 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
21294 functions.
21295 * ira.h (ira_bad_reload_regno): Declare
21296 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
21297
21298 * ira-color.c (update_curr_costs): Free updated hard reg costs.
21299 (ira_reassign_conflict_allocnos): Remove bogus asserts.
21300 (allocno_reload_assign): Likewise.
21301
21302 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
21303
21304 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
21305 build1_stat.
21306
21307 2010-05-28 Richard Guenther <rguenther@suse.de>
21308
21309 PR lto/44312
21310 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
21311 Stream fixed-point constants mode.
21312 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
21313 and TYPE_PRECISION.
21314 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
21315 Stream fixed-point constants mode.
21316 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
21317 and TYPE_PRECISION.
21318
21319 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21320
21321 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
21322 only place it was called from.
21323 (number_of_latch_executions): Do not return chrec_dont_know when the
21324 may_be_zero is a runtime condition: instead, return a COND_EXPR
21325 including the may_be_zero condition.
21326 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
21327 of nb_iterations.
21328 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
21329 COND_EXPRs.
21330
21331 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21332
21333 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
21334 generate COND_EXPRs for degenerate_phi_result.
21335
21336 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21337
21338 PR middle-end/44293
21339 * tree-if-conv.c (if_convertible_loop_p): Check the
21340 if-convertibility of phi nodes in non predicated BBs.
21341
21342 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21343
21344 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
21345
21346 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21347
21348 PR driver/15303
21349 * gcc.c (inform, warning, inform): New functions.
21350 (fatal_ice): Rename to internal_error; change cmsgid parameter to
21351 gmsgid. All callers changed.
21352 (notice): Rename to fnotice; add parameter fp. All callers changed.
21353 (fatal_error): Rename to fatal_signal. All users changed.
21354 (fatal): Rename to fatal_error; change cmsgid parameter to
21355 gmsgid. All callers changed.
21356 (process_command): Use warning instead of error for warnings.
21357 (end_going_arg): Don't use _() around argument of error.
21358 (do_spec_1): Use inform for message from %n specs. Use warning
21359 instead of error for warnings.
21360 (main): Use inform for comparison messages. Use warning for
21361 message about unused linker input.
21362 (error): Increment error_count. Print "error: ".
21363 * gcc.h (fatal): Change to fatal_error.
21364 (warning): Declare.
21365 * config/darwin-driver.c (darwin_default_min_version): Use warning
21366 instead of fprintf for warnings.
21367 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
21368
21369 2010-05-28 Julian Brown <julian@codesourcery.com>
21370
21371 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
21372 (*thumb2_addsi3_compare0_scratch): New.
21373 * config/arm/constraints.md (Pv): New.
21374 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
21375 for ARM mode only.
21376 (*addsi3_compare0_scratch): Likewise.
21377
21378 2010-05-28 Jan Hubicka <jh@suse.cz>
21379
21380 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
21381 check.
21382 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
21383 only on local statics.
21384
21385 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
21386
21387 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
21388
21389 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
21390
21391 PR bootstrap/44314
21392 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
21393 (OPTION_GLIBC): Define.
21394
21395 2010-05-28 Jakub Jelinek <jakub@redhat.com>
21396
21397 PR debug/41048
21398 * dwarf2out.c (double_int_type_size_in_bits): New function.
21399 (round_up_to_align): Change first argument and return value to
21400 double_int.
21401 (field_byte_offset): Work internally on double_ints.
21402
21403 PR target/43636
21404 * builtins.c (expand_movstr): Use a temporary pseudo instead
21405 of target even when target is not NULL and not const0_rtx, but
21406 fails movstr predicate.
21407 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
21408
21409 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21410
21411 * final.c (rest_of_clean_state): Use %m in errors instead of
21412 strerror (errno).
21413 * gengtype.c (read_input_list, close_output_files): Use xstrerror
21414 instead of strerror.
21415 * toplev.c (process_options): Use %m in errors instead of strerror
21416 (errno).
21417 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
21418 (errno).
21419
21420 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
21421
21422 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
21423 (ix86_canonical_va_list_type): Make static. Add declaration.
21424 (ix86_enum_va_list): Make static. Reindent.
21425 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
21426 (ix86_canonical_va_list_type): Ditto.
21427 (ix86_enum_va_list): Ditto.
21428
21429 2010-05-28 Richard Guenther <rguenther@suse.de>
21430
21431 * lto-wrapper.c (run_gcc): With -save-temps generate a
21432 user-visible ltrans filename. Fixup ltrans unit numbering.
21433
21434 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
21435
21436 * c-common.c (c_common_nodes_and_builtins): Replace use
21437 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
21438 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
21439 to ix86_enum_va_list.
21440 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
21441 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
21442 (TARGET_ENUM_VA_LIST_P): Add hook description.
21443 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
21444 * target.h (gcc_target): Add enum_va_list hook.
21445
21446 PR bootstrap/44299
21447 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
21448 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
21449 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
21450
21451 2010-05-28 Alan Modra <amodra@gmail.com>
21452
21453 PR target/44266
21454 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
21455 emit_library_call machinery to set up __tls_get_addr calls.
21456
21457 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21458
21459 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
21460
21461 2010-05-28 Dodji Seketeli <dodji@redhat.com>
21462
21463 Revert fix for PR c++/44188
21464 * c-common.c (is_typedef_decl): Revert the moving of this
21465 definition ...
21466 * tree.c (is_typedef_decl): ... here.
21467 (typdef_variant_p): Revert the moving of this definition
21468 here from cp/tree.c.
21469 * c-common.h (is_typedef_decl): Revert the moving of this
21470 declaration ...
21471 * tree.h (is_typedef_decl): ... here.
21472 (typedef_variant_p): Revert the moving of this declaration here
21473 from cp/cp-tree.h
21474 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
21475 (gen_tagged_type_die): Revert the splitting out of ...
21476 (gen_type_die_with_usage): ... this function. Revert the anonymous
21477 tagged type handling.
21478 (gen_typedef_die): Revert emitting DW_TAG_typedef for
21479 typedefs naming anonymous tagged types.
21480
21481 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
21482
21483 * config/rs6000/rs6000-modes.def (PSImode): Delete.
21484
21485 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
21486
21487 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
21488 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
21489 throughout.
21490 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
21491 "xer" to "ca".
21492 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
21493 XER_REGS to CA_REGS throughout.
21494 * config/rs6000/rs6000.h: Same.
21495 (ADDITIONAL_REGISTER_NAMES): Add "xer".
21496 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
21497 that mode_iterator "P" is the size for arithmetic carries as well.
21498 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
21499
21500 2010-05-28 Jakub Jelinek <jakub@redhat.com>
21501
21502 PR bootstrap/44255
21503 * combine.c (struct rtx_subst_pair): Define unconditionally.
21504 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
21505 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
21506 Call make_compound_operation on pair->to.
21507 (propagate_for_debug): Don't call make_compound_operation here.
21508 Always use simplify_replace_fn_rtx.
21509
21510 2010-05-27 Sterling Augustine <sterling@tensilica.com>
21511
21512 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
21513 * config/xtensa/xtensa.c (override_options): Check
21514 TARGET_FORCE_NO_PIC and set flag_pic.
21515 * config/xtensa/xtensa.opt: Document -mforce-no-pic
21516
21517 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
21518
21519 PR bootstrap/44299
21520 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
21521 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
21522
21523 2010-05-27 Joseph Myers <joseph@codesourcery.com>
21524
21525 * diagnostic-core.h: New. Contents moved from diagnostic.h and
21526 toplev.h.
21527 * diagnostic.c: Don't include toplev.h.
21528 (progname): Define. Moved from toplev.c.
21529 (seen_error): New function.
21530 * diagnostic.h: Include diagnostic-core.h.
21531 (diagnostic_t, emit_diagnostic): Don't declare here.
21532 * toplev.c (progname): Move to toplev.c.
21533 (emit_debug_global_declarations, compile_file, finalize,
21534 do_compile, toplev_main): Use seen_error.
21535 * toplev.h: Include diagnostic-core.h.
21536 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
21537 internal_error, warning, warning_at, error, error_n, error_at,
21538 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
21539 verbatim, fnotice, progname): Move to diagnostic-core.h.
21540 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
21541 (expand_builtin_expect): Use seen_error.
21542 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
21543 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
21544 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
21545 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
21546 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
21547 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
21548 errorcount for errors.
21549 * c-opts.c (c_common_finish): Use seen_error.
21550 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
21551 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
21552 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
21553 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
21554 (get_coverage_counts): Use seen_error.
21555 * dwarf2out.c (dwarf2out_finish): Use seen_error.
21556 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
21557 gimplify_body): Use seen_error.
21558 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
21559 * ipa-pure-const.c (gate_pure_const): Use seen_error.
21560 * ipa-reference.c (gate_reference): Use seen_error.
21561 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
21562 * lambda-code.c: Include diagnostic-core.h instead of
21563 diagnostic.h.
21564 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
21565 * lto-compress.c: Include diagnostic-core.h instead of
21566 diagnostic.h.
21567 * lto-section-in.c: Include diagnostic-core.h instead of
21568 diagnostic.h.
21569 * lto-streamer-out.c: Include diagnostic-core.h instead of
21570 diagnostic.h.
21571 * lto-streamer.c: Include diagnostic-core.h instead of
21572 diagnostic.h.
21573 (gate_lto_out): Use seen_error.
21574 * matrix-reorg.c: Include diagnostic-core.h instead of
21575 diagnostic.h.
21576 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
21577 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
21578 (gate_expand_omp, lower_omp_1): Use seen_error.
21579 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
21580 (rest_of_decl_compilation, rest_of_type_compilation,
21581 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
21582 * tree-cfg.c (label_to_block_fn): Use seen_error.
21583 * tree-inline.c (optimize_inline_calls): Use seen_error.
21584 * tree-mudflap.c (mudflap_finish_file): Use
21585 seen_error.
21586 * tree-optimize.c (gate_all_optimizations,
21587 gate_all_early_local_passes, gate_all_early_optimizations): Use
21588 seen_error.
21589 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
21590 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
21591 (varpool_remove_unreferenced_decls,
21592 varpool_assemble_pending_decls): Use seen_error.
21593 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
21594 (TOPLEV_H, DIAGNOSTIC_H): Update.
21595 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
21596 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
21597 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
21598 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
21599 coverage.o, lambda-code.o): Update dependencies.
21600
21601 2010-05-25 Dodji Seketeli <dodji@redhat.com>
21602
21603 PR c++/44188
21604 * c-common.c (is_typedef_decl): Move this definition ...
21605 * tree.c (is_typedef_decl): ... here.
21606 (typdef_variant_p): Move definition here from cp/tree.c.
21607 * c-common.h (is_typedef_decl): Move this declaration ...
21608 * tree.h (is_typedef_decl): ... here.
21609 (typedef_variant_p): Move declaration here from cp/cp-tree.h
21610 * dwarf2out.c (is_naming_typedef_decl): New function.
21611 (gen_tagged_type_die): Split out of ...
21612 (gen_type_die_with_usage): ... this function. When an anonymous
21613 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
21614 is emitted for the typedef.
21615 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
21616 anonymous tagged types.
21617
21618 2010-05-27 Jason Merrill <jason@redhat.com>
21619
21620 * print-tree.c (debug_vec_tree): New fn.
21621 (print_vec_tree): New fn.
21622 * tree.h: Declare them.
21623 * gdbinit.in (pvt): New command.
21624
21625 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
21626
21627 * gdbinit.in (pdd): New command.
21628
21629 2010-05-27 Jan Hubicka <jh@suse.cz>
21630
21631 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
21632 (update_caller_keys): Return early if there are no callers;
21633 only update fibheap when decresing the key.
21634 (update_callee_keys): Avoid recursion.
21635 (decide_inlining_of_small_functions): When badness does not match;
21636 re-insert into fibheap.
21637
21638 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
21639
21640 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
21641 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
21642 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
21643 (ALL_HOST_OBJS): Now a union of the above two.
21644 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
21645 all files in ALL_HOST_FRONTEND_OBJS.
21646 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
21647
21648 * c-common.c: Pretend to be a backend file by undefining
21649 IN_GCC_FRONTEND (still need rtl.h here).
21650
21651 2010-05-27 Jan Hubicka <jh@suse.cz>
21652
21653 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
21654 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
21655
21656 2010-05-27 Jan Hubicka <jh@suse.cz>
21657
21658 * sched-ebb.c: Rename struct deps to struct deps_desc.
21659 * ddg.c: Likewise.
21660 * sel-sched-ir.c: Likewise.
21661 * sched-deps.c: Likewise.
21662 * sched-int.h: Likewise.
21663 * sched-rgn.c: Likewise.
21664
21665 2010-05-27 Jon Beniston <jon@beniston.com>
21666
21667 PR 43726
21668 * config/lm32/lm32.h: Remove definition of
21669 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
21670
21671 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
21672
21673 PR lto/44230
21674 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
21675
21676 2010-05-27 Richard Guenther <rguenther@suse.de>
21677
21678 PR tree-optimization/44284
21679 * tree-vect-stmts.c (vectorizable_assignment): Handle
21680 sign-changing conversions as simple copy.
21681
21682 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21683
21684 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
21685 Bionic C library.
21686 (__gthread_active_p): Check for pthread_create if compiling against
21687 Bionic C library.
21688
21689 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21690
21691 Support compilation for Android platform. Reimplement -mandroid.
21692
21693 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
21694 (*android*): Set ANDROID_DEFAULT.
21695 (arm*-*-linux*): Include linux-android.h.
21696 (arm*-*-eabi*): Don't include previous -mandroid implementation.
21697 * config/arm/eabi.h: Remove, move Android-specific parts ...
21698 * config/linux-android.h: ... here. New file.
21699 * config/arm/eabi.opt: Rename to ...
21700 * config/linux-android.opt: ... this.
21701 (mandroid): Allow -mno-android option. Initialize based on
21702 ANDROID_DEFAULT.
21703 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
21704 Move logic to corresponding LINUX_TARGET_* macros.
21705 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
21706 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
21707 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
21708 Android definitions.
21709 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
21710 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
21711 Document.
21712
21713 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21714
21715 Add support for Bionic C library
21716
21717 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
21718 macro.
21719 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
21720 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
21721
21722 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
21723 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
21724 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
21725 to support multiple C libraries. Handle Bionic.
21726 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
21727 (BIONIC_DYNAMIC_LINKER64): Define.
21728 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
21729 Update.
21730 (TARGET_HAS_SINCOS): Enable for Bionic.
21731
21732 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
21733 the last option specified on command line take effect.
21734 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
21735 (mbionic): New.
21736 (mglibc, muclibc): Update.
21737
21738 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
21739 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
21740 DEFAULT_LIBC.
21741
21742 * doc/invoke.texi (-mglibc, -muclibc): Update.
21743 (-mbionic): Document.
21744
21745 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21746
21747 * c-common.h (c_register_addr_space): Add prototype.
21748 (ADDR_SPACE_KEYWORD): Remove.
21749 * c-common.c (c_register_addr_space): New function.
21750 (c_addr_space_name): Reimplement.
21751 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
21752
21753 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
21754 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
21755
21756 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
21757 Remove TARGET_ADDR_SPACE_KEYWORDS.
21758
21759 2010-05-27 Joseph Myers <joseph@codesourcery.com>
21760
21761 * input.c: New file.
21762 * input.h (main_input_filename): Move declaration to toplev.h.
21763 * toplev.c (input_location, line_table): Move to input.c
21764 * toplev.h (main_input_filename): Move declaration from input.h.
21765 * tree.c (expand_location): Move to input.c.
21766 * Makefile.in (OBJS-common): Add input.o.
21767 (input.o): Add dependencies.
21768
21769 2010-05-27 Richard Guenther <rguenther@suse.de>
21770
21771 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
21772 for non-existant files.
21773 (fork_execute): Mark args_name file as deleted.
21774
21775 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
21776
21777 PR bootstrp/44287
21778 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
21779 (narrow_signed_type): Likewise.
21780
21781 2010-05-26 Jan Hubicka <jh@suse.cz>
21782
21783 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
21784 edge only when checking is enabled; check using former_clone_of;
21785 check inline clones too.
21786 (cgraph_materialize_clone): Record former_clone_of pointer.
21787 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
21788 combining redirections; dump args_to_skip bitmap
21789 (cgraph_materialize_all_clones): Do no redirection here.
21790 * ipa-inline.c (inline_transform): Do redirection here.
21791 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
21792 cheking only).
21793
21794 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
21795
21796 * config/avr/avr-c.c: Do not include regs.h.
21797 Include cpplib.h for cpp_define and tree.h for c-common.h.
21798 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
21799 * config/avr/t-avr: Fix dependencies for avr-c.o.
21800
21801 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
21802
21803 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
21804 string instead of SYMBOL_REF rtx.
21805 * rtl.h (set_stack_check_libfunc): Move prototype from here...
21806 * libfuncs.h: ...to here. Adjust for explow.c change.
21807
21808 2010-05-26 Joseph Myers <joseph@codesourcery.com>
21809
21810 * pretty-print.c: Don't include ggc.h.
21811 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
21812 (identifier_to_locale): Use them for allocation.
21813 * pretty-print.h (identifier_to_locale_alloc,
21814 identifier_to_locale_free): Declare.
21815 * toplev.c (alloc_for_identifier_to_locale): New.
21816 (general_init): Set identifier_to_locale_alloc and
21817 identifier_to_locale_free.
21818 * Makefile.in (pretty-print.o): Update dependencies.
21819
21820 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
21821
21822 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
21823 pointer types if they have different alignment or mode.
21824
21825 2010-05-26 Anatoly Sokolov <aesok@post.ru>
21826
21827 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21828 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21829 * config/sparc/sparc-protos.h (function_value): Remove declaration.
21830 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
21831 sparc_function_value_regno_p): New functions.
21832 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21833 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21834 (function_value): Rename to...
21835 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
21836 argument to 'outgoing'.
21837 (function_arg_record_value, function_arg_union_value,
21838 function_arg_vector_value): Update comment.
21839
21840 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
21841
21842 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
21843 (fde_needed_for_eh_p): New predicate.
21844 (output_call_frame_info): Use it throughout to decide whether FDEs
21845 are needed for EH purpose.
21846 (dwarf2out_begin_prologue): Reorder assignments.
21847
21848 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21849
21850 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
21851 special case loop->header.
21852 (is_predicated): New.
21853 (if_convertible_loop_p): Call it.
21854
21855 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21856
21857 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
21858 iterator in parameter. Do not generate code during the analysis.
21859 (tree_if_convert_cond_stmt): Removed.
21860 (tree_if_convert_stmt): Removed.
21861 (predicate_bbs): New.
21862 (if_convertible_loop_p): Call predicate_bbs.
21863 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
21864 now contains all the analysis part.
21865
21866 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21867
21868 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
21869 statements in the analysis part.
21870 (tree_if_convert_stmt): Update comment.
21871 (remove_conditions_and_labels): New.
21872 (combine_blocks): Call remove_conditions_and_labels.
21873 (tree_if_conversion): Update comment.
21874
21875 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21876
21877 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
21878 than 2 predecessors or more than 2 successors.
21879
21880 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21881
21882 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
21883 of loops in which the data dependence analysis fails.
21884
21885 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21886
21887 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
21888 CDI_POST_DOMINATORS.
21889 (tree_if_conversion): Same.
21890
21891 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21892
21893 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
21894
21895 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21896
21897 * tree-if-conv.c: Update copyright years. Fix comments.
21898 Fix indentation.
21899
21900 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
21901
21902 * builtin-types.def (BT_INT128): New primitive type.
21903 (BT_UINT128): Likewise.
21904 * c-common.c (c_common_r): Add __int128 keyword.
21905 (c_common_type_for_size): Handle __int128.
21906 (c_common_type_for_mode): Likewise.
21907 (c_common_signed_or_unsigned_type): Likewise.
21908 (c_common_nodes_and_builtins): Add builtin type
21909 if target supports 128-bit integer scalar.
21910 * c-common.h (enum rid): Add RID_INT128.
21911 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
21912 if target supports 128-bit integer scalar.
21913 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
21914 (finish_declspecs): Likewise.
21915 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
21916 (c_token_starts_declspecs): Likewise.
21917 (c_parser_declspecs): Likewise.
21918 (c_parser_attributes): Likewise.
21919 (c_parser_objc_selector): Likewise.
21920 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
21921 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
21922 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
21923 * tree.c (make_or_reuse_type): Likewise.
21924 (make_unsigned_type): Likewise.
21925 (build_common_tree_nodes_2): Likewise.
21926 * tree.h (enum integer_type_kind): Add itk_int128 and
21927 itk_unsigned_int128.
21928 (int128_integer_type_node): New define.
21929 (int128_unsigned_type_node): New define.
21930 * doc/extend.texi: Add documentation about __int128 type.
21931
21932 2010-05-26 Richard Guenther <rguenther@suse.de>
21933
21934 * tree-ssa-sccvn.c (copy_nary): Adjust.
21935 (copy_phis): Rename to ...
21936 (copy_phi): ... this. Adjust.
21937 (copy_references): Rename to ...
21938 (copy_reference): ... this. Adjust.
21939 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
21940 result into the valid table.
21941
21942 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
21943
21944 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
21945 insn-config.h, insn-codes.h, recog.h, and optabs.h.
21946
21947 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21948
21949 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
21950
21951 2010-05-26 Richard Guenther <rguenther@suse.de>
21952
21953 * opts.c (common_handle_option): Handle OPT_Ofast.
21954
21955 2010-05-26 Joseph Myers <joseph@codesourcery.com>
21956
21957 * diagnostic.c: Don't include opts.h.
21958 (permissive_error_option): Define.
21959 (diagnostic_initialize): Take n_opts parameter. Allocate memory
21960 for classify_diagnostic. Don't use memset for
21961 classify_diagnostic. Initialize new and recently added fields.
21962 (diagnostic_classify_diagnostic): Use context->n_opts instead of
21963 N_OPTS.
21964 (diagnostic_report_diagnostic): Pass context parameter to
21965 diagnostic_report_warnings_p. Use option_enabled and option_name
21966 hooks from context.
21967 (emit_diagnostic): Use permissive_error_option.
21968 (permerror): Likewise.
21969 * diagnostic.h: Don't include options.h.
21970 (struct diagnostic_context): Add n_opts, opt_permissive,
21971 inhibit_warnings, warn_system_headers, option_enabled and
21972 option_name fields. Change classify_diagnostic to a pointer.
21973 * opts-diagnostic.h: New file.
21974 * opts.c: Include opts-diagnostic.h.
21975 (common_handle_option): Set global_dc fields for -Wfatal-errors,
21976 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
21977 (option_name): New function.
21978 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
21979 (c_common_handle_option): Set global_dc->permissive for
21980 -fpermissive.
21981 * c-common.c (c_cpp_error): Save and restore
21982 global_dc->warn_system_headers, not variable warn_system_headers.
21983 * toplev.c: Include opts-diagnostic.h.
21984 (general_init): Update call to diagnostic_initialize. Set
21985 global_dc->show_column, global_dc->option_enabled and
21986 global_dc->option_name.
21987 (process_options): Don't set global_dc fields here.
21988 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
21989 (diagnostic.o, opts.o, toplev.o): Update dependencies.
21990
21991 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
21992
21993 * config/picochip/picochip.md (movsi): Split a movsi from a
21994 const after reload.
21995
21996 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21997
21998 * ggc-zone.c: Update copyright year.
21999 (poison_region): Mark memory for Valgrind as undefined before
22000 memset () call and inaccessible afterwards.
22001 (ggc_pch_total_size): Change type of i to int.
22002
22003 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22004
22005 * ggc-common.c (ggc_free_overhead): Allow empty slot.
22006
22007 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22008
22009 * ggc-common.c: Update copyright year.
22010 (ggc_rlimit_bound): Remove prototype. Compile only if
22011 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
22012 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
22013 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
22014 (ggc_min_heapsize_heuristic): Likewise.
22015
22016 2010-05-26 Richard Guenther <rguenther@suse.de>
22017
22018 PR rtl-optimization/44164
22019 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
22020 no-common access-path disambiguation.
22021 (indirect_ref_may_alias_decl_p): Adjust.
22022 (indirect_refs_may_alias_p): Likewise.
22023 (refs_may_alias_p_1): Likewise.
22024
22025 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22026
22027 * c-typeck.c: Do not include expr.h.
22028
22029 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22030
22031 * rtl.h (decl_default_tls_model): Move prototype from here...
22032 * output.h: ...to here.
22033 * c-decl.c: Do not include rtl.h.
22034 * c-pragma.c: Likewise.
22035 * c-parser.c: Likewise.
22036 * c-gimplify.c: Likewise. And also not hard-reg-set.
22037 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
22038 FIXME note for it. Add a FIXME note for expr.h.
22039 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
22040 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
22041 defined.
22042
22043 2010-05-26 Jakub Jelinek <jakub@redhat.com>
22044
22045 PR target/44199
22046 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
22047 or total_size is larger than red zone size for non-V4 ABI, emit a
22048 stack_tie resp. frame_tie insn before stack pointer restore.
22049 * config/rs6000/rs6000.md (frame_tie): New insn.
22050
22051 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
22052
22053 * function.h (struct function): Add can_throw_non_call_exceptions bit.
22054 * lto-streamer-in.c (input_function): Stream it in.
22055 * lto-streamer-out.c (output_function): Stream it out.
22056 * function.c (allocate_struct_function): Set it.
22057 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
22058 for flag_non_call_exceptions.
22059 * cfgbuild.c (control_flow_insn_p): Likewise.
22060 (make_edges): Likewise.
22061 * cfgexpand.c (expand_stack_alignment): Likewise.
22062 * combine.c (distribute_notes): Likewise.
22063 * cse.c (cse_extended_basic_block): Likewise.
22064 * except.c (insn_could_throw_p): Likewise.
22065 * gcse.c (simple_mem): Likewise.
22066 * ipa-pure-const.c (check_call): Likewise.
22067 (check_stmt ): Likewise.
22068 * lower-subreg.c (lower-subreg.c): Likewise.
22069 * optabs.c (emit_libcall_block): Likewise.
22070 (prepare_cmp_insn): Likewise.
22071 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
22072 * postreload.c (rest_of_handle_postreload): Likewise.
22073 * reload1.c (reload_as_needed): Likewise.
22074 (emit_input_reload_insns): Likewise.
22075 (emit_output_reload_insns): Likewise.
22076 (fixup_abnormal_edges): Likewise.
22077 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
22078 * store-motion.c (find_moveable_store): Likewise.
22079 * tree-eh.c (stmt_could_throw_p): Likewise.
22080 (tree_could_throw_p): Likewise.
22081 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22082 * config/arm/arm.c (arm_expand_prologue): Likewise.
22083 (thumb1_expand_prologue): Likewise.
22084 * config/rx/rx.md (cbranchsf4): Likewise.
22085 (cmpsf): Likewise.
22086 * config/s390/s390.c (s390_emit_prologue): Likewise.
22087 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
22088 (inline_forbidden_into_p): New predicate.
22089 (expand_call_inline): Use it to forbid inlining.
22090 (tree_can_inline_p): Likewise.
22091
22092 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22093
22094 * config/i386/i386-c.c: Do not include rtl.h.
22095 * config/i386/t-i386: Update dependencies.
22096
22097 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22098
22099 * attribs.c: Do not include rtl.h.
22100 * Makefile.in: Update dependencies.
22101
22102 2010-05-25 Anatoly Sokolov <aesok@post.ru>
22103
22104 * double-int.h (double_int_and): New.
22105 * combine.c (try_combine): Clean up, use double_int_* and
22106 immed_double_int_const functions.
22107
22108 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22109
22110 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
22111 stderr to /dev/null instead of grep -q.
22112 * configure: Regenerate.
22113
22114 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22115
22116 * Makefile.in (EXCEPT_H): Fix typo.
22117
22118 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
22119
22120 * ira-build.c (update_conflict_hard_reg_costs): New.
22121 (ira_build): Call update_conflict_hard_reg_costs.
22122
22123 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22124
22125 PR debug/41371
22126 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
22127 ENABLE_CHECKING.
22128 (intersect_loc_chains): Walk the s2var's loc_chain together
22129 with s1node chain as long as the locations are equal, don't
22130 call find_loc_in_1pdv in that case.
22131
22132 PR debug/42801
22133 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
22134 (copy_bind_expr): ... instead of here.
22135 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
22136 if the block hasn't been remapped.
22137 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
22138 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
22139
22140 2010-05-25 Richard Guenther <rguenther@suse.de>
22141
22142 PR middle-end/44069
22143 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
22144 out-of-bounds array accesses.
22145
22146 2010-05-25 Richard Guenther <rguenther@suse.de>
22147
22148 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
22149 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
22150 (run_gcc): Re-organize to make cleanup easier.
22151
22152 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22153
22154 * config/s390/s390.c (optimization_options): Fix and move the
22155 flag_prefetch_loop_arrays override ...
22156 (override_options): ... here.
22157
22158 2010-05-25 Joseph Myers <joseph@codesourcery.com>
22159
22160 * diagnostic.c: Don't include plugin.h.
22161 (diagnostic_report_diagnostic): Don't handle plugins specially
22162 here. Pass context to internal_error callback.
22163 * diagnostic.h (struct diagnostic_context): Add context parameter
22164 to internal_error callback.
22165 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
22166 * plugin.h (struct diagnostic_context): Declare.
22167 (warn_if_plugins, plugins_internal_error_function): Declare.
22168 * toplev.c (general_init): Set global_dc->internal_error.
22169 * Makefile.in (diagnostic.o): Update dependencies.
22170
22171 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
22172
22173 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
22174 * config/rs6000/t-darwin64: New.
22175 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
22176 build crt2.
22177
22178 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
22179
22180 PR 44203
22181 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
22182 match the original (and intended) behaviour before r159557. This
22183 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
22184 in two ways.
22185
22186 2010-05-25 Richard Guenther <rguenther@suse.de>
22187
22188 * doc/invoke.texi: Document -Ofast.
22189 * target.h (struct gcc_target): Add handle_ofast.
22190 * target-def.h (TARGET_HANDLE_OFAST): Add.
22191 (TARGET_INITIALIZER): Adjust.
22192 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
22193 * common.opt (Ofast): Add.
22194
22195 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22196
22197 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
22198 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
22199
22200 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22201
22202 PR target/43610
22203 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
22204 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
22205 false_rtx. Use false_rtx to compute the correct *ptest for reversed
22206 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
22207
22208 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22209
22210 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
22211 DW_OP_minus with negated offset instead of DW_OP_plus.
22212 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
22213
22214 2010-05-25 Wei Guozhi <carrot@google.com>
22215
22216 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
22217 tst instruction and a new alternative.
22218 * config/arm/constraints.md (Pu): New constraint.
22219
22220 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
22221
22222 * function.c (assign_stack_local_1): Initialize variable
22223 to avoid warning when bootstrapping at -O3.
22224
22225 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
22226
22227 * configure.ac (all_lang_makefiles): Remove everything related to it.
22228 * configure: Regenerate.
22229 * Makefile.in: Fix reference to ada Make-lang.in.
22230 Remove support for LANG_MAKEFILES.
22231
22232 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
22233 Sandra Loosemore <sandra@codesourcery.com>
22234
22235 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
22236 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
22237 description. Add arm_neon_fp16_ok.
22238 (Add Options): Add arm_neon and arm_neon_fp16.
22239
22240 2010-05-24 Joseph Myers <joseph@codesourcery.com>
22241
22242 * diagnostic.c: Don't include flags.h.
22243 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
22244 context parameters. Check flags in the context passed as a parameter.
22245 (diagnostic_build_prefix): Add context parameter. Check
22246 show_column flag in context.
22247 (diagnostic_action_after_output): Check fatal_errors flag in context.
22248 (diagnostic_report_current_module): Check show_column flag in context.
22249 (default_diagnostic_starter): Update call to
22250 diagnostic_build_prefix.
22251 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
22252 (emit_diagnostic): Pass context to permissive_error_kind.
22253 (permerror): Pass context to permissive_error_kind.
22254 * diagnostic.h (struct diagnostic_context): Add show_column,
22255 pedantic_errors, permissive and fatal_errors fields.
22256 (diagnostic_build_prefix): Update prototype.
22257 * langhooks.c
22258 * toplev.c (process_options): Set flags in global_dc from
22259 flag_show_column, flag_pedantic_errors, flag_permissive,
22260 flag_fatal_errors.
22261 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
22262 to diagnostic_build_prefix.
22263 * Makefile.in (diagnostic.o): Update dependencies.
22264
22265 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
22266
22267 * config/i386/ia32intrin.h (__crc32q): Define only if
22268 __SSE4_2__ is defined.
22269
22270 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
22271
22272 PR target/44132
22273 PR middle-end/43602
22274 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
22275 DECL_VISIBILITY_SPECIFIED.
22276 (emutls_decl): Set DECL_PRESERVE_P and copy
22277 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
22278 (emutls_finalize_control_var): New callback.
22279 (emutls_finish): Finalize emutls control variables.
22280 * toplev.c (compile_file): Move the call to emutls_finish ()
22281 before varpool_assemble_pending_decls ().
22282
22283 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
22284
22285 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
22286 added to the preprocessor condition.
22287
22288 2010-05-24 Paul Brook <paul@codesourcery.com>
22289
22290 * gengtype-lex.l: Add HARD_REG_SET.
22291 * expr.c (expand_expr_real_1): Record writes to hard registers.
22292 * function.c (rtl_data): Add asm_clobbers.
22293 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
22294 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
22295 Use crtl->asm_clobbers.
22296
22297 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22298
22299 * doc/makefile.texi (Makefile): Mention stages 'profile'
22300 and 'feedback' for profiledbootstrap.
22301
22302 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
22303
22304 PR target/44245
22305 * config/i386/i386.c (def_builtin): Properly check
22306 OPTION_MASK_ISA_64BIT.
22307
22308 2010-05-23 Joseph Myers <joseph@codesourcery.com>
22309
22310 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
22311 typedefs with different but compatible types. Allow duplicate
22312 typedefs with the same type except for pedantic non-C1X, but give
22313 warning for variably modified types.
22314 * c-typeck.c (tagged_types_tu_compatible_p,
22315 function_types_compatible_p, type_lists_compatible_p,
22316 comptypes_internal): Add parameter different_types_p; set
22317 *different_types_p for different but compatible types. All
22318 callers changed.
22319 (comptypes_check_different_types): New.
22320 * c-tree.h (comptypes_check_different_types): Declare.
22321
22322 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
22323
22324 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
22325 * jump.c: Include basic-block.h.
22326 * profile.c: Likewise.
22327 * tree-profile.c: Likewise.
22328 * coverage.c: Likewise.
22329 * basic-block.h (optimize_function_for_size_p): Move to function.h.
22330 (optimize_function_for_speed_p): Likewise.
22331 * function.h (optimize_function_for_size_p,
22332 optimize_function_for_speed_p): Moved here from basic-block.h.
22333 * Makefile.in: Update dependencies.
22334
22335 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22336
22337 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
22338 before calling make; allow override through $MAKE.
22339 * doc/invoke.texi (Optimize Options): Document override.
22340
22341 2010-05-23 Anatoly Sokolov <aesok@post.ru>
22342
22343 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
22344 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22345 (rs6000_mode_dependent_address_ptr): Make static.
22346 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22347 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
22348 Remove.
22349
22350 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
22351
22352 PR target/43869
22353 * config/i386/i386.c: Make sure that the correct regparm is passed.
22354
22355 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
22356
22357 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
22358 * sbitmap.c: ...to here to internalize sbitmap element access.
22359 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
22360 Explain why basic-block.h is included.
22361 * function.h: Include tm.h for CUMULATIVE_ARGS.
22362 * Makefile.in: Update dependencies.
22363
22364 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
22365
22366 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
22367 New core types.
22368 * sbitmap.h (struct sbitmap_def): Do not typedef here.
22369 * sbitmap.c: Include sbitmap.h.
22370 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
22371 hard-reg-set.h. Split everything related to regsets out from here...
22372 * regset.h: ...to here. New file.
22373 * df.h: Include regset.h and sbitmap.h.
22374 * tree-flow.h: Likewise.
22375 * cfgloop.h: Likewise.
22376 * except.h: Do not include sbitmap.h. Include hashtab.h.
22377 * cgraph.h: Include vec.h and function.h.
22378 * reload.h (struct insn_chain): Change types of live_throughout
22379 and dead_or_set from regset_head to bitmap_head.
22380 (compute_use_by_pseudos): Be defined also if regset.h is not included.
22381 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
22382 spilled_regs from regset_head to bitmap_head to avoid dependency
22383 in regset.h.
22384 * sel-sched-ir.h: Include regset.h.
22385 * reload.c: Include df.h before reload.h.
22386 * caller-save.c: Likewise.
22387 * reload1.c: Likewise.
22388 * ira.c: Likewise.
22389 (mark_elimination): Update type of r to bitmap, consistent with
22390 DF_LR_IN.
22391 * dominance.c: Include bitmap.h.
22392 * modulo-sched.c: Include df.h.
22393 * cfganal.c: Include bitmap.h and sbitmap.h.
22394 * cfgbuild.c: Include sbitmap.h.
22395 * lcm.c: Include sbitmap.h.
22396 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
22397 * domwalk.c: Include sbitmap.h, exclude ggc.h.
22398 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
22399 * cselib.c: Include bitmap.h.
22400 * tree-optimize.c: Include regset.h.
22401 * stmt.c: Include bitmap.h.
22402 * Makefile.in: Update dependencies.
22403
22404 2010-05-22 Jan Hubicka <jh@suse.cz>
22405
22406 * cgraph.h (struct varpool_node): Add same_comdat_group.
22407 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
22408 pointer.
22409 (output_varpool): Update call of lto_output_varpool_node.
22410 (input_varpool): Read same_comdat_group pointer.
22411 (input_varpool_1): Fixup same_comdat_group pointer.
22412 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
22413 group is needed, all are.
22414 * varpool.c (varpool_remove_node): Remove node from same comdat group
22415 linklist too.
22416 (varpool_analyze_pending_decls): Walk same comdat groups.
22417
22418 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
22419
22420 * rtl.h (union rtunion_def): Remove rt_bit member.
22421 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
22422 * print-rtl (print_rtx): Do not print the member.
22423 * gengtype.c (adjust_field_rtx_def): Do not handle it.
22424 * gengenrtl.c (type_from_format): Likewise.
22425 (accessor_from_format): Likewise.
22426
22427 2010-05-22 Joseph Myers <joseph@codesourcery.com>
22428
22429 * dbgcnt.c: Include toplev.h instead of errors.h.
22430 * ira-emit.c: Don't include errors.h.
22431 * ira.c: Include toplev.h instead of errors.h.
22432 * lto-compress.c: Include toplev.h instead of errors.h.
22433 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
22434 ira.o, dbgcnt.o): Update dependencies.
22435
22436 2010-05-22 Richard Guenther <rguenther@suse.de>
22437
22438 * gimple.c (gimple_types_compatible_p): Check type qualifications
22439 before merging pointer to complete and pointer to incomplete type.
22440 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
22441 we use our own resolution algorithm. The gold linker plugin
22442 doesn't do the job we want it to do here.
22443
22444 2010-05-22 Anatoly Sokolov <aesok@post.ru>
22445
22446 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22447 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22448 (sparc_mode_dependent_address_p): New function.
22449
22450 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22451
22452 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
22453
22454 * timevar.c: Do not include any core headers.
22455 (timevar_print): De-i18n-ize.
22456 (print_time): Likewise.
22457 * timevar.h (timevar_push, timevar_pop): Make inline functions.
22458
22459 2010-05-21 Joseph Myers <joseph@codesourcery.com>
22460
22461 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
22462 langhooks-def.h.
22463 (diagnostic_initialize): Initialize x_data not last_function.
22464 (diagnostic_report_current_function): Move to tree-diagnostic.c.
22465 (default_diagnostic_starter): Call
22466 diagnostic_report_current_module not
22467 diagnostic_report_current_function.
22468 (diagnostic_report_diagnostic): Initialize x_data not
22469 abstract_origin.
22470 (verbatim): Likewise.
22471 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
22472 x_data.
22473 (struct diagnostic_context): Change last_function to x_data.
22474 (diagnostic_auxiliary_data): Replace with
22475 diagnostic_context_auxiliary_data and
22476 diagnostic_info_auxiliary_data.
22477 (diagnostic_last_function_changed, diagnostic_set_last_function,
22478 diagnostic_report_current_function): Move to tree-diagnostic.h.
22479 (print_declaration, dump_generic_node, print_generic_stmt,
22480 print_generic_stmt_indented, print_generic_expr,
22481 print_generic_decl, debug_c_tree, dump_omp_clauses,
22482 print_call_name, debug_generic_expr, debug_generic_stmt,
22483 debug_tree_chain, default_tree_printer): Move to
22484 tree-pretty-print.h.
22485 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
22486 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
22487 gimple-pretty-print.h.
22488 * pretty-print.c: Don't include tree.h
22489 (pp_base_format): Don't handle %K here.
22490 (pp_base_tree_identifier): Move to tree-pretty-print.c.
22491 * pretty-print.h (text_info): Change abstract_origin to x_data.
22492 (pp_tree_identifier, pp_unsupported_tree,
22493 pp_base_tree_identifier): Move to tree-pretty-print.h.
22494 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
22495 tree-pretty-print.h: New files.
22496 * tree-pretty-print.c: Include tree-pretty-print.h.
22497 (percent_K_format): New. Moved from pretty-print.c.
22498 (pp_base_tree_identifier): Move from pretty-print.c.
22499 * c-objc-common.c: Include tree-pretty-print.h.
22500 (c_tree_printer): Handle %K here.
22501 * langhooks.c: Include tree-diagnostic.h.
22502 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
22503 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
22504 (default_tree_printer): Handle %K using percent_K_format.
22505 (general_init): Use default_tree_diagnostic_starter.
22506 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
22507 (free_lang_data): Use default_tree_diagnostic_starter.
22508 * c-pretty-print.c: Include tree-pretty-print.h.
22509 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22510 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22511 * dwarf2out.c: Include tree-pretty-print.h.
22512 * except.c: Include tree-pretty-print.h.
22513 * gimple-pretty-print.c: Include tree-pretty-print.h and
22514 gimple-pretty-print.h.
22515 * gimplify.c: Include tree-pretty-print.h.
22516 * graphite-poly.c: Include tree-pretty-print.h and
22517 gimple-pretty-print.h.
22518 * ipa-cp.c: Include tree-pretty-print.h.
22519 * ipa-inline.c: Include gimple-pretty-print.h.
22520 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22521 * ipa-pure-const.c: Include gimple-pretty-print.h.
22522 * ipa-struct-reorg.c: Include tree-pretty-print.h and
22523 gimple-pretty-print.h.
22524 * ipa-type-escape.c: Include tree-pretty-print.h.
22525 * print-rtl.c: Include tree-pretty-print.h.
22526 * print-tree.c: Include gimple-pretty-print.h.
22527 * sese.c: Include tree-pretty-print.h.
22528 * tree-affine.c: Include tree-pretty-print.h.
22529 * tree-browser.c: Include tree-pretty-print.h.
22530 * tree-call-cdce.c: Include gimple-pretty-print.h.
22531 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22532 * tree-chrec.c: Include tree-pretty-print.h.
22533 * tree-data-ref.c: Include tree-pretty-print.h and
22534 gimple-pretty-print.h.
22535 * tree-dfa.c: Include tree-pretty-print.h.
22536 * tree-if-conv.c: Include tree-pretty-print.h and
22537 gimple-pretty-print.h.
22538 * tree-inline.c: Include tree-pretty-print.h.
22539 * tree-into-ssa.c: Include tree-pretty-print.h and
22540 gimple-pretty-print.h.
22541 * tree-nrv.c: Include tree-pretty-print.h.
22542 * tree-object-size.c: Include tree-pretty-print.h and
22543 gimple-pretty-print.h.
22544 * tree-outof-ssa.c: Include tree-pretty-print.h and
22545 gimple-pretty-print.h.
22546 * tree-parloops.c: Include tree-pretty-print.h and
22547 gimple-pretty-print.h.
22548 * tree-predcom.c: Include tree-pretty-print.h and
22549 gimple-pretty-print.h.
22550 * tree-scalar-evolution.c: Include tree-pretty-print.h and
22551 gimple-pretty-print.h.
22552 * tree-sra.c: Include tree-pretty-print.h.
22553 * tree-ssa-address.c: Include tree-pretty-print.h.
22554 * tree-ssa-alias.c: Include tree-pretty-print.h.
22555 * tree-ssa-ccp.c: Include tree-pretty-print.h and
22556 gimple-pretty-print.h.
22557 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
22558 * tree-ssa-copy.c: Include tree-pretty-print.h and
22559 gimple-pretty-print.h.
22560 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
22561 * tree-ssa-dce.c: Include tree-pretty-print.h and
22562 gimple-pretty-print.h.
22563 * tree-ssa-dom.c: Include tree-pretty-print.h and
22564 gimple-pretty-print.h.
22565 * tree-ssa-dse.c: Include gimple-pretty-print.h.
22566 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
22567 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
22568 * tree-ssa-live.c: Include tree-pretty-print.h and
22569 gimple-pretty-print.h.
22570 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
22571 gimple-pretty-print.h.
22572 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
22573 gimple-pretty-print.h.
22574 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
22575 gimple-pretty-print.h.
22576 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
22577 gimple-pretty-print.h.
22578 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
22579 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
22580 * tree-ssa-operands.c: Include tree-pretty-print.h and
22581 gimple-pretty-print.h.
22582 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
22583 gimple-pretty-print.h.
22584 * tree-ssa-pre.c: Include tree-pretty-print.h and
22585 gimple-pretty-print.h.
22586 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
22587 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
22588 gimple-pretty-print.h.
22589 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
22590 gimple-pretty-print.h.
22591 * tree-ssa-sink.c: Include gimple-pretty-print.h.
22592 * tree-ssa-ter.c: Include tree-pretty-print.h and
22593 gimple-pretty-print.h.
22594 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
22595 * tree-ssa.c: Include tree-pretty-print.h and
22596 gimple-pretty-print.h.
22597 * tree-stdarg.c: Include gimple-pretty-print.h.
22598 * tree-switch-conversion.c: Include gimple-pretty-print.h.
22599 * tree-tailcall.c: Include tree-pretty-print.h and
22600 gimple-pretty-print.h.
22601 * tree-vect-data-refs.c: Include tree-pretty-print.h and
22602 gimple-pretty-print.h.
22603 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
22604 gimple-pretty-print.h.
22605 * tree-vect-loop.c: Include tree-pretty-print.h and
22606 gimple-pretty-print.h.
22607 * tree-vect-patterns.c: Include gimple-pretty-print.h.
22608 * tree-vect-slp.c: Include tree-pretty-print.h and
22609 gimple-pretty-print.h.
22610 * tree-vect-stmts.c: Include tree-pretty-print.h and
22611 gimple-pretty-print.h.
22612 * tree-vectorizer.c: Include tree-pretty-print.h.
22613 * tree-vrp.c: Include tree-pretty-print.h and
22614 gimple-pretty-print.h.
22615 * value-prof.c: Include tree-pretty-print.h and
22616 gimple-pretty-print.h.
22617 * var-tracking.c: Include tree-pretty-print.h.
22618 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
22619 (tree-diagnostic.o): New dependencies.
22620 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
22621 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
22622 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
22623 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
22624 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
22625 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
22626 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
22627 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
22628 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
22629 tree-ssa-address.o, tree-ssa-loop-niter.o,
22630 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
22631 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
22632 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
22633 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
22634 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
22635 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
22636 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
22637 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
22638 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
22639 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
22640 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
22641 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
22642 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
22643 tree-switch-conversion.o, var-tracking.o, value-prof.o,
22644 cfgexpand.o, pretty-print.o): Update dependencies.
22645
22646 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
22647
22648 * tree-ssa-structalias.c: Remove tm_p.h from include.
22649
22650 2010-05-21 Jeff Law <law@redhat.com>
22651
22652 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
22653
22654 2010-05-21 Jason Merrill <jason@redhat.com>
22655
22656 * tree-eh.c (cleanup_is_dead_in): New.
22657 (lower_try_finally): Don't generate a dead cleanup region.
22658 (lower_cleanup): Likewise.
22659
22660 2010-05-21 Jakub Jelinek <jakub@redhat.com>
22661
22662 PR debug/44223
22663 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
22664 unchain each use from the cyclic next_regno_use chain first.
22665
22666 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22667
22668 * real: Do not include gmp.h, mpfr.h, and mpc.h.
22669 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
22670 (real_value_negate, real_value_abs): New prototypes.
22671 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
22672 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
22673 new include file for interface between MPFR and REAL_VALUE_TYPE.
22674 * real.c: Include realmpfr.h.
22675 (real_arithmetic2): Remove legacy function.
22676 (real_value_negate): New.
22677 (real_value_abs): New.
22678 (mfpr_from_real, real_from_mpfr): Move from here...
22679 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
22680 * builtins.c: Include realmpfr.h.
22681 * fold-const.c: Include realmpfr.h.
22682 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
22683 (fold_negate_const): Likewise.
22684 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
22685 * toplev.c: Include realmpfr.h.
22686 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
22687 and real_value_negate.
22688 * fixed-value.c (check_real_for_fixed_mode): Likewise.
22689 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
22690 (vfp3_const_double_index): Likewise.
22691 (arm_print_operand): Likewise.
22692 * Makefile.in: Update dependencies.
22693
22694 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22695
22696 * config/s390/s390.c (override_options): Increase the default
22697 of max-completely-peel-times.
22698
22699 2010-05-21 Julian Brown <julian@codesourcery.com>
22700 Mark Mitchell <mark@codesourcery.com>
22701
22702 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
22703 sibling calls for Thumb-1.
22704 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
22705 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
22706 Thumb-2.
22707 (*call_insn, *call_value_insn): Don't use for Thumb-2.
22708 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
22709 for Thumb-2.
22710 (return): New expander.
22711 (*arm_return): New name for ARM return insn.
22712 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
22713
22714 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
22715
22716 * config.gcc (sparc64-*-rtems*): New target.
22717
22718 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
22719
22720 * tree.c (build_function_decl_skip_args): Fix grammar.
22721 (build_function_type_list_1): Fix typos, adjust formatting.
22722
22723 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22724
22725 * tree.h: Include real.h and fixed-value.h as basic datatypes.
22726 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
22727 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
22728 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
22729 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
22730 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
22731 tree-pretty-print.c, tree-loop-distribution.c,
22732 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
22733 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
22734 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
22735 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
22736 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
22737 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
22738 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
22739 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
22740 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
22741 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
22742 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
22743 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
22744 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
22745 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
22746 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
22747 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
22748 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
22749 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
22750 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
22751 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
22752 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
22753 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
22754 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
22755 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
22756 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
22757 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
22758 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
22759 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
22760 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
22761 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
22762 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
22763 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
22764 config/score/score7.c, config/score/score.c, config/arm/arm.c,
22765 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
22766 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
22767 config/bfin/bfin.c: Clean up redundant includes.
22768 * Makefile.in: Update accordingly.
22769
22770 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
22771
22772 PR middle-end/44204
22773 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
22774 statement has no arguments.
22775
22776 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
22777
22778 PR/44139
22779 * varasm.c (emutls_decl): Merge attributes to new decl.
22780
22781 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
22782
22783 PR middle-end/44101
22784 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
22785 around the uniquized constructor if its type requires a conversion.
22786
22787 2010-05-21 Jakub Jelinek <jakub@redhat.com>
22788
22789 PR debug/44205
22790 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
22791 at -O0 goto_locus of any of the incoming edges differs from
22792 goto_locus of outgoing edge, or gimple_location of any of the
22793 labels differs.
22794
22795 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
22796
22797 * ira.c (ira_non_ordered_class_hard_regs): Define.
22798 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
22799 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
22800 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
22801 cost of unaligned hard regs when allocating multi-reg pseudos.
22802
22803 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
22804
22805 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
22806 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
22807 for TARGET_NO_FLOAT.
22808 * config/mips/mips.c (mips_file_start): Expand conditional expression
22809 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
22810 (mips_override_options): Move -mno-float override -msoft-float and
22811 -mhard-float.
22812 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
22813 Condition(TARGET_SUPPORTS_NO_FLOAT).
22814 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
22815 __mips_no_float here.
22816 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
22817 (TARGET_SUPPORTS_NO_FLOAT): Define.
22818 * config/mips/sdemtk.opt: Delete.
22819
22820 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
22821
22822 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
22823
22824 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
22825
22826 PR target/43733
22827 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
22828 * configure: Regenerate.
22829 * config.in: Regenerate.
22830 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
22831 instead of sahf only for 64bit targets.
22832
22833 2010-05-20 Jakub Jelinek <jakub@redhat.com>
22834
22835 PR debug/44178
22836 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
22837 setup_ref_regs for DEBUG_INSNs.
22838
22839 2010-05-20 Jan Hubicka <jh@suse.cz>
22840
22841 PR middle-end/44197
22842 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
22843
22844 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
22845
22846 PR bootstrap/43870
22847 * df-scan.c (df_ref_compare): Stabilize sort.
22848
22849 2010-05-20 Jakub Jelinek <jakub@redhat.com>
22850
22851 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
22852 argument. Don't use DW_OP_piece if offset is non-zero,
22853 put offset into second DW_OP_bit_piece argument.
22854 (dw_sra_loc_expr): Adjust callers. For memory expressions
22855 compute offset.
22856
22857 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
22858
22859 PR target/44202
22860 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
22861 settings for 16-bit-constant "addo" alternative.
22862
22863 2010-05-19 James E. Wilson <wilson@codesourcery.com>
22864
22865 * config/mips/mips-dsp.md (add<DSPV:mode>3,
22866 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
22867
22868 PR target/43764
22869 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
22870 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
22871 Use it.
22872
22873 2010-05-19 Joseph Myers <joseph@codesourcery.com>
22874
22875 * diagnostic.c (FLOAT, FFS): Don't undefine.
22876 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
22877 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
22878 include ordering.
22879
22880 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
22881
22882 * combine.c (propagate_for_debug): Call make_compound_operation
22883 on the source value.
22884 (try_combine): When implementing a split chosen by find_split_point,
22885 either copy i2src or set it to null. Assert that i2src is not null
22886 before substituting into CALL_INSN_FUNCTION_USAGE.
22887
22888 2010-05-19 Anatoly Sokolov <aesok@post.ru>
22889
22890 * double-int.h (double_int_ior): New function.
22891 * tree.h (build_int_cst_wide_type): Remove.
22892 * tree.c (build_int_cst_wide_type): Remove.
22893 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
22894 of build_int_cst_wide_type.
22895 * stor-layout.c (set_sizetype): (Ditto.).
22896 * dojump.c (do_jump): Use build_int_cstu instead of
22897 build_int_cst_wide_type.
22898
22899 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
22900
22901 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
22902 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
22903 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
22904 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
22905 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
22906 propagate the 'data' argument to copy_tree_r.
22907 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
22908 Propagate 'data' argument to walk_tree.
22909 (copy_if_shared): New function.
22910 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
22911 (unmark_visited): New function.
22912 (unshare_body): Call copy_if_shared instead of doing it manually.
22913 (unvisit_body): Call unmark_visited instead of doing it manually.
22914
22915 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
22916
22917 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
22918 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
22919 * hooks.c: Likewise.
22920 * target-def.h (TARGET_FOLD_BUILTIN): Define to
22921 hook_tree_tree_int_treep_bool_null.
22922 * target.h (struct gcc_target): Update signature of fold_builtin
22923 field.
22924 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
22925 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
22926 instead of the call expression.
22927 (fold_builtin_call_array): Pass n and argarray directly.
22928 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
22929 consing a list.
22930 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
22931 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
22932 `i' and use it in place of `arity'.
22933 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
22934 Dereference `args' directly.
22935 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
22936
22937 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22938
22939 * doc/sourcebuild.texi (Effective-Target Keywords): Document
22940 3dnow, sse3, sse2.
22941 (Directives): Document optional dg-require-effective-target
22942 selector.
22943
22944 2010-05-19 Richard Guenther <rguenther@suse.de>
22945
22946 PR lto/44196
22947 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
22948
22949 2010-05-19 Richard Guenther <rguenther@suse.de>
22950
22951 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
22952 * common.opt (fwhopr=): New.
22953 * opts.c (common_handle_option): Handle OPT_fwhopr.
22954 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
22955 * collect2.c (main): Match -fwhopr*.
22956 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
22957 Execute ltrans stage in parallel when jobs is bigger than 1.
22958
22959 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22960
22961 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
22962 pentiumpro on Solaris 8/x86 with Sun as.
22963 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
22964 hidden alias bug.
22965 (gcc_cv_as_ix86_quad): Check for .quad directive.
22966 * configure: Regenerate.
22967 * config.in: Regenerate.
22968 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
22969
22970 2010-05-19 Martin Jambor <mjambor@suse.cz>
22971
22972 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
22973 also for indirect edges. Actual printing moved...
22974 (ipa_print_node_jump_functions_for_edge): ...here.
22975 (ipa_compute_jump_functions): Renamed to
22976 ipa_compute_jump_functions_for_edge and made static.
22977 (ipa_compute_jump_functions): New function.
22978 (make_edge_direct_to_target): Check if the number of arguments on
22979 the newly direct edge is the same as the number of parametrs of
22980 the callee.
22981 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
22982 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
22983 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
22984 analysis functions unconditionally, call the new
22985 ipa_analyze_params_uses on the node instead of every edge.
22986
22987 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
22988
22989 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
22990 to tree.
22991 (dump_mem_ref): Adopt debug code to handle a tree as step. This
22992 also checks for a constant int vs. non-constant but
22993 loop-invariant steps.
22994 (find_or_create_group): Change the sort algorithm to only consider
22995 steps that are constant ints.
22996 (idx_analyze_ref): Adopt code to handle a tree instead of a
22997 HOST_WIDE_INT for step.
22998 (gather_memory_references_ref): Handle tree instead of int and be
22999 prepared to see a NULL_TREE.
23000 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
23001 prefetches if the step cannot be calculated at compile time.
23002 (issue_prefetch_ref): Issue prefetches for non-constant but
23003 loop-invariant steps.
23004
23005 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23006
23007 Revert:
23008 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23009
23010 * tree.h (build_call_list): Remove.
23011 * tree.c (build_call_list): Remove.
23012
23013 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23014
23015 * tree.h (build_call_list): Remove.
23016 * tree.c (build_call_list): Remove.
23017
23018 2010-05-18 Jan Hubicka <jh@suse.cz>
23019
23020 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
23021
23022 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
23023
23024 PR rtl-optimization/43332
23025 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
23026
23027 2010-05-18 Anatoly Sokolov <aesok@post.ru>
23028
23029 * tree.h (build_int_cstu): Implement as static inline.
23030 * tree.c (build_int_cstu): Remove function.
23031 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
23032 sign extended.
23033
23034 2010-05-18 Richard Guenther <rguenther@suse.de>
23035
23036 PR lto/44143
23037 * lto-wrapper.c (verbose): New variable. Initialize from -v.
23038 (debug): Initialize from -save-temps.
23039 (collect_execute): Print command-line when verbose.
23040 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
23041 for ltrans invocation. Produce -dumpbase flag again.
23042 (process_args): Remove.
23043 (main): Simplify.
23044 * collect2.c (maybe_run_lto_and_relink): Only pass object
23045 files to lto-wrapper.
23046 * gcc.c (LINK_COMMAND_SPEC): Likewise.
23047
23048 2010-05-18 Jan Hubicka <jh@suse.cz>
23049
23050 * opts.c (decode_options): Do not disable whopr at ipa_cp.
23051 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
23052
23053 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23054
23055 PR lto/44184
23056 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
23057 in a GIMPLE_ASM.
23058 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
23059 in a GIMPLE_ASM.
23060
23061 2010-05-18 Jakub Jelinek <jakub@redhat.com>
23062
23063 PR debug/41371
23064 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
23065 rtx_equal_p inline.
23066
23067 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23068
23069 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
23070 lto-macho as lto_binary_reader.
23071
23072 * darwin.c (darwin_asm_named_section): Do not add assembler comment
23073 after .section directive; just print it before the directive instead.
23074
23075 2010-05-17 Jan Hubicka <jh@suse.cz>
23076
23077 * cgraph.c (cgraph_create_virtual_clone): Only check
23078 versionable_function_p when not in wpa and checking is enabled.
23079 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
23080 there are no more functions to materialize.
23081
23082 2010-05-17 Jan Hubicka <jh@suse.cz>
23083
23084 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
23085 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
23086 New functions.
23087 (output_cgraph): Call output_cgraph_opt_summary.
23088 (input_cgrpah): Call input_cgraph_opt_summary.
23089 (output_cgraph_opt_summary_p, output_node_opt_summary,
23090 input_node_opt_summary, input_cgraph_opt_section): New functions.
23091 * lto-section-in.c (lto_section_name): Add cgraphopt.
23092 * tree-inline.c (tree_function_versioning): Handle parm_num.
23093 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
23094 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
23095
23096 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23097
23098 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
23099 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
23100 the insn to prefetch ratio heuristic to loops with known trip count.
23101
23102 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23103
23104 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
23105 (schedule_prefetches): Do not generate a prefetch if the unroll factor
23106 is far from what is required by the prefetch.
23107
23108 2010-05-17 Jan Hubicka <jh@suse.cz>
23109
23110 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
23111 (ipcp_estimate_growth): Likewise.
23112 (ipcp_const_param_count): Likewise.
23113 (ipcp_insert_stage): Likewise.
23114 * ipa-prop.c (visit_load_for_mod_analysis): New function.
23115 (visit_store_addr_for_mod_analysis): Set used flag.
23116 (ipa_detect_param_modifications): Set used flag for SSE params;
23117 update use of walk_stmt_load_store_addr_ops.
23118 (ipa_print_node_params): Print used flag.
23119 (ipa_write_node_info): Stream used flag.
23120 (ipa_read_node_info): Likewise.
23121 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
23122 (ipa_is_param_used): New function.
23123 (lto_ipa_fixup_call_notes): Remove unused declaration.
23124
23125 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23126
23127 PR target/44074
23128 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
23129 * configure: Regenerate.
23130 * config.in: Regenerate.
23131 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
23132 !HAVE_AS_IX86_REP_LOCK_PREFIX.
23133 Don't emit whitespace.
23134 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
23135 (*rep_movsi): Likewise.
23136 (*rep_movsi_rex64): Likewise.
23137 (*rep_movqi): Likewise.
23138 (*rep_movqi_rex64): Likewise.
23139 (*rep_stosdi_rex64): Likewise.
23140 (*rep_stossi): Likewise.
23141 (*rep_stossi_rex64): Likewise.
23142 (*rep_stosqi): Likewise.
23143 (*rep_stosqi_rex64): Likewise.
23144 (*cmpstrnqi_nz_1): Use {%;} after repz.
23145 (*cmpstrnqi_nz_rex_1): Likewise.
23146 (*cmpstrnqi_1): Likewise.
23147 (*cmpstrnqi_rex_1): Likewise.
23148 (*strlenqi_1): Use {%;} after repnz.
23149 (*strlenqi_rex_1): Likewise.
23150 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
23151 (*sync_compare_and_swap<mode>): Likewise.
23152 (sync_double_compare_and_swap<mode>): Likewise.
23153 (*sync_double_compare_and_swapdi_pic): Likewise.
23154 (sync_old_add<mode>): Likewise.
23155 (sync_add<mode>): Likewise.
23156 (sync_sub<mode>): Likewise.
23157 (sync_<code><mode>): Likewise.
23158
23159 2010-05-17 Martin Jambor <mjambor@suse.cz>
23160
23161 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
23162 otr_token and polymorphic.
23163 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
23164 (cgraph_clone_edge): Copy the above fields.
23165 * tree.c (get_binfo_at_offset): New function.
23166 * tree.h (get_binfo_at_offset): Declare.
23167 * ipa-prop.h (enum jump_func_type): Added known_type jump function
23168 type, reordered items, updated comments.
23169 (union jump_func_value): Added base_type field, reordered fields.
23170 (enum ipa_lattice_type): Moved down in the file.
23171 (struct ipa_param_descriptor): New field polymorphic.
23172 (ipa_is_param_polymorphic): New function.
23173 * ipa-prop.c: Include gimple.h and gimple-fold.h.
23174 (ipa_print_node_jump_functions): Print known type jump functions.
23175 (compute_complex_pass_through): Renamed to...
23176 (compute_complex_assign_jump_func): this.
23177 (compute_complex_ancestor_jump_func): New function.
23178 (compute_known_type_jump_func): Likewise.
23179 (compute_scalar_jump_functions): Create known type and complex ancestor
23180 jump functions.
23181 (ipa_note_param_call): New parameter polymorphic, set the corresponding
23182 flag in the call note accordingly.
23183 (ipa_analyze_call_uses): Renamed to...
23184 (ipa_analyze_indirect_call_uses): this. New parameter target, define
23185 variable var only in the block where it is used.
23186 (ipa_analyze_virtual_call_uses): New function.
23187 (ipa_analyze_call_uses): Likewise.
23188 (combine_known_type_and_ancestor_jfs): Likewise.
23189 (update_jump_functions_after_inlining): Implemented handling of a
23190 number of new jump function types combination.
23191 (print_edge_addition_message): Removed.
23192 (make_edge_direct_to_target): New function.
23193 (try_make_edge_direct_simple_call): Likewise.
23194 (try_make_edge_direct_virtual_call): Likewise.
23195 (update_call_notes_after_inlining): Renamed to...
23196 (update_indirect_edges_after_inlining): this. Moved edge creation for
23197 indirect calls to try_make_edge_direct_simple_call, also calls
23198 try_make_edge_direct_virtual_call for virtual calls.
23199 (ipa_print_node_params): Changed the header message.
23200 (ipa_write_jump_function): Stream also known type jump functions.
23201 (ipa_read_jump_function): Likewise.
23202 (ipa_write_indirect_edge_info): Stream new fields in
23203 cgraph_indirect_call_info.
23204 (ipa_read_indirect_edge_info): Likewise.
23205 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
23206 GIMPLE_FOLD_H.
23207
23208 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23209
23210 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
23211
23212 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23213
23214 * tree.h (CALL_EXPR_ARGS): Delete.
23215 (call_expr_arglist): Delete.
23216 * tree.c (call_expr_arglist): Delete.
23217 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
23218 targetm.fold_builtin.
23219 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
23220 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
23221 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
23222 arglist parameter. Use CALL_EXPR_ARG.
23223 (picochip_expand_builtin_3op): Likewise.
23224 (picochip_expand_builtin_2opvoid): Likewise.
23225 (picochip_expand_array_get): Likewise.
23226 (picochip_expand_array_put): Likewise.
23227 (picochip_expand_array_testport): Likewise.
23228 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
23229 rather than arglist.
23230 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
23231 CALL_EXPR_ARGS.
23232 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
23233 than TREE_VALUE and TREE_CHAIN.
23234 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
23235 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
23236 the arglist.
23237
23238 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23239
23240 PR bootstrap/42347
23241 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
23242 to have no fallthru edge.
23243
23244 PR middle-end/44102
23245 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
23246 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
23247 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
23248 add BARRIER after previous bb if needed.
23249
23250 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23251
23252 * tree.c (build_function_type_list_1): Remove bogus assert condition.
23253
23254 2010-05-17 Alan Modra <amodra@gmail.com>
23255
23256 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
23257 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
23258 with copy_reg rtx param.
23259 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
23260 Correct cases where code for ABI_V4 did not initialise the reg
23261 used to access frame. Also leave frame_reg_rtx as sp for large
23262 frames that save no regs.
23263
23264 2010-05-17 Martin Jambor <mjambor@suse.cz>
23265
23266 PR middle-end/44133
23267 * tree-sra.c (create_access_replacement): New parameter rename, mark
23268 the replaement for renaming only when it is true.
23269 (get_access_replacement): Pass true in the rename parameter of
23270 create_access_replacement.
23271 (get_unrenamed_access_replacement): New function.
23272 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
23273 replacement declaration from it.
23274
23275 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
23276
23277 * function.c (try_fit_stack_local, add_frame_space): New static
23278 functions.
23279 (assign_stack_local_1): Use them. Look for opportunities to use
23280 space previously wasted on alignment.
23281 * function.h (struct frame_space): New.
23282 (struct rtl_data): Add FRAME_SPACE_LIST member.
23283 * reload1.c (something_was_spilled): New static variable.
23284 (alter_reg): Set it.
23285 (reload): Test it in addition to testing if the frame size changed.
23286
23287 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
23288
23289 * config/s390/s390.c: Define sane prefetch settings and activate
23290 flag_prefetch_loop_arrays on -O3.
23291 * config/s390/s390.h: Declare that read can use write prefetch.
23292
23293 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23294
23295 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
23296 build.
23297
23298 2010-05-16 Jan Hubicka <jh@suse.cz>
23299
23300 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
23301 function body; do not check stdarg field of struct function.
23302
23303 2010-05-16 Jan Hubicka <jh@suse.cz>
23304
23305 * cgraph.c (dump_cgraph_node): Dump versionable flag.
23306 * cgraph.h (cgraph_local_info): Add versionable flag.
23307 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
23308 (ipcp_versionable_function_p): Use it.
23309 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
23310 versionable flag.
23311
23312 2010-05-16 Jan Hubicka <jh@suse.cz>
23313
23314 * cgraph.c (cgraph_clone_node): Take decl argument and insert
23315 clone into hash when it is different from orig.
23316 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
23317 * cgraph.h (cgraph_clone_node): Update prototype.
23318 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
23319 (lto_cgraph_encoder_delete): Delete body map.
23320 (lto_cgraph_encoder_size): Move to header.
23321 (lto_cgraph_encoder_encode_body_p,
23322 lto_set_cgraph_encoder_encode_body): New.
23323 (lto_output_node): Do not take written_decls argument; output clone_of
23324 pointer.
23325 (add_node_to): Add include_body_argument; call
23326 lto_set_cgraph_encoder_encode_body on master of the clone.
23327 (add_references): Update use of add_node_to.
23328 (compute_ltrans_boundary): Likewise.
23329 (output_cgraph): Do not create written_decls bitmap.
23330 (input_node): Take nodes argument; stream in clone_of correctly.
23331 (input_cgraph_1): Update use of input_node.
23332 * lto-streamer-out.c (lto_output): Use encoder info to decide
23333 what bodies to output.
23334 * ipa-inline.c (cgraph_clone_inlined_nodes,
23335 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
23336 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
23337 (lto_cgraph_encoder_size): Define here.
23338 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
23339 Declare.
23340
23341 2010-05-16 Richard Guenther <rguenther@suse.de>
23342
23343 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
23344 -fipa-type-escape.
23345 * ipa-type-escape.c (gate_type_escape_vars): Run when
23346 -fipa-struct-reorg runs.
23347 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
23348 * common.opt (fipa-type-escape): Remove.
23349
23350 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
23351
23352 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
23353 (decode_options): Likewise.
23354 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
23355
23356 2010-05-16 Jan Hubicka <jh@suse.cz>
23357
23358 * ipa.c (function_and_variable_visibility): Also bring local all
23359 aliases.
23360
23361 2010-05-16 Richard Guenther <rguenther@suse.de>
23362
23363 * alias.c (nonoverlapping_memrefs_p): Remove use of
23364 IPA type-escape information.
23365
23366 2010-05-16 Joseph Myers <joseph@codesourcery.com>
23367
23368 * c-common.c (c_common_reswords): Add _Static_assert for C.
23369 * c-parser.c (c_token_starts_declaration,
23370 c_parser_next_token_starts_declaration,
23371 c_parser_static_assert_declaration_no_semi,
23372 c_parser_static_assert_declaration): New.
23373 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
23374 Handle static assertions if static_assert_ok.
23375 (c_parser_external_declaration, c_parser_declaration_or_fndef,
23376 c_parser_compound_statement_nostart, c_parser_label,
23377 c_parser_for_statement, c_parser_objc_methodprotolist,
23378 c_parser_omp_for_loop): All callers of
23379 c_parser_declaration_or_fndef changed.
23380 (c_parser_struct_declaration): Handle static assertions.
23381 (c_parser_compound_statement_nostart): Use
23382 c_parser_next_token_starts_declaration and
23383 c_token_starts_declaration to detect start of declarations.
23384 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
23385 Likewise.
23386
23387 2010-05-16 Anatoly Sokolov <aesok@post.ru>
23388
23389 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23390 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23391 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23392 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23393 (mmix_function_outgoing_value): Rename to...
23394 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
23395 (mmix_function_value_regno_p): Make static.
23396 (mmix_libcall_value): New function.
23397 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
23398 mmix_function_value_regno_p): Remove declaration.
23399
23400 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
23401
23402 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
23403 BUILT_IN_ALLOCA if stack checking is enabled.
23404
23405 2010-05-16 Richard Guenther <rguenther@suse.de>
23406
23407 * var-tracking.c (vars_copy_1): Inline ...
23408 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
23409 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
23410 (variable_merge_over_cur): Adjust. Merge asserts.
23411 (variable_merge_over_src): Likewise.
23412 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
23413 (variable_post_merge_new_vals): Merge asserts.
23414 (variable_post_merge_perm_vals): Likewise.
23415 (find_mem_expr_in_1pdv): Likewise.
23416 (dataflow_set_different_value): Remove.
23417 (onepart_variable_different_p): Merge asserts.
23418 (variable_different_p): Likewise.
23419 (dataflow_set_different_1): Inline ...
23420 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
23421 (emit_notes_for_differences_1): Merge asserts.
23422
23423 2010-05-16 Richard Guenther <rguenther@suse.de>
23424
23425 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
23426 * optabs.c (libfunc_decl_hash): Likewise.
23427 * varasm.c (emutls_decl): Likewise.
23428
23429 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
23430
23431 * c-decl.c: Don't include gimple.h.
23432 (merge_decls): Do not copy gimple_body.
23433
23434 2010-05-15 Jason Merrill <jason@redhat.com>
23435
23436 * c.opt: Add -fnothrow-opt.
23437
23438 2010-05-15 Jan Hubicka <jh@suse.cz>
23439
23440 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
23441 analyzed.
23442 * passes.c (ipa_write_summaries): Write all analyzed nodes.
23443
23444 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
23445
23446 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
23447 * Makefile.in: Add it.
23448 Fix all other Makefile dependencies for changes below.
23449 * tree.h: Include it instead of defining VEC primitives here.
23450 * gimple.h: Likewise.
23451 * rtl.h: Likewise.
23452 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
23453 * except.h: Include vecir.h, break dependence on tree.h.
23454
23455 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
23456 Move from here...
23457 * tree-iterator.c: ...to here.
23458 * tree-iterator.h: Fix file introduction comment. Add extern markers.
23459
23460 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
23461 tm_p.h.
23462 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
23463 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
23464 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
23465 tree-mudflap.h, and target.h.
23466 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
23467 predict.h, tree-inline.h, gimple.h, and langhooks.h.
23468 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
23469 Add FIXME for why gimple.h is still included (should be unnecessary
23470 since GCC 4.5 gimplification unit-at-a-time).
23471 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
23472 * c-pragma.c: Add FIXME for why function.h needs to be included just
23473 for cfun, at front-end level.
23474 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
23475 Do not include ggc.h, but include vecprim.h for VEC(char).
23476 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
23477 Explain why target.h is included.
23478 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
23479 Explain why gimple.h is included.
23480 * c-ppoutput.c: Do not include tm.h.
23481 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
23482 * c-parses.c: Explain why rtl.h is included, and that this (and only
23483 this) is also why tm.h must be included.
23484 Do not include except.h.
23485 * c-lang.c: Do not include ggc.h.
23486
23487 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
23488
23489 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
23490
23491 2010-05-15 Joseph Myers <joseph@codesourcery.com>
23492
23493 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
23494 unions by default if those structs and unions have no tags. Do
23495 not condition anonymous struct and unions handling on flag_iso.
23496 Allow anonymous structs and unions for C1X.
23497 (finish_struct): Do not diagnose lack of named fields when
23498 anonymous structs and unions present for C1X. Accept flexible
23499 array members in structure with anonymous structs or unions but no
23500 directly named fields.
23501 * doc/extend.texi (Unnamed Fields): Update.
23502
23503 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
23504
23505 * gimple.h (compare_field_offset): Rename into...
23506 (gimple_compare_field_offset): ...this.
23507 * gimple.c (compare_field_offset): Rename into...
23508 (gimple_compare_field_offset): ...this. Compare the full access if
23509 the offset is self-referential.
23510 (gimple_types_compatible_p): Adjust for above renaming.
23511 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
23512 DECL_NONADDRESSABLE_P flag of fields before merging them.
23513
23514 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
23515
23516 * tree.h (ctor_to_list): Delete.
23517 * tree.c (ctor_to_list): Delete.
23518
23519 2010-05-15 Jan Hubicka <jh@suse.cz>
23520
23521 * ipa-reference.c: Include toplev.h
23522 (is_proper_for_analysis): Only add to all_module_statics
23523 if it is allocated.
23524 (write_node_summary_p, stream_out_bitmap,
23525 ipa_reference_write_optimization_summary,
23526 ipa_reference_read_optimization_summary): New.
23527 (struct ipa_opt_pass_d pass_ipa_reference): Add
23528 optimization summary streaming.
23529 * lto-cgraph.c (referenced_from_this_partition_p,
23530 reachable_from_this_partition_p): New functions.
23531 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
23532 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
23533 * opts.c (decode_options): Enable ipa_reference.
23534 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
23535 * lto-streamer.h (referenced_from_this_partition_p,
23536 reachable_from_this_partition_p): Declare.
23537
23538 2010-05-15 Richard Guenther <rguenther@suse.de>
23539
23540 PR tree-optimization/44038
23541 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
23542 taking the address of a V_C_E of a constant.
23543
23544 2010-05-14 Jan Hubicka <jh@suse.cz>
23545
23546 * tree.h (memory_identifier_string): Remove.
23547 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
23548 (ipa_reference_global_vars_info_d): Remove statics_not_read and
23549 statics_not_written.
23550 (ipa_reference_optimization_summary_d): New structure.
23551 (ipa_reference_optimization_summary_t): New type and vector.
23552 (ipa_reference_vars_info_d): Embedd structures instead of using
23553 pointers.
23554 (reference_vars_to_consider): Remove out of GGC space.
23555 (module_statics_escape): Remove.
23556 (global_info_obstack): Rename to ...
23557 (optimization_summary_obstack): ... this one.
23558 (initialization_status_t): Remove.
23559 (memory_identifier_string): Remove.
23560 (get_reference_vars_info): Fix indenting.
23561 (set_reference_vars_info): Likewise.
23562 (get_reference_optimization_summary): New.
23563 (set_reference_optimization_summary): New.
23564 (get_global_reference_vars_info): Remove.
23565 (ipa_reference_get_read_global): Remove.
23566 (ipa_reference_get_written_global): Remove.
23567 (ipa_reference_get_not_read_global): Update.
23568 (ipa_reference_get_not_written_global): Update.
23569 (is_proper_for_analysis): Outlaw addressable.
23570 (propagate_bits): Update for new datastructures.
23571 (analyze_variable): Remove.
23572 (init_function_info): Update for new datastructures.
23573 (clean_function_local_data): Remove.
23574 (clean_function): Remove.
23575 (copy_global_bitmap): Use optimizations_summary_obstack.
23576 (duplicate_node_data): Duplicate optimization summary only.
23577 (remove_node_data): Remove optimization summary only.
23578 (generate_summary): Do not analyze variables; do not compute
23579 module_statics_escape; do not prune solutions by it.
23580 (read_write_all_from_decl): Fix typos in comments.
23581 (propagate): Doscover readonly and nonaddressable first;
23582 update for new datastructures; share global bitmaps.
23583 * ipa-reference.h (ipa_reference_get_read_global,
23584 ipa_reference_get_written_global): Remove.
23585 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
23586 * Makefile.in: Remove ipa-refereference from GT files.
23587
23588 2010-05-14 Jakub Jelinek <jakub@redhat.com>
23589
23590 PR debug/44112
23591 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
23592 for all SYMBOL_REF_DECLs.
23593
23594 2010-05-14 Jan Hubicka <jh@suse.cz>
23595
23596 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
23597 (varpool_all_refs_explicit_p): New inline function.
23598 * ipa-reference.c: Update comment.
23599 (module_statics_written): Remove.
23600 (get_static_decl): Remove.
23601 (ipa_init): Do not initialize module_statics_written.
23602 (analyze_function): Likewise.
23603 (generate_summary): Likewise; do not compute module_statics_readonly
23604 and do not update variable flags.
23605 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
23606 * ipa.c: Inlucde flags.h
23607 (cgraph_local_node_p): New.
23608 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
23609 promote functions to local.
23610 (ipa_discover_readonly_nonaddressable_vars): New function.
23611 (function_and_variable_visibility): Use cgraph_local_node_p.
23612 * varpool.c (varpool_finalize_decl): Set force_output for
23613 DECL_PRESERVE_P vars.
23614
23615 2010-05-14 Jan Hubicka <jh@suse.cz>
23616
23617 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
23618
23619 2010-05-14 Richard Guenther <rguenther@suse.de>
23620
23621 PR tree-optimization/44119
23622 * tree-ssa-pre.c (eliminate): Properly mark replacement of
23623 a PHI node necessary.
23624
23625 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
23626
23627 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
23628
23629 2010-05-14 Jason Merrill <jason@redhat.com>
23630
23631 PR c++/44127
23632 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
23633 (gimple_call_set_nothrow): New.
23634 * gimple.c (gimple_build_call_from_tree): Call it.
23635 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
23636
23637 PR c++/44127
23638 * gimplify.c (gimplify_seq_add_stmt): No longer static.
23639 * gimple.h: Declare it.
23640 * gimple.c (gimple_build_eh_filter): No ops.
23641
23642 2010-05-14 Jan Hubicka <jh@suse.cz>
23643
23644 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
23645 nodes already in queue.
23646 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
23647 re-enqueueing node.
23648
23649 2010-05-14 Jakub Jelinek <jakub@redhat.com>
23650
23651 PR debug/44136
23652 * cfgexpand.c (expand_debug_expr): If non-memory op0
23653 has BLKmode, return NULL.
23654
23655 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
23656
23657 * config.gcc: Add support for --with-cpu option for bdver1.
23658 * config/i386/i386.h (TARGET_BDVER1): New macro.
23659 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
23660 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
23661 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
23662 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
23663 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
23664 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
23665 (processor_type): Add PROCESSOR_BDVER1.
23666 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
23667 processor_type in config/i386/i386.h.
23668 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
23669 movaps <reg, reg> instead of movapd <reg, reg> when replacing
23670 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
23671 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
23672 to emit packed xor instead of packed double/packed integer
23673 xor for SSE and AVX when moving a zero value.
23674 * config/i386/sse.md: Add check for
23675 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
23676 movapd/movdqa for SSE and AVX.
23677 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
23678 single logical operations i.e and, or and xor instead of packed double
23679 logical operations for SSE and AVX.
23680 * config/i386/i386-c.c (ix86_target_macros_internal):
23681 Add PROCESSOR_BDVER1.
23682 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
23683 (has_fma4, has_xop): New.
23684 * config/i386/i386.c (bdver1_cost): New variable.
23685 (m_BDVER1): New macro.
23686 (m_AMD_MULTIPLE): Add m_BDVER1.
23687 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
23688 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
23689 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
23690 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
23691 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
23692 x86_tune_sse_partial_reg_dependency,
23693 x86_tune_sse_unaligned_load_optimal,
23694 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
23695 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
23696 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
23697 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
23698 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
23699 Enable/disable for bdver1.
23700 (processor_target_table): Add bdver1_cost.
23701 (cpu_names): Add bdver1.
23702 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
23703 processor_alias_table.
23704 (ix86_expand_vector_move_misalign): Change.
23705 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
23706 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
23707 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
23708 of movupd/movdqu for SSE and AVX.
23709 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
23710 (ix86_tune_adjust_cost): Add code for bdver1.
23711 (standard_sse_constant_opcode): Add check for
23712 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
23713 of packed double xor for SSE and AVX.
23714
23715 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
23716
23717 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
23718 result to unsigned.
23719
23720 2010-05-14 Tristan Gingold <gingold@adacore.com>
23721
23722 * toplev.c (default_debug_hooks): Remove this variable.
23723 (process_options): Remove assignments to default_debug_hooks.
23724
23725 2010-05-14 Martin Jambor <mjambor@suse.cz>
23726
23727 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
23728 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
23729 * langhooks.h (struct lang_hooks_for_decls): Removed field
23730 fold_obj_type_ref.
23731 * tree.c (free_lang_data): Remove assignment to
23732 lang_hooks.fold_obj_type_ref.
23733 * tree.def (OBJ_TYPE_REF): Update comment.
23734
23735 2010-05-14 Richard Guenther <rguenther@suse.de>
23736
23737 PR tree-optimization/44124
23738 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
23739
23740 2010-05-14 Alan Modra <amodra@gmail.com>
23741
23742 PR target/44075
23743 * config/rs6000/rs6000.c (struct machine_function): Reorder
23744 fields for better packing. Add lr_save_state.
23745 (rs6000_ra_ever_killed): Return lr_save_state if set.
23746 (rs6000_emit_eh_reg_restore): Set lr_save_state.
23747
23748 2010-05-13 Jan Hubicka <jh@suse.cz>
23749
23750 * varpool.c (decide_is_variable_needed): Drop code checking
23751 TREE_SYMBOL_REFERENCED.
23752
23753 2010-05-13 Jan Hubicka <jh@suse.cz>
23754
23755 * final.c (output_addr_const): Do not call mark_decl_referenced.
23756 * cgraphunit.c (process_function_and_variable_attributes): Use
23757 mark_needed_node dirrectly.
23758 (assemble_thunk): Do not call mark_decl_referenced.
23759
23760 2010-05-13 Anatoly Sokolov <aesok@post.ru>
23761
23762 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
23763
23764 2010-05-13 Jeff Law <law@redhat.com>
23765
23766 * ira-conflicts.c (print_allocno_conflicts): New function broken out
23767 from...
23768 (print_conflicts): Call print_allocno_conflicts.
23769
23770 2010-05-13 Jakub Jelinek <jakub@redhat.com>
23771
23772 PR debug/44104
23773 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
23774 if it is NULL.
23775
23776 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
23777
23778 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
23779 t-mingw-w64 or t-mingw-w32 for multilib configuration.
23780 * config/i386/t-mingw-w32: New.
23781 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
23782
23783 2010-05-13 Martin Jambor <mjambor@suse.cz>
23784
23785 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
23786 gimple-fold.c).
23787 * gimple-fold.c (get_base_binfo_for_type): New function.
23788 (gimple_get_relevant_ref_binfo): Likewise.
23789 (gimple_fold_obj_type_ref_known_binfo): Likewise.
23790 (gimple_fold_obj_type_ref): Likewise.
23791 (fold_gimple_call): Simplify condition for folding virtual calls
23792 and call gimple_fold_obj_type_ref.
23793 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
23794 (gimple_fold_obj_type_ref_known_binfo): Likewise.
23795
23796 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
23797
23798 * config/rs6000/rs6000-protos.h
23799 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
23800 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
23801 (rs6000_debug_mode_dependent_address)
23802 (rs6000_mode_dependent_address_ptr): Likewise.
23803
23804 2010-05-13 Jakub Jelinek <jakub@redhat.com>
23805
23806 PR debug/43983
23807 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
23808 by SRA.
23809 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
23810 * tree-sra.c (create_access_replacement): Call unshare_expr before
23811 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
23812 * dwarf2out.c: Include tree-flow.h.
23813 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
23814 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
23815 Handle DW_OP_bit_piece.
23816 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
23817 construct_piece_list, adjust_piece_list): New functions.
23818 (add_var_loc_to_decl): Handle SRA optimized variables.
23819 Adjust for var_loc_note to loc field renaming.
23820 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
23821 in VAR_LOCATION note.
23822 (new_loc_descr_op_bit_piece): New function.
23823 (dw_sra_loc_expr): New function.
23824 (dw_loc_list): Use it. Don't handle the last range after the
23825 loop, handle it inside of the loop. Adjust for var_loc_note
23826 to loc field renaming.
23827 (add_location_or_const_value_attribute): Only special case
23828 single entry loc lists if loc is NOTE_P. Adjust for
23829 var_loc_note to loc field renaming.
23830 (dwarf2out_var_location): Don't set newloc->var_loc_note
23831 and newloc->next here.
23832
23833 2010-05-12 Jan Hubicka <jh@suse.cz>
23834
23835 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
23836 flag.
23837 * cgraph.h (cgraph_only_called_directly_p,
23838 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
23839 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
23840 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
23841 (assemble
23842 * ipa.c (cgraph_remove_unreachable_nodes): Use
23843 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
23844 flags.
23845 * tree-inline.c (copy_bb): Check address_taken flag.
23846 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
23847 externally_visible flag.
23848
23849 2010-05-12 Jason Merrill <jason@redhat.com>
23850
23851 PR bootstrap/44048
23852 PR target/44099
23853 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
23854 * sdbout.c (plain_type_1): Likewise.
23855 * dwarf2out.c (is_base_type): Likewise.
23856 (gen_type_die_with_usage): Likewise. Generate
23857 DW_TAG_unspecified_type for any LANG_TYPE.
23858
23859 2010-05-12 Jan Hubicka <jh@suse.cz>
23860
23861 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
23862 indrect edges too.
23863 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
23864 (cgraph_clone_edge): Update.
23865 (cgraph_node_remove_callees): Remove indirect calls too.
23866 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
23867 (cgraph_create_indirect_edge): Update prototype.
23868 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
23869 is_proper_for_analysis.
23870 (add_new_function, visited_nodes, function_insertion_hook_holder,
23871 get_local_reference_vars_info, mark_address_taken, mark_address,
23872 mark_load, mark_store, check_asm_memory_clobber, check_call,
23873 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
23874 (ipa_init): Do not initialize visited_nodes;
23875 function_insertion_hook_holder.
23876 (analyze_variable): Rewrite.
23877 (analyze_function): Rewrite.
23878 (copy_local_bitmap): Remove.
23879 (duplicate_node_dat): Do not duplicate local info.
23880 (generate_summary): Simplify to only walk cgraph.
23881 (write_node_summary_p, ipa_reference_write_summary,
23882 ipa_reference_read_summary): Remove.
23883 (propagate): Do not remove function insertion;
23884 generate summary.
23885 (pass_ipa_reference): NULLify summary handling fields.
23886 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
23887 (input_edge): Input ecf_flags.
23888 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
23889 (update_indirect_edges_after_inlining): Ignore edges with unknown
23890 param.
23891
23892 2010-05-12 Sriraman Tallam <tmsriram@google.com>
23893
23894 * implicit-zee.c: New file.
23895 * tree-pass.h (pass_implicit_zee): Declare.
23896 * passes.c (init_optimization_passes): Add zee pass.
23897 * common.opt (fzee): New flag.
23898 * timevar.def (TV_ZEE): Define.
23899 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
23900 and beyond.
23901 * Makefile.in (implicit-zee.o): Add new build file.
23902
23903 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
23904 Nathan Froyd <froydnj@codesourcery.com>
23905
23906 * c-common.c (sync_resolve_params): Remove write-only variable.
23907
23908 2010-05-12 Anatoly Sokolov <aesok@post.ru>
23909
23910 * target.h (struct gcc_target): Add mode_dependent_address_p field.
23911 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
23912 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
23913 * targhooks.c (default_mode_dependent_address_p): New function.
23914 * targhooks.h (default_mode_dependent_address_p): Declare function.
23915 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
23916 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
23917 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
23918 target hook. Change return type to bool.
23919 * recog.h (mode_dependent_address_p): Change return type to bool.
23920
23921 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
23922 Nathan Froyd <froydnj@codesourcery.com>
23923
23924 * tree-mudflap.c (build_function_type_0, build_function_type_1,
23925 build_function_type_2, build_function_type_3): Remove.
23926 (mudflap_init): Use build_function_type_list.
23927
23928 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
23929 Nathan Froyd <froydnj@codesourcery.com>
23930
23931 * coverage.c (build_fn_info_value): Call build_constructor instead of
23932 build_constructor_from_list.
23933 (build_ctr_info_value): Likewise.
23934 (build_gcov_info): Likewise.
23935
23936 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
23937
23938 * tree.c (build_constructor): Compute TREE_CONSTANT for the
23939 resultant constructor.
23940 (build_constructor_single): Don't set TREE_CONSTANT.
23941 (build_constructor_from_list): Don't compute TREE_CONSTANT.
23942
23943 2010-05-12 Jan Hubicka <jh@suse.cz>
23944
23945 * cgraph.h (struct varpool_node): Add aux.
23946 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
23947 * varpool.c (varpool_remove_node): Do not remove initializer.
23948 (varpool_reset_queue): Export.
23949 (varpool_finalize_decl): Volatile vars are forced to be output.
23950 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
23951 replaced decl.
23952 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
23953 process_references, varpool_can_remove_if_no_refs): New functions.
23954 (cgraph_remove_unreachable_nodes): Handle variables too.
23955
23956 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
23957
23958 PR target/44088
23959 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
23960
23961 2010-05-12 Jakub Jelinek <jakub@redhat.com>
23962
23963 PR middle-end/44085
23964 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
23965 change value of ORT_TASK.
23966 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
23967 (omp_notice_threadprivate_variable): New function.
23968 (omp_notice_variable): Call it for threadprivate variables.
23969 If enclosing ctx is a task, print enclosing task rather than
23970 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
23971 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
23972 if task has untied clause.
23973
23974 PR debug/42278
23975 * dwarf2out.c (base_type_die): Don't add name attribute here.
23976 (modified_type_die): Instead of sizetype use
23977 its underlying original type. If a DW_TAG_base_type doesn't
23978 have name added, add __unknown__.
23979 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
23980 always call force_type_die instead.
23981
23982 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
23983
23984 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
23985 for __stack_chk_guard.
23986
23987 2010-05-11 Jakub Jelinek <jakub@redhat.com>
23988
23989 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
23990 don't call start_source_file debug hook here...
23991 (finish_options): ... but here, after outputting predefined and
23992 command line defines and undefs.
23993
23994 PR middle-end/44071
23995 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
23996 no fallthru edge.
23997 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
23998 optimizing away empty bb with no successors, move over its
23999 footer chain to fallthru predecessor.
24000 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
24001 (rtl_split_edge): For asm goto call patch_jump_insn even if
24002 splitting fallthru edge.
24003
24004 PR c++/44059
24005 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
24006 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
24007 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
24008 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
24009 on DW.ref.* decls.
24010
24011 PR c++/44062
24012 * c-parser.c (c_parser_expression): Mark LHS of a comma
24013 expression as read if it is a decl, handled component or
24014 COMPOUND_EXPR with that on the RHS.
24015 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
24016 if it is a decl or handled component.
24017
24018 2010-05-11 Jan Hubicka <jh@suse.cz>
24019
24020 * lto-symtab.c (lto_symtab_free): New function.
24021 * lto-streamer.h (lto_symtab_free): Declare.
24022
24023 2010-05-11 Jan Hubicka <jh@suse.cz>
24024
24025 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
24026 that if function is needed it is reachable.
24027 (lto_output_node): See if it the function is reachable or referenced.
24028 (output_cgraph): Update call of lto_output_node.
24029 * lto-streamer.h (reachable_from_other_partition_p): Declare.
24030
24031 2010-05-11 Jan Hubicka <jh@suse.cz>
24032
24033 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
24034 Mark as used.
24035
24036 2010-05-11 Jan Hubicka <jh@suse.cz>
24037
24038 PR tree-optimize/44063
24039 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
24040 queue.
24041 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
24042 limits.
24043 (estimate_function_body_sizes): Compute sizes even when disregarding.
24044
24045 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
24046
24047 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
24048
24049 2010-05-11 Jan Hubicka <jh@suse.cz>
24050
24051 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
24052 into every boundary.
24053
24054 2010-05-11 Jan Hubicka <jh@suse.cz>
24055
24056 * matrix-reorg.c (matrix_reorg): Rebuild edges.
24057
24058 2010-05-11 Jan Hubicka <jh@suse.cz>
24059
24060 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
24061 lto_streamer_cache_delete): Put nodes into heap.
24062 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
24063 heap.
24064
24065 2010-05-11 Jan Hubicka <jh@suse.cz>
24066
24067 * cgraphbuild.c (cgraph_rebuild_references): New.
24068 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
24069 out extern inlines.
24070 * cgraph.h (cgraph_rebuild_references): Declare.
24071 * tree-inline.c (tree_function_versioning): Use it.
24072 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
24073
24074 2010-05-11 Jan Hubicka <jh@suse.cz>
24075
24076 * cgraph.c: Include ipa-utils.h
24077 (cgraph_create_virtual_clone): Update references.
24078 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
24079
24080 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24081
24082 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
24083 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
24084 cache size.
24085
24086 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24087
24088 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
24089
24090 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24091
24092 * gcc.c (execute): For -### don't quote arguments that
24093 contain just alphanumerics and _/-. characters.
24094 * doc/invoke.texi: Document that change for -###.
24095
24096 PR debug/44023
24097 * df-problems.c (struct dead_debug): Add to_rescan field.
24098 (dead_debug_init): Clear to_rescan field.
24099 (dead_debug_finish): Rescan all debug insns in to_rescan
24100 bitmap and free the bitmap.
24101 (dead_debug_insert_before): Instead of rescanning debug insns
24102 immediately queue their rescanning until dead_debug_finish.
24103 (df_note_bb_compute): After dead_debug_add do continue instead
24104 of break.
24105
24106 2010-05-10 Jakub Jelinek <jakub@redhat.com>
24107
24108 PR debug/44028
24109 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
24110 clear also INSN_REG_USE_LIST.
24111
24112 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24113
24114 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
24115
24116 2010-05-10 Jan Hubicka <jh@suse.cz>
24117
24118 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
24119 commited change.
24120
24121 2010-05-10 Jan Hubicka <jh@suse.cz>
24122
24123 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
24124 Allocate encoders.
24125 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
24126 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
24127 (lto_streamer_cache_create): Init alloc pool.
24128 (lto_streamer_cache_delete): Free alloc pool.
24129 * lto-streamer.h: Include alloc pool.
24130 (lto_streamer_cache_d): Use alloc pool.
24131 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
24132
24133 2010-05-10 Jan Hubicka <jh@suse.cz>
24134
24135 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
24136 * cgraphbuild.c: Include except.h
24137 (record_type_list, record_eh_tables): New function.
24138 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
24139
24140 2010-05-10 Jan Hubicka <jh@suse.cz>
24141
24142 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
24143 __frame_dummy_init_array_entry, force_to_data): Attribute as used
24144 rather than unused.
24145
24146 2010-05-10 Michael Matz <matz@suse.de>
24147
24148 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
24149 (can_reassociate_p): Use FLOAT_TYPE_P.
24150 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
24151 (vect_force_simple_reduction): ... this.
24152 * tree-parloops.c (gather_scalar_reductions): Use
24153 vect_force_simple_reduction.
24154 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
24155 vect_is_simple_reduction, add modify argument, if true rewrite
24156 "a-b" into "a+(-b)".
24157 (vect_is_simple_reduction, vect_force_simple_reduction): New
24158 functions.
24159 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
24160
24161 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
24162 Vladimir Makarov <vmakarov@redhat.com>
24163
24164 PR rtl-optimization/44012
24165 * ira-build.c (remove_unnecessary_allocnos): Nullify
24166 regno_allocno_map of the removed allocno.
24167
24168 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24169
24170 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
24171 to /dev/null.
24172 * configure: Regenerate.
24173
24174 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24175
24176 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
24177 unused.
24178 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
24179 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
24180 support in Sun ld.
24181 * configure: Regenerate.
24182
24183 2010-05-10 Richard Guenther <rguenther@suse.de>
24184
24185 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
24186 marked if the entry identifier is marked.
24187
24188 2010-05-10 Richard Guenther <rguenther@suse.de>
24189
24190 * c-common.c (struct c_common_attributes): Add fnspec attribute.
24191 (handle_fnspec_attribute): New function.
24192 * gimple.h (gimple_call_return_flags): Declare.
24193 (gimple_call_arg_flags): Likewise.
24194 * gimple.c (gimple_call_arg_flags): New function.
24195 (gimple_call_return_flags): Likewise.
24196 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
24197 New argument flags.
24198 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
24199 return value flags.
24200 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
24201 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
24202 main work to ...
24203 (make_heapvar_for): ... this new function.
24204 (handle_rhs_call): Handle fnspec attribute argument specifiers.
24205 (handle_lhs_call): Likewise.
24206 (find_func_aliases): Adjust.
24207
24208 2010-05-10 Richard Guenther <rguenther@suse.de>
24209
24210 PR tree-optimization/44050
24211 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
24212
24213 2010-05-10 Wei Guozhi <carrot@google.com>
24214
24215 PR target/42879
24216 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
24217
24218 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24219
24220 PR c/10676
24221 * c-typeck.c (lookup_field): Take a type directly. Update
24222 recursive calls.
24223 (build_component_ref): Update call to lookup_field.
24224 (set_init_label): Use lookup_field to find initialized field.
24225 Handle returned list of fields like a sequence of designators.
24226
24227 2010-05-09 Richard Guenther <rguenther@suse.de>
24228
24229 PR middle-end/44024
24230 * fold-const.c (tree_single_nonzero_warnv_p): Properly
24231 handle &FUNCTION_DECL.
24232
24233 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24234
24235 PR c/4784
24236 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
24237 structures and unions recursively.
24238 (detect_field_duplicates): Move duplicate detection with a hash to
24239 detect_field_duplicates_hash. Always use a hash if anonymous
24240 structures or unions are present.
24241 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
24242 give errors.
24243
24244 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
24245
24246 PR target/44046
24247 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
24248 detect Atom, Core 2 and Core i7.
24249
24250 2010-05-09 Richard Guenther <rguenther@suse.de>
24251
24252 * gcc.c (store_arg): Handle temporary file deletion for
24253 joined arguments.
24254
24255 2010-05-09 Richard Guenther <rguenther@suse.de>
24256
24257 PR middle-end/44043
24258 * ipa-inline.c (estimate_function_body_sizes): Return after
24259 disregarding inline limits.
24260
24261 2010-05-09 Richard Guenther <rguenther@suse.de>
24262
24263 * gcc.c (store_arg): Revert last change.
24264
24265 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
24266
24267 PR middle-end/28685
24268 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
24269 (optimize_ops_list): Call it.
24270
24271 2010-05-08 Richard Guenther <rguenther@suse.de>
24272
24273 PR tree-optimization/44030
24274 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
24275 NECESSARY flag if we propagate from a inserted expression.
24276
24277 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
24278
24279 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
24280 domain types as equal if they are both PLACEHOLDER_EXPRs.
24281
24282 2010-05-08 Richard Guenther <rguenther@suse.de>
24283
24284 * lto-wrapper.c (run_gcc): Remove linker output from
24285 command line for LTRANS invocation.
24286
24287 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24288
24289 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
24290 lto-macho as lto_binary_reader.
24291 * target.h (struct gcc_target): New hooks lto_start and lto_end.
24292 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
24293 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
24294 in lto_start and lto_end calls.
24295 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
24296 magic numbers.
24297 (scan_prog_file): Update is_elf_or_coff call.
24298 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
24299
24300 * collect2.c (main): Fix enum comparison.
24301
24302 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
24303 Add prototypes.
24304 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
24305 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
24306 and TARGET_ASM_LTO_END.
24307 * darwin.c: Include obstack.h and lto-streamer.h.
24308 (lto_section_names_offset, lto_section_names_obstack,
24309 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
24310 global variables.
24311 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
24312 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
24313 to a temporary file.
24314 (darwin_asm_lto_end): New function. Restore asm_out_file.
24315 (darwin_asm_named_section): For LTO sections, replace the name with
24316 the offset of the section name in a string table, and build this
24317 table.
24318 (darwin_file_start): Initialize global vars for LTO support.
24319 (darwin_file_end): If output to asm_out_file was redirected, append it
24320 to the proper asm_out_file here. Add the section names section.
24321
24322 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24323
24324 * c-pragma.c (pending_weak_d, pending_weak): New.
24325 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
24326 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
24327 handle_pragma_weak): Update the uses of pending_weaks.
24328
24329 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24330
24331 PR documentation/44016
24332 * doc/standards.texi (Standards): Link to unversioned
24333 cxx0x_status.html page.
24334
24335 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
24336
24337 PR target/43708
24338 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
24339 in addition to TREE_USED, to avoid "set but unused" warnings.
24340
24341 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24342
24343 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
24344 (is_loop_prefetching_profitable): Do not insert prefetches
24345 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
24346 times the prefetch ahead distance.
24347
24348 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24349
24350 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
24351 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
24352 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
24353 the unroll_factor.
24354
24355 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24356
24357 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
24358 a diagnostic info when the insn-to-mem ratio is too small.
24359
24360 2010-05-07 Richard Guenther <rguenther@suse.de>
24361
24362 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
24363 the linker plugin.
24364 (store_arg): Queue temp_filename for deletion instead of
24365 the whole argument.
24366
24367 2010-05-07 Richard Guenther <rguenther@suse.de>
24368
24369 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
24370 (run_gcc): Handle LTRANS phase invocation.
24371 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
24372
24373 2010-05-07 Jakub Jelinek <jakub@redhat.com>
24374
24375 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
24376 this is also meaningful on PARM_DECLs and RESULT_DECLs.
24377
24378 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24379
24380 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
24381
24382 2010-05-07 Richard Guenther <rguenther@suse.de>
24383
24384 PR tree-optimization/44020
24385 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
24386 code when PRE is not yet initialized.
24387
24388 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24389
24390 * config/mips/dbxmdebug.h: Remove.
24391 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
24392
24393 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
24394
24395 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
24396 with null pointer and also warn about ordered comparison of zero with
24397 pointer if -Wextra.
24398
24399 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24400
24401 * graphite-blocking.c
24402 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
24403 * graphite-clast-to-gimple.c
24404 (clast_to_gcc_expression): Same.
24405 (precision_for_value): Same.
24406 (precision_for_interval): Same.
24407 (gcc_type_for_interval): Same.
24408 (graphite_create_new_guard): Same.
24409 (compute_bounds_for_level): Same.
24410 (graphite_create_new_loop_guard): Same.
24411 * graphite-interchange.c
24412 (build_linearized_memory_access): Same.
24413 (pdr_stride_in_loop): Same.
24414 (memory_strides_in_loop_1): Same.
24415 (memory_strides_in_loop): Same.
24416 (extend_scattering): Same.
24417 (psct_scattering_dim_for_loop_depth): Same.
24418 (pbb_number_of_iterations): Same.
24419 * graphite-poly.h
24420 (debug_iteration_domains): Same.
24421 * graphite-ppl.c
24422 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
24423 (ppl_set_inhomogeneous_gmp): Same.
24424 (ppl_strip_loop): Same.
24425 (ppl_lexico_compare_linear_expressions): Same.
24426 (ppl_read_polyhedron_matrix): Same.
24427 (ppl_max_for_le_pointset): Same.
24428 * graphite-ppl.h
24429 (ppl_read_polyhedron_matrix): Same.
24430 (tree_int_to_gmp): Same.
24431 (gmp_cst_to_tree): Same.
24432 (ppl_set_inhomogeneous): Same.
24433 (ppl_set_inhomogeneous_tree): Same.
24434 (ppl_set_coef): Same.
24435 (ppl_set_coef_tree): Same.
24436 * graphite-sese-to-poly.c
24437 (build_pbb_scattering_polyhedrons): Same.
24438 (build_scop_scattering): Same.
24439 (scan_tree_for_params_right_scev): Same.
24440 (scan_tree_for_params): Same.
24441 (find_params_in_bb): Same.
24442 (find_scop_parameters): Same.
24443 (add_upper_bounds_from_estimated_nit): Same.
24444 (build_loop_iteration_domains): Same.
24445 (add_condition_to_domain): Same.
24446 (pdr_add_memory_accesses): Same.
24447
24448 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24449
24450 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
24451 CLooG's value_* macros to their respective mpz_* counterparts.
24452 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
24453 (graphite_create_new_loop_guard): Same.
24454 * graphite-interchange.c (build_linearized_memory_access): Same.
24455 (pdr_stride_in_loop): Same.
24456 (memory_strides_in_loop_1): Same.
24457 (1st_interchange_profitable_p): Same.
24458 * graphite-poly.c (extend_scattering): Same.
24459 (psct_scattering_dim_for_loop_depth): Same.
24460 (pbb_number_of_iterations): Same.
24461 (pbb_number_of_iterations_at_time): Same.
24462 * graphite-poly.h (new_1st_loop): Same.
24463 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
24464 (oppose_constraint): Same.
24465 (insert_constraint_into_matrix): Same.
24466 (ppl_set_inhomogeneous_gmp): Same.
24467 (ppl_set_coef_gmp): Same.
24468 (ppl_strip_loop): Same.
24469 (ppl_lexico_compare_linear_expressions): Same.
24470 (ppl_max_for_le_pointset): Same.
24471 (ppl_min_for_le_pointset): Same.
24472 (ppl_build_realtion): Same.
24473 * graphite-ppl.h (gmp_cst_to_tree): Same.
24474 (ppl_set_inhomogeneous): Same.
24475 (ppl_set_inhomogeneous_tree): Same.
24476 (ppl_set_coef): Same.
24477 (ppl_set_coef_tree): Same.
24478 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24479 (build_scop_scattering): Same.
24480 (add_value_to_dim): Same.
24481 (scan_tree_for_params_right_scev): Same.
24482 (scan_tree_for_params_int): Same.
24483 (scan_tree_for_params): Same.
24484 (find_params_in_bb): Same.
24485 (find_scop_parameters): Same.
24486 (add_upper_bounds_from_estimated_nit): Same.
24487 (build_loop_iteration_domains): Same.
24488 (create_linear_expr_from_tree): Same.
24489 (add_condition_to_domain): Same.
24490 (pdr_add_memory_accesses): Same.
24491
24492 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
24493 Jason Merrill <jason@redhat.com>
24494
24495 * c-common.c (c_common_reswords): Add nullptr.
24496 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
24497 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
24498 (gen_type_die_with_usage): Likewise.
24499 * dbxout.c (dbxout_type): Likewise.
24500 * sdbout.c (plain_type_1): Likewise.
24501
24502 2010-05-06 Jason Merrill <jason@redhat.com>
24503
24504 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
24505 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
24506 ret appropriately.
24507 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
24508
24509 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
24510 stripping WITH_SIZE_EXPR.
24511 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
24512 change.
24513
24514 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24515
24516 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
24517 list of obsolete configurations.
24518 Disabled check for obsolete configurations.
24519 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
24520 Removed support for previous versions.
24521 * config/mips/iris.h: Removed.
24522 * config/mips/iris5.h: Removed.
24523 * config/mips/iris6.h: Merged old iris.h contents.
24524 (TARGET_IRIX): Removed.
24525 (DRIVER_SELF_SPECS): Removed mabi=32.
24526 (IDENT_ASM_OP): Removed undef.
24527 (STARTFILE_SPEC): Removed mabi=32.
24528 (ENDFILE_SPEC): Likewise.
24529 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
24530 (MACHINE_TYPE): Update for IRIX 6.5.
24531 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
24532 TARGET_IRIX by TARGET_IRIX6.
24533 (mips_file_start): Likewise.
24534 (mips_output_external): Remove IRIX 5/6 O32 support.
24535 (mips_output_function_prologue): Likewise.
24536 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
24537 TARGET_IRIX6.
24538 (TARGET_CPU_CPP_BUILTINS): Likewise.
24539 (TARGET_IRIX): Removed.
24540 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
24541 (MULTILIB_DIRNAMES): Removed 32.
24542 (MULTILIB_OSDIRNAMES): Removed ../lib.
24543 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
24544 (Specific, mips-sgi-irix5): Document removal.
24545 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
24546 Remove references to older IRIX 6 releases and the O32 ABI.
24547
24548 2010-05-06 Jakub Jelinek <jakub@redhat.com>
24549
24550 PR bootstrap/43994
24551 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
24552 instead of DF_REF_REAL_REG.
24553
24554 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
24555
24556 PR target/43888
24557 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
24558 handling to still return true for x64 targets.
24559
24560 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
24561
24562 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
24563
24564 2010-05-06 Jan Hubicka <jh@suse.cz>
24565
24566 PR tree-optimization/43791
24567 * ipa-inline.c (update_caller_keys): Remove bogus
24568 disregard_inline_limits check.
24569
24570 2010-05-06 Michael Matz <matz@suse.de>
24571
24572 PR tree-optimization/43984
24573 * tree-ssa-pre.c (inserted_phi_names): Remove.
24574 (inserted_exprs): Change to bitmap.
24575 (create_expression_by_pieces): Set bits, don't append to vector.
24576 (insert_into_preds_of_block): Don't handle inserted_phi_names.
24577 (eliminate): Don't look at inserted_phi_names, remove deleted
24578 insns from inserted_exprs.
24579 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
24580 (init_pre, fini_pre): Allocate and free bitmaps.
24581 (execute_pre): Insert insns on edges before elimination.
24582
24583 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
24584
24585 * tree.c (initializer_zerop): Handle STRING_CST.
24586
24587 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
24588
24589 PR 40989
24590 * doc/invoke.texi (Wimplicit): Document as C only.
24591 * opts.c (common_handle_option): Add argument kind.
24592 (handle_option): Rename as read_cmdline_option. Factor out code to...
24593 (handle_option): ... here. New.
24594 (handle_options): Rename as read_cmdline_options.
24595 (decode_options): Update call.
24596 (set_option): Use option index instead of option pointer. Classify
24597 diagnostics correctly.
24598 (enable_warning_as_error): Call handle_option.
24599 * opts.h (set_option): Update declaration.
24600 (handle_option): Declare.
24601 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
24602 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
24603 * c-opts.c (set_Wimplicit): Delete.
24604 (c_family_lang_mask): New static constant.
24605 (c_common_handle_option): Add argument kind. Use handle_option
24606 instead of set_Wimplicit.
24607 (c_common_post_options): warn_implicit and warn_implicit_int
24608 are disabled by default.
24609 * c-common.c (warn_implicit): Do not define here.
24610 * c-common.h (warn_implicit): Do not declare here.
24611 (c_common_handle_option): Update declaration.
24612 * lto-opts.c (lto_reissue_options): Update call to set_option.
24613
24614 2010-05-06 Richard Guenther <rguenther@suse.de>
24615
24616 PR tree-optimization/43571
24617 * domwalk.c (walk_dominator_tree): Walk the dominator
24618 sons in more optimal order.
24619
24620 2010-05-06 Richard Guenther <rguenther@suse.de>
24621
24622 PR tree-optimization/43934
24623 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
24624 (stmt_cost): Likewise.
24625 (extract_true_false_args_from_phi): New helper.
24626 (determine_max_movement): For PHI nodes verify we can hoist them
24627 and compute their cost.
24628 (determine_invariantness_stmt): Handle PHI nodes.
24629 (move_computations_stmt): Likewise. Hoist PHI nodes in
24630 if-converted form using COND_EXPRs.
24631 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
24632 (tree_ssa_lim): Likewise.
24633 * tree-flow.h (tree_ssa_lim): Adjust prototype.
24634 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
24635
24636 2010-05-06 Richard Guenther <rguenther@suse.de>
24637
24638 PR tree-optimization/43987
24639 * tree-ssa-structalias.c (could_have_pointers): For possibly
24640 address-taken variables force pointers to be recorded.
24641 (create_variable_info_for_1): Likewise.
24642 (push_fields_onto_fieldstack): Pass in wheter all fields
24643 must have pointers.
24644 (find_func_aliases): Query types instead of vars whether
24645 they contain pointers where appropriate.
24646
24647 2010-05-06 Jan Hubicka <jh@suse.cz>
24648
24649 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
24650 (record_reference, mark_address, mark_load, mark_store): Record
24651 references.
24652 (record_references_in_initializer): Update call of record_references.
24653 (rebuild_cgraph_edges): Remove all references before rebuiding.
24654 * cgraph.c (cgraph_create_node): Clear ref list.
24655 (cgraph_remove_node): Remove references.
24656 (dump_cgraph_node): Dump references.
24657 (cgraph_clone_node): Clone references.
24658 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
24659 (struct cgraph_node, varpool_node): Add ref_lst.
24660 * ipa-ref.c: New file.
24661 * ipa-ref.h: New file.
24662 * ipa-ref-inline.h: New file.
24663 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
24664 (referenced_from_other_partition_p): New function.
24665 (lto_output_varpool_node): Take set arugment; call
24666 referenced_from_other_partition.
24667 (lto_output_ref): New.
24668 (add_references): New.
24669 (output_refs): New.
24670 (output_cgraph): Compute boundary based on references; output refs.
24671 (output_varpool): Accept cgraph_node_set argument.
24672 (input_ref): New.
24673 (input_refs): New.
24674 (input_cgraph): Call input_refs.
24675 * lto-section-in.c (lto_section_name): Add refs.
24676 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
24677 (ipa-ref.o): New file.
24678 * varpool.c (varpool_node): Clear ipa ref list.
24679 (varpool_remove_node): Remove references.
24680 (dump_varpool_node): Dump references.
24681 (varpool_assemble_decl): Only compile finalized ones.
24682 (varpool_extra_name_alias): Initialize ref list.
24683 * lto-streamer.c (lto-get_section_name): Add .refs section.
24684 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
24685 (referenced_from_other_partition_p): Declared.
24686
24687 2010-05-06 Ira Rosen <irar@il.ibm.com>
24688
24689 PR tree-optimization/43901
24690 * tree-vect-stmts.c (vectorizable_call): Assert that vector
24691 type is not NULL if it's transformation phase, and return
24692 FALSE if it's analysis.
24693 (vectorizable_conversion, vectorizable_operation,
24694 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
24695
24696 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
24697
24698 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
24699 Delete.
24700 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
24701 New define.
24702 * config/mips/mips-protos.h
24703 (mips_small_register_classes_for_mode_p): Delete prototype.
24704
24705 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
24706
24707 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
24708 * config/arm/arm.c (multiple_operation_profitable_p,
24709 compute_offset_order): New static functions.
24710 (load_multiple_sequence, store_multiple_sequence): Use them.
24711 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
24712 memory offsets, not register numbers.
24713 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
24714
24715 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
24716
24717 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
24718 (get_pending_sizes, put_pending_size, put_pending_sizes):
24719 Update the uses of pending_sizes.
24720 * c-decl.c (store_parm_decls): Likewise.
24721 * c-tree.h (struct c_arg_info): Likewise.
24722 * tree.h: Update the prototype for get_pending_sizes and
24723 put_pending_sizes.
24724
24725 2010-05-05 Jason Merrill <jason@redhat.com>
24726
24727 PR debug/43370
24728 * c-common.c (handle_aligned_attribute): Respect
24729 ATTR_FLAG_TYPE_IN_PLACE.
24730
24731 PR testsuite/43758
24732 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
24733 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
24734 (TARGET_INITIALIZER): Use it.
24735 * c-common.c (attribute_takes_identifier_p): Call it.
24736 * c-common.h: Update prototype.
24737 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
24738 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
24739
24740 2010-05-05 Jakub Jelinek <jakub@redhat.com>
24741
24742 PR debug/43950
24743 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
24744 DW_ID_down_case for Fortran compilation units.
24745
24746 2010-05-05 Jan Hubicka <jh@suse.cz>
24747
24748 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
24749 handle aliases.
24750
24751 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
24752
24753 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
24754 a variable-sized RESULT_DECL.
24755
24756 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
24757
24758 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
24759
24760 2010-05-05 Jason Merrill <jason@redhat.com>
24761
24762 PR c++/43787
24763 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
24764 returns GS_OK.
24765 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
24766
24767 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
24768 Jakub Jelinek <jakub@redhat.com>
24769
24770 PR debug/43478
24771 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
24772 (dead_debug_init, dead_debug_finish): New functions.
24773 (dead_debug_add, dead_debug_insert_before): Likewise.
24774 (df_note_bb_compute): Initialize a dead_debug object, add dead
24775 debug uses to it, insert debug bind insns before death insns,
24776 reset debug insns that refer to pending uses at the end.
24777 * rtl.h (make_debug_expr_from_rtl): New prototype.
24778 * varasm.c (make_debug_expr_from_rtl): New function.
24779
24780 2010-05-05 Jan Hubicka <jh@suse.cz>
24781
24782 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
24783 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
24784 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
24785 lto_varpool_encoder_deref, lto_varpool_encoder_size,
24786 lto_varpool_encoder_encode_initializer_p,
24787 lto_set_varpool_encoder_encode_initializer): New functions.
24788 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
24789 call output_varpool.
24790 (input_varpool_node): Do not always set analyzed.
24791 (input_cgraph_1): Return vector of cgraph nodes.
24792 (input_varpool_1): Return vector of varpools.
24793 (input_cgraph): Free the vectors.
24794 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24795 output only initializers needed.
24796 (lto_output): Only call output_cgraph.
24797 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
24798 * lto-section-out.c (lto_new_out_decl_state): Initialize
24799 state->varpool_node_encoder.
24800 * lto-streamer.h (lto_varpool_encoder_d): New.
24801 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
24802 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
24803 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
24804 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
24805 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
24806 Declare.
24807 (output_varpool, input_varpool): Remove declarations.
24808
24809 2010-05-05 Jan Hubicka <jh@suse.cz>
24810
24811 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
24812 with body can prevail.
24813
24814 2010-05-05 Jan Hubicka <jh@suse.cz>
24815
24816 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
24817 size.
24818
24819 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24820
24821 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
24822
24823 * gengtype.h (erro_at_line): Constify pos argument.
24824
24825 * gengtype.c: Include hashtab.h.
24826 (enum gc_used): Document GC_MAYBE_POINTED_TO.
24827 (error_at_line): Constify pos argument.
24828 (do_typedef): Initialize p->opt field.
24829 (get_file_gtfilename): Fix comment typo.
24830 (struct walk_type_data): Constify line field.
24831 (get_output_file_for_structure): New function.
24832 (write_local_func_for_structure): Constify orig_s argument.
24833 Use get_output_file_for_structure.
24834 (write_func_for_structure): Use get_output_file_for_structure.
24835 (INDENT): New define.
24836 (dump_pair, dump_type, dump_type_list, dump_typekind)
24837 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
24838 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
24839 functions.
24840 (seen_types): New variable.
24841 (main): New variable do_dump. Process "-d" command line option.
24842 Call dump_everything if dump requested.
24843
24844 2010-05-05 Jakub Jelinek <jakub@redhat.com>
24845
24846 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
24847 in a temporary instead of invoking the macro multiple times.
24848 (track_expr_p): Likewise.
24849
24850 2010-05-04 Neil Vachharajani <nvachhar@google.com>
24851
24852 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
24853 per new semantics.
24854 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
24855 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
24856 conditions for printing notes.
24857 * common.opt (-Wcoverage-mismatch): Allow negative, default to
24858 true, update documentation.
24859 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
24860
24861 2010-05-04 Jakub Jelinek <jakub@redhat.com>
24862
24863 PR c/43981
24864 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
24865 on dimen.
24866
24867 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
24868
24869 PR target/43799
24870 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
24871 (*sse_prologue_save_insn1): Likewise.
24872 (SSE prologue save splitter): Likewise.
24873
24874 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
24875
24876 * tree.c (free_lang_data_in_one_sizepos): New inline function.
24877 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
24878 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
24879 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
24880 all decls. Call it on DECL_FIELD_OFFSET of fields.
24881 (find_decls_types_r): Follow DECL_VALUE_EXPR.
24882 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
24883
24884 2010-05-04 Martin Jambor <mjambor@suse.cz>
24885
24886 * tree-sra.c (build_access_from_expr_1): The first parameter type
24887 changed to simple tree.
24888 (build_access_from_expr): Likewise, gsi parameter was eliminated.
24889 (scan_assign_result): Renamed to assignment_mod_result, enum elements
24890 renamed as well.
24891 (build_accesses_from_assign): Removed all parameters except for a
24892 simple gimple statement. Now returns a simple bool.
24893 (scan_function): All non-analysis parts moved to separate functions
24894 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
24895 parameters and updated both callers.
24896 (sra_modify_expr): Removed parameter data.
24897 (sra_modify_function_body): New function.
24898 (perform_intra_sra): Call sra_modify_function_body to modify the
24899 function body.
24900 (replace_removed_params_ssa_names): Parameter data changed into
24901 adjustments vector.
24902 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
24903 changed the parameter dont_convert to convert with the opposite
24904 meaning.
24905 (sra_ipa_modify_assign): Parameter data changed into adjustments
24906 vector, return value changed to bool.
24907 (ipa_sra_modify_function_body): New function.
24908 (sra_ipa_reset_debug_stmts): Updated a comment.
24909 (modify_function): Use ipa_sra_modify_function_body to modify function
24910 body.
24911
24912 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
24913
24914 PR middle-end/43671
24915 * alias.c (true_dependence): Handle the same VALUE in x and mem.
24916 (canon_true_dependence): Likewise.
24917 (write_dependence_p): Likewise.
24918
24919 2010-05-04 Jan Hubicka <jh@suse.cz>
24920
24921 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
24922 * cgraphbuild.c: Include ipa-utils.h
24923 (record_reference_ctx): New struct.
24924 (record_reference): Simplify to work on initializers; not statements.
24925 (mark_address, mark_load, mark_store): New.
24926 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
24927 walk PHI nodes too.
24928 (record_references_in_initializer): Update use of record_reference.
24929 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
24930 walk PHI nodes too.
24931
24932 2010-05-04 Jan Hubicka <jh@suse.cz>
24933
24934 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
24935 node will be removed anyway.
24936 (lto_varpool_replace_node): Allow also unanalyzed nodes;
24937 relink aliases of node into prevailing node.
24938 * varpool.c (varpool_remove_node): Remove aliases properly;
24939 when removing node, remove all its aliases too; remove DECL_INITIAL
24940 of removed node; ggc_free the varpool node.
24941
24942 2010-05-04 Richard Guenther <rguenther@suse.de>
24943
24944 PR tree-optimization/43879
24945 * tree-ssa-structalias.c (alias_get_name): Use
24946 DECL_ASSEMBLER_NAME if available.
24947 (create_function_info_for): Return the varinfo node.
24948 (ipa_pta_execute): Associate same-body aliases and extra names
24949 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
24950
24951 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
24952
24953 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
24954
24955 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
24956
24957 PR bootstrap/43964
24958 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
24959 only if HONOR_REG_ALLOC_ORDER is not defined.
24960
24961 2010-05-04 Richard Guenther <rguenther@suse.de>
24962
24963 PR tree-optimization/43949
24964 * tree-vrp.c (extract_range_from_binary_expr): Only handle
24965 TRUNC_MOD_EXPR.
24966
24967 2010-04-26 Jason Merrill <jason@redhat.com>
24968
24969 * c.opt (-fstrict-enums): New.
24970 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
24971
24972 2010-05-03 David Ung <davidu@mips.com>
24973 James E. Wilson <wilson@codesourcery.com>
24974
24975 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
24976 emit the trap instruction before the divide for TUNE_74K.
24977
24978 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
24979
24980 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
24981 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
24982 based on the above, for new target hook.
24983
24984 * hooks.c (hook_bool_mode_true): New generic hook.
24985 * hooks.h (hook_bool_mode_true): Add prototype.
24986
24987 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
24988 target hook.
24989 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
24990 target hook, set to hook_bool_mode_false.
24991 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
24992 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
24993 with targetm.small_register_classes_for_mode_p.
24994 (find_reusable_reload): Likewise.
24995 (combine_reloads): Likewise.
24996 * reload1.c (reload_as_needed): Likewise.
24997 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
24998 * ifcvt.c (noce_process_if_block, check_cond_move_block,
24999 dead_or_predicable): Likewise.
25000 * regmove.c (optimize_reg_copy_1): Likewise.
25001 * calls.c (prepare_call_address): Likewise.
25002 (precompute_register_parameters): Likewise.
25003
25004 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
25005 hook definition.
25006 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
25007 implementation of the hook that considers all register classes
25008 small except for SH64.
25009 (sh_override_options): Use the new hook.
25010 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
25011 Add prototype.
25012
25013 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
25014 hook definition.
25015 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
25016 implementation of the hook that considers all register classes
25017 small for THUMB1.
25018 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
25019 Add prototype.
25020
25021 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
25022 hook definition.
25023 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
25024 implementation of the hook that considers all register classes
25025 small for MIPS16.
25026 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
25027 Add prototype.
25028
25029 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
25030 hook definition.
25031 * config/m32c/m32c.h: Likewise.
25032 * config/pdp11/pdp11.h: Likewise.
25033 * config/avr/avr.h: Likewise.
25034 * config/xtensa/xtensa.h: Likewise.
25035 * config/m68hc11/m68hc11.h: Likewise.
25036 * config/mn10300/mn10300.h: Likewise.
25037 * config/mcore/mcore.h: Likewise.
25038 * config/h8300/h8300.h: Likewise.
25039 * config/bfin/bfin.h: Likewise.
25040
25041 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
25042 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
25043
25044 2010-05-03 Anatoly Sokolov <aesok@post.ru>
25045
25046 * double-int.h (tree_to_double_int): Remove macro.
25047 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
25048 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25049 (tree_to_double_int): New function.
25050 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
25051 Move ...
25052 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25053
25054 2010-05-03 Richard Guenther <rguenther@suse.de>
25055
25056 PR tree-optimization/43971
25057 * tree-ssa-structalias.c (get_constraint_for_1): Fix
25058 constraints in the !flag_delete_null_pointer_checks case.
25059
25060 2010-05-03 Jakub Jelinek <jakub@redhat.com>
25061
25062 PR debug/43972
25063 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
25064 result mode matches original rtl mode.
25065
25066 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
25067
25068 PR target/43888
25069 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
25070
25071 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25072
25073 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
25074 when processing flag options.
25075
25076 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25077
25078 * gcov-iov.c (main): Change format string placeholder
25079 from %#08x to 0x%08x.
25080 * genchecksum.c (dosum): Change format string placeholder
25081 from %#02x to 0x%02x.
25082
25083 2010-05-02 Richard Guenther <rguenther@suse.de>
25084
25085 PR tree-optimization/43879
25086 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
25087
25088 2010-05-02 Bruno Haible <bruno@clisp.org>
25089
25090 * doc/extend.texi (Function Attributes): Fix a typo.
25091
25092 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25093
25094 Revert:
25095 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
25096 placeholder from 0x%x to %#x.
25097 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25098 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
25099 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
25100 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
25101 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
25102 * config/i386/i386.c (ix86_target_string): Ditto.
25103 * config/i386/i386.c (output_pic_addr_const): Ditto.
25104 (print_operand): Ditto.
25105
25106 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25107
25108 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
25109 placeholder from 0x%x to %#x.
25110 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
25111 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
25112 (ASM_OUTPUT_DEBUG_DATA): Ditto.
25113 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
25114 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
25115 * optc-gen.awk: Ditto.
25116 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
25117 (HOST_WIDE_INT_PRINT_HEX): Ditto.
25118 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
25119 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25120
25121 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25122
25123 * target.h (struct calls): Add function_value_regno_p field.
25124 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
25125 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
25126 * targhooks.c (default_function_value_regno_p): New function.
25127 * targhooks.h (default_function_value_regno_p): Declare function.
25128 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
25129 * builtins.c. (apply_result_size): (Ditto.).
25130 * combine.c. (likely_spilled_retval_p): (Ditto.).
25131 * mode-switching.c. Include 'target.h'.
25132 (create_pre_exit): Use function_value_regno_p hook.
25133 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
25134 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
25135 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
25136
25137 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
25138 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
25139 (ix86_function_value_regno_p): Declare as static, change argument
25140 type to const unsigned int.
25141 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
25142
25143 2010-05-01 Richard Guenther <rguenther@suse.de>
25144
25145 PR tree-optimization/43949
25146 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
25147 types.
25148 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
25149
25150 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25151
25152 * rtl.h (CONST_DOUBLE_P): Define.
25153 (rtx_to_double_int): Declare.
25154 * emit-rtl.c (rtx_to_double_int): New function.
25155 * dwarf2out.c (insert_double): New function.
25156 (loc_descriptor, add_const_value_attribute): Clean up, use
25157 rtx_to_double_int and insert_double functions.
25158
25159 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
25160
25161 * doc/extend.texi (Inline): Add missing return keyword to examples.
25162 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
25163 "command-line".
25164
25165 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
25166
25167 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
25168 the variable part of the offset as well. Use highest_pow2_factor for
25169 all alignment checks.
25170
25171 2010-04-30 Richard Guenther <rguenther@suse.de>
25172
25173 PR tree-optimization/43879
25174 * tree-ssa-structalias.c (type_could_have_pointers): Functions
25175 can have pointers.
25176
25177 2010-04-30 Jan Hubicka <jh@suse.cz>
25178
25179 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
25180 varpool.
25181 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
25182
25183 2010-04-30 Jan Hubicka <jh@suse.cz>
25184
25185 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
25186 New.
25187 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
25188 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
25189 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
25190 cgraph_node_set_needs_ltrans_p): Remove.
25191
25192 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25193
25194 * sdbout.c: Include vec.h, do not include varray.h.
25195 (deferred_global_decls, sdbout_global_decl,
25196 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
25197 * toplev.c: Do not include varray.h.
25198 (dump_memory_report): Do not dump VARRAY statistics.
25199 * gengtype.c (open_base_file): Ignore varray.h.
25200 * Makefile.in: Update for abovementioned changes.
25201 Remove all traces of varray.c and varray.h.
25202 * varray.c: Remove file.
25203 * varray.h: Remove file.
25204
25205 2010-04-30 Jan Hubicka <jh@suse.cz>
25206
25207 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
25208 references.
25209
25210 2010-04-30 Jan Hubicka <jh@suse.cz>
25211
25212 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
25213 needed.
25214
25215 2010-04-30 Richard Guenther <rguenther@suse.de>
25216
25217 * tree-ssa-structalias.c (get_constraint_for_1): Generate
25218 constraints for CONSTRUCTOR.
25219
25220 2010-04-30 Richard Guenther <rguenther@suse.de>
25221
25222 PR lto/43946
25223 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
25224 first after all lowering passes.
25225
25226 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25227
25228 * toplev.c: Include varray.h for statistics dumping.
25229 * tree.h: Do not declare varray_head_tag.
25230 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
25231 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
25232 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
25233 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
25234 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
25235 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
25236 c-common.c, c-common.h, reg-stack.c, basic-block.h,
25237 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
25238 include varray.h.
25239 * Makefile.in: Update for abovementioned changes.
25240
25241 2010-04-30 Jakub Jelinek <jakub@redhat.com>
25242
25243 PR debug/43942
25244 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
25245
25246 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
25247
25248 * config/picochip/picochip.c (picochip_legitimize_address): Define.
25249 Use this function to do machine-specific conversion.
25250 (picochip_legitimize_reload_address): Likewise.
25251 (picochip_legitimate_address_p): Check valid base register only if
25252 strict.
25253 (picochip_check_conditional_copy): Check for modw only if opnd is
25254 register.
25255 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
25256 to call the function in c.
25257 * config/picochip/picochip-protos.h
25258 (picochip_legitimize_reload_address): Define.
25259 * config/picochip/picochip.md (supported_compare1): Define.
25260
25261 2010-04-30 Jan Hubicka <jh@suse.cz>
25262
25263 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
25264 (cgraph_global_info): Remove inlined.
25265 (LTO_cgraph_tag_names): Remove.
25266 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
25267 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
25268 simplify cgraph tags and document.
25269 (lto_output_node): Use only LTO_cgraph_unavail_node and
25270 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
25271 for_functions_valid, global info, process and output flags.
25272 (input_overwrite_node): Initialize estimated stack size and
25273 estimated growth. Do not read flags we no longer store.
25274 (input_node): Likewise do not read info no longer stored.
25275 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
25276 flag.
25277
25278 2010-04-30 Richard Guenther <rguenther@suse.de>
25279
25280 PR tree-optimization/43879
25281 * tree-ssa-structalias.c (get_constraint_for_1): Properly
25282 handle non-zero initializers.
25283
25284 2010-04-30 Richard Guenther <rguenther@suse.de>
25285
25286 * builtins.c (fold_builtin_1): Delete free (0).
25287
25288 2010-04-29 Jan Hubicka <jh@suse.cz>
25289
25290 * gengtype.c (open_base_files): Add lto-streamer.h
25291 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
25292 (pass_ipa_cp): GGC collect.
25293 * toplev. (compile_file): Do not output symbols.
25294 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
25295 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
25296 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
25297 * lto-section-in.c: Include ggc.h
25298 (lto_new_in_decl_state): Alloc in GGC.
25299 (lto_delete_in_decl_state): Likewise.
25300 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
25301 Collect.
25302
25303 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25304
25305 PR target/42895
25306 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
25307 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
25308 (HONOR_REG_ALLOC_ORDER): Describe new macro.
25309 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
25310 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
25311 account only if HONOR_REG_ALLOC_ORDER is not defined.
25312 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
25313 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
25314
25315 2010-04-29 Jon Grant <04@jguk.org>
25316
25317 * collect2.c (vflag): Change type from int to bool.
25318 (debug): Likewise.
25319 (helpflag): New global bool.
25320 (main): Set vflag and debug with boolean, not integer truth values.
25321 Accept new "--help" option and output usage text if found.
25322 * collect2.h (vflag): Update prototype.
25323 (debug): Likewise.
25324
25325 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
25326
25327 PR bootstrap/43936
25328 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
25329
25330 2010-04-29 Richard Guenther <rguenther@suse.de>
25331
25332 PR bootstrap/43935
25333 * plugin.h (invoke_plugin_callbacks): Annotate arguments
25334 with ATTRIBUTE_UNUSED.
25335
25336 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
25337
25338 PR target/43921
25339 * config/i386/i386.c (get_some_local_dynamic_name): Replace
25340 INSN_P with NONDEBUG_INSN_P.
25341 (distance_non_agu_define): Likewise.
25342 (distance_agu_use): Likewise.
25343
25344 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25345
25346 From Dominique d'Humieres <dominiq@lps.ens.fr>
25347 PR bootstrap/43858
25348 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
25349 test_set.
25350
25351 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
25352
25353 * plugin.h (invoke_plugin_callbacks): New inline function.
25354 * plugin.c (flag_plugin_added): New global flag.
25355 (add_new_plugin): Initialize above flag.
25356 (invoke_plugin_callbacks): Rename to ...
25357 (invoke_plugin_callbacks_full): ... this.
25358
25359 2010-04-28 Jan Hubicka <jh@suse.cz>
25360
25361 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
25362 (lto_varpool_replace_node): New.
25363 (lto_symtab_resolve_symbols): Resolve varpool nodes.
25364 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
25365 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
25366 * cgraph.h (varpool_node_ptr): New type.
25367 (varpool_node_ptr): New vector.
25368 (varpool_node_set_def): New structure.
25369 (varpool_node_set): New type.
25370 (varpool_node_set): New vector.
25371 (varpool_node_set_element_def): New structure.
25372 (varpool_node_set_element, const_varpool_node_set_element): New types.
25373 (varpool_node_set_iterator): New type.
25374 (varpool_node): Add prev pointers, add used_from_other_partition,
25375 in_other_partition.
25376 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
25377 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
25378 varpool_get_node, varpool_remove_node): Declare.
25379 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
25380 varpool_node_set_size): New inlines.
25381 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
25382 * tree-pass.h (varpool_node_set_def): Forward declare.
25383 (ipa_opt_pass_d): Summary writting takes vnode sets too.
25384 (ipa_write_optimization_summaries): Update prototype.
25385 * ipa-cp.c (ipcp_write_summary): Update.
25386 * ipa-reference.c (ipa_reference_write_summary): Update.
25387 * lto-cgraph.c (lto_output_varpool_node): New static function.
25388 (output_varpool): New function.
25389 (input_varpool_node): New static function.
25390 (input_varpool_1): New function.
25391 (input_cgraph): Input varpool.
25392 * ipa-pure-const.c (pure_const_write_summary): Update.
25393 * lto-streamer-out.c (lto_output): Update, output varpool too.
25394 (write_global_stream): Kill WPA hack.
25395 (produce_asm_for_decls): Update.
25396 (output_alias_pair_p): Handle variables.
25397 (output_unreferenced_globals): Output only needed partition of varpool.
25398 * ipa-inline.c (inline_write_summary): Update.
25399 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
25400 cgraph.
25401 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
25402 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
25403 varpool_node_set_new, varpool_node_set_add,
25404 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
25405 debug_varpool_node_set): New functions.
25406 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
25407 (execute_one_pass): Process new decls too.
25408 (ipa_write_summaries_2): Pass around vsets.
25409 (ipa_write_summaries_1): Likewise.
25410 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
25411 to add.
25412 (ipa_write_optimization_summaries_1): Pass around vsets.
25413 (ipa_write_optimization_summaries): Likewise.
25414 * varpool.c (varpool_get_node): New.
25415 (varpool_node): Update doubly linked lists.
25416 (varpool_remove_node): New.
25417 (dump_varpool_node): More dumping.
25418 (varpool_enqueue_needed_node): Update doubly linked lists.
25419 (decide_is_variable_needed): Kill ltrans hack.
25420 (varpool_finalize_decl): Kill lto hack.
25421 (varpool_assemble_decl): Skip decls in other partitions.
25422 (varpool_assemble_pending_decls): Update doubly linkes lists.
25423 (varpool_empty_needed_queue): Likewise.
25424 (varpool_extra_name_alias): Likewise.
25425 * lto-streamer.c (lto_get_section_name): Add vars section.
25426 * lto-streamer.h (lto_section_type): Update.
25427 (output_varpool, input_varpool): Declare.
25428
25429 2010-04-28 Mike Stump <mikestump@comcast.net>
25430
25431 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
25432
25433 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25434
25435 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
25436 record or union type with RECORD_OR_UNION_TYPE_P predicate.
25437 (lto_input_ts_type_tree_pointers): Likewise.
25438 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
25439 (lto_output_ts_type_tree_pointers): Likewise.
25440
25441 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25442
25443 Uniquization of constants at the Tree level
25444 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
25445 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
25446 bit to the end.
25447 (tree_output_constant_def): Declare.
25448 * gimplify.c (gimplify_init_constructor): When using block copy, first
25449 uniquize the constant constructor on the RHS.
25450 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
25451 DECL_IN_CONSTANT_POOL flag.
25452 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
25453 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
25454 constant pool.
25455 (assemble_variable): Deal with symbols belonging to the tree constant
25456 pool.
25457 (get_constant_section): Add ALIGN parameter and simplify.
25458 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
25459 (assemble_constant_contents): Use the expression of the VAR_DECL.
25460 (output_constant_def_contents): Use the alignment of the VAR_DECL.
25461 (tree_output_constant_def): New global function.
25462 (mark_constant): Use the expression of the VAR_DECL.
25463 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
25464 its expression.
25465 (output_object_block): Likewise and assemble the expression.
25466
25467 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25468
25469 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
25470 hash_tree, eq_tree): New tree hash table.
25471 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
25472 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
25473 lto_orig_address_remove): Reimplement.
25474
25475 2010-04-28 Xinliang David Li <davidxl@google.com>
25476
25477 PR c/42643
25478 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
25479 (compute_uninit_opnds_pos): New function.
25480 (is_non_loop_exit_postdominating): New function.
25481 (compute_control_dep_chain): New function.
25482 (find_pdom): New function.
25483 (convert_control_dep_chain_into_preds): New function.
25484 (find_predicates): New function.
25485 (find_control_equiv_block): New function.
25486 (collect_phi_def_edges): New function.
25487 (find_def_preds): New function.
25488 (find_dom): New function.
25489 (dump_predicates): New function.
25490 (get_cmp_code): New function.
25491 (is_value_included_in): New function.
25492 (find_matching_predicate_in_rest_chains): New function.
25493 (use_pred_not_overlap_with_undef_path_pred): New function.
25494 (is_use_properly_guarded): New function.
25495 (normalize_cond_1): New function.
25496 (is_and_or_or): New function.
25497 (normalize_cond): New function.
25498 (is_gcond_subset_of): New function.
25499 (is_subset_of_any): New function.
25500 (is_or_set_subset_of): New function.
25501 (is_and_set_subset_of): New function.
25502 (is_norm_cond_subset_of): New function.
25503 (is_pred_expr_subset_of): New function.
25504 (is_pred_chain_subset_of): New function.
25505 (is_included_in): New function.
25506 (is_superset_of): New function.
25507 (find_uninit_use): New function.
25508 (warn_uninitialized_phi): New function.
25509 (compute_possibly_undefined_names): New function.
25510 (ssa_undefined_value_p): New function.
25511 (execute_late_warn_uninitialized): New function.
25512 * tree-ssa.c (ssa_undefined_value_p): Removed.
25513 (warn_uninit): Changed to extern.
25514 (warn_uninitialized_phi): Removed.
25515 (warn_uninitialized_vars): Changed to extern.
25516 (execute_late_warn_uninitialized): Removed
25517 * tree-flow.h: Add new prototypes.
25518 * timevar.def: Add new time variable.
25519 * Makefile.in: Add new build file.
25520
25521 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
25522
25523 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
25524 type if available.
25525
25526 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25527
25528 PR target/22224
25529 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
25530
25531 2010-04-28 Martin Jambor <mjambor@suse.cz>
25532
25533 * cgraph.h (struct cgraph_node): New field indirect_calls.
25534 (struct cgraph_indirect_call_info): New type.
25535 (struct cgraph_edge): Removed field indirect_call. New fields
25536 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
25537 (cgraph_create_indirect_edge): Declare.
25538 (cgraph_make_edge_direct): Likewise.
25539 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
25540 * ipa-prop.h (struct ipa_param_call_note): Removed.
25541 (struct ipa_node_params): Removed field param_calls.
25542 (ipa_create_all_structures_for_iinln): Declare.
25543 * cgraph.c: Described indirect edges and uids in initial comment.
25544 (cgraph_add_edge_to_call_site_hash): New function.
25545 (cgraph_edge): Search also among the indirect edges, use
25546 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
25547 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
25548 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
25549 site hash.
25550 (initialize_inline_failed): Assign a reason to indirect edges.
25551 (cgraph_create_edge_1): New function.
25552 (cgraph_create_edge): Moved some functionality to
25553 cgraph_create_edge_1.
25554 (cgraph_create_indirect_edge): New function.
25555 (cgraph_edge_remove_callee): Add an assert checking for
25556 non-indirectness.
25557 (cgraph_edge_remove_caller): Special-case indirect edges.
25558 (cgraph_remove_edge): Likewise.
25559 (cgraph_set_edge_callee): New function.
25560 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
25561 (cgraph_make_edge_direct): New function.
25562 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
25563 the declaration of the call statement matches.
25564 (cgraph_node_remove_callees): Special-case indirect edges.
25565 (cgraph_clone_edge): Likewise.
25566 (cgraph_clone_node): Clone also the indirect edges.
25567 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
25568 indirect_call, dump count of indirect_calls edges.
25569 * ipa-prop.c (iinlining_processed_edges): New variable.
25570 (ipa_note_param_call): Create indirect edges instead of
25571 creating notes. New parameter node.
25572 (ipa_analyze_call_uses): New parameter node, pass it on to
25573 ipa_note_param_call.
25574 (ipa_analyze_stmt_uses): Likewise.
25575 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
25576 (print_edge_addition_message): Work on edges rather than on notes.
25577 (update_call_notes_after_inlining): Likewise, renamed to
25578 update_indirect_edges_after_inlining.
25579 (ipa_create_all_structures_for_iinln): New function.
25580 (ipa_free_node_params_substructures): Do not free notes.
25581 (ipa_edge_duplication_hook): Propagate bits within
25582 iinlining_processed_edges bitmap.
25583 (ipa_node_duplication_hook): Do not duplicate notes.
25584 (free_all_ipa_structures_after_ipa_cp): Renamed to
25585 ipa_free_all_structures_after_ipa_cp.
25586 (free_all_ipa_structures_after_iinln): Renamed to
25587 ipa_free_all_structures_after_iinln.
25588 (ipa_write_param_call_note): Removed.
25589 (ipa_read_param_call_note): Removed.
25590 (ipa_write_indirect_edge_info): New function.
25591 (ipa_read_indirect_edge_info): Likewise.
25592 (ipa_write_node_info): Do not stream notes, do stream information
25593 in indirect edges.
25594 (ipa_read_node_info): Likewise.
25595 (lto_ipa_fixup_call_notes): Removed.
25596 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
25597 * ipa-inline.c (pass_ipa_inline): Likewise.
25598 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
25599 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
25600 * tree-inline.c (copy_bb): Removed an unnecessary double check for
25601 is_gimple_call.
25602 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
25603 edges.
25604 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
25605 (output_cgraph): Stream also indirect edges.
25606 (lto_output_edge): Added capability to stream indirect edges.
25607 (input_edge): Likewise.
25608 (input_cgraph_1): Likewise.
25609 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
25610 of indirect edges.
25611
25612 2010-04-28 Richard Guenther <rguenther@suse.de>
25613
25614 PR tree-optimization/43879
25615 PR tree-optimization/43909
25616 * tree-ssa-structalias.c (struct variable_info): Add
25617 only_restrict_pointers flag.
25618 (new_var_info): Initialize it. Increment stats.total_vars here.
25619 (create_function_info_for): Do not increment stats.total_vars here.
25620 (get_function_part_constraint): Fix build with C++.
25621 (insert_into_field_list): Remove.
25622 (push_fields_onto_fieldstack): Properly merge fields.
25623 (create_variable_info_for): Split and simplify.
25624 (create_variable_info_for_1): New piece.
25625 (intra_create_variable_infos): Properly make restrict constraints
25626 from parameters.
25627
25628 2010-04-28 Richard Guenther <rguenther@suse.de>
25629
25630 PR c++/43880
25631 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
25632
25633 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
25634 Jan Hubicka <hubicka@ucw.cz>
25635
25636 * doc/invoke.texi (-Wsuggest-attribute=const,
25637 -Wsuggest-attribute=pure): Document.
25638 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
25639 (function_always_visible_to_compiler_p,
25640 suggest_attribute, warn_function_pure, warn_function_const):
25641 New functions.
25642 (check_call): Improve debug info.
25643 (analyze_function): Do not check availability.
25644 (add_new_function): Check availability.
25645 (propagate): Output warnings.
25646 (skip_function_for_local_pure_const): New function.
25647 (local_pure_const): Use it; output warnings.
25648 * common.opt (Wsuggest-attribute=const,
25649 Wsuggest-attribute=pure): New.
25650
25651 2010-04-27 Jakub Jelinek <jakub@redhat.com>
25652
25653 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
25654 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
25655 or DW_CFA_def_cfa_offset{,_sf}.
25656
25657 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
25658
25659 * tree.h: Fix truncated long macros.
25660
25661 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
25662
25663 * collect2.c (TARGET_64BIT): Redefine to target's default.
25664 * tlink.c: Likewise.
25665 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
25666 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
25667 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
25668 for underscoring __USER_LABEL_PREFIX__.
25669 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
25670 (SUB_LINK_ENTRY32): New.
25671 (SUB_LINK_ENTRY64): New.
25672 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
25673 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
25674 (SUB_LINK_ENTRY64): New.
25675 (SUB_LINK_ENTRY): New.
25676 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
25677 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
25678 x64 target is choosen.
25679 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
25680 * configure: Regenerated.
25681 * configure.ac (leading-mingw64-underscores): Option added.
25682
25683 2010-04-27 Jan Hubicka <jh@suse.cz>
25684
25685 * doc/invoke.texi (-fipa-profile): Document.
25686 * opts.c (decode_options): Enable ipa-profile at -O1.
25687 * timevar.def (TV_IPA_PROFILE): Define.
25688 * common.opt (fipa-profile): Add.
25689 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
25690 flag for clones.
25691 (cgraph_propagate_frequency): Handle only local ones.
25692 * tree-pass.h (pass_ipa_profile): Declare.
25693 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
25694 (pass_ipa_profile): Use TV_IPA_PROFILE.
25695 * ipa.c (ipa_profile): New function.
25696 (gate_ipa_profile): Likewise.
25697 (pass_ipa_profile): New global variable.
25698 * passes.c (pass_ipa_profile): New.
25699
25700 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
25701
25702 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
25703
25704 2010-04-27 Martin Jambor <mjambor@suse.cz>
25705
25706 PR middle-end/43812
25707 * ipa.c (dissolve_same_comdat_group_list): New function.
25708 (function_and_variable_visibility): Call
25709 dissolve_same_comdat_group_list when comdat group contains external or
25710 newly local nodes.
25711 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
25712 lists are circular and that they contain only DECL_ONE_ONLY nodes.
25713
25714 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
25715
25716 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
25717 (const_hash_1) <VECTOR_CST>: New case.
25718 (compare_constant) <VECTOR_CST>: Likewise.
25719 <ADDR_EXPR>: Deal with LABEL_REFs.
25720 (copy_constant) <VECTOR_CST>: New case.
25721
25722 2010-04-27 Jan Hubicka <jh@suse.cz>
25723
25724 * cgraph.c (cgraph_propagate_frequency): New function.
25725 * cgraph.h (cgraph_propagate_frequency): Declare.
25726 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
25727 cgraph_propagate_frequency.
25728
25729 2010-04-27 Jakub Jelinek <jakub@redhat.com>
25730
25731 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
25732
25733 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
25734
25735 PR target/40657
25736 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
25737 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
25738 here to determine which regs to push and how much stack to reserve.
25739
25740 2010-04-27 Jie Zhang <jie@codesourcery.com>
25741
25742 * doc/gimple.texi (gimple_statement_with_ops): Remove
25743 addresses_taken field.
25744 (gimple_statement_with_memory_ops): Likewise.
25745
25746 2010-04-27 Jan Hubicka <jh@suse.cz>
25747
25748 * tree-inline.c (eni_inlining_weights): Remove.
25749 (estimate_num_insns): Special case more builtins.
25750
25751 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
25752
25753 PR c/32207
25754 * c-typeck.c (build_binary_op): Move forward check for comparison
25755 pointer with null pointer constant and adjust the diagnostic message.
25756
25757 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
25758
25759 PR lto/42776
25760 * configure.ac (gcc_cv_as_section_has_align): Set if installed
25761 binutils supports extended .section directive needed by LTO, or
25762 warn if older binutils found.
25763 (LTO_BINARY_READER): New AC_SUBST'd variable.
25764 (LTO_USE_LIBELF): Likewise.
25765 * config.gcc (lto_binary_reader): New target-specific configure
25766 variable.
25767 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
25768 (LTO_USE_LIBELF): Likewise.
25769 * configure: Regenerate.
25770
25771 * collect2.c (is_elf): Rename from this ...
25772 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
25773 object files in addition to ELF-formatted ones.
25774 (scan_prog_file): Caller updated. Also allow for LTO info marker
25775 symbol to be prefixed or not by an extra underscore.
25776
25777 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
25778 * config/i386/winnt.c: Also #include lto-streamer.h
25779 (i386_pe_asm_named_section): Specify 1-byte section alignment for
25780 LTO named sections.
25781 (i386_pe_asm_output_aligned_decl_common): Add comment.
25782 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
25783
25784 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
25785
25786 PR target/43889
25787 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
25788 Add missing earlyclobber for second alternative.
25789
25790 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
25791
25792 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
25793 bits for artificial defs at the top of the block.
25794 * fwprop.c (single_def_use_enter_block): Don't call it.
25795
25796 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
25797
25798 PR 43715
25799 * configure.ac: Use "$gcc_cv_nm -g" on darwin
25800 instead of "$gcc_cv_objdump -T".
25801 Use "-undefined dynamic_lookup" on darwin.
25802 * configure: Regenerate.
25803
25804 2010-04-26 Jakub Jelinek <jakub@redhat.com>
25805
25806 PR c/43893
25807 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
25808
25809 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
25810
25811 * c-parser.c (struct c_token): Move location field up.
25812 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
25813 (struct c_declspecs): Convert typespec_word, storage_class, and
25814 default_int_p into bitfields.
25815 (struct c_declarator): Move loc field up.
25816
25817 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
25818
25819 * cfgloop.h (struct loop): Move can_be_parallel field up.
25820 * ipa-prop.h (struct ip_node_params): Move bitfields up.
25821 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
25822 down.
25823 (struct iv_cand): Convert pos field into a bitfield.
25824 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
25825 field up.
25826 (struct _stmt_vec_info): Shuffle fields for better packing.
25827
25828 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
25829
25830 * varasm.c (IN_NAMED_SECTION): Remove guard.
25831 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
25832 (IN_NAMED_SECTION_P): ...this.
25833 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
25834 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
25835
25836 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
25837
25838 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
25839 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
25840 of shadowing it. Fix comments.
25841
25842 2010-04-26 Jan Hubicka <jh@suse.cz>
25843
25844 * cgraph.c (cgraph_create_node): Set node frequency to normal.
25845 (cgraph_clone_node): Copy function frequency.
25846 * cgraph.h (node_frequency): New enum
25847 (struct cgraph_node): Add.
25848 * final.c (rest_of_clean_state): Update.
25849 * lto-cgraph.c (lto_output_node): Output node frequency.
25850 (input_overwrite_node): Input node frequency.
25851 * tre-ssa-loop-ivopts (computation_cost): Update.
25852 * lto-streamer-out.c (output_function): Do not output function
25853 frequency.
25854 * predict.c (maybe_hot_frequency_p): Update and handle functions
25855 executed once.
25856 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
25857 attribute lookup.
25858 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
25859 (compute_function_frequency): Set noreturn functions to be executed
25860 once.
25861 (choose_function_section): Update.
25862 * lto-streamer-in.c (input_function): Do not input function frequency.
25863 * function.c (allocate_struct_function): Do not initialize function
25864 frequency.
25865 * function.h (function_frequency): Remove.
25866 (struct function): Remove function frequency.
25867 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
25868 (try_update): Update.
25869 * tree-inline.c (initialize_cfun): Do not update function frequency.
25870 * passes.c (pass_init_dump_file): Update.
25871 * i386.c (ix86_compute_frame_layout): Update.
25872 (ix86_pad_returns): Update.
25873
25874 2010-04-26 Jie Zhang <jie@codesourcery.com>
25875
25876 PR tree-optimization/43833
25877 * tree-vrp.c (range_int_cst_p): New.
25878 (range_int_cst_singleton_p): New.
25879 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
25880 when both operands are constants. Use range_int_cst_p in
25881 BIT_IOR_EXPR case.
25882
25883 2010-04-26 Jan Hubicka <jh@suse.cz>
25884
25885 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
25886
25887 2010-04-26 Richard Guenther <rguenther@suse.de>
25888
25889 PR lto/43080
25890 * gimple.c (gimple_decl_printable_name): Deal gracefully
25891 with a NULL DECL_NAME.
25892
25893 2010-04-26 Richard Guenther <rguenther@suse.de>
25894
25895 PR lto/42425
25896 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
25897 if emitting debug information and it is either a function
25898 or a namespace decl.
25899
25900 2010-04-26 Ira Rosen <irar@il.ibm.com>
25901
25902 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
25903 determine if the statement is vectorizable, and a macro to access it.
25904 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
25905 Skip statements that can't be vectorized. If the analysis fails,
25906 mark the statement as unvectorizable if vectorizing basic block.
25907 (vect_compute_data_refs_alignment): Likewise.
25908 (vect_verify_datarefs_alignment): Skip statements marked as
25909 unvectorizable. Add print.
25910 (vect_analyze_group_access): Skip statements that can't be
25911 vectorized. If the analysis fails, mark the statement as
25912 unvectorizable if vectorizing basic block.
25913 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
25914 * tree-vect-stmts.c (vectorizable_store): Fix the number of
25915 generated stmts for SLP.
25916 (new_stmt_vec_info): Initialize the new field.
25917 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
25918 statements marked as unvectorizable.
25919
25920 2010-04-25 Joseph Myers <joseph@codesourcery.com>
25921
25922 * c-common.c (flag_isoc1x): New.
25923 (flag_isoc99): Update comment.
25924 * c-common.h (flag_isoc1x): New.
25925 (flag_isoc99): Update comment.
25926 * c-cppbuiltin.c (builtin_define_float_constants): Also define
25927 __<type>_DECIMAL_DIG__.
25928 * c-opts.c (set_std_c1x): New.
25929 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
25930 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
25931 * c.opt (-std=c1x, -std=gnu1x): New options.
25932 * doc/cpp.texi: Mention -std=c1x.
25933 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
25934 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
25935 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
25936 * doc/standards.texi: Mention C1X.
25937 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
25938 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
25939 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
25940 Define for C1X.
25941
25942 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
25943
25944 * config/i386/gmon-sol2.c (_mcleanup): Change format string
25945 placeholder from 0x%x to %#x.
25946 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
25947 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
25948 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
25949 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
25950 * config/i386/i386.c (ix86_target_string): Ditto.
25951 (output_pic_addr_const): Ditto.
25952 (print_operand): Ditto.
25953
25954 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
25955
25956 * combine.c (find_split_point): Add third argument. Use it
25957 to find nested multiply-accumulate instructions. Adjust calls.
25958 (try_combine): Adjust call to find_split_point.
25959
25960 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
25961
25962 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
25963
25964 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
25965
25966 PR tree-optimization/41442
25967 * fold-const.c (merge_truthop_with_opposite_arm): New function.
25968 (fold_binary_loc): Call it.
25969
25970 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
25971
25972 * toplev.c (general_init): Set default for fdiagnostics-show-option.
25973 * opts.c (common_handle_option): Allow disabling it.
25974 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
25975
25976 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
25977
25978 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
25979 between modes if both types are integral.
25980
25981 2010-04-23 Richard Guenther <rguenther@suse.de>
25982
25983 PR tree-optimization/43572
25984 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
25985
25986 2010-04-23 Richard Guenther <rguenther@suse.de>
25987
25988 PR lto/43455
25989 * tree-inline.c (tree_can_inline_p): Also check compatibility
25990 of return types.
25991
25992 2010-04-23 Martin Jambor <mjambor@suse.cz>
25993
25994 PR tree-optimization/43846
25995 * tree-sra.c (struct access): New flag grp_assignment_read.
25996 (build_accesses_from_assign): Set grp_assignment_read.
25997 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
25998 (enum mark_read_status): New type.
25999 (analyze_access_subtree): Propagate grp_assignment_read, create
26000 accesses also if both direct_read and root->grp_assignment_read.
26001
26002 2010-04-23 Martin Jambor <mjambor@suse.cz>
26003
26004 PR middle-end/43835
26005 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
26006 function does not have type attributes.
26007
26008 2010-04-23 Richard Guenther <rguenther@suse.de>
26009
26010 PR lto/42653
26011 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
26012 of FUNCTION_DECLs.
26013
26014 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26015
26016 * sese.h (create_if_region_on_edge): Remove.
26017
26018 * sese.c (create_if_region_on_edge): Make static.
26019
26020 * tree-inline.c: Do not include ggc.h.
26021
26022 * expr.c: Do not include ggc.h.
26023
26024 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
26025 dependencies.
26026
26027 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
26028
26029 PR target/43744
26030 * config/sh/sh.c (find_barrier): Don't emit a constant pool
26031 in the middle of insns for casesi_worker_2.
26032
26033 2010-04-22 David Edelsohn <edelsohn@gnu.org>
26034
26035 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
26036
26037 2010-04-22 Ira Rosen <irar@il.ibm.com>
26038
26039 PR tree-optimization/43842
26040 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
26041 loop unrolling in update of exit phis. Fix comment.
26042 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
26043 least two reduction statements in the loop before starting SLP
26044 analysis.
26045
26046 2010-04-22 Nick Clifton <nickc@redhat.com>
26047
26048 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
26049
26050 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
26051
26052 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
26053 to simplify a + ~a.
26054
26055 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26056
26057 * tree-parloops.c (loop_parallel_p): New argument
26058 parloop_obstack. Pass it down.
26059 (parallelize_loops): New variable parloop_obstack. Initialize it,
26060 pass it down, free it.
26061
26062 * tree-loop-linear.c (linear_transform_loops): Pass down
26063 lambda_obstack.
26064
26065 * tree-data-ref.h (lambda_compute_access_matrices): New argument
26066 of type struct obstack *.
26067
26068 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
26069 scratch_obstack. Initialize it, pass down, free it.
26070
26071 * lambda.h (lambda_loop_new): Remove.
26072 (lambda_matrix_new, lambda_matrix_inverse)
26073 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
26074 argument of type struct obstack *.
26075
26076 * lambda-trans.c (lambda_trans_matrix_new): New argument
26077 lambda_obstack. Pass it down, use obstack allocation for ret.
26078 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
26079 it down.
26080
26081 * lambda-mat.c (lambda_matrix_get_column)
26082 (lambda_matrix_project_to_null): Remove.
26083 (lambda_matrix_new): New argument lambda_obstack. Use obstack
26084 allocation for mat.
26085 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
26086 lambda_obstack.
26087
26088 * lambda-code.c (lambda_loop_new): New function.
26089 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
26090 (lambda_compute_auxillary_space, lambda_compute_target_space)
26091 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
26092 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
26093 (build_access_matrix): New argument lambda_obstack. Use obstack
26094 allocation for am.
26095 (lambda_compute_step_signs, lambda_compute_access_matrices): New
26096 argument lambda_obstack. Pass it down.
26097
26098 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26099
26100 * optabs.h (expand_widening_mult): Declare.
26101
26102 2010-04-22 Richard Guenther <rguenther@suse.de>
26103
26104 PR tree-optimization/43845
26105 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
26106 lookup the CALL_EXPR function and arguments.
26107
26108 2010-04-22 Nick Clifton <nickc@redhat.com>
26109
26110 * config/stormy16/stormy16.c
26111 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
26112 * config/stormy16/stormy16.h: Tidy up formatting.
26113 (DONT_USE_BUILTIN_SETJMP): Remove definition.
26114 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
26115 (ineqbranchsi): Delete pattern.
26116 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
26117 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
26118 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
26119 stormy16-lib2-ucmpsi2.c.
26120
26121 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26122
26123 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
26124 df_simulate_find_noclobber_defs as appropriate. Keep track of an
26125 extra set merge_set_noclobber, and use it to relax the final test
26126 slightly.
26127 * df.h (df_simulate_find_noclobber_defs): Declare.
26128 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
26129 conditional defs.
26130 (df_simulate_find_noclobber_defs): New function.
26131
26132 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
26133
26134 * config/i386/i386.md: Use {} around multi-line preparation statements.
26135
26136 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26137
26138 * c-tree.h (push_init_level, pop_init_level, set_init_index)
26139 (process_init_element): New argument of type struct obstack *.
26140
26141 * c-typeck.c (push_init_level, pop_init_level, set_designator)
26142 (set_init_index, set_init_label, set_nonincremental_init)
26143 (set_nonincremental_init_from_string, find_init_member)
26144 (output_init_element, output_pending_init_elements)
26145 (process_init_element): New argument braced_init_obstack. Pass it
26146 down.
26147 (push_range_stack, add_pending_init): New argument
26148 braced_init_obstack. Use obstack allocation.
26149
26150 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
26151 braced_init_obstack. Pass it down.
26152 (c_parser_braced_init): New variables ret, braced_init_obstack.
26153 Initialize obstack, pass it down and finally free it.
26154
26155 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26156
26157 PR middle-end/29274
26158 * tree-pass.h (pass_optimize_widening_mul): Declare.
26159 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
26160 gate_optimize_widening_mul): New static functions.
26161 (pass_optimize_widening_mul): New.
26162 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
26163 <case MULT_EXPR>: Remove support for widening multiplies.
26164 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
26165 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
26166 simplify_gen_unary rather than directly building extensions.
26167 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
26168 WIDEN_MULT_EXPR.
26169 * expmed.c (expand_widening_mult): New function.
26170 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
26171
26172 2010-04-21 Jan Hubicka <jh@suse.cz>
26173
26174 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
26175 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
26176 * lto-wpa-fixup.c: Remove.
26177 * Makefile.in (lto-wpa-fixup.o): Remove.
26178 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
26179 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
26180 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
26181
26182 2010-04-21 Jan Hubicka <jh@suse.cz>
26183
26184 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
26185 add write_optimization_summary, read_optimization_summary.
26186 (ipa_write_summaries_of_cgraph_node_set): Remove.
26187 (ipa_write_optimization_summaries): Declare.
26188 (ipa_read_optimization_summaries): Declare.
26189 * ipa-cp.c (pass_ipa_cp): Update.
26190 * ipa-reference.c (pass_ipa_reference): Update.
26191 * ipa-pure-const.c (pass_ipa_pure_const): Update.
26192 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
26193 Update.
26194 * ipa-inline.c (pass_ipa_inline): Update.
26195 * ipa.c (pass_ipa_whole_program): Update.
26196 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
26197 * passes.c (ipa_write_summaries_1): Do not test wpa.
26198 (ipa_write_optimization_summaries_1): New.
26199 (ipa_write_optimization_summaries): New.
26200 (ipa_read_summaries): Do not test ltrans.
26201 (ipa_read_optimization_summaries_1): New.
26202 (ipa_read_optimization_summaries): New.
26203
26204 2010-04-21 Jan Hubicka <jh@suse.cz>
26205
26206 * lto-cgraph.c (lto_output_node): Do not output comdat groups
26207 for boundary nodes.
26208 (output_cgraph): Do not arrange comdat groups for boundary nodes.
26209
26210 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26211
26212 PR debug/40040
26213 * dwarf2out.c (add_name_and_src_coords_attributes): Add
26214 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
26215
26216 2010-04-21 Jan Hubicka <jh@suse.cz>
26217
26218 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
26219
26220 2010-04-21 Jan Hubicka <jh@suse.cz>
26221
26222 * varpool.c (decide_is_variable_needed): Variable is always needed
26223 during ltrans.
26224
26225 2010-04-21 Jan Hubicka <jh@suse.cz>
26226
26227 * opts.c (decode_options): Enable pure-const pass for whopr.
26228
26229 2010-04-21 Jan Hubicka <jh@suse.cz>
26230
26231 * cgraph.c (dump_cgraph_node): Dump also assembler name.
26232 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
26233 at WPA dumping.
26234 (cgraph_decide_inlining): Do not expect callee to be removed in all
26235 cases.
26236
26237 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
26238
26239 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
26240
26241 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26242
26243 * config/i386/i386.md (x86_shrd): Add athlon_decode and
26244 amdfam10_decode attributes.
26245
26246 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26247
26248 PR middle-end/43570
26249 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
26250 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
26251 (lower_copyprivate_clauses): Use private var in outer
26252 context instead of original var. Make sure the types
26253 are correct for VLAs.
26254
26255 2010-04-21 Richard Guenther <rguenther@suse.de>
26256
26257 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
26258 to non-pointer objects.
26259
26260 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26261
26262 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
26263 last chain entry if it starts with the still current label.
26264 (add_location_or_const_value_attribute): Check that
26265 loc_list->first->next is NULL instead of comparing ->first with ->last.
26266 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
26267 to add_var_loc_to_decl.
26268
26269 * dwarf2out.c (output_call_frame_info): For dw_cie_version
26270 >= 4 add also address size and segment size fields into CIE header.
26271
26272 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
26273 long as address size is the same as sizeof (void *) and
26274 segment size is 0.
26275 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
26276 address size or segment size is unexpected, return DW_EH_PE_omit.
26277 (classify_object_over_fdes): If get_cie_encoding returned
26278 DW_EH_PE_omit, return -1.
26279 (init_object): If classify_object_over_fdes returned -1,
26280 pretend there were no FDEs at all.
26281
26282 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26283
26284 * config/i386/i386.md (bswap<mode>2): Macroize expander from
26285 bswap{si,di}2 using SWI48 mode iterator.
26286 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
26287 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
26288 set modrm attribute of bswap insn to 0 and remove length attribute.
26289 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
26290 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
26291 set mode attribute to <MODE> and remove length attribute.
26292
26293 2010-04-20 James E. Wilson <wilson@codesourcery.com>
26294
26295 PR rtl-optimization/43520
26296 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
26297 zero available registers.
26298
26299 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26300
26301 * builtins.c (fold_builtin_cproj): Fold more cases.
26302
26303 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26304
26305 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
26306 (fold_builtin_1): Fold builtin cproj.
26307 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
26308 Use ATTR_CONST_NOTHROW_LIST.
26309
26310 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
26311
26312 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
26313 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
26314 ffsi2_no_cmove for !TARGET_CMOVE.
26315 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
26316 (ffssi2): Remove expander.
26317 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
26318 mode iterator.
26319 (ctz<mode>2): Ditto from ctz{si,di}2.
26320 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
26321 mode iterator.
26322 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
26323 mode iterator.
26324
26325 2010-04-20 Jakub Jelinek <jakub@redhat.com>
26326
26327 * dwarf2out.c (AT_linkage_name): Define.
26328 (clone_as_declaration): Handle DW_AT_linkage_name.
26329 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
26330 of DW_AT_MIPS_linkage_name.
26331 (move_linkage_attr): Likewise.
26332 (dwarf2out_finish): Likewise.
26333
26334 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
26335
26336 PR middle-end/41952
26337 * fold-const.c (fold_comparison): New folding rule.
26338
26339 2010-04-20 Anatoly Sokolov <aesok@post.ru>
26340
26341 * double-int.h (double_int_setbit): Declare.
26342 * double-int.c (double_int_setbit): New function.
26343 * rtl.h (immed_double_int_const): Declare.
26344 * emit-rtl.c (immed_double_int_const): New function.
26345 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
26346 and immed_double_int_const functions.
26347 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
26348 expand_copysign_bit): (Ditto.).
26349 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
26350 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
26351 * dojump.c (prefer_and_bit_test): (Ditto.).
26352 * expr.c (convert_modes, reduce_to_bit_field_precision,
26353 const_vector_from_tree): (Ditto.).
26354 * expmed.c (mask_rtx, lshift_value): (Ditto.).
26355
26356 2010-04-20 Jan Hubicka <jh@suse.cz>
26357
26358 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
26359 (dump_cgraph_node): Dump new flags.
26360 * cgraph.h (struct cgraph_node): Add flags
26361 reachable_from_other_partition and in_other_partition.
26362 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
26363 other partition can not be removed.
26364 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
26365 the other partition must be output; silence sanity checking on
26366 leaking functions bodies from other paritition.
26367 * lto-cgraph.c (reachable_from_other_partition_p): New function.
26368 (lto_output_node): Output new flags; do not sanity check that inline
26369 clones are output; drop lto_forced_extern_inline_p code; do not mock
26370 visibility flags at partition boundaries.
26371 (add_node_to): New function.
26372 (output_cgraph): Use it to sort functions so masters appear before
26373 clones.
26374 (input_overwrite_node): Input new flags.
26375 * passes.c (ipa_write_summaries): Do not call
26376 lto_new_extern_inline_states.
26377 * lto-section-out.c (forced_extern_inline,
26378 lto_new_extern_inline_states lto_delete_extern_inline_states,
26379 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
26380 * lto-streamer.h (lto_new_extern_inline_states,
26381 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
26382 lto_forced_extern_inline_p): Kill.
26383
26384 2010-04-20 Richard Guenther <rguenther@suse.de>
26385
26386 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
26387 from vars that can have pointers.
26388 (process_constraint): Dump useless constraints.
26389
26390 2010-04-20 Richard Guenther <rguenther@suse.de>
26391
26392 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
26393 (dump_sa_points_to_info): Remove asserts.
26394 (init_base_vars): nothing_id isn't an escape point nor does it
26395 have pointers.
26396
26397 2010-04-20 Jakub Jelinek <jakub@redhat.com>
26398
26399 * tree.h (TYPE_REF_IS_RVALUE): Define.
26400 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
26401 should_move_die_to_comdat, prune_unused_types_walk): Handle
26402 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
26403 (modified_type_die, gen_reference_type_die): Emit
26404 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
26405 if TYPE_REF_IS_RVALUE and -gdwarf-4.
26406
26407 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26408
26409 PR target/43635
26410 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
26411 calls for -fpic -m31 if they have been sibcall optimized.
26412
26413 2010-04-19 James E. Wilson <wilson@codesourcery.com>
26414
26415 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
26416 ar.lc fixed and call-used.
26417
26418 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
26419
26420 2010-04-19 Jan Hubicka <jh@suse.cz>
26421
26422 * opts.c (decode_options): Disable whpr incompatible passes.
26423 * lto/lto.c (lto_1_to_1_map): Skip clones.
26424 (read_cgraph_and_symbols): Do not mark everything as needed.
26425 (do_whole_program_analysis): Do map only after optimizing;
26426 set proper cgraph_state; use passmanager.
26427
26428 2010-04-19 DJ Delorie <dj@redhat.com>
26429
26430 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
26431 POINTER_PLUS_EXPR and fix them.
26432
26433 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
26434
26435 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
26436 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
26437 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
26438 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
26439 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
26440 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
26441 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
26442 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
26443 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
26444 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
26445 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
26446
26447 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
26448
26449 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
26450 (check_cond_move_block): Likewise.
26451 (cond_move_process_if_block): Likewise.
26452 (noce_find_if_block): Improve formatting.
26453 (find_if_header): Pass 0 to memset and tweak conditions.
26454 (cond_exec_find_if_block): Fix long lines and tweak conditions.
26455
26456 2010-04-19 Jakub Jelinek <jakub@redhat.com>
26457
26458 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
26459 for -gdwarf-4.
26460
26461 PR middle-end/43337
26462 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
26463 with non-local decl doesn't need chain.
26464
26465 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
26466
26467 * ira-color.c (allocno_reload_assign): Avoid accumulating
26468 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
26469
26470 2010-04-19 Martin Jambor <mjambor@suse.cz>
26471
26472 * gimple.h (create_tmp_reg): Declare.
26473 * gimplify.c (create_tmp_reg): New function.
26474 (gimplify_return_expr): Use create_tmp_reg.
26475 (gimplify_omp_atomic): Likewise.
26476 (gimple_regimplify_operands): Likewise.
26477 * tree-dfa.c (make_rename_temp): Likewise.
26478 * tree-predcom.c (predcom_tmp_var): Likewise.
26479 (reassociate_to_the_same_stmt): Likewise.
26480 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
26481 (get_replaced_param_substitute): Likewise.
26482 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
26483 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
26484 * tree-ssa-pre.c (get_representative_for): Likewise.
26485 (create_expression_by_pieces): Likewise.
26486 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
26487 (create_tailcall_accumulator): Likewise.
26488
26489 2010-04-19 Martin Jambor <mjambor@suse.cz>
26490
26491 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
26492 new_stmt.
26493 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
26494
26495 2010-04-19 Richard Guenther <rguenther@suse.de>
26496
26497 PR tree-optimization/43796
26498 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
26499 from SCEV in the lattice.
26500 (vrp_visit_phi_node): Dump change.
26501
26502 2010-04-19 Richard Guenther <rguenther@suse.de>
26503
26504 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
26505 * configure: Re-generated.
26506
26507 2010-04-19 Richard Guenther <rguenther@suse.de>
26508
26509 PR tree-optimization/43783
26510 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
26511 constant ARRAY_REF operands two and three if possible.
26512
26513 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
26514
26515 PR target/43766
26516 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
26517
26518 2010-04-19 Jie Zhang <jie@codesourcery.com>
26519
26520 PR target/43662
26521 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
26522
26523 2010-04-19 Ira Rosen <irar@il.ibm.com>
26524
26525 PR tree-optimization/37027
26526 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
26527 and macro to access it.
26528 (vectorizable_reduction): Add argument.
26529 (vect_get_slp_defs): Likewise.
26530 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
26531 statements for possible use in SLP.
26532 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
26533 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
26534 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
26535 add new argument.
26536 (vectorizable_reduction): Likewise.
26537 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
26538 vect_get_slp_defs.
26539 (vectorizable_type_demotion, vectorizable_type_promotion,
26540 vectorizable_store): Likewise.
26541 (vect_analyze_stmt): Update call to vectorizable_reduction.
26542 (vect_transform_stmt): Likewise.
26543 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
26544 (vect_build_slp_tree): Fix indentation. Check that there are no loads
26545 from different interleaving chains in same node.
26546 (vect_slp_rearrange_stmts): New function.
26547 (vect_supported_load_permutation_p): Allow load permutations for
26548 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
26549 inside SLP nodes if necessary.
26550 (vect_analyze_slp_instance): Handle reductions.
26551 (vect_analyze_slp): Try to build SLP instances originating from groups
26552 of reductions.
26553 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
26554 (vect_get_constant_vectors): Create initial vectors for reductions
26555 according to reduction code. Add new argument.
26556 (vect_get_slp_defs): Add new argument, pass it to
26557 vect_get_constant_vectors.
26558 (vect_schedule_slp_instance): Remove SLP tree root statements.
26559
26560 2010-04-19 Jakub Jelinek <jakub@redhat.com>
26561
26562 * tree.h (ENUM_IS_SCOPED): Define.
26563 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
26564 for ENUM_IS_SCOPED enums.
26565
26566 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
26567
26568 * fold-const.c (fold_comparison): Use ssizetype.
26569 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
26570 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
26571 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
26572 * tree-object-size.c (compute_object_sizes): Use size_type_node.
26573
26574 * tree.h (initialize_sizetypes): Remove parameter.
26575 (build_common_tree_nodes): Remove second parameter.
26576 * stor-layout.c (initialize_sizetypes): Remove parameter.
26577 Always create an unsigned type.
26578 (set_sizetype): Assert that the passed type is unsigned and simplify.
26579 * tree.c (build_common_tree_nodes): Remove second parameter.
26580 Adjust call to initialize_sizetypes.
26581 * c-decl.c (c_init_decl_processing): Remove second argument in call to
26582 build_common_tree_nodes.
26583
26584 2010-04-18 Matthias Klose <doko@ubuntu.com>
26585
26586 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
26587
26588 2010-04-18 Ira Rosen <irar@il.ibm.com>
26589
26590 PR tree-optimization/43771
26591 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
26592 load permutation doesn't have gaps.
26593
26594 2010-04-18 Jan Hubicka <jh@suse.cz>
26595
26596 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
26597 (sse_prologue_save_insn expander): Use new pattern.
26598 (sse_prologue_save_insn1): New pattern and splitter.
26599 (sse_prologue_save_insn): Update to deal also with 64bit aligned
26600 blocks.
26601 * i386.c (setup_incoming_varargs_64): Do not compute jump
26602 destination here.
26603 (ix86_gimplify_va_arg): Update alignment needed.
26604 (ix86_local_alignment): Do not align all local arrays to 128bit.
26605
26606 2010-04-17 Jan Hubicka <jh@suse.cz>
26607
26608 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
26609
26610 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26611
26612 * arm.md (negdi2): Remove redundant code to force values into a
26613 register.
26614
26615 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26616
26617 * arm/bpabi.S: Add EABI alignment attributes to objects.
26618 * arm/bpabi-v6m.S: Likewise.
26619 * arm/crti.asm: Likewise.
26620 * arm/crtn.asm: Likewise.
26621 * arm/lib1funcs.asm: Likewise.
26622 * arm/libunwind.S: Likewise.
26623
26624 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26625
26626 * arm-protos.h (tune_params): New structure.
26627 * arm.c (current_tune): New variable.
26628 (arm_constant_limit): Delete.
26629 (struct processors): Add pointer to the tune parameters.
26630 (arm_slowmul_tune): New tuning option.
26631 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
26632 (all_cores): Adjust to pick up the tuning model.
26633 (arm_constant_limit): New function.
26634 (arm_override_options): Select the appropriate tuning model. Delete
26635 initialization of arm_const_limit.
26636 (arm_split_constant): Use the new constant-limit model.
26637 (arm_rtx_costs): Pick up the current tuning model.
26638 * arm.md (is_strongarm, is_xscale): Delete.
26639 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
26640 for Xscale variant architectures.
26641 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
26642
26643 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26644
26645 * config/arm/arm.c (arm_gen_constant): Remove unused variable
26646 can_shift.
26647 (arm_rtx_costs_1): Remove unused variable extra_cost.
26648 (arm_unwind_emit_set): Use variable offset.
26649 (thumb1_output_casesi): Remove unused variable flags.
26650
26651 2010-04-16 Jeff Law <law@redhat.com>
26652
26653 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
26654 needing assignment rather than doing a two-phase assignment. Remove
26655 unused variable 'm'.
26656
26657 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26658
26659 PR bootstrap/43767
26660 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
26661
26662 2010-04-16 Doug Kwan <dougkwan@google.com>
26663
26664 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
26665 (next_operand_entry_id): New static variable.
26666 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
26667 (add_to_ops_vec): Assigned unique ID to operand entry.
26668 (struct oecount_s): New field ID.
26669 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
26670 (undistribute_ops_list): Assign unique IDs to oecounts.
26671 (init_reassoc): reset next_operand_entry_id.
26672
26673 2010-04-16 Doug Kwan <dougkwan@google.com>
26674
26675 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
26676 missing left parenthesis.
26677
26678 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
26679
26680 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
26681 *btdi_rex64 using SWI48 mode iterator.
26682 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
26683 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
26684 *jcc_btdi_mask_rex64.
26685
26686 2010-04-16 Anatoly Sokolov <aesok@post.ru>
26687
26688 * double-int.h (tree_to_double_int): Convert to macro.
26689 * double-int.c (tree_to_double_int): Remove.
26690
26691 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26692
26693 PR debug/43762
26694 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
26695 with want_address 2 and in case a single element list might be
26696 possible, call it again with want_address 0.
26697
26698 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26699
26700 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
26701 case 'W' print operands for HI mode.
26702 * config/h8300/h8300.h (Y0, Y2) : New constraints.
26703 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
26704 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
26705 * config/h8300/predicate.md (bit_register_indirect_operand): New.
26706
26707 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
26708
26709 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
26710 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
26711 #xx:3 and #xx:4 mode.
26712
26713 * config/h8300/h8300.md (inverted load with HImode dest): Add
26714 support for H8300SX.
26715
26716 * config/h8300/predicate.md (bit_operand): Allow immediate values that
26717 satisfy 'U' constraint.
26718
26719 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26720
26721 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
26722 * configure: Regenerate.
26723 * config.in: Regenerate.
26724 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
26725 works.
26726
26727 2010-04-16 Richard Guenther <rguenther@suse.de>
26728
26729 * tree.h (struct tree_decl_minimal): Move pt_uid ...
26730 (struct tree_decl_common): ... here.
26731 (DECL_PT_UID): Adjust.
26732 (SET_DECL_PT_UID): Likewise.
26733 (DECL_PT_UID_SET_P): Likewise.
26734
26735 2010-04-16 Richard Guenther <rguenther@suse.de>
26736
26737 PR tree-optimization/43572
26738 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
26739 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
26740 * tree-flow.h (is_call_clobbered): Remove.
26741 * tree-flow-inline.h (is_call_clobbered): Likewise.
26742 * tree-dfa.c (dump_variable): Do not dump call clobber state.
26743 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
26744 (execute_return_slot_opt): Adjust.
26745 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
26746 check for call clobbered vars here.
26747 (find_tail_calls): Move tailcall verification to the
26748 proper place.
26749
26750 2010-04-16 Diego Novillo <dnovillo@google.com>
26751
26752 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
26753
26754 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
26755
26756 PR target/40603
26757 * config/arm/arm.md (cbranchqi4): New pattern.
26758 * config/arm/predicates.md (const0_operand,
26759 cbranchqi4_comparison_operator): New predicates.
26760
26761 2010-04-16 Richard Guenther <rguenther@suse.de>
26762
26763 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
26764 (dump_gimple_stmt): Likewise.
26765
26766 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
26767
26768 * recog.h (struct recog_data): New field is_operator.
26769 (struct insn_operand_data): New field is_operator.
26770 * recog.c (extract_insn): Set recog_data.is_operator.
26771 * genoutput.c (output_operand_data): Emit code to set the
26772 is_operator field.
26773 * reload.c (find_reloads): Use it rather than testing for an
26774 empty constraint string.
26775
26776 PR target/41514
26777 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
26778 If the previous insn is a cbranchsi4_insn with the same arguments,
26779 omit the compare instruction.
26780
26781 * config/arm/arm.md (addsi3_cbranch): If destination is a high
26782 register, inputs must be low registers and we need a low register
26783 scratch. Handle alternative 2 like alternative 3.
26784
26785 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26786
26787 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
26788 don't call get_addr on both. If one expression is a VALUE and
26789 the other a REG, check VALUE's locs if the REG isn't among them.
26790
26791 2010-04-16 Christian Bruel <christian.bruel@st.com>
26792
26793 * config/sh/sh.h (sh_frame_pointer_required): New function.
26794 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
26795 (flag_omit_frame_pointer) Set.
26796 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
26797 (rounded_frame_size): Adjust size with outgoing_args_size.
26798 (sh_set_return_address): Must return from stack pointer.
26799 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
26800 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
26801 (ACCUMULATE_OUTGOING_ARGS): Define.
26802 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
26803 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
26804
26805 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
26806
26807 PR target/43471
26808 * config/sh/sh.c (sh_legitimize_reload_address): Use
26809 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
26810 Remove a unneeded check for offset_base.
26811
26812 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
26813
26814 * configure: Regenerated.
26815
26816 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26817
26818 * config/s390/s390.c (s390_call_save_register_used): Switch back
26819 to HARD_REGNO_NREGS.
26820
26821 2010-04-15 Richard Guenther <rguenther@suse.de>
26822
26823 * alias.c (alias_set_subset_of): Handle alias-set zero
26824 child properly.
26825
26826 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
26827 Julian Brown <julian@codesourcery.com>
26828
26829 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
26830 alternatives according to use of high and low regs.
26831 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
26832 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
26833 optimizing for size on Thumb-2.
26834
26835 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
26836
26837 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
26838
26839 2010-04-15 Richard Guenther <rguenther@suse.de>
26840
26841 * tree-ssa-structalias.c (struct variable_info): Add
26842 is_fn_info flag.
26843 (new_var_info): Initialize it.
26844 (dump_constraints): Support printing last added constraints.
26845 (debug_constraints): Adjust.
26846 (dump_constraint_graph): Likewise.
26847 (make_heapvar_for): Check for NULL cfun.
26848 (get_function_part_constraint): New function.
26849 (get_fi_for_callee): Likewise.
26850 (find_func_aliases): Properly implement IPA PTA constraints.
26851 (process_ipa_clobber): New function.
26852 (find_func_clobbers): Likewise.
26853 (insert_into_field_list_sorted): Remove.
26854 (create_function_info_for): Properly allocate vars for IPA mode.
26855 Do not use insert_into_field_list_sorted.
26856 (create_variable_info_for): Properly generate constraints for
26857 global vars in IPA mode.
26858 (dump_solution_for_var): Always dump the solution.
26859 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
26860 (find_what_var_points_to): Adjust.
26861 (pt_solution_set): Change.
26862 (pt_solution_ior_into): New function.
26863 (pt_solution_empty_p): Export.
26864 (pt_solution_includes_global): Adjust.
26865 (pt_solution_includes_1): Likewise.
26866 (pt_solutions_intersect_1): Likewise.
26867 (dump_sa_points_to_info): Check some invariants.
26868 (solve_constraints): Move constraint dumping ...
26869 (compute_points_to_sets): ... here.
26870 (ipa_pta_execute): ... and here.
26871 (compute_may_aliases): Do not re-compute points-to info
26872 locally if IPA info is available.
26873 (ipa_escaped_pt): New global var.
26874 (ipa_pta_execute): Properly implement IPA PTA.
26875 * tree-into-ssa.c (dump_decl_set): Support dumping
26876 decls not in referenced-vars.
26877 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
26878 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
26879 (dump_points_to_solution): Likewise.
26880 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
26881 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
26882 (remap_gimple_stmt): Reset call clobber/use information if necessary.
26883 (copy_decl_to_var): Copy DECL_PT_UID.
26884 (copy_result_decl_to_var): Likewise.
26885 * tree.c (make_node_stat): Initialize DECL_PT_UID.
26886 (copy_node_stat): Copy it.
26887 * tree.h (DECL_PT_UID): New macro.
26888 (SET_DECL_PT_UID): Likewise.
26889 (DECL_PT_UID_SET_P): Likewise.
26890 (struct tree_decl_minimal): Add pt_uid member.
26891 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
26892 (pt_solution_empty_p): Declare.
26893 (pt_solution_set): Adjust.
26894 (ipa_escaped_pt): Declare.
26895 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
26896 * gimple-pretty-print.c (pp_points_to_solution): New function.
26897 (dump_gimple_call): Dump call clobber/use information.
26898 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
26899 * tree-pass.h (TDF_ALIAS): New dump option.
26900 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
26901 * doc/invoke.texi (-fipa-pta): Update documentation.
26902
26903 2010-04-15 Richard Guenther <rguenther@suse.de>
26904
26905 * Makefile.in (OBJS-common): Add gimple-fold.o.
26906 (gimple-fold.o): New rule.
26907 * tree.h (maybe_fold_offset_to_reference,
26908 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
26909 prototypes ...
26910 * gimple.h: ... here.
26911 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
26912 may_propagate_address_into_dereference): Move prototypes ...
26913 * gimple.h: ... here.
26914 * tree-ssa-ccp.c (get_symbol_constant_value,
26915 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
26916 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
26917 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
26918 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
26919 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
26920 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
26921 gimplify_and_update_call_from_tree): Move ...
26922 * gimple-fold.c: ... here. New file.
26923 (ccp_fold_builtin): Rename to ...
26924 (gimple_fold_builtin): ... this.
26925 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
26926
26927 2010-04-15 Richard Guenther <rguenther@suse.de>
26928
26929 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
26930 fit_double_type, force_fit_type_double, add_double_with_sign,
26931 neg_double, mul_double_with_sign, lshift_double, rshift_double,
26932 lrotate_double, rrotate_double, div_and_round_double): Move ...
26933 * double-int.c: ... here.
26934 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
26935 add_double, neg_double, mul_double_with_sign, mul_double,
26936 lshift_double, rshift_double, lrotate_double, rrotate_double,
26937 div_and_round_double): Move prototypes ...
26938 * double-int.h: ... here.
26939
26940 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
26941
26942 PR target/43742
26943 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
26944 matching constraints to ensure inputs match the output.
26945
26946 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
26947
26948 PR target/43742
26949 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
26950 in an input-only operand.
26951
26952 2010-04-15 Anatoly Sokolov <aesok@post.ru>
26953
26954 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
26955 (double_int_not, double_int_lshift, double_int_rshift): Declare.
26956 (double_int_negative_p): Convert to static inline function.
26957 * double-int.c (double_int_lshift, double_int_lshift): New functions.
26958 (double_int_negative_p): Remove.
26959 * tree.h (lshift_double, rshift_double):
26960 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
26961 * fold-const.c (fold_convert_const_int_from_real,
26962 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
26963 (lshift_double): Change type of arith argument to bool.
26964 (rshift_double): Change type of arith argument to bool. Correct
26965 comment.
26966 * expmed.c (mask_rtx, lshift_value): (Ditto.).
26967
26968 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
26969
26970 PR target/21803
26971 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
26972 at the start and end of the then/else blocks, and omit them from the
26973 conversion.
26974 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
26975 argument; all callers changed. Pass zero to old_insns_match_p instead.
26976 (flow_find_head_matching_sequence): New function.
26977 (old_insns_match_p): Check REG_EH_REGION notes for calls.
26978 * basic-block.h (flow_find_cross_jump,
26979 flow_find_head_matching_sequence): Declare functions.
26980
26981 2010-04-14 Jason Merrill <jason@redhat.com>
26982
26983 PR c++/36625
26984 * c-common.c (attribute_takes_identifier_p): New fn.
26985 * c-common.h: Declare it.
26986
26987 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
26988
26989 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
26990 splitter condition.
26991 (*udivmod<mode>4): Ditto.
26992
26993 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
26994
26995 * config/i386/i386.md (maxmin_int): Rename code attribute from
26996 maxminiprefix and update all users.
26997 (maxmin_float): Ditto from maxminfprefix.
26998 (logic): Ditto from logicprefix.
26999 (absneg_mnemonic): Ditto from absnegprefix.
27000 * config/i386/mmx.md: Update all users of maxminiprefix,
27001 maxminfprefix and logicprefix for rename.
27002 * config/i386/sse.md: Ditto.
27003 * config/i386/sync.md (sync_<code><mode>): Update for
27004 logicprefix rename.
27005
27006 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
27007
27008 PR 42966
27009 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
27010 warnings converted to errors.
27011
27012 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27013
27014 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
27015 used insn_type variable.
27016 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
27017 to avoid set-but-not-used warning.
27018
27019 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27020
27021 * df-core.c (df_ref_debug): Change format string placeholder
27022 from 0x%x to %#x.
27023 * dwarf2asm.c (dw2_asm_output_data_raw,
27024 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
27025 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
27026 * dwarf2out.c (output_cfi, output_cfi_directive,
27027 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
27028 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
27029 Ditto.
27030 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
27031 * print-rtl.c (print_rtx): Ditto.
27032
27033 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27034
27035 PR middle-end/42694
27036 * builtins.c (expand_builtin_pow_root): New function to expand pow
27037 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
27038 series of sqrt and cbrt calls under -ffast-math.
27039 (expand_builtin_pow): Call it.
27040
27041 2010-04-14 Michael Matz <matz@suse.de>
27042
27043 PR tree-optimization/42963
27044 * tree-cfg.c (touched_switch_bbs): New static variable.
27045 (group_case_labels_stmt): New function broken out from ...
27046 (group_case_labels): ... here, use the above.
27047 (start_recording_case_labels): Allocate touched_switch_bbs.
27048 (end_recording_case_labels): Deallocate it, call
27049 group_case_labels_stmt.
27050 (gimple_redirect_edge_and_branch): Remember index of affected BB.
27051
27052 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27053
27054 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
27055 from insn template.
27056
27057 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27058
27059 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
27060
27061 2010-04-13 Jan Hubicka <jh@suse.cz>
27062
27063 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
27064 of optimized out static functions.
27065 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
27066 cost computation. Also sanity check for overflows.
27067 (update_caller_keys): Update cgraph_edge_badness call; properly
27068 update fibheap and sanity check that it is up to date.
27069 (add_new_edges_to_heap): Update cgraph_edge_badness.
27070 (cgraph_decide_inlining_of_small_function): Likewise;
27071 add sanity checking that badness in heap is up to date;
27072 improve dumping of reason; Update badness of calls to the
27073 offline copy of function currently inlined; dump badness
27074 of functions not inlined because of unit growth limits.
27075
27076 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27077
27078 PR middle-end/32628
27079 * c-common.c (pointer_int_sum): Disregard overflow that occured only
27080 because of sign-extension change when converting to sizetype here...
27081 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
27082
27083 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
27084 the folding to constants. Remove redundant final conversion.
27085 (fold_binary) <associate>: Do not associate if the re-association of
27086 constants alone overflows.
27087 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
27088 to the end of the list.
27089 (multiple_of_p) <COND_EXPR>: New case.
27090
27091 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
27092
27093 * opt-functions.awk (opt_sanitized_name): New.
27094 (opt_enum): New.
27095 * optc-gen.awk: Use it
27096 * opth-gen.awk: Use it.
27097
27098 2010-04-13 Martin Jambor <mjambor@suse.cz>
27099
27100 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
27101 (sra_modify_assign): Delete stmts loading dead data even if racc has no
27102 children. Call replace_uses_with_default_def_ssa_name to handle
27103 SSA_NAES on lhs.
27104
27105 2010-04-13 Michael Matz <matz@suse.de>
27106
27107 PR middle-end/43730
27108 * builtins.c (expand_builtin_interclass_mathfn): Also create
27109 a register if the predicate doesn't match.
27110
27111 2010-04-13 Diego Novillo <dnovillo@google.com>
27112
27113 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
27114 * c-pch.c: Include timevar.h.
27115 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
27116 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
27117 * ggc-common.c: Include timevar.h.
27118 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
27119 * timevar.def (TV_PCH_SAVE): Define.
27120 (TV_PCH_CPP_SAVE): Define.
27121 (TV_PCH_PTR_REALLOC): Define.
27122 (TV_PCH_PTR_SORT): Define.
27123 (TV_PCH_RESTORE): Define.
27124 (TV_PCH_CPP_RESTORE): Define.
27125
27126 2010-04-13 Michael Matz <matz@suse.de>
27127
27128 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
27129 into MINUS_EXPRs.
27130 (can_reassociate_p): New function.
27131 (break_up_subtract_bb, reassociate_bb): Use it.
27132
27133 2010-04-13 Richard Guenther <rguenther@suse.de>
27134
27135 PR bootstrap/43737
27136 * builtins.c (c_readstr): Fix assert.
27137
27138 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
27139
27140 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
27141 when generating cltd insn.
27142
27143 (*ashl<mode>3_1): Remove special handling for register operand 2.
27144 (*ashlsi3_1_zext): Ditto.
27145 (*ashlhi3_1): Ditto.
27146 (*ashlhi3_1_lea): Ditto.
27147 (*ashlqi3_1): Ditto.
27148 (*ashlqi3_1_lea): Ditto.
27149 (*<shiftrt_insn><mode>3_1): Ditto.
27150 (*<shiftrt_insn>si3_1_zext): Ditto.
27151 (*<shiftrt_insn>qi3_1_slp): Ditto.
27152 (*<rotate_insn><mode>3_1): Ditto.
27153 (*<rotate_insn>si3_1_zext): Ditto.
27154 (*<rotate_insn>qi3_1_slp): Ditto.
27155
27156 2010-04-13 Richard Guenther <rguenther@suse.de>
27157
27158 * tree-ssa-structalias.c (callused_id): Remove.
27159 (call_stmt_vars): New.
27160 (get_call_vi): Likewise.
27161 (lookup_call_use_vi): Likewise.
27162 (lookup_call_clobber_vi): Likewise.
27163 (get_call_use_vi): Likewise.
27164 (get_call_clobber_vi): Likewise.
27165 (make_transitive_closure_constraints): Likewise.
27166 (handle_const_call): Adjust to do per-call call-used handling.
27167 (handle_pure_call): Likewise.
27168 (find_what_var_points_to): Remove general callused handling.
27169 (init_base_vars): Likewise.
27170 (init_alias_vars): Initialize call_stmt_vars.
27171 (compute_points_to_sets): Process call-used and call-clobbered
27172 vars for call statements.
27173 (delete_points_to_sets): Free call_stmt_vars.
27174
27175 2010-04-13 Richard Guenther <rguenther@suse.de>
27176
27177 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27178 Only add RW dependence for dependence distance zero.
27179 Adjust maximal vectorization factor according to dependences.
27180 Move alignment handling ...
27181 (vect_find_same_alignment_drs): ... here. New function.
27182 (vect_analyze_data_ref_dependences): Adjust.
27183 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
27184 (vect_analyze_data_refs): Adjust minimal vectorization factor
27185 according to data references.
27186 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
27187 dependences before determining the vectorization factor.
27188 Analyze alignment after determining the vectorization factor.
27189 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
27190 dependences before alignment.
27191 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
27192 Adjust prototype.
27193 (vect_analyze_data_refs): Likewise.
27194 (MAX_VECTORIZATION_FACTOR): New define.
27195
27196 2010-04-13 Duncan Sands <baldrick@free.fr>
27197
27198 * except.h (lang_eh_type_covers): Remove.
27199 * except.c (lang_eh_type_covers): Likewise.
27200
27201 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27202 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27203
27204 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
27205 * config/s390/s390.c: Replace UNTIS_PER_WORD with
27206 UNITS_PER_LONG where it is ABI relevant.
27207 (s390_return_addr_rtx): Likewise.
27208 (s390_back_chain_rtx): Likewise.
27209 (s390_frame_area): Likewise.
27210 (s390_frame_info): Likewise.
27211 (s390_initial_elimination_offset): Likewise.
27212 (save_gprs): Likewise.
27213 (s390_emit_prologue): Likewise.
27214 (s390_emit_epilogue): Likewise.
27215 (s390_function_arg_advance): Likewise.
27216 (s390_function_arg): Likewise.
27217 (s390_va_start): Likewise.
27218 (s390_gimplify_va_arg): Likewise.
27219 (s390_function_profiler): Likewise.
27220 (s390_optimize_prologue): Likewise.
27221 (s390_rtx_costs): Likewise.
27222 (s390_secondary_reload): Likewise.
27223 (s390_promote_function_mode): Likewise.
27224 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
27225 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
27226 registers available.
27227 (s390_unwind_word_mode): New function.
27228 (s390_function_value): Split 64 bit values into register pair if
27229 used as return value.
27230 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
27231 function call parameters. Handle parallels.
27232 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
27233 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
27234 (DWARF_CIE_DATA_ALIGNMENT): New macro.
27235 (s390_expand_setmem): Remove unused variable src_addr.
27236 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
27237 deal with 64 bit registers.
27238 * config/s390/s390.h: Define __zarch__ predefined macro.
27239 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
27240 (UNITS_PER_LONG): New macro.
27241 * libjava/include/s390-signal.h: Define extended ucontext
27242 structure containing the upper halfs of the 64 bit registers.
27243
27244 2010-04-13 Simon Baldwin <simonb@google.com>
27245
27246 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
27247
27248 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27249
27250 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
27251 rvalue on the RHS if the LHS is of a non-renamable type.
27252 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
27253
27254 2010-04-13 Matthias Klose <doko@ubuntu.com>
27255
27256 * gcc.c (cc1_options): Handle -iplugindir before processing
27257 the cc1 spec. Only add -iplugindir once.
27258 (cpp_unique_options): Add -iplugindir option if -fplugin* options
27259 found.
27260 * common.opt (iplugindir): Remove `Separate' property, initialize.
27261 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
27262 option.
27263 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
27264 (distclean): Remove plugin dir.
27265 * doc/invoke.texi: Document -iplugindir.
27266
27267 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
27268
27269 * doc/plugins.texi (Loading Plugins): Document short
27270 -fplugin=foo option.
27271 (Plugin API): Mention default_plugin_dir_name function.
27272
27273 * gcc.c (find_file_spec_function): Add new declaration.
27274 (static_spec_func): Use it for "find-file".
27275 (find_file_spec_function): Add new function.
27276 (cc1_options): Add -iplugindir option if -fplugin* options found.
27277
27278 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
27279
27280 * plugin.c (add_new_plugin): Updated comment, and handle short
27281 plugin name.
27282 (default_plugin_dir_name): Added new function.
27283
27284 * common.opt (iplugindir): New option to set the plugin directory.
27285
27286 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
27287
27288 * config/i386/i386.md (any_rotate): New code iterator.
27289 (rotate_insn): New code attribute.
27290 (rotate): Ditto.
27291 (SWIM124): New mode iterator.
27292 (<rotate_insn>ti3): New expander.
27293 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
27294 any_rotate code iterator.
27295 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
27296 using any_rotate code iterator and SWIM124 mode iterator.
27297 (ix86_rotlti3): New insn_and_split pattern.
27298 (ix86_rotrti3): Ditto.
27299 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
27300 ix86_rotl{di,ti}3 patterns.
27301 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
27302 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
27303 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
27304 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
27305 code iterator and SWI mode iterator.
27306 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
27307 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
27308 code iterator.
27309 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
27310 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
27311 (bswap rotatert splitter): Add splitter.
27312 (bswap splitter): Macroize splitter using any_rotate code iterator.
27313 Add insn predicate to split only for TARGET_USE_XCHGB or when
27314 optimizing function for size.
27315
27316 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27317
27318 * config/pa/pa.c (emit_move_sequence): Remove use of
27319 deleted variable flag_argument_noalias.
27320
27321 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27322
27323 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
27324 configurations.
27325 Add to unsupported targets list.
27326 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
27327 sparc*-sun-solaris2.[567]* from target lists.
27328 * configure: Regenerate.
27329 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
27330 removal.
27331 Remove Solaris 7 patch references.
27332 (Specific, sparc-sun-solaris2.7): Removed.
27333 (sparc-sun-solaris2*): Update Solaris 7 example.
27334 (sparc64-*-solaris2*): Likewise.
27335
27336 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27337
27338 * config.build (alpha*-dec-osf4*): Remove.
27339 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
27340 of obsolete configurations.
27341 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
27342 support.
27343 * config/alpha/t-osf4: Renamed to ...
27344 * config/alpha/t-osf5: ... this.
27345 * config/alpha/osf.h: Renamed to ...
27346 * config/alpha/osf5.h: ... this.
27347 Merged old osf5.h contents.
27348 Update comments.
27349 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
27350 (EXTRA_SPECS): Removed.
27351 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
27352 reflect removal of Tru64 UNIX V4.0/V5.0 support.
27353 Document that.
27354
27355 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27356
27357 * doc/contrib.texi (Contributors, Rainer Orth): Update.
27358
27359 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
27360
27361 PR/43702
27362 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
27363 __thiscall convention.
27364
27365 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27366
27367 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
27368 orig_base.
27369 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
27370
27371 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27372
27373 * function.c (assign_parms_initialize_all): Add unused attribute
27374 to fntype.
27375
27376 2010-04-12 Richard Guenther <rguenther@suse.de>
27377
27378 * gsstruct.def (GSS_CALL): New.
27379 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
27380 * gimple.h: Include tree-ssa-alias.h.
27381 (struct gimple_statement_call): New.
27382 (union gimple_statement_struct_d): Add gimple_call member.
27383 (gimple_call_reset_alias_info): Declare.
27384 (gimple_call_use_set): New function.
27385 (gimple_call_clobber_set): Likewise.
27386 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
27387 * gimple.c (gimple_call_reset_alias_info): New function.
27388 (gimple_build_call_1): Call it.
27389 * lto-streamer-in.c (input_gimple_stmt): Likewise.
27390 * tree-inline.c (remap_gimple_stmt): Likewise.
27391 (expand_call_inline): Remove callused handling.
27392 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
27393 * tree-dfa.c (dump_variable): Likewise.
27394 * tree-parloops.c (parallelize_loops): Likewise.
27395 * tree-ssa.c (init_tree_ssa): Likewise.
27396 (delete_tree_ssa): Likewise.
27397 * tree-flow-inline.h (is_call_used): Remove.
27398 * tree-flow.h (struct gimple_df): Remove callused member.
27399 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
27400 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
27401 (ref_maybe_used_by_call_p_1): Simplify.
27402 (call_may_clobber_ref_p_1): Likewise.
27403 * tree-ssa-structalias.c (compute_points_to_sets): Set
27404 the call stmt used and clobbered sets.
27405 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
27406 (find_tail_calls): Verify the tail call.
27407
27408 2010-04-12 Richard Guenther <rguenther@suse.de>
27409
27410 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
27411 single-iteration always-inline inlining.
27412 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
27413 (cgraph_decide_inlining): Do not handle always-inline specially.
27414 (try_inline): Remove always-inline cycle detection special case.
27415 Do not recurse on always-inlines.
27416 (cgraph_early_inlining): Do not iterate if not optimizing.
27417 (cgraph_gate_early_inlining): remove.
27418 (pass_early_inline): Run unconditionally.
27419 (gate_cgraph_decide_inlining): New function.
27420 (pass_ipa_inline): Use it. Do not run the IPA inliner if
27421 not inlining or optimizing.
27422 (cgraph_decide_inlining_of_small_functions): Also consider
27423 always-inline functions.
27424 (cgraph_default_inline_p): Return true for nodes which should
27425 disregard inline limits.
27426 (estimate_function_body_sizes): Assume zero size and time for
27427 nodes which are marked as disregarding inline limits.
27428 (cgraph_decide_recursive_inlining): Do not perform recursive
27429 inlining on always-inline nodes.
27430
27431 2010-04-12 Jakub Jelinek <jakub@redhat.com>
27432
27433 PR bootstrap/43699
27434 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
27435 for exprs satisfying handled_component_p.
27436
27437 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
27438
27439 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
27440 non-constant aggregate elements.
27441
27442 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
27443 is a real initialization.
27444
27445 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
27446
27447 PR c/36774
27448 * c-decl.c (start_function): Move forward check for nested function.
27449
27450 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
27451
27452 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
27453 * config/sh/sh.c: Include reload.h.
27454 (sh_legitimize_reload_address): New.
27455 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
27456 sh_legitimize_reload_address.
27457
27458 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27459
27460 * config/sh/sh.md (*movqi_pop): New insn pattern.
27461 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
27462
27463 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27464
27465 * config/i386/i386.md (any_shiftrt): New code iterator.
27466 (shiftrt_insn): New code attribute.
27467 (shiftrt): Ditto.
27468 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
27469 using any_shiftrt code iterator.
27470 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
27471 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
27472 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
27473 pattern from corresponding peephole2 patterns.
27474 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
27475 using any_shiftrt code iterator.
27476 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
27477 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
27478 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
27479 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
27480 *{ashr,lshr}<mode>3_cmp_zext.
27481 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
27482
27483 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27484
27485 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
27486 scratch register.
27487 (*lshr<mode>3_cconly): Ditto.
27488
27489 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27490
27491 * config/i386/i386.md (lshr<mode>3): Macroize expander from
27492 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
27493 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
27494 pattern from *lshr{di,ti}3_1 and corresponding splitters using
27495 DWI mode iterator.
27496 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
27497 from corresponding peephole2 patterns.
27498 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
27499 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
27500 and *lshrdi3_1_rex64 using SWI mode iterator.
27501 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
27502 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
27503 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
27504 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
27505 and *lshrdi3_cmp_rex64 using SWI mode iterator.
27506 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
27507 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
27508 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
27509 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
27510 SWI mode iterator.
27511
27512 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
27513
27514 * config/i386/i386.md (ashr<mode>3): Macroize expander from
27515 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
27516 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
27517 pattern from *ashr{di,ti}3_1 and corresponding splitters using
27518 DWI mode iterator.
27519 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
27520 from corresponding peephole2 patterns.
27521 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
27522 (ashrsi3_cvt): Rename from ashrsi3_31.
27523 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
27524 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
27525 and x86_64_shift_adj_3 using SWI48 mode iterator.
27526 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
27527 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
27528 and *ashrdi3_1_rex64 using SWI mode iterator.
27529 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
27530 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
27531 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
27532 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
27533 and *ashrdi3_cmp_rex64 using SWI mode iterator.
27534 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
27535 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
27536 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
27537 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
27538 SWI mode iterator.
27539 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
27540 * config/i386/i386.c (ix86_split_ashr): Update for renamed
27541 x86_shift<mode>_adj_3 expanders.
27542
27543 2010-04-10 Wei Guozhi <carrot@google.com>
27544
27545 PR target/42601
27546 * config/arm/arm.c (arm_pic_static_addr): New function.
27547 (legitimize_pic_address): Call arm_pic_static_addr when it detects
27548 a static symbol.
27549 (arm_output_addr_const_extra): Output expression for new pattern.
27550 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
27551
27552 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
27553
27554 * ira-costs.c (record_reg_classes): Ignore alternatives that are
27555 not enabled.
27556
27557 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
27558 * web.c: Include "insn-config.h" and "recog.h".
27559 (union_match_dups): New function.
27560 (web_main): Call it.
27561 (union_defs): Don't try to recognize match_dups.
27562
27563 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
27564 if doing so would replace the entire pattern.
27565
27566 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
27567
27568 PR target/43707
27569 PR target/43709
27570 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
27571 and splitter pattern. Change splitter operand 1 predicate to
27572 nonmemory_operand.
27573
27574 2010-04-09 Martin Jambor <mjambor@suse.cz>
27575
27576 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
27577 lattices are addresses of CONST_DECLs with the same initial value.
27578 (ipcp_print_all_lattices): Print values of CONST_DECLs.
27579 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
27580
27581 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
27582 Bernd Schmidt <bernds@codesourcery.com>
27583
27584 * loop-invariant.c (replace_uses): New static function.
27585 (move_invariant_reg): Use it to ensure we can replace the uses.
27586
27587 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
27588
27589 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
27590 function template.
27591 (picochip_override_options): Enable section anchors only above -O1.
27592 (picochip_reorg): Fixed a couple of build warnings.
27593
27594 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27595
27596 * configure.ac (plugin -rdynamic test): Log result.
27597 * configure: Regenerate.
27598 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
27599 (RDYNAMIC_SPEC): Define.
27600 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
27601
27602 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27603
27604 * configure.ac: Determine Sun ld version numbers.
27605 (comdat_group): Restrict GNU ld version checks to gld.
27606 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
27607 (enable_comdat): Support --enable-comdat.
27608 * configure: Regenerate.
27609 * doc/install.texi (Configuration): Document --enable-comdat.
27610
27611 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27612
27613 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
27614 * config/sol2-gld.h: ... here.
27615 * config.gcc (sparc*-*-solaris2*): Reflect this.
27616 (i[34567]86-*-solaris2*): Use it.
27617
27618 2010-04-09 Steve Ellcey <sje@cup.hp.com>
27619
27620 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
27621 setup_clocks_p.
27622 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
27623
27624 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
27625
27626 PR 42965
27627 * diagnostic.c (diagnostic_initialize): Initialize
27628 some_warnings_are_errors.
27629 (diagnostic_finish): New.
27630 (diagnostic_action_after_output): Call it before exiting.
27631 (diagnostic_report_diagnostic): Do not print message here. Set
27632 some_warnings_are_errors.
27633 * diagnostic.h (diagnostic_context): Delete
27634 issue_warnings_are_errors_message. Add some_warnings_are_errors.
27635 (diagnostic_finish): Declare.
27636 * toplev.c (toplev_main): Call it before exit.
27637
27638 2010-04-09 Jason Merrill <jason@redhat.com>
27639
27640 PR c++/42623
27641 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
27642 for incomplete type.
27643
27644 PR c++/41788
27645 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
27646 based on a warning flag.
27647
27648 2010-04-09 Richard Guenther <rguenther@suse.de>
27649
27650 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
27651
27652 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
27653
27654 PR bootstrap/43684
27655 * varasm.c (default_assemble_visibility): Wrap vars that are
27656 set, but unused, by targets without GAS.
27657 * config/rs6000/rs6000.c (paired_emit_vector_compare):
27658 Remove set, but unused, vars.
27659 (rs6000_legitimize_tls_address): Likewise.
27660 (altivec_expand_dst_builtin): Likewise.
27661 * config/darwin.c (machopic_classify_symbol): Likewise.
27662 (machopic_indirection_name): Likewise.
27663
27664 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
27665
27666 * config/i386/i386.md (DWI): New mode iterator.
27667 (S): New mode attribute.
27668 (shift_operand): Ditto.
27669 (shift_immediate_operand): Ditto.
27670 (ashl_input_operand): Ditto.
27671 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
27672 using SDWIM mode iterator.
27673 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
27674 pattern from *ashl{di,ti}3_1 and corresponding splitters using
27675 DWI mode iterator.
27676 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
27677 from corresponding peephole2 patterns.
27678 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
27679 and x86_64_shift_adj_1 using SWI48 mode iterator.
27680 (x86_shift<mode>_adj_2): Ditto.
27681 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
27682 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
27683 using SWI48 mode iterator.
27684 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
27685 *ashldi3_cmp_rex64 using SWI mode iterator.
27686 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
27687 *ashldi3_cconly_rex64 using SWI mode iterator.
27688 * config/i386/i386.c (ix86_split_ashl): Update for renamed
27689 x86_shift<mode>_adj_{1,2}.
27690 (ix86_split_ashr): Ditto.
27691 (ix86_split_lshr): Ditto.
27692
27693 2010-04-09 Richard Guenther <rguenther@suse.de>
27694
27695 * target.h (builtin_conversion): Pass in input and output types.
27696 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
27697 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
27698 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
27699 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
27700
27701 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
27702 Handle AVX modes.
27703 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
27704
27705 2010-04-09 Richard Guenther <rguenther@suse.de>
27706
27707 PR target/43152
27708 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
27709
27710 2010-04-09 Richard Guenther <rguenther@suse.de>
27711
27712 * tree-vectorizer.h (struct _stmt_vec_info): Document
27713 that vectype is the type of the LHS.
27714 (supportable_widening_operation, supportable_narrowing_operation):
27715 Get both input and output vector types as arguments.
27716 (vect_is_simple_use_1): Declare.
27717 (get_same_sized_vectype): Likewise.
27718 * tree-vect-loop.c (vect_determine_vectorization_factor):
27719 Set STMT_VINFO_VECTYPE to the vector type of the def.
27720 (vectorizable_reduction): Adjust.
27721 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
27722 Adjust. Specify the output vector type.
27723 (vect_pattern_recog_1): Adjust.
27724 * tree-vect-stmts.c (get_same_sized_vectype): New function.
27725 (vectorizable_call): Adjust.
27726 (vectorizable_conversion): Likewise.
27727 (vectorizable_operation): Likewise.
27728 (vectorizable_type_demotion): Likewise.
27729 (vectorizable_type_promotion): Likewise.
27730 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
27731 the def.
27732 (vect_is_simple_use_1): New function.
27733 (supportable_widening_operation): Get both input and output
27734 vector types.
27735 (supportable_narrowing_operation): Likewise.
27736 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
27737
27738 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
27739
27740 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
27741 __thiscall and _thiscall as predefined macros.
27742 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
27743 thiscall attribute handling.
27744 (ix86_comp_type_attributes): Likewise.
27745 (ix86_function_regparm): Likewise.
27746 (ix86_return_pops_args): Likewise.
27747 (init_cumulative_args): Likewise.
27748 (find_drap_reg): Likewise.
27749 (ix86_static_chain): Likewise.
27750 (x86_this_parameter): Likewise.
27751 (x86_output_mi_thunk): Likewise.
27752 (ix86_attribute_table): Add description for thiscall attribute.
27753 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
27754 * doc/extend.texi: Add documentation for thiscall.
27755
27756 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
27757
27758 PR c++/28584
27759 * c.opt (Wint-to-pointer-cast): Available in C++.
27760 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
27761
27762 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
27763
27764 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
27765 * calls.c (expand_call): Pass the function type to aggregate_value_p.
27766 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
27767 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
27768 function type instead. Reorder and simplify checks.
27769
27770 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
27771
27772 2010-04-08 Jing Yu <jingyu@google.com>
27773 Zdenek Dvorak <ook@ucw.cz>
27774
27775 PR tree-optimization/42720
27776 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
27777 loop unswitch conditions here from ...
27778 (tree_unswitch_single_loop): ... here.
27779
27780 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
27781
27782 * tree-if-conv.c: Fix comments and simplify logic.
27783
27784 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
27785
27786 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
27787 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
27788 (main_tree_if_conversion): Update call to tree_if_conversion.
27789
27790 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
27791
27792 PR 42485
27793 * doc/invoke.texi (-b,-V): Delete.
27794 * doc/tm.texi: Do not mention -b.
27795 * gcc.c (display_help): Delete -b and -V.
27796 (process_command): Delete -b and -V.
27797 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
27798
27799 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
27800 Wolfgang Gellerich <gellerich@de.ibm.com>
27801
27802 Implement target hook for loop unrolling
27803 * target.h (loop_unroll_adjust): Add a new target hook function.
27804 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
27805 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
27806 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
27807 (s390_loop_unroll_adjust): Implement the new target hook for s390.
27808 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
27809 target hook.
27810 (decide_unroll_stupid): Likewise.
27811
27812 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27813
27814 PR target/43643
27815 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
27816
27817 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27818
27819 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
27820 (Specific, *-*-solaris2*): Likewise.
27821 Don't prefer Sun as over GNU as.
27822
27823 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
27824
27825 * config/s390/s390.c (override_options): Adjust the z10 defaults
27826 for max-unroll-times, max-completely-peeled-insns
27827 and max-completely-peel-times.
27828
27829 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27830
27831 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
27832 instructions for z10.
27833 (s390_expand_setmem): Likewise.
27834 (s390_expand_cmpmem): Likewise.
27835
27836 2010-04-08 Richard Guenther <rguenther@suse.de>
27837
27838 PR tree-optimization/43679
27839 * tree-ssa-pre.c (eliminate): Only propagate copies.
27840
27841 2010-04-08 Jakub Jelinek <jakub@redhat.com>
27842
27843 PR bootstrap/43681
27844 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
27845 set but not used variable warning.
27846
27847 2010-04-08 Wei Guozhi <carrot@google.com>
27848
27849 PR target/41653
27850 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
27851 (arm_size_rtx_costs): Call the new function when optimized for size.
27852
27853 2010-04-08 Jakub Jelinek <jakub@redhat.com>
27854
27855 PR debug/43670
27856 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
27857 op0 is not a MEM, just return NULL instead of assertion
27858 failure.
27859 (discover_nonconstant_array_refs): Don't walk debug stmts.
27860
27861 2010-04-08 Doug Kwan <dougkwan@google.com>
27862
27863 * configure.ac: Recognize gold and do not use its version number
27864 to test ld features.
27865 * configure: Regenerate.
27866
27867 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
27868
27869 PR middle-end/40815
27870 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
27871 (negate_value): Move code to push elements to broken_up_substracts ...
27872 (eliminate_plus_minus_pair): ... here. Push operands that have no
27873 negative pair to plus_negates.
27874 (repropagate_negates, init_reassoc, fini_reassoc): Update.
27875
27876 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27877
27878 * doc/install.texi (Configuration): Move description of
27879 --enable-lto, --with-libelf*, --enable-gold from Java section to
27880 general section.
27881
27882 * doc/generic.texi (Working with declarations)
27883 (Function Properties, C and C++ Trees): Fix typos.
27884 * doc/sourcebuild.texi (Top Level): Likewise.
27885
27886 2010-04-07 Jakub Jelinek <jakub@redhat.com>
27887
27888 PR c/18624
27889 * tree.h (DECL_READ_P): Define.
27890 (struct tree_decl_common): Add decl_read_flag.
27891 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
27892 a set but not used warning.
27893 (merge_decls): Merge DECL_READ_P flag.
27894 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
27895 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
27896 * c-common.c (handle_used_attribute, handle_unused_attribute):
27897 Likewise.
27898 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
27899 New prototypes.
27900 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
27901 New functions.
27902 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
27903 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
27904 c_parser_binary_expression, c_parser_cast_expression,
27905 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
27906 Call default_function_array_read_conversion instead of
27907 default_function_array_conversion where needed.
27908 (c_parser_unary_expression, c_parser_conditional_expression,
27909 c_parser_postfix_expression_after_primary, c_parser_initelt):
27910 Likewise. Call mark_exp_read where needed.
27911 (c_parser_statement_after_labels, c_parser_asm_operands,
27912 c_parser_typeof_specifier, c_parser_sizeof_expression,
27913 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
27914 where needed.
27915 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
27916 New.
27917 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
27918 (warn_unused_but_set_parameter): Default to warn_unused
27919 && extra_warnings.
27920 * doc/invoke.texi: Document -Wunused-but-set-variable and
27921 -Wunused-but-set-parameter.
27922
27923 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
27924 used count variable.
27925 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
27926 when operandN variables aren't used in the body of the expander
27927 or splitter.
27928 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
27929 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
27930 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
27931 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
27932 FOR_EACH_IMM_USE_ON_STMT): Likewise.
27933 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
27934 * tree.c (PROCESS_ARG): Likewise.
27935
27936 2010-04-07 Simon Baldwin <simonb@google.com>
27937
27938 * diagnostic.h (diagnostic_override_option_index): New macro to
27939 set a diagnostic's option_index.
27940 * c-tree.h (c_cpp_error): Add warning reason argument.
27941 * opts.c (_warning_as_error_callback): New.
27942 (register_warning_as_error_callback): Store callback for
27943 warnings enabled via enable_warning_as_error.
27944 (enable_warning_as_error): Call callback, minor code tidy.
27945 * opts.h (register_warning_as_error_callback): Declare.
27946 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
27947 response to -Werror=.
27948 (c_common_init_options): Register warning_as_error_callback in opts.c.
27949 * common.opt: Add -Wno-cpp option.
27950 * c-common.c (struct reason_option_codes_t): Map cpp warning
27951 reason codes to gcc option indexes.
27952 * (c_option_controlling_cpp_error): New function, lookup the gcc
27953 option index for a cpp warning reason code.
27954 * (c_cpp_error): Add warning reason argument, call
27955 c_option_controlling_cpp_error for diagnostic_override_option_index.
27956 * doc/invoke.texi: Document -Wno-cpp.
27957
27958 2010-04-07 Richard Guenther <rguenther@suse.de>
27959
27960 * ipa-reference.c (mark_load): Use get_base_address.
27961 (mark_store): Likewise.
27962
27963 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
27964 inserting GIMPLE_NOPs into the IL.
27965 * tree-ssa-structalias.c (get_constraint_for_component_ref):
27966 Explicitly strip handled components and indirect references.
27967
27968 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
27969 folding address expressions.
27970 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
27971 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
27972 operand_equal_p to compare decls.
27973 (ptr_deref_may_alias_decl_p): Likewise.
27974 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
27975 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
27976 Handle reversed comparison ops.
27977 * tree-sra.c (asm_visit_addr): Use get_base_address.
27978 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
27979 * ipa-reference.c (mark_address): Use get_base_address.
27980
27981 2010-04-07 Richard Guenther <rguenther@suse.de>
27982
27983 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
27984 Propagate constants everywhere.
27985
27986 2010-04-07 Jakub Jelinek <jakub@redhat.com>
27987
27988 PR debug/43516
27989 * tree.c (MAX_INT_CACHED_PREC): Define.
27990 (nonstandard_integer_type_cache): New array.
27991 (build_nonstandard_integer_type): Cache results for precision
27992 <= MAX_INT_CACHED_PREC.
27993
27994 2010-04-07 Richard Guenther <rguenther@suse.de>
27995
27996 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
27997 -fargument-noalias-global, -fargument-noalias-anything): Remove.
27998 * common.opt: Likewise.
27999 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
28000 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
28001 (nonoverlapping_memrefs_p): Likewise.
28002 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
28003 * opts.c (common_handle_option): Handle OPT_fargument_alias,
28004 OPT_fargument_noalias, OPT_fargument_noalias_anything and
28005 OPT_fargument_noalias_global for backward compatibility.
28006
28007 2010-04-07 Richard Guenther <rguenther@suse.de>
28008
28009 PR tree-optimization/43270
28010 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
28011 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
28012 * tree-ssa-pre.c (phi_translate_1): Adjust.
28013 (fully_constant_expression): Split out vn_reference handling to ...
28014 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
28015 Fold reads from constant strings.
28016 (vn_reference_lookup): Handle fully constant references.
28017 (vn_reference_lookup_pieces): Likewise.
28018 * Makefile.in (expmed.o-warn): Add -Wno-error.
28019
28020 2010-04-07 Martin Jambor <mjambor@suse.cz>
28021
28022 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
28023
28024 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
28025
28026 PR driver/41594
28027 * gcc.c: Add -static-libstdc++ to list of recognized options.
28028
28029 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28030
28031 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
28032
28033 2010-04-07 Richard Guenther <rguenther@suse.de>
28034
28035 PR middle-end/42617
28036 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
28037 bases build simple mem attributes to retain points-to information.
28038
28039 2010-04-07 Richard Guenther <rguenther@suse.de>
28040
28041 PR middle-end/42617
28042 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
28043 preserve points-to related information.
28044
28045 2010-04-07 Richard Guenther <rguenther@suse.de>
28046
28047 PR middle-end/42617
28048 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
28049 discard plain indirect references.
28050 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
28051 * tree.c (tree_nop_conversion): Likewise.
28052
28053 2010-04-07 Dodji Seketeli <dodji@redhat.com>
28054
28055 PR debug/43628
28056 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
28057
28058 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
28059
28060 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
28061 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
28062
28063 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28064
28065 * tree-if-conv.c: Fix indentation and comments.
28066
28067 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28068
28069 * tree-if-conv.c: Sort static functions in topological order.
28070
28071 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28072
28073 * tree-if-conv.c: Fix indentation and comments.
28074
28075 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28076
28077 PR middle-end/43519
28078 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
28079 lang_hooks.types.type_for_size instead of
28080 build_nonstandard_integer_type.
28081 When converting an unsigned type to signed, double its precision.
28082 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
28083 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
28084 (graphite_create_new_loop_guard): When ub + 1 wraps around,
28085 use lb <= ub.
28086
28087 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28088
28089 PR middle-end/43519
28090 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
28091 POINTER_PLUS_EXPR for pointer types.
28092
28093 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28094
28095 PR middle-end/43519
28096 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
28097 * graphite-clast-to-gimple.c: Include langhooks.h.
28098 (max_signed_precision_type): New.
28099 (max_precision_type): Takes two types as arguments.
28100 (precision_for_value): New.
28101 (precision_for_interval): New.
28102 (gcc_type_for_interval): New.
28103 (gcc_type_for_value): New.
28104 (gcc_type_for_clast_term): New.
28105 (gcc_type_for_clast_red): New.
28106 (gcc_type_for_clast_bin): New.
28107 (gcc_type_for_clast_expr): Split up into several functions.
28108 (gcc_type_for_clast_eq): Rewritten.
28109 (compute_bounds_for_level): New.
28110 (compute_type_for_level_1): New.
28111 (compute_type_for_level): New.
28112 (gcc_type_for_cloog_iv): Removed.
28113 (gcc_type_for_iv_of_clast_loop): Rewritten.
28114 (graphite_create_new_loop): Compute the lower and upper bound types
28115 with gcc_type_for_clast_expr.
28116 (graphite_create_new_loop_guard): Same.
28117 (find_cloog_iv_in_expr): Removed.
28118 (compute_cloog_iv_types_1): Removed.
28119 (compute_cloog_iv_types): Removed.
28120 (gloog): Do not call compute_cloog_iv_types.
28121 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
28122 GBB_CLOOG_IV_TYPES.
28123 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
28124 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
28125 (GBB_CLOOG_IV_TYPES): Removed.
28126
28127 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28128
28129 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
28130 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
28131 (detect_commutative_reduction): Same.
28132
28133 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28134
28135 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
28136 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
28137 argument.
28138 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
28139 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
28140 (rewrite_commutative_reductions_out_of_ssa): Same.
28141 * passes.c (execute_function_todo): Call verify_ssa for every pass
28142 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
28143 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
28144 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
28145 with an extra argument.
28146 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
28147 verify_ssa only when the extra argument is true.
28148 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
28149 with an extra argument.
28150 (tree_transform_and_unroll_loop): Same.
28151
28152 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28153
28154 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
28155 for all the passes of the LNO having LOOP_CLOSED_SSA.
28156 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
28157 * tree-loop-distribution.c (pass_loop_distribution): Same.
28158 * tree-pass.h (TODO_verify_loops): Removed.
28159 * tree-ssa-loop.c (pass_tree_loop_init): Same.
28160 (pass_lim): Same.
28161 (pass_tree_unswitch): Same.
28162 (pass_predcom): Same.
28163 (pass_vectorize): Same.
28164 (pass_linear_transform): Same.
28165 (pass_graphite_transforms): Same.
28166 (pass_iv_canon): Same.
28167 (pass_complete_unroll): Same.
28168 (pass_complete_unrolli): Same.
28169 (pass_parallelize_loops): Same.
28170 (pass_loop_prefetch): Same.
28171 (pass_iv_optimize): Same.
28172
28173 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
28174
28175 PR middle-end/32824
28176 * passes.c (init_optimization_passes): Move pass_lim before
28177 pass_copy_prop and pass_dce_loop.
28178
28179 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28180
28181 PR target/43667
28182 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
28183 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
28184 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
28185 MULTI_* defines for 4 argument vpermil2p* builtins.
28186
28187 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28188
28189 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
28190 * config/i386/i386.c (x86_maybe_negate_const_int): New.
28191 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
28192 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
28193 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
28194 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
28195 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
28196 Use x86_maybe_negate_const_int to output insn mnemonic.
28197 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
28198 check from instruction predicate. Update comments.
28199 * config/i386/sync.md (sync_add<mode>): Use
28200 x86_maybe_negate_const_int to output insn mnemonic.
28201
28202 2010-04-06 Jan Hubicka <jh@suse.cz>
28203
28204 PR tree-optimization/42906
28205 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
28206 IGNORE_SELF argument. Set visited_control_parents for fully
28207 processed BBs.
28208 (find_obviously_necessary_stmts): Update call of
28209 mark_control_dependent_edges_necessary.
28210 (propagate_necessity): Likewise. Handle PHI edges more curefully.
28211
28212 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28213
28214 * config/i386/i386.md: Remove comment about 'e' and 'E'
28215 operand modifier.
28216
28217 2010-04-06 Richard Guenther <rguenther@suse.de>
28218
28219 PR tree-optimization/43627
28220 * tree-vrp.c (extract_range_from_unary_expr): Widenings
28221 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
28222 not varying.
28223
28224 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28225
28226 * BASE-VER: Change to 4.6.0.
28227
28228 PR target/43638
28229 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
28230 handling.
28231
28232 2010-04-06 Richard Guenther <rguenther@suse.de>
28233
28234 PR middle-end/43661
28235 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
28236
28237 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28238
28239 * doc/invoke.texi (Optimize Options): Document that LTO
28240 won't remove object access purely due to incompatible
28241 declarations.
28242
28243 2010-04-04 Matthias Klose <doko@ubuntu.com>
28244
28245 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
28246 Initialize variable.
28247
28248 2010-04-03 Richard Guenther <rguenther@suse.de>
28249
28250 PR middle-end/42509
28251 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
28252 require a non-NULL MEM_OFFSET.
28253
28254 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
28255
28256 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
28257 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
28258 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
28259 config/alpha/predicates.md, config/arm/arm.md,
28260 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
28261 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
28262 config/darwin9.h, config/darwin.c, config/darwin.h,
28263 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
28264 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
28265 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
28266 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
28267 config/mips/mips.md, config/mn10300/mn10300.c,
28268 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
28269 config/rs6000/aix.h, config/rs6000/dfp.md,
28270 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
28271 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
28272 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
28273 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
28274 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
28275 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
28276 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
28277 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
28278 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
28279 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
28280 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
28281 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
28282 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
28283 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
28284 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
28285 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
28286 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
28287 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
28288 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
28289 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
28290 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
28291 opt-functions.awk, opth-gen.awk, params.def, passes.c,
28292 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
28293 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
28294 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
28295 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
28296 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
28297 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
28298 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
28299 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
28300 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
28301 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
28302 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
28303 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
28304 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
28305 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
28306
28307 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28308
28309 PR other/43620
28310 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
28311 * aclocal.m4: Regenerate.
28312
28313 2010-04-02 Richard Guenther <rguenther@suse.de>
28314
28315 PR tree-optimization/43629
28316 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
28317 if we have seen a constant value.
28318
28319 2010-04-02 Joseph Myers <joseph@codesourcery.com>
28320
28321 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
28322
28323 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
28324
28325 PR target/43469
28326 * arm.c (legitimize_tls_address): Adjust call to
28327 gen_tls_load_dot_plus_four.
28328 (arm_note_pic_base): New function.
28329 (arm_cannot_copy_insn_p): Use it.
28330 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
28331 constraint.
28332
28333 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28334
28335 PR bootstrap/43531
28336
28337 Revert:
28338 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28339
28340 * Makefile.in ($(out_object_file)): Depend on
28341 gt-$(basename $(notdir $(out_file))).h.
28342
28343 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
28344
28345 * config.gcc (lm32-*-rtems*): Add t-lm32.
28346
28347 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
28348
28349 * config.gcc: Add lm32-*-rtems*.
28350 * config/lm32/rtems.h: New file.
28351
28352 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
28353
28354 PR target/42609
28355 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
28356
28357 2010-04-01 Jakub Jelinek <jakub@redhat.com>
28358
28359 * dwarf2out.c (output_compilation_unit_header): For
28360 -gdwarf-4 use version 4 instead of version 3.
28361 (output_line_info): For version 4 and above emit additional
28362 maximum ops per insn header field.
28363 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
28364
28365 * dwarf2out.c (is_c_family, is_java): Remove.
28366 (lower_bound_default): New function.
28367 (add_bound_info, gen_descr_array_type_die): Use it.
28368
28369 2010-04-01 Dodji Seketeli <dodji@redhat.com>
28370
28371 PR debug/43325
28372 * dwarf2out.c (gen_variable_die): Allow debug info for variable
28373 re-declaration when it happens in a function.
28374
28375 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
28376
28377 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
28378 (cgraph_remove_function_insertion_hook): Same.
28379 (cgraph_call_function_insertion_hooks): Same.
28380
28381 2010-04-01 Richard Guenther <rguenther@suse.de>
28382
28383 PR middle-end/43614
28384 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
28385 and TREE_THIS_VOLATILE.
28386 (copy_ref_info): Likewise.
28387 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
28388 * tree.c (build6_stat): Ignore side-effects of all but arg5
28389 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
28390 TARGET_MEM_REF.
28391
28392 2010-04-01 Richard Guenther <rguenther@suse.de>
28393
28394 PR tree-optimization/43607
28395 * ipa-type-escape.c (check_call): Do not access non-existing
28396 arguments.
28397
28398 2010-04-01 Richard Guenther <rguenther@suse.de>
28399
28400 PR middle-end/43602
28401 Revert
28402 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
28403 Jack Howarth <howarth@bromo.med.uc.edu>
28404
28405 * tree-profile.c (tree_init_ic_make_global_vars): Make static
28406 variables TLS.
28407
28408 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28409
28410 * doc/install.texi (Prerequisites): Document libelf usability on
28411 IRIX 5/6 and Solaris 2.
28412 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
28413 Update GNU as, GNU ld requirements.
28414 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
28415 Document Sun Studio compiler download.
28416 Update and simplify as, ld recommendations.
28417 (Specific, *-*-solaris2.7): Note obsoletion, removal.
28418
28419 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28420
28421 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
28422 with_tune_32 to pentium4.
28423
28424 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
28425
28426 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
28427
28428 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28429
28430 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
28431 obsoletion, removal.
28432 Update IDO URL.
28433 Document GNU as requirement.
28434 Update configure requirements.
28435 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
28436 Recomment IRIX 6.5.18+.
28437 Document IDF/IDL requirement.
28438 Document GNU as requirement.
28439 Document GNU ld bootstrap failure.
28440 Remove freeware.sgi.com reference.
28441
28442 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28443
28444 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
28445 UNIX V4.0, V5.0 obsoletion, removal.
28446 Remove --with-gc=simple reference.
28447 Update VM requirements during bootstrap.
28448 Remove -oldas bootstrap description.
28449 Update binutils reference.
28450 Remove comparison failure note.
28451
28452 2010-03-31 Richard Guenther <rguenther@suse.de>
28453 Zdenek Dvorak <ook@ucw.cz>
28454 Sebastian Pop <sebastian.pop@amd.com>
28455
28456 PR middle-end/43464
28457 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
28458 with multiple arguments.
28459 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
28460
28461 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28462
28463 * graphite-dependences.c (print_pddr): Call print_pdr with an
28464 extra argument.
28465 * graphite-poly.c (debug_pdr): Add an extra argument for the
28466 verbosity level.
28467 (print_pdr): Same.
28468 (print_pbb_domain): Same.
28469 (print_pbb): Same.
28470 (print_scop_context): Same.
28471 (print_scop): Same.
28472 (print_cloog): Same.
28473 (debug_pbb_domain): Same.
28474 (debug_pbb): Same.
28475 (print_pdrs): Same.
28476 (debug_pdrs): Same.
28477 (debug_scop_context): Same.
28478 (debug_scop): Same.
28479 (debug_cloog): Same.
28480 (print_scop_params): Same.
28481 (debug_scop_params): Same.
28482 (print_iteration_domain): Same.
28483 (print_iteration_domains): Same.
28484 (debug_iteration_domain): Same.
28485 (debug_iteration_domains): Same.
28486 (print_scattering_function): Same.
28487 (print_scattering_functions): Same.
28488 (debug_scattering_function): Same.
28489 (debug_scattering_functions): Same.
28490 * graphite-poly.h (debug_pdr): Update declaration.
28491 (print_pdr): Same.
28492 (print_pbb_domain): Same.
28493 (print_pbb): Same.
28494 (print_scop_context): Same.
28495 (print_scop): Same.
28496 (print_cloog): Same.
28497 (debug_pbb_domain): Same.
28498 (debug_pbb): Same.
28499 (print_pdrs): Same.
28500 (debug_pdrs): Same.
28501 (debug_scop_context): Same.
28502 (debug_scop): Same.
28503 (debug_cloog): Same.
28504 (print_scop_params): Same.
28505 (debug_scop_params): Same.
28506 (print_iteration_domain): Same.
28507 (print_iteration_domains): Same.
28508 (debug_iteration_domain): Same.
28509 (debug_iteration_domains): Same.
28510 (print_scattering_function): Same.
28511 (print_scattering_functions): Same.
28512 (debug_scattering_function): Same.
28513 (debug_scattering_functions): Same.
28514
28515 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28516
28517 * graphite-poly.c (print_scattering_function_1): New.
28518 (print_scattering_function): Call it.
28519 (print_scop_params): Remove spaces at the end of lines.
28520 (print_cloog): New.
28521 (debug_cloog): New.
28522 * graphite-poly.h (print_cloog): Declared.
28523 (debug_cloog): Declared.
28524
28525 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28526
28527 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
28528 in loop->header.
28529 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
28530 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
28531 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
28532 to switch between adding the IV bump in loop->latch or in loop->header.
28533
28534 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28535
28536 * graphite-poly.c (print_scattering_function): Pretty print following
28537 the scoplib format.
28538 (print_pdr): Same.
28539 (print_pbb_domain): Same.
28540 (dump_gbb_cases): Same.
28541 (dump_gbb_conditions): Same.
28542 (print_pdrs): Same.
28543 (print_pbb): Same.
28544 (print_scop_params): Same.
28545 (print_scop_context): Same.
28546 (print_scop): Same.
28547 (print_pbb_body): New.
28548 (lst_indent_to): New.
28549 (print_lst): Start new lines with a #.
28550 * graphite-poly.h (pbb_bb): New.
28551 (pbb_index): Use pbb_bb.
28552 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
28553 disjuncts.
28554 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
28555
28556 2010-03-31 Jakub Jelinek <jakub@redhat.com>
28557
28558 * dwarf2out.c (size_of_die): For -gdwarf-4 use
28559 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
28560 and 0 instead of 1 for dw_val_class_flag.
28561 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
28562 dw_val_class_range_list, dw_val_class_loc_list,
28563 dw_val_class_lineptr and dw_val_class_macptr, use
28564 DW_FORM_flag_present for dw_val_class_flag and
28565 DW_FORM_exprloc for dw_val_class_loc.
28566 (output_die): For -gdwarf-4 print dw_val_class_loc
28567 size as uleb128 instead of 1 or 2 bytes and don't print
28568 anything for dw_val_class_flag.
28569
28570 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
28571 instead of cselib_lookup following by tweaking locs->setting_insn.
28572
28573 PR bootstrap/43596
28574 * cselib.c (cselib_process_insn): Clear cselib_current_insn
28575 even before returning from label, setjmp call or volatile asm
28576 handling.
28577
28578 2010-03-31 Richard Guenther <rguenther@suse.de>
28579
28580 PR middle-end/43600
28581 * cgraphunit.c (cgraph_output_in_order): Do not allocate
28582 temporary data on stack.
28583
28584 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28585
28586 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
28587 (PUSHSECTION_ASM_OP): Remove.
28588 (POPSECTION_ASM_OP): Remove.
28589 (PUSHSECTION_FORMAT): Remove.
28590 * config/sol2.h (PUSHSECTION_FORMAT): Define.
28591 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
28592 * config/sol2.c (solaris_output_init_fini): Use it.
28593
28594 2010-03-31 Jie Zhang <jie@codesourcery.com>
28595
28596 PR 43574
28597 * opt-functions.awk (var_type_struct): Use signed char type
28598 for simple variables.
28599
28600 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28601
28602 * config/sol2.c: Include output.h.
28603 (solaris_assemble_visibility): New function.
28604 * config/t-sol2 (sol2.o): Add output.h dependency.
28605 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
28606 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
28607 Redefine.
28608
28609 2010-03-31 Jakub Jelinek <jakub@redhat.com>
28610
28611 PR target/43580
28612 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
28613 V2SImode or XFmode on PRE_DEC.
28614
28615 PR debug/43557
28616 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
28617 BLKmode.
28618
28619 2010-03-31 Jie Zhang <jie@codesourcery.com>
28620
28621 PR 43562
28622 * reload.h (caller_save_initialized_p): Declare.
28623 * toplev.c (backend_init_target): Don't call
28624 init_caller_save but set caller_save_initialized_p to false.
28625 * caller-save.c (caller_save_initialized_p): Define.
28626 (init_caller_save): Check caller_save_initialized_p.
28627 * ira.c (ira): Call init_caller_save if flag_caller_saves.
28628
28629 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28630
28631 PR target/39048
28632 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
28633 and soft-fp/t-softfp to tmake_file.
28634 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
28635 (LIBGCC2_TF_CEXT): Define.
28636 (TF_SIZE): Define.
28637
28638 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
28639
28640 PR debug/42977
28641 * cselib.c (n_useless_values): Document handling of debug locs.
28642 (n_useless_debug_values, n_debug_values): New variables.
28643 (new_elt_loc_list): Don't add to debug values, keep count.
28644 (promote_debug_loc): New.
28645 (cselib_reset_table): Zero new variables.
28646 (entry_and_rtx_equal_p): Promote debug locs.
28647 (discard_useless_locs): Increment n_useless_debug_values for
28648 debug values.
28649 (remove_useless_values): Adjust n_useless_values and n_debug_values
28650 with n_useless_debug_values.
28651 (add_mem_for_addr): Promote debug locs.
28652 (cselib_lookup_mem): Likewise.
28653 (cselib_lookup_addr): Renamed to...
28654 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
28655 (cselib_log_lookup): ... this. Turn into...
28656 (cselib_lookup_addr): ... new wrapper.
28657 (cselib_lookup_from_insn): New.
28658 (cselib_invalidate_regno): Increment n_useless_debug_values for
28659 debug values.
28660 (cselib_invalidate_mem): Likewise.
28661 (cselib_process_insn): Take n_deleted and n_debug_values into
28662 account to guard remove_useless_value call.
28663 (cselib_finish): Zero n_useless_debug_values.
28664 * cselib.h (cselib_lookup_from_insn): Declare.
28665 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
28666 (sched_analyze_2): Likewise.
28667
28668 2010-03-30 Jakub Jelinek <jakub@redhat.com>
28669
28670 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
28671 functions.
28672 (adjust_mems): Replace narrowing SUBREG of expression containing
28673 just PLUS, MINUS, MULT and ASHIFT of registers and constants
28674 with operations in the narrower mode.
28675
28676 PR debug/43593
28677 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
28678 regs_invalidated_by_call instead all call_used_reg_set registers.
28679
28680 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
28681
28682 PR middle-end/43430
28683 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
28684 pointer comparisons with types_compatible_p.
28685 * tree-vect-stmts.c (vectorizable_call): Same.
28686 (vectorizable_condition): Same.
28687
28688 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28689
28690 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
28691 stack check if the mask would be zero.
28692
28693 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
28694 Jack Howarth <howarth@bromo.med.uc.edu>
28695
28696 * tree-profile.c (tree_init_ic_make_global_vars): Make static
28697 variables TLS.
28698
28699 2010-03-30 Joseph Myers <joseph@codesourcery.com>
28700
28701 PR other/25232
28702 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
28703 and __unordtf2.
28704 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
28705 Include ___unordxf2 and ___unordtf2.
28706 * config/i386/libgcc-glibc.ver: Do not define inheritance from
28707 GCC_4.4.0 here.
28708
28709 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
28710
28711 * config/lm32/t-lm32: New file.
28712 * config.gcc: Use the above file when targetting lm32.
28713
28714 2010-03-28 Duncan Sands <baldrick@free.fr>
28715
28716 * Makefile.in (PLUGIN_HEADERS): Add except.h.
28717
28718 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
28719
28720 PR middle-end/43431
28721 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
28722 Improve vectorization cost model diagnostic.
28723
28724 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
28725
28726 PR middle-end/43436
28727 * tree-vect-data-refs.c (vect_analyze_data_refs): When
28728 compute_data_dependences_for_loop returns false, early exit
28729 and output an extra diagnostic for the failed data reference
28730 analysis.
28731
28732 2010-03-29 Richard Guenther <rguenther@suse.de>
28733
28734 PR tree-optimization/43560
28735 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
28736 (can_sm_ref_p): Treat stores to readonly locations as trapping.
28737
28738 2010-03-29 Jie Zhang <jie@codesourcery.com>
28739
28740 PR 43564
28741 * toplev.c (process_options): Set optimization_default_node
28742 and optimization_current_node.
28743 * opts.c (decode_options): Don't set optimization_default_node
28744 and optimization_current_node.
28745
28746 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
28747
28748 * config/rtems.h: Abandon -qrtems_debug.
28749
28750 2010-03-28 Jan Hubicka <jh@suse.cz>
28751
28752 PR tree-optimization/43505
28753 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
28754 map should not be copied.
28755
28756 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28757
28758 PR middle-end/41674
28759 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
28760 cdtors, set DECL_PRESERVE_P.
28761 * ipa.c (cgraph_externally_visible_p): Return true if declaration
28762 should be preseved.
28763
28764 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
28765
28766 PR tree-optimization/43528
28767 * stor-layout.c (place_field): Check that constant fits into
28768 unsigned HWI when skipping calculation of MS bitfield layout.
28769
28770 2010-03-27 Jan Hubicka <jh@suse.cz>
28771
28772 PR middle-end/43391
28773 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
28774 notice_global_symbol work.
28775
28776 2010-03-27 Jakub Jelinek <jakub@redhat.com>
28777
28778 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
28779 instead of dwarf2out_decl.
28780 (struct var_loc_node): Remove section_label field.
28781 (dwarf2out_function_decl): New function.
28782 (dwarf2out_var_location): Don't set section_label field.
28783 (dwarf2out_begin_function): Don't empty decl_loc_table here.
28784
28785 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
28786
28787 PR tree-optimization/43544
28788 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
28789 First argument for builtin vectorized function hook is now a
28790 tree to be able to distinguish between machine specific and
28791 standard builtins.
28792 * targhooks.c (default_builtin_vectorized_function): Ditto.
28793 * targhooks.h (default_builtin_vectorized_function): Ditto.
28794 * target.h (struct gcc_target): Ditto.
28795 * tree-vect-stmts.c (vectorizable_function): Ditto.
28796 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
28797 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
28798 Ditto.
28799
28800 2010-03-26 Joseph Myers <joseph@codesourcery.com>
28801
28802 PR c/43381
28803 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
28804 nested binding iff it is a FUNCTION_DECL.
28805 (store_parm_decls_newstyle): Pass nested=true to bind for
28806 FUNCTION_DECLs amongst parameters.
28807
28808 2010-03-26 Jakub Jelinek <jakub@redhat.com>
28809
28810 * var-tracking.c (vt_expand_loc_callback): Don't run
28811 cselib_expand_value_rtx_cb in dummy mode if
28812 cselib_dummy_expand_value_rtx_cb returned false.
28813
28814 * var-tracking.c (emit_note_insn_var_location): For one part
28815 notes with offset 0, don't add EXPR_LIST around the location.
28816 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
28817 add_location_or_const_value_attribute): Adjust for that change.
28818
28819 PR debug/43540
28820 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
28821 into first operand and location into second.
28822 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
28823 dw_cfi_oprnd_loc for DW_CFA_expression.
28824 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
28825 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
28826 assume first argument is regnum and second argument is location.
28827
28828 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
28829
28830 PR target/42113
28831 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
28832 of scratch register to DImode. Split to DImode comparison operator.
28833 Use SImode subreg of scratch register in the multiplication.
28834 (*cmp_sadd_sidi): Ditto.
28835 (*cmp_ssub_si): Ditto.
28836 (*cmp_ssub_sidi): Ditto.
28837
28838 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
28839
28840 PR target/43524
28841 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
28842 Remove invalid assert and wrong comment.
28843
28844 2010-03-26 Jakub Jelinek <jakub@redhat.com>
28845
28846 PR debug/43516
28847 * flags.h (final_insns_dump_p): New extern.
28848 * final.c (final_insns_dump_p): New variable.
28849 (rest_of_clean_state): Set it before -fdump-final-insns=
28850 dumping, clear afterwards.
28851 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
28852 MEM_ALIAS_SET on MEMs.
28853
28854 2010-03-26 David S. Miller <davem@davemloft.net>
28855
28856 * configure.ac: Fix sparc GOTDATA_OP bug check.
28857 * configure: Rebuild.
28858
28859 2010-03-26 Alan Modra <amodra@gmail.com>
28860
28861 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
28862
28863 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28864
28865 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
28866 TLS_SECTION_ASM_FLAG.
28867
28868 2010-03-25 Jakub Jelinek <jakub@redhat.com>
28869
28870 PR bootstrap/43511
28871 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
28872 Clear first_function_block_is_cold.
28873
28874 PR c/43385
28875 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
28876 argument if the argument is truth_value_p.
28877
28878 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28879
28880 * config/rs6000/constraints.md: Update copyright year for my changes.
28881
28882 PR target/43484
28883 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
28884 used in reg+reg addressing, swap registers.
28885
28886 2010-03-24 Jakub Jelinek <jakub@redhat.com>
28887
28888 PR debug/43293
28889 * target.h (struct gcc_target): Add code_end hook.
28890 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
28891 if not yet defined.
28892 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
28893 * toplev.c (compile_file): Call targetm.asm_out.code_end
28894 hook before unwind info/debug info output.
28895 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
28896 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
28897 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
28898 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
28899 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
28900 * config/i386/i386.c (ix86_file_end): Renamed to...
28901 (ix86_code_end): ... this. Make static. Don't call
28902 file_end_indicate_exec_stack. Emit unwind info using
28903 final_start_function/final_end_function.
28904 (darwin_x86_file_end): Remove.
28905 (TARGET_ASM_CODE_END): Define.
28906 * config/i386/i386.h (TARGET_ASM_FILE_END,
28907 NEED_INDICATE_EXEC_STACK): Don't define.
28908 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
28909 (TARGET_ASM_FILE_END): Define to darwin_file_end.
28910 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
28911 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
28912
28913 PR target/43498
28914 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
28915 at the beginning and final_end_function at the end.
28916 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
28917
28918 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28919
28920 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
28921 and Sun as TLS syntax.
28922 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
28923 * configure: Regenerate.
28924 * config.in: Regenerate.
28925 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
28926 (default_elf_asm_named_section): Use it.
28927 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
28928 (i386_output_dwarf_dtprel): Likewise.
28929 (output_addr_const_extra): Likewise.
28930 (output_pic_addr_const): Lowercase @GOTTPOFF.
28931 (output_addr_const_extra): Likewise.
28932 (output_pic_addr_const): Lowercase @GOTNTPOFF.
28933 (output_addr_const_extra): Likewise.
28934 (output_pic_addr_const): Lowercase @INDNTPOFF.
28935 (output_addr_const_extra): Likewise.
28936 (output_pic_addr_const): Lowercase @NTPOFF.
28937 (output_addr_const_extra): Likewise.
28938 (output_pic_addr_const): Lowercase @TPOFF.
28939 (output_addr_const_extra): Likewise.
28940 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
28941 (*tls_global_dynamic_64): Likewise.
28942 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
28943 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
28944
28945 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
28946 (ASM_OUTPUT_TLS_COMMON): Use it.
28947 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
28948
28949 PR target/38118
28950 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
28951 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
28952 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
28953 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
28954 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
28955 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
28956
28957 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28958
28959 * config/i386/i386.c (override_options): Don't accept
28960 -mtls-dialect=sun any longer.
28961 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
28962 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
28963 (*tls_local_dynamic_base_32_sun): Likewise.
28964 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
28965
28966 2010-03-24 Jakub Jelinek <jakub@redhat.com>
28967
28968 PR debug/43508
28969 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
28970 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
28971
28972 PR debug/43479
28973 * ira.c (adjust_cleared_regs): New function.
28974 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
28975
28976 PR debug/19192
28977 PR debug/43479
28978 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
28979 from gimple_block.
28980 * expr.c (expand_expr_real): Restore previous
28981 curr_insn_source_location and curr_insn_block after
28982 expand_expr_real_1 call.
28983 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
28984 instead of expand_expr_real_1.
28985
28986 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
28987
28988 PR rtl-optimization/43413
28989 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
28990 hard regs too.
28991
28992 2010-03-22 James E. Wilson <wilson@codesourcery.com>
28993
28994 PR target/43348
28995 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
28996 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
28997
28998 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
28999
29000 * config/i386/i386.c (ix86_target_string): Add -mfma.
29001 Fix a typo in comment.
29002
29003 2010-03-22 Mike Stump <mikestump@comcast.net>
29004
29005 PR target/23071
29006 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
29007 Don't overly align based upon packed packed fields.
29008
29009 2010-03-22 Jason Merrill <jason@redhat.com>
29010
29011 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
29012 Use () rather than [], and move before the element type.
29013
29014 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29015
29016 * doc/configfiles.texi (Configuration Files): Removed
29017 fixinc/Makefile*, intl/Makefile.*.
29018 * doc/makefile.texi: Fixed markup. Abstract from version
29019 control system used.
29020 (Makefile): Removed obsolete java/parse.y example.
29021 * doc/sourcebuild.texi: Likewise.
29022 (Top Level): Added config, gnattools, libdecnumber, libgcc,
29023 libgomp, libssp. Removed fastjar.
29024 (Miscellaneous Docs): Clarify location.
29025 Added COPYING3, COPYING3.LIB.
29026 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
29027
29028 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29029
29030 PR target/38085
29031 * config/i386/i386.c (x86_function_profiler)
29032 [!NO_PROFILE_COUNTERS]: Fix typo.
29033 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
29034 instead of callq.
29035
29036 2010-03-22 Janis Johnson <janis187@us.ibm.com>
29037 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29038
29039 * doc/sourcebuild.texi (Test Directives): Split into six
29040 subsections, with most of the current text in new subsections
29041 Directives, Selectors, and Final Actions.
29042 (Directives): Split list of test directives into multiple
29043 subsubsections.
29044 (Selectors): Describe use and syntax of selectors.
29045 (Effective-Target Keywords): Describe all existing keywords.
29046 (Add Options): Describe features for dg-add-options.
29047 (Require Support): Describe variants of dg-require-support.
29048 (Final Actions): Describe commands to use in dg-final.
29049
29050 2010-03-22 Michael Matz <matz@suse.de>
29051
29052 PR middle-end/43475
29053 * recog.c (validate_replace_rtx_group): Replace also in
29054 REG_EQUAL and REG_EQUIV notes.
29055
29056 2010-03-22 Richard Guenther <rguenther@suse.de>
29057
29058 PR tree-optimization/43390
29059 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
29060 sure vector extracts are type correct.
29061
29062 2010-03-22 Richard Guenther <rguenther@suse.de>
29063
29064 PR middle-end/40106
29065 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
29066 x * sqrt (x) even when optimizing for size if the target
29067 has native support for sqrt.
29068
29069 2010-03-22 Jakub Jelinek <jakub@redhat.com>
29070
29071 * varasm.c (make_decl_rtl_for_debug): Also clear
29072 flag_mudflap for the duration of make_decl_rtl call.
29073
29074 PR debug/43443
29075 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
29076 locs from preserved VALUEs.
29077
29078 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29079
29080 PR middle-end/42718
29081 * pa.md (movmemsi): Set align to one if zero.
29082 (movmemdi): Likewise.
29083
29084 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
29085
29086 PR target/42321
29087 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
29088 with their corresponding prologue pushes.
29089
29090 2010-03-20 Andrew Pinski <pinskia@gmail.com>
29091
29092 PR target/43156
29093 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
29094 at the begining or end.
29095 (spu_expand_epilogue): Likewise.
29096
29097 2010-03-20 Richard Guenther <rguenther@suse.de>
29098
29099 PR rtl-optimization/43438
29100 * combine.c (make_extraction): Properly zero-/sign-extend an
29101 extraction of the low part of a CONST_INT. Also handle
29102 CONST_DOUBLE.
29103
29104 2010-03-19 Mike Stump <mikestump@comcast.net>
29105
29106 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
29107 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
29108 (override_options): Use SUBTARGET32_DEFAULT_CPU.
29109
29110 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
29111
29112 PR c/43211
29113 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
29114 an error.
29115
29116 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
29117
29118 PR rtl-optimization/42258
29119 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
29120 use that may match DEF.
29121
29122 PR target/40697
29123 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
29124 the cost of loading the constant rather than assuming
29125 COSTS_N_INSNS (1).
29126 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
29127 outer code is AND, do the same tests as the andsi3 expander and
29128 return COSTS_N_INSNS (1) if and is cheap.
29129
29130 * optabs.c (avoid_expensive_constant): Fix formatting.
29131
29132 2010-03-19 Michael Matz <matz@suse.de>
29133
29134 PR c++/43116
29135 * attribs.c (decl_attributes): When rebuilding a function pointer
29136 type use the same qualifiers as the original pointer type.
29137
29138 2010-03-19 Martin Jambor <mjambor@suse.cz>
29139
29140 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
29141 and is_gimple_ip_invariant_address.
29142
29143 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29144
29145 Revert
29146 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29147
29148 * config/arm/arm.c (arm_override_options): Turn off
29149 flag_dwarf2_cfi_asm for AAPCS variants.
29150
29151 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29152
29153 PR target/43399
29154 * config/arm/arm.c (emit_multi_reg_push): Update comments.
29155 Use PRE_MODIFY instead of PRE_DEC.
29156 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
29157 (vfp_emit_fstmd): Likewise.
29158
29159 2010-03-19 Michael Matz <matz@suse.de>
29160
29161 PR target/43305
29162 * builtins.c (expand_builtin_interclass_mathfn,
29163 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
29164 if that fails.
29165
29166 2010-03-19 Richard Guenther <rguenther@suse.de>
29167
29168 PR tree-optimization/43415
29169 * tree-ssa-pre.c (phi_translate): Split out worker to ...
29170 (phi_translate_1): ... this.
29171 (phi_translate): Move all caching here. Cache all NARY
29172 and REFERENCE translations.
29173
29174 2010-03-19 David S. Miller <davem@davemloft.net>
29175
29176 With help from Eric Botcazou.
29177 * config/sparc/sparc.c: Include dwarf2out.h.
29178 (emit_pic_helper): Delete.
29179 (pic_helper_symbol_name): Delete.
29180 (pic_helper_emitted_p): Delete.
29181 (pic_helper_needed): New.
29182 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
29183 (get_pc_thunk_name): New.
29184 (load_pic_register): Remove 'delay_pic_helper' arg. Use
29185 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
29186 Set pic_helper_needed to true. Don't call emit_pic_helper.
29187 (sparc_expand_prologue): Update load_pic_register call.
29188 (sparc_output_mi_thunk): Likewise.
29189 (sparc_file_end): Emit a hidden comdat symbol for the PIC
29190 thunk if possible. Output CFI information as needed.
29191
29192 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
29193 Jack Howarth <howarth@bromo.med.uc.edu>
29194
29195 PR target/36399
29196 * config/i386/i386.h: Fix ABI on darwin x86-32.
29197
29198 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
29199
29200 * tree.h: Declare make_decl_rtl_for_debug.
29201 * varasm.c (make_decl_rtl_for_debug): New.
29202 * dwarf2out.c (rtl_for_decl_location): Call it.
29203 * cfgexpand.c (expand_debug_expr): Call it.
29204
29205 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29206
29207 PR bootstrap/43399
29208 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
29209 mem_mode.
29210
29211 PR bootstrap/43403
29212 * var-tracking.c (vt_init_cfa_base): Do nothing if
29213 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
29214
29215 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
29216
29217 PR debug/42873
29218 * var-tracking.c (canonicalize_vars_star): New.
29219 (dataflow_post_merge_adjust): Use it.
29220
29221 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29222
29223 PR debug/43058
29224 * var-tracking.c (non_suitable_const): New function.
29225 (add_uses): For DEBUG_INSNs with constants, don't record any
29226 value, instead just the constant value itself.
29227 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
29228 is not VAR_LOC_UNKNOWN_P, set var to the constant.
29229 (emit_notes_in_bb): Likewise.
29230 (emit_note_insn_var_location): For onepart variables if
29231 cur_loc is a VOIDmode constant, use DECL_MODE.
29232
29233 2010-03-18 Martin Jambor <mjambor@suse.cz>
29234
29235 PR middle-end/42450
29236 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
29237 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
29238 all non-clones. Moved call redirection...
29239 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
29240 (cgraph_materialize_all_clones): Dispose of all
29241 combined_args_to_skip bitmaps.
29242 (verify_cgraph_node): Do not check for edges pointing to wrong
29243 nodes in inline clones.
29244 * tree-inline.c (copy_bb): Call
29245 cgraph_redirect_edge_call_stmt_to_callee.
29246 * ipa.c (cgraph_remove_unreachable_nodes): Call
29247 cgraph_node_remove_callees even when there are used clones.
29248
29249 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29250
29251 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
29252
29253 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29254
29255 PR target/43383
29256 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
29257 for 32bit.
29258
29259 2010-03-18 Michael Matz <matz@suse.de>
29260
29261 PR middle-end/43419
29262 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
29263 into sqrt(x) if we need to preserve signed zeros.
29264
29265 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
29266 Eric Botcazou <ebotcazou@adacore.com>
29267
29268 PR rtl-optimization/43360
29269 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
29270 note if we don't know its invariant status.
29271
29272 2010-03-18 Michael Matz <matz@suse.de>
29273
29274 PR tree-optimization/43402
29275 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
29276 PHI chains of ssa names registered for update.
29277
29278 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
29279
29280 PR target/42427
29281 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
29282 non-offsettable and pre_modify update addressing.
29283 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
29284 and "2" alternatives "#".
29285 (*movdd_softfloat32): Make all alternatives "#";
29286 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
29287 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
29288 (*movdf_softfloat32): Make all alternatives "#";
29289 (movdi): Use the new DIFD mode iterator to create a common splitter
29290 for movdi, movdf and movdd patterns.
29291
29292 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
29293
29294 * common.opt (dumpdir): Remove redundant tab.
29295
29296 2010-03-17 Martin Jambor <mjambor@suse.cz>
29297
29298 PR tree-optimization/43347
29299 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
29300 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
29301
29302 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
29303
29304 PR rtl-optimization/42216
29305 * regrename.c (create_new_chain): New function, broken out from...
29306 (scan_rtx_reg): ... here. Call it. Handle the case where we are
29307 appending a use to an empty chain.
29308 (build_def_use): Remove previous changes that convert OP_INOUT to
29309 OP_OUT operands; instead detect the case where an OP_INOUT operand
29310 uses a previously untracked register and create an empty chain for it.
29311
29312 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29313
29314 * doc/extend.texi (Function Attributes): Rewrite unfinished
29315 sentence in ms_abi documentation.
29316
29317 2010-03-17 Alan Modra <amodra@gmail.com>
29318
29319 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
29320 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
29321 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
29322 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
29323
29324 2010-03-16 Richard Henderson <rth@redhat.com>
29325
29326 PR middle-end/43365
29327 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
29328 (lower_try_finally): Save and restore eh_seq around the expansion
29329 of the try-finally.
29330
29331 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
29332
29333 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
29334 statements before splitting block.
29335
29336 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29337
29338 * doc/sourcebuild.texi (Testsuites): Fix markup.
29339 Use pathnames relative to gcc/testsuite.
29340 (Test Directives): Move description of how timeout is determined.
29341 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
29342 (C Tests): Correct gcc.misc-tests directory.
29343 Framework tests now live in gcc.test-framework.
29344
29345 2010-03-16 Richard Guenther <rguenther@suse.de>
29346
29347 PR middle-end/43379
29348 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
29349 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
29350
29351 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
29352 Alexandre Oliva <aoliva@redhat.com>
29353
29354 PR tree-optimization/42917
29355 * lambda-code.c (remove_iv): Skip debug statements.
29356 (lambda_loopnest_to_gcc_loopnest): Likewise.
29357 (not_interesting_stmt): Debug statements are not interesting.
29358
29359 2010-03-16 Jakub Jelinek <jakub@redhat.com>
29360
29361 PR debug/43051
29362 PR debug/43092
29363 * cselib.c (cselib_preserve_constants,
29364 cfa_base_preserved_val): New static variables.
29365 (preserve_only_constants): New function.
29366 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
29367 clear its REG_VALUES. If cselib_preserve_constants, don't
29368 empty the whole hash table, but preserve there VALUEs with constants,
29369 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
29370 (cselib_preserve_cfa_base_value): New function.
29371 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
29372 (cselib_init): Change argument to int bitfield. Set
29373 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
29374 is in it.
29375 (cselib_finish): Clear cselib_preserve_constants and
29376 cfa_base_preserved_val.
29377 * cselib.h (enum cselib_record_what): New enum.
29378 (cselib_init): Change argument to int.
29379 (cselib_preserve_cfa_base_value): New prototype.
29380 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
29381 * dse.c (dse_step1): Likewise.
29382 * cfgcleanup.c (thread_jump): Likewise.
29383 * sched-deps.c (sched_analyze): Likewise.
29384 * gcse.c (local_cprop_pass): Likewise.
29385 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
29386 If FN is non-NULL, call the callback always and whenever it returns
29387 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
29388 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
29389 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
29390 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
29391 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
29392 * var-tracking.c: Include recog.h.
29393 (bb_stack_adjust_offset): Remove.
29394 (vt_stack_adjustments): Don't call it, instead just gather the
29395 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
29396 (adjust_stack_reference): Remove.
29397 (compute_cfa_pointer): New function.
29398 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
29399 (struct adjust_mem_data): New type.
29400 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
29401 functions.
29402 (get_address_mode): New function.
29403 (replace_expr_with_values): Use it.
29404 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
29405 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
29406 (adjust_sets): Remove.
29407 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
29408 Use get_address_mode.
29409 (get_adjusted_src): Remove.
29410 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
29411 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
29412 (add_with_sets): Don't call adjust_sets.
29413 (fp_setter, vt_init_cfa_base): New functions.
29414 (vt_initialize): Change return type to bool. Move most of pool etc.
29415 initialization to the beginning of the function from end. Pass
29416 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
29417 If !frame_pointer_needed, call vt_stack_adjustment before mos
29418 vector is filled, call vt_init_cfa_base if argp/framep has been
29419 eliminated to sp. If frame_pointer_needed and argp/framep has
29420 been eliminated to hard frame pointer, set
29421 hard_frame_pointer_adjustment and call vt_init_cfa_base after
29422 encountering fp setter in the prologue. For MO_ADJUST, call
29423 log_op_type before pusing the op into mos vector, not afterwards.
29424 Call adjust_insn before cselib_process_insn/add_with_sets,
29425 call cancel_changes (0) afterwards.
29426 (variable_tracking_main_1): Adjust for vt_initialize calling
29427 vt_stack_adjustments and returning whether it succeeded or not.
29428
29429 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
29430
29431 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
29432 debug statements.
29433
29434 2010-03-15 Jakub Jelinek <jakub@redhat.com>
29435
29436 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
29437 has been set.
29438 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
29439 drap_reg has not been set.
29440
29441 2010-03-15 Michael Matz <matz@suse.de>
29442
29443 PR middle-end/43300
29444 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
29445 use it to expand block copies.
29446 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
29447 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
29448 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
29449
29450 2010-03-15 Richard Guenther <rguenther@suse.de>
29451
29452 PR tree-optimization/43367
29453 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
29454 elimination check.
29455
29456 2010-03-15 Richard Guenther <rguenther@suse.de>
29457
29458 PR tree-optimization/43317
29459 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
29460
29461 2010-03-15 Martin Jambor <mjambor@suse.cz>
29462
29463 PR tree-optimization/43141
29464 * tree-sra.c (create_abstract_origin): New function.
29465 (modify_function): Call create_abstract_origin.
29466
29467 2010-03-15 Chris Demetriou <cgd@google.com>
29468
29469 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
29470 wasn't copied.
29471
29472 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29473
29474 PR middle-end/43354
29475 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
29476 call insert_out_of_ssa_copy for default definitions.
29477
29478 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29479
29480 * graphite-clast-to-gimple.c (my_long_long): Defined.
29481 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
29482 * graphite-sese-to-poly.c (my_long_long): Defined.
29483 (scop_ivs_can_be_represented): Use it.
29484
29485 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29486
29487 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
29488 graphite-max-bbs-per-function, and loop-block-tile-size.
29489 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
29490 with "maximum".
29491 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
29492
29493 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29494
29495 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
29496 forward declaration.
29497 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
29498 (add_upper_bounds_from_estimated_nit): New.
29499 (build_loop_iteration_domains): Use it.
29500
29501 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29502
29503 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
29504
29505 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29506
29507 PR middle-end/43306
29508 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
29509 should be an INTEGER_CST. Also handle CASE_CONVERT.
29510
29511 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29512
29513 * graphite.c (graphite_initialize): To bound the number of bbs per
29514 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
29515 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
29516 * doc/invoke.texi: Document it.
29517
29518 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29519
29520 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
29521 * graphite-sese-to-poly.h (build_poly_scop): Same.
29522
29523 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29524
29525 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
29526 the number of parameters in the scop. Use as an upper bound
29527 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
29528 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
29529 * doc/invoke.texi: Document it.
29530
29531 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
29532
29533 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
29534 * doc/c-tree.texi: Remove.
29535 * doc/generic.texi: Merge c-tree.texi here.
29536 * doc/gccint.texi (Trees): Remove menu entry.
29537 (c-tree.texi): Remove @include.
29538 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
29539 * doc/languages.texi (Reading RTL): Ditto.
29540
29541 2010-03-12 Steve Ellcey <sje@cup.hp.com>
29542
29543 PR target/42869
29544 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
29545
29546 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
29547
29548 PR middle-end/42431
29549 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
29550 code added to work around reload clobbering CONST insns.
29551
29552 2010-03-12 Jakub Jelinek <jakub@redhat.com>
29553
29554 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
29555 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
29556 (cselib_preserve_only_values): Remove retain argument, don't
29557 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
29558 * cselib.h (cselib_preserve_only_values): Remove retain argument.
29559 * var-tracking.c (micro_operation): Move insn field before union.
29560 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
29561 (struct variable_tracking_info_def): Remove n_mos field, change
29562 mos into a vector of micro_operations.
29563 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
29564 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
29565 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
29566 changing into a vector.
29567 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
29568 come before all other uops generated by add_stores.
29569 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
29570 argument removal.
29571 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
29572 a vector. Run just one pass over the bbs instead of separate counting
29573 and computation phase.
29574 (vt_finalize): Free VTI (bb)->mos vector instead of array.
29575
29576 PR debug/43329
29577 * tree-inline.c (remap_decls): Put old_var rather than origin_var
29578 into *nonlocalized_list vector.
29579 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
29580 even if origin is non-NULL.
29581 (gen_variable_die): Likewise.
29582 (process_scope_var): Don't change origin.
29583 (gen_decl_die): Likewise.
29584 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
29585 before adding new edges instead of after it, fix moving over
29586 debug stmts.
29587
29588 2010-03-11 David S. Miller <davem@davemloft.net>
29589
29590 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
29591 of four.
29592 * configure: Rebuild.
29593
29594 2010-03-11 Martin Jambor <mjambor@suse.cz>
29595
29596 PR tree-optimization/43257
29597 * tree.c (assign_assembler_name_if_neeeded): New function.
29598 (free_lang_data_in_cgraph): Assembler name assignment moved to the
29599 above new function.
29600 * tree.h (assign_assembler_name_if_neeeded): Declare.
29601 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
29602 the function if needed.
29603
29604 2010-03-11 Chris Demetriou <cgd@google.com>
29605
29606 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
29607 include/stdint-gcc.h, and include/stdint.h world-readable.
29608
29609 2010-03-11 Richard Guenther <rguenther@suse.de>
29610
29611 PR tree-optimization/43255
29612 * tree-vrp.c (process_assert_insertions_for): Do not insert
29613 asserts for trivial conditions.
29614
29615 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29616
29617 PR tree-optimization/43280
29618 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
29619 generation. Move calculation of size out of the if branch.
29620 (find_bswap): Modify compare number generation.
29621
29622 2010-03-11 Richard Guenther <rguenther@suse.de>
29623
29624 PR lto/43200
29625 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
29626 (input_gimple_stmt): Fixup handled component types during
29627 operand read. Also fix up decls in ADDR_EXPRs.
29628
29629 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
29630
29631 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
29632 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
29633
29634 2010-03-10 Jan Hubicka <jh@suse.cz>
29635
29636 PR c/43288
29637 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
29638 * varasm.c (get_variable_section): Don't do that here...
29639 (make_decl_rtl): ... and here.
29640 (do_assemble_alias): Produce decl RTL.
29641 (assemble_alias): Likewise.
29642
29643 2010-03-10 Jakub Jelinek <jakub@redhat.com>
29644
29645 PR debug/43290
29646 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
29647 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
29648 of fde->vdrap_reg.
29649 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
29650 (based_loc_descr): Only express drap or vdrap regno based expressions
29651 using DW_OP_fbreg when not optimizing.
29652 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
29653 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
29654 REG_CFA_SET_VDRAP note.
29655
29656 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
29657
29658 PR tree-optimization/43236
29659 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
29660 error in calculation of base address in reverse iteration case.
29661 (generate_builtin): Take number of latch executions if the statement
29662 is in the latch.
29663
29664 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
29665
29666 PR middle-end/42859
29667 * tree-eh.c: Include pointer-set.h.
29668 (lower_eh_dispatch): Filter out duplicate case labels and
29669 remove the unneeded edge when the label is unused. Return
29670 true when some edges are removed.
29671 (execute_lower_eh_dispatch): When any lowering resulted in
29672 removing an edge, also delete unreachable blocks.
29673
29674 2010-03-10 Jakub Jelinek <jakub@redhat.com>
29675
29676 PR bootstrap/43287
29677 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
29678 UNSPEC_MACHOPIC_OFFSET.
29679
29680 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
29681
29682 PR target/43294
29683 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
29684 (m68k_delegitimize_address): New function.
29685
29686 2010-03-09 Jakub Jelinek <jakub@redhat.com>
29687
29688 PR debug/43299
29689 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
29690
29691 PR debug/43299
29692 * var-tracking.c (adjust_sets): New function.
29693 (count_with_sets, add_with_sets): Use it.
29694 (get_adjusted_src): New inline function.
29695 (add_stores): Use it.
29696
29697 PR debug/43304
29698 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
29699 call cselib_dummy_expand_value_rtx_cb instead of
29700 cselib_expand_value_rtx_cb.
29701
29702 PR debug/43293
29703 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
29704 * config/i386/i386.c: Include debug.h and dwarf2out.h.
29705 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
29706 and .cfi_endproc around the pic thunks.
29707 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
29708 all queued unwind info register saves are saved before the call.
29709 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
29710 considered as sp-=4 for unwind info and the pop as sp+=4 which
29711 also clobbers dest, but doesn't actually restore it.
29712
29713 PR debug/43290
29714 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
29715 RTX_FRAME_RELATED_P.
29716
29717 2010-03-09 Jie Zhang <jie@codesourcery.com>
29718
29719 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
29720 whitespaces in output template.
29721
29722 2010-03-09 Jie Zhang <jie@codesourcery.com>
29723
29724 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
29725 out array boundary.
29726
29727 2010-03-08 Jakub Jelinek <jakub@redhat.com>
29728
29729 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
29730 builtins.exp in a separate job.
29731
29732 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29733
29734 * graphite-sese-to-poly.c (add_param_constraints): Use
29735 lower_bound_in_type and upper_bound_in_type.
29736
29737 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29738
29739 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
29740 instead of unsigned_type_node.
29741
29742 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29743 Reza Yazdani <reza.yazdani@amd.com>
29744
29745 PR middle-end/43065
29746 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
29747 on pointer type parameters.
29748
29749 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
29750
29751 PR middle-end/42644
29752 PR middle-end/42130
29753 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
29754 handle conversions from pointer to integers.
29755 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
29756 induction variable, to be able to work with code generated by CLooG.
29757 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
29758 (build_poly_scop): Bail out if we cannot codegen a loop.
29759
29760 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
29761
29762 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
29763 code generation with gloog_error.
29764
29765 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29766
29767 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
29768 Call fold_convert on all the returned values.
29769 (expand_scalar_variables_expr): Pass to
29770 expand_scalar_variables_ssa_name the type of the resulting expression.
29771
29772 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29773
29774 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
29775 ppl_min_for_le_pointset.
29776 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
29777 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
29778
29779 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29780
29781 * graphite-dependences.c (map_into_dep_poly): Removed.
29782 (dependence_polyhedron_1): Use combine_context_id_scat.
29783
29784 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29785
29786 * graphite-poly.h (struct poly_scattering): Add layout documentation.
29787 (struct poly_bb): Same.
29788 (combine_context_id_scat): New.
29789
29790 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29791
29792 PR middle-end/42326
29793 * sese.c (name_defined_in_loop_p): Return false for default
29794 definitions.
29795
29796 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29797
29798 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
29799 and clean up the logic.
29800
29801 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29802
29803 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
29804 early return.
29805
29806 2010-03-08 Jakub Jelinek <jakub@redhat.com>
29807
29808 * var-tracking.c (remove_cselib_value_chains): Define only for
29809 ENABLE_CHECKING.
29810 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
29811 delete_slot_part, emit_notes_for_differences_1): Don't call
29812 remove_cselib_value_chains here.
29813 (set_slot_part, emit_notes_for_differences_2): Don't call
29814 add_cselib_value_chains here.
29815 (preserved_values): New vector.
29816 (preserve_value): New function.
29817 (add_uses, add_stores, vt_add_function_parameters): Use it
29818 instead of cselib_preserve_value.
29819 (changed_values_stack): New vector.
29820 (check_changed_vars_0): New function.
29821 (check_changed_vars_1, check_changed_vars_2): Use it.
29822 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
29823 changed_values_stack VALUEs.
29824 (vt_emit_notes): For all preserved_values call
29825 add_cselib_value_chains. If ENABLE_CHECKING call
29826 remove_cselib_value_chains before verifying value_chains is empty.
29827 Initialize and free changed_values_stack.
29828 (vt_initialize): Initialize preserved_values.
29829 (vt_finalize): Free preserved_values.
29830
29831 2010-03-08 Richard Guenther <rguenther@suse.de>
29832
29833 PR tree-optimization/43269
29834 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
29835 region detection.
29836
29837 2010-03-08 Martin Jambor <mjambor@suse.cz>
29838
29839 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
29840 (ipa_is_param_called): Removed.
29841 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
29842 (ipa_print_node_params): Do not print the called flag.
29843 (ipa_write_node_info): Do not stream the called flag.
29844 (ipa_read_node_info): Likewise.
29845
29846 2010-03-07 Jakub Jelinek <jakub@redhat.com>
29847
29848 PR debug/43176
29849 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
29850 * cselib.c (struct expand_value_data): Add dummy field.
29851 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
29852 dummy to false.
29853 (cselib_dummy_expand_value_rtx_cb): New function.
29854 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
29855 any rtl.
29856 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
29857 * var-tracking.c: Include pointer-set.h.
29858 (variable): Change n_var_parts to char from int. Add
29859 cur_loc_changed and in_changed_variables fields.
29860 (variable_canonicalize): Remove.
29861 (shared_var_p): New inline function.
29862 (unshare_variable): Maintain cur_loc_changed and
29863 in_changed_variables fields. If var was in changed_variables,
29864 replace it there with new_var. Just copy cur_loc instead of
29865 resetting it to something else.
29866 (variable_union): Don't recompute cur_loc. Use shared_var_p.
29867 (dataflow_set_union): Don't call variable_canonicalize.
29868 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
29869 of their DEBUG_EXPR_TREE_DECLs.
29870 (canonicalize_loc_order_check): Verify that cur_loc is NULL
29871 and in_changed_variables and cur_loc_changed is false.
29872 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
29873 and cur_loc_changed. Don't update cur_loc here.
29874 (variable_merge_over_src): Don't call variable_canonicalize.
29875 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
29876 removing loc that is equal to cur_loc, clear cur_loc,
29877 set cur_loc_changed and ensure variable_was_changed is called.
29878 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
29879 compare pointers in cur_loc check, if it is equal to loc,
29880 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
29881 (variable_different_p): Remove compare_current_location argument,
29882 don't compare cur_loc.
29883 (dataflow_set_different_1): Adjust variable_different_p caller.
29884 (variable_was_changed): If dv had some var in changed_variables
29885 already, reset in_changed_variables flag for it and propagate
29886 cur_loc_changed over to the new variable. On empty var
29887 always set cur_loc_changed. Set in_changed_variables on whatever
29888 var is added to changed_variables.
29889 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
29890 Use shared_var_p. When removing loc that is equal to cur_loc,
29891 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
29892 end, don't set it to something else, just call variable_was_changed.
29893 (delete_slot_part): Use shared_var_p. When cur_loc equals to
29894 loc being removed, clear cur_loc and set cur_loc_changed.
29895 Set cur_loc_changed if all locations have been removed.
29896 (struct expand_loc_callback_data): New type.
29897 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
29898 allocated. Always create SUBREGs if simplify_subreg failed.
29899 Prefer to use cur_loc, when that fails and still in
29900 changed_variables (and seen first time) recompute it. Set
29901 cur_loc_changed of variables which had to change cur_loc and
29902 compute elcd->cur_loc_changed if any of the subexpressions used
29903 had to change cur_loc.
29904 (vt_expand_loc): Adjust to pass arguments in
29905 expand_loc_callback_data structure.
29906 (vt_expand_loc_dummy): New function.
29907 (emitted_notes): New variable.
29908 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
29909 that weren't used for any other decl in current
29910 emit_notes_for_changes call call vt_expand_loc_dummy to update
29911 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
29912 first loc_chain location if NULL before. Always use just
29913 cur_loc instead of first loc_chain location. When cur_loc_changed
29914 is false, when not --enable-checking=rtl just don't emit any note.
29915 When rtl checking, compute the note and assert it is the same
29916 as previous note. Clear cur_loc_changed and in_changed_variables
29917 at the end before removing from changed_variables.
29918 (check_changed_vars_3): New function.
29919 (emit_notes_for_changes): Traverse changed_vars to call
29920 check_changed_vars_3 on each changed var.
29921 (emit_notes_for_differences_1): Clear cur_loc_changed and
29922 in_changed_variables. Recompute cur_loc of new_var.
29923 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
29924 (vt_emit_notes): Initialize and destroy emitted_notes.
29925
29926 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
29927
29928 PR rtl-optimization/42220
29929 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
29930 Use verify_reg_tracked to determine if we should use OP_OUT rather
29931 than OP_INOUT.
29932 (build_def_use): If we see an in-out operand for a register that we
29933 know nothing about, treat is an output if possible, fail the block if
29934 not.
29935
29936 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
29937
29938 PR debug/42897
29939 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
29940 permanently.
29941
29942 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
29943
29944 PR debug/42897
29945 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
29946 uses of relevant DEFs that are dead outside the loop too.
29947
29948 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
29949
29950 * var-tracking.c (dataflow_set_merge): Swap src and src2.
29951 Reverted:
29952 2010-01-13 Jakub Jelinek <jakub@redhat.com>
29953 PR debug/41371
29954 * var-tracking.c (values_to_unmark): New variable.
29955 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
29956 values_to_unmark vector. Moved body to...
29957 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
29958 instead queue it into values_to_unmark vector.
29959 (vt_find_locations): Free values_to_unmark vector.
29960
29961 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
29962
29963 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
29964 (site.exp): Export them when plugins are enabled.
29965
29966 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
29967
29968 PR middle-end/42326
29969 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
29970 that contain scevs.
29971 (chrec_fold_multiply): Same.
29972
29973 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
29974
29975 PR c/43248
29976 * c-decl.c (build_compound_literal): Return early if init is
29977 an error_mark_node.
29978
29979 2010-03-04 Martin Jambor <mjambor@suse.cz>
29980
29981 PR tree-optimization/43164
29982 PR tree-optimization/43191
29983 * tree-sra.c (type_consists_of_records_p): Reject records with
29984 zero-size bit-fields at the end.
29985
29986 2010-03-04 Mike Stump <mikestump@comcast.net>
29987
29988 * Makefile.in (TAGS): Remove *.y.
29989
29990 2010-03-04 Richard Guenther <rguenther@suse.de>
29991
29992 PR tree-optimization/40761
29993 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
29994 in reverse order.
29995 (my_rev_post_order_compute): New function.
29996 (init_pre): Call it.
29997
29998 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
29999
30000 PR middle-end/43209
30001 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
30002 decrease the cost of an IV candidate when the cost is infinite.
30003
30004 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30005
30006 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
30007 Use '3DNow!' for the extension of that name, ensure normal space
30008 after the string.
30009 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
30010
30011 2010-03-03 Jeff Law <law@redhat.com>
30012
30013 * PR middle-end/32693
30014 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
30015 than gen_rtx_SUBREG.
30016 (extract_bit_field_1): Likewise.
30017
30018 2010-03-03 Janis Johnson <janis187@us.ibm.com>
30019
30020 * doc/sourcebuild.texi (Test directives): Document that arguments
30021 include-opts and exclude-opts are now optional for dg-skip-if,
30022 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
30023
30024 2010-03-03 Jason Merrill <jason@redhat.com>
30025
30026 PR c++/12909
30027 * cgraph.h (varpool_node): Add extra_name field.
30028 * varpool.c (varpool_extra_name_alias): New.
30029 (varpool_assemble_decl): Emit extra name aliases.
30030 (varpool_mark_needed_node): Look past an extra name alias.
30031 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
30032 * lto-streamer-in.c (lto_input_tree): Read it.
30033 * lto-streamer-out.c (output_unreferenced_globals): Write it.
30034
30035 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
30036
30037 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
30038 (sparc*-*-solaris2*): ...this.
30039
30040 2010-03-03 Jakub Jelinek <jakub@redhat.com>
30041
30042 PR debug/43229
30043 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
30044 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
30045 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
30046 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
30047
30048 PR debug/43237
30049 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
30050 fallthrough to default handling, just with want_address 0 instead of 2.
30051 For single element lists, add_AT_loc directly, otherwise create an
30052 artificial variable DIE and stick location list to it.
30053
30054 PR debug/43177
30055 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
30056 (VAL_EXPR_HAS_REVERSE): Define.
30057 (reverse_op): New function.
30058 (add_stores): For reversible operations add an extra MO_VAL_USE.
30059
30060 2010-03-02 Jason Merrill <jason@redhat.com>
30061
30062 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
30063
30064 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
30065
30066 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
30067 (sparc64-*-linux*): Likewise.
30068 (sparc64-*-solaris2*): Include assembler files before linker ones.
30069 (sparc-*-solaris2*): Simplify and reorder to match previous case.
30070 * config/sparc/gas.h: Delete.
30071 * config/sparc/sol2-64.h: Add copyright notice.
30072 * config/sparc/sol2-gas-bi.h: Likewise.
30073 * config/sparc/sol2-gld.h: Likewise.
30074 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
30075 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
30076 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
30077 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
30078 (sparc_elf_asm_named_section): Rename into...
30079 (sparc_solaris_elf_asm_named_section): ...this. Always define.
30080
30081 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
30082
30083 * config/alpha/alpha.c (override_options): Fix -mtune error message.
30084
30085 2010-03-02 Jeff Law <law@redhat.com>
30086
30087 PR middle-end/42431
30088 * reload1.c (rtx_p, substitute_stack): Declare.
30089 (substitute): Record addresses of changed rtxs.
30090 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
30091 Restore the original rtx when complete.
30092 (reload): Free subsitute_stack when complete.
30093
30094 2010-03-02 Janis Johnson <janis187@us.ibm.com>
30095
30096 * doc/gccint.texi (menu): Add Testsuites as a chapter.
30097 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
30098 new chapter.
30099 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
30100 LTO Testing, gcov Testing, profopt Testing, compat Testing,
30101 Torture Tests): Change from subsection to section.
30102
30103 2010-03-02 Jakub Jelinek <jakub@redhat.com>
30104 Steven Bosscher <steven@gcc.gnu.org>
30105
30106 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
30107 instead of bb.
30108
30109 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
30110
30111 PR middle-end/42640
30112 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
30113 the assignment from the new induction variable to the assignment
30114 of the value from the original loop PHI function.
30115
30116 2010-03-01 Janis Johnson <janis187@us.ibm.com>
30117 Daniel Jacobowitz <dan@codesourcery.com>
30118
30119 * doc/sourcebuild.texi (Test directives): Clarify options to
30120 dg-skip-if.
30121
30122 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30123
30124 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
30125 Disable cfi directives unless GCC and gas agree on using read-only
30126 .eh_frame sections for 64-bit.
30127 * configure: Regenerate.
30128
30129 2010-03-01 Richard Guenther <rguenther@suse.de>
30130
30131 PR tree-optimization/43220
30132 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
30133 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
30134
30135 2010-03-01 Richard Guenther <rguenther@suse.de>
30136 Martin Jambor <mjambor@suse.cz>
30137
30138 PR middle-end/41250
30139 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
30140 gimplified parameters.
30141
30142 2010-03-01 Christian Bruel <christian.bruel@st.com>
30143
30144 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
30145
30146 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
30147
30148 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
30149
30150 2010-03-01 Richard Guenther <rguenther@suse.de>
30151
30152 PR middle-end/43213
30153 * expr.c (expand_assignment): Use the alias-oracle to tell
30154 if the rhs aliases the result decl.
30155
30156 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30157
30158 PR pch/14940
30159 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
30160 to sol_gt_pch_get_address.
30161 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
30162 64-bit, SPARC and x86.
30163 (sol_gt_pch_get_address): New function.
30164
30165 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
30166
30167 * toplev.h (inform_n, error_n): Declare.
30168 * diagnostic.c (inform_n, error_n): New function.
30169
30170 2010-03-01 Jakub Jelinek <jakub@redhat.com>
30171
30172 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
30173 has no rtl yet when processing local_decls, queue it and recheck
30174 if deferred stack allocation hasn't assigned it rtl.
30175
30176 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
30177
30178 * config/sh/sh.c (unspec_bbr_uid): New.
30179 (gen_block_redirect): Use it instead of INSN_UID.
30180 (gen_far_branch): Likewise.
30181
30182 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
30183
30184 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
30185 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
30186
30187 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30188
30189 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
30190 (Warning Options): -Wno-conversion-null is valid for
30191 Objective-C++ as well.
30192 * doc/tm.texi (Named Address Spaces): Likewise.
30193 * doc/plugins.texi (Plugins): Replace TABs with spaces.
30194 * doc/tree-ssa.texi (Tree SSA): Likewise.
30195
30196 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30197
30198 PR bootstrap/43202
30199 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
30200 by default. Don't set the default arch for
30201 i[34567]86-*-darwin*|x86_64-*-darwin*.
30202
30203 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30204
30205 PR bootstrap/43202
30206 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
30207 default. Set the default 32bit/64bit archs with $with_arch
30208 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
30209
30210 2010-02-27 Richard Guenther <rguenther@suse.de>
30211
30212 PR tree-optimization/43186
30213 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
30214 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
30215 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
30216 unroller iterations.
30217
30218 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30219
30220 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
30221 required and i[34567]86-*-* targets don't support 64bit ISA.
30222
30223 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
30224
30225 PR ada/43096
30226 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
30227 the same alias set.
30228
30229 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30230
30231 * config.gcc: Set the default arch at least to Prescott for
30232 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
30233 if SSE math is enabled.
30234
30235 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30236
30237 * diagnostic.c (diagnostic_initialize): Update.
30238 (diagnostic_report_diagnostic): Test inhibit_notes_p for
30239 informative notes.
30240 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
30241 (diagnostic_inhibit_notes): New.
30242 * toplev.c (process_options): inhibit notes with -fcompare-debug.
30243
30244 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30245
30246 PR c/20631
30247 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
30248 * doc/standards.texi: Likewise.
30249 * doc/extend.texi: Likewise.
30250 * doc/trouble.texi: Likewise.
30251 * doc/cppopts.texi: Likewise.
30252 * doc/install.texi: Likewise.
30253 * c.opt (std=c90,std=gnu90): New options.
30254 * c-opts.c (c_common_handle_option): Handle them.
30255
30256 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30257
30258 PR c/24577
30259 * c-decl.c (undeclared_variable): Use an informative note.
30260
30261 2010-02-26 Richard Guenther <rguenther@suse.de>
30262
30263 PR tree-optimization/43186
30264 * gimple.h (gimple_fold): Remove.
30265 * gimple.c (gimple_fold): Remove. Inline into single user ...
30266 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
30267 Try harder for conditions.
30268
30269 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30270
30271 PR debug/43190
30272 * function.c (used_types_insert): Don't skip through named pointer
30273 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
30274 and it is different from the main variant's type.
30275
30276 2010-02-26 Nick Clifton <nickc@redhat.com>
30277
30278 * config/rx/rx.md (sminsi3): Remove bogus alternative.
30279
30280 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30281
30282 * config.gcc: Support --with-fpmath=sse for x86.
30283
30284 * config/i386/ssemath.h: New.
30285
30286 * doc/install.texi (--with-fpmath=sse): Documented.
30287
30288 2010-02-26 Richard Guenther <rguenther@suse.de>
30289
30290 PR tree-optimization/43188
30291 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
30292 vector types of over-aligned element type.
30293
30294 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
30295
30296 PR target/43175
30297 * config/i386/i386.c (expand_vec_perm_blend): Use correct
30298 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
30299
30300 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
30301
30302 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
30303
30304 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30305
30306 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
30307 * var-tracking.c: Include diagnostic.h.
30308 (debug_dv): New function.
30309 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
30310
30311 PR debug/43160
30312 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
30313 (add_value_chain, add_value_chains, remove_value_chain,
30314 remove_value_chains): Handle DEBUG_EXPRs.
30315 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
30316
30317 PR debug/43161
30318 * regcprop.c (struct queued_debug_insn_change): New type.
30319 (struct value_data_entry): Add debug_insn_changes field.
30320 (struct value_data): Add n_debug_insn_changes field.
30321 (debug_insn_changes_pool): New variable.
30322 (free_debug_insn_changes, apply_debug_insn_changes,
30323 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
30324 (kill_value_one_regno): Call free_debug_insn_changes if needed.
30325 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
30326 fields.
30327 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
30328 changes for them.
30329 (copyprop_hardreg_forward_1): Don't call apply_change_group for
30330 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
30331 changes, call cprop_find_used_regs via note_stores.
30332 (copyprop_hardreg_forward): When copying vd from predecessor
30333 which has any queued DEBUG_INSN changes, make sure the pointers are
30334 cleared. At the end call df_analyze and then if there are any
30335 DEBUG_INSN changes queued at the end of some basic block for still
30336 live registers, apply them.
30337 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
30338
30339 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
30340
30341 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
30342 (arm*-*-*): Ditto.
30343
30344 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
30345
30346 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
30347 targets. Set the default with_cpu/with_arch from arch/cpu.
30348 Allow x86-64 and native for with_cpu/with_arch.
30349
30350 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
30351
30352 * ebitmap.c: Change calls to verify_popcount with calls to
30353 sbitmap_verify_popcount.
30354 (ebitmap_clear_bit): Fixed map->cacheindex test and
30355 map>cache update when bit clearing results in an empty
30356 element.
30357
30358 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
30359
30360 PR target/43154
30361 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
30362 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
30363 and support both V2DF and V2DI modes.
30364 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
30365 support both V2DF and V2DI modes.
30366 (general): Delete trailing whitespace from a few patterns.
30367
30368 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30369 V2DF/V2DI interleave high/low builtins.
30370
30371 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
30372 new VSX builtins.
30373
30374 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
30375 interleave high/low functions.
30376
30377 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
30378
30379 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
30380 #pragma extern_prefix.
30381
30382 2010-02-25 Jakub Jelinek <jakub@redhat.com>
30383
30384 PR debug/43166
30385 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
30386 BLKmode, assert op0 is a MEM and just adjust its mode.
30387
30388 PR debug/43165
30389 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
30390 if bitpos isn't multiple of mode's bitsize.
30391
30392 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
30393
30394 * c.opt (-ftemplate-depth=): New.
30395 (-ftemplate-depth-): Deprecate.
30396 * optc-gen.awk: Handle -ftemplate-depth=.
30397 * opth-gen.awk: Likewise.
30398 * c-opts.c (c_common_handle_option): Likewise.
30399 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
30400
30401 2010-02-24 Jason Merrill <jason@redhat.com>
30402
30403 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
30404
30405 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30406
30407 * cfg.c (alloc_aux_for_block): Remove inline.
30408 (alloc_aux_for_edge): Likewise.
30409
30410 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30411
30412 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
30413
30414 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30415
30416 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
30417 * config/i386/sol2-gas.h: New file.
30418 * config.gcc (i[34567]86-*-solaris2*): Use it.
30419
30420 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
30421
30422 PR c/43128
30423 * c-typeck.c (ep_convert_and_check): New.
30424 (build_conditional_expr): Use it.
30425 (build_binary_op): Likewise.
30426
30427 2010-02-24 Jakub Jelinek <jakub@redhat.com>
30428
30429 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
30430
30431 PR debug/43150
30432 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
30433 bounds even for -O+.
30434 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
30435 expr needs to have DECL_NAME set.
30436
30437 2010-02-24 Nick Clifton <nickc@redhat.com>
30438
30439 * config/mep/mep.c: Include gimple.h.
30440 (mep_function_uses_sp): Delete unused function.
30441 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
30442 parameters. Use unsigned integers to count args. Return a
30443 NULL_RTX instead of an error_mark_node. Toidy up formatting.
30444
30445 2010-02-23 Jakub Jelinek <jakub@redhat.com>
30446
30447 PR target/43107
30448 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
30449 greater or equal to nelt instead of 2 * nelt.
30450 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
30451 with nelt - 1.
30452
30453 2010-02-23 Jason Merrill <jason@redhat.com>
30454
30455 PR debug/42800
30456 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
30457 in cfun->local_decls even if they have register types.
30458
30459 PR c++/42837
30460 * stor-layout.c (place_field): Don't warn about unnecessary
30461 DECL_PACKED if the type is packed.
30462
30463 2010-02-23 Jakub Jelinek <jakub@redhat.com>
30464
30465 PR target/43139
30466 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
30467 GOTOFF relocs, even when the base reg isn't pic pointer.
30468
30469 2010-02-23 Michael Matz <matz@suse.de>
30470
30471 PR debug/43077
30472 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
30473 (expand_gimple_basic_block): Generate and use debug temps if there
30474 are debug uses left after the last real use of TERed ssa names.
30475 Unlink debug immediate uses when they are expanded.
30476
30477 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
30478
30479 PR 43123
30480 * config/i386/i386.c (override_options): Reorganise to provide
30481 better error messages.
30482
30483 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30484
30485 PR middle-end/43083
30486 * graphite-scop-detection.c (create_single_exit_edge): Move
30487 the call to find_single_exit_edge to....
30488 (create_sese_edges): ...here. Don't handle multiple edges
30489 exiting the function.
30490 (build_graphite_scops): Don't handle multiple edges
30491 exiting the function.
30492
30493 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30494
30495 PR middle-end/43097
30496 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
30497 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
30498
30499 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30500
30501 PR middle-end/43026
30502 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
30503
30504 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
30505
30506 PR c++/43126
30507 * c-typeck.c (convert_arguments): Print declaration location.
30508 * c-common.c (validate_nargs): Rename as
30509 builtin_function_validate_nargs.
30510 (check_builtin_function_arguments): Update.
30511
30512 2010-02-22 Richard Guenther <rguenther@suse.de>
30513
30514 PR lto/43045
30515 * tree-inline.c (declare_return_variable): Use the type of
30516 the call stmt lhs if available.
30517
30518 2010-02-22 Duncan Sands <baldrick@free.fr>
30519
30520 * passes.c (register_pass): Always consider all pass lists when
30521 ref_pass_instance_number is zero.
30522
30523 2010-02-22 Richard Guenther <rguenther@suse.de>
30524
30525 PR tree-optimization/42749
30526 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
30527 parameter. Do arithmetic in the original type.
30528 (update_accumulator_with_ops): Likewise.
30529 (adjust_accumulator_values): Adjust.
30530
30531 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30532
30533 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
30534 (QI to BLKmode splitter): New splitter.
30535
30536 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
30537
30538 * config/i386/i386.c (initial_ix86_tune_features): Turn on
30539 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
30540
30541 2010-02-22 Richard Guenther <rguenther@suse.de>
30542
30543 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
30544
30545 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
30546
30547 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
30548 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
30549 ($(T)crti.o, $(T)crtn.o): Remove rules.
30550
30551 2010-02-21 Tobias Burnus <burnus@net-b.de>
30552
30553 PR fortran/35259
30554 * doc/invoke.texi (-fassociative-math): Document that this
30555 option is automatically enabled for Fortran.
30556
30557 2010-02-20 David S. Miller <davem@davemloft.net>
30558
30559 * configure.ac: Test if linker and assembler properly support
30560 GOTDATA_OP relocations.
30561 * configure: Rebuild.
30562 * config.in: Likewise.
30563 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
30564 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
30565 (movsi_high_pic): Likewise.
30566 (movdi_lo_sum_pic): Likewise.
30567 (movdi_high_pic): Likewise.
30568 (movsi_pic_gotdata_op): New pattern.
30569 (movdi_pic_gotdata_op): Likewise.
30570 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
30571 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
30572
30573 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
30574
30575 PR target/43067
30576 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
30577 attribute to ssemul.
30578 (xop_mulv2div2di3_high): Ditto.
30579
30580 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30581
30582 PR c++/35669
30583 * c.opt (Wconversion-null): New option.
30584 * doc/invoke.texi (Wconversion-null): Document.
30585
30586 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30587
30588 * common.opt (Wlarger-than-): Add Undocumented.
30589
30590 2010-02-19 Mike Stump <mikestump@comcast.net>
30591
30592 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
30593
30594 2010-02-19 Jason Merrill <jason@redhat.com>
30595
30596 PR target/40332
30597 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
30598 * configure: Likewise.
30599
30600 2010-02-20 Alan Modra <amodra@gmail.com>
30601
30602 PR middle-end/42344
30603 * cgraph.h (cgraph_make_decl_local): Declare.
30604 * cgraph.c (cgraph_make_decl_local): New function.
30605 (cgraph_make_node_local): Use it.
30606 * cgraphunit.c (cgraph_function_versioning): Likewise.
30607 * ipa.c (function_and_variable_visibility): Likewise.
30608
30609 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30610
30611 PR bootstrap/43121
30612 * except.c (sjlj_emit_function_enter): Don't call
30613 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
30614 directly.
30615 * rtl.h (add_reg_br_prob_note): Remove prototype.
30616
30617 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
30618
30619 PR 41779
30620 * c-common.c (conversion_warning): Remove widening conversions
30621 before checking the conversion of integers to reals.
30622
30623 2010-02-19 Mike Stump <mikestump@comcast.net>
30624
30625 PR middle-end/43125
30626 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
30627
30628 PR objc/43061
30629 * cgraphunit.c (process_function_and_variable_attributes): Check
30630 DECL_PRESERVE_P instead of looking up attribute "used".
30631 * ipa-pure-const.c (check_decl): Likewise.
30632 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
30633 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
30634 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
30635 instead of attribute "used".
30636 * config/sol2-c.c (solaris_pragma_init): Likewise.
30637 (solaris_pragma_fini): Likewise.
30638
30639 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30640
30641 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
30642 Use XCNEW instead of xcalloc.
30643 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
30644 XNEW instead of xmalloc.
30645 (get_fields): Use XNEWVEC instead of xmalloc.
30646
30647 PR debug/43084
30648 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
30649 populate vars array.
30650 (create_new_general_access): For debug stmts just reset value.
30651 (get_stmt_accesses): For accesses within debug stmts just record them
30652 using add_access_to_acc_sites instead of preventing the peeling or
30653 counting them as accesses.
30654
30655 PR middle-end/42233
30656 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
30657
30658 2010-02-19 Richard Guenther <rguenther@suse.de>
30659
30660 PR tree-optimization/42916
30661 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
30662 instructions.
30663
30664 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
30665
30666 * configure.ac: Replace all uses of changequote in macro arguments
30667 with proper quoting.
30668
30669 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30670
30671 PR middle-end/42233
30672 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
30673
30674 2010-02-19 Richard Guenther <rguenther@suse.de>
30675
30676 PR tree-optimization/42944
30677 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
30678 test for aliasing with errno.
30679
30680 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30681
30682 PR middle-end/42233
30683 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
30684 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
30685 * dojump.c: Include output.h.
30686 (inv): New inline function.
30687 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
30688 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
30689 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
30690 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
30691 argument, pass it down to other calls.
30692 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
30693 add REG_BR_PROB note to the conditional jump.
30694 * cfgexpand.c (add_reg_br_prob_note): Removed.
30695 (expand_gimple_cond): Don't call it, add the probability
30696 as last argument to jumpif_1/jumpifnot_1.
30697 * Makefile.in (dojump.o): Depend on output.h.
30698 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
30699 callers.
30700 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
30701 * stmt.c (do_jump_if_equal): Likewise.
30702 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
30703 * loop-unswitch.c (compare_and_jump_seq): Likewise.
30704 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
30705 Likewise.
30706 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
30707 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
30708 jumpifnot_1 callers.
30709 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
30710 callers.
30711 (store_expr): Adjust jumpifnot caller.
30712 (store_constructor): Adjust jumpif caller.
30713
30714 PR middle-end/42233
30715 * gimplify.c (gimple_boolify): For __builtin_expect call
30716 gimple_boolify also on its first argument.
30717
30718 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
30719
30720 * configure.ac (gnu-unique-object): Wrap regexps using [] in
30721 changequote block.
30722 (__stack_chk_fail): Ditto. Remove quadrigraphs.
30723 * configure: Regenerated.
30724
30725 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30726
30727 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
30728 lang_hooks.types_compatible_p instead of comptypes.
30729
30730 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
30731
30732 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
30733 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
30734 if __prefer_thumb__ is defined.
30735
30736 2010-02-18 Martin Jambor <mjambor@suse.cz>
30737
30738 PR tree-optimization/43066
30739 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
30740 array with zero-sized element type.
30741
30742 2010-02-18 Jakub Jelinek <jakub@redhat.com>
30743
30744 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
30745 rtx, allocate struct var_loc_node here and return it to the
30746 caller, and only if it is actually needed.
30747 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
30748 move it earlier and return immediately if it returns NULL.
30749
30750 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
30751
30752 * config/sparc/gas.h: New file. Restore
30753 TARGET_ASM_NAMED_SECTION to its ELF default.
30754 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
30755 check !HAVE_GNU_AS.
30756 * config/sparc/sparc.c (sparc_elf_asm_named_section):
30757 Likewise. Add ATTRIBUTE_UNUSED to prototype.
30758 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
30759 after sparc/sysv4.h.
30760
30761 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
30762
30763 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
30764
30765 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
30766
30767 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
30768 patterns from predicated pattern.
30769
30770 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
30771
30772 PR target/43103
30773 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
30774 for insn mnemonic suffix.
30775
30776 2010-02-17 Richard Guenther <rguenther@suse.de>
30777
30778 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
30779 to loop PHI nodes.
30780
30781 2010-02-17 Jakub Jelinek <jakub@redhat.com>
30782
30783 PR debug/42918
30784 * caller-save.c (save_call_clobbered_regs): If BB ends with
30785 a DEBUG_INSN, move any notes in between last real insn and the last
30786 DEBUG_INSN after the last DEBUG_INSN.
30787
30788 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
30789
30790 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
30791 Fix return type. Fix argument type. Explain meaning of return value.
30792
30793 2010-02-16 Richard Guenther <rguenther@suse.de>
30794
30795 PR tree-optimization/41043
30796 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
30797 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
30798 statements ...
30799 (vrp_visit_phi_node): ... but only for loop PHI nodes.
30800
30801 2010-02-16 Ira Rosen <irar@il.ibm.com>
30802
30803 PR tree-optimization/43074
30804 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
30805 * tree-vect-loop.c (vect_analyze_loop_operations): Add
30806 vectorizable cycles in hybrid SLP check.
30807 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
30808
30809 2010-02-16 Richard Guenther <rguenther@suse.de>
30810
30811 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
30812 (true_dependence): If memrefs_conflict_p computes must-alias
30813 trust it. Move TBAA check after offset-based disambiguation.
30814 (canon_true_dependence): Likewise.
30815
30816 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
30817
30818 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
30819 * doc/invoke.texi: Document it.
30820 * var-tracking.c: Include toplev.h and params.h.
30821 (vt_find_locations): Return bool indicating success. Compute
30822 hash sizes unconditionally. Check new parameter, report.
30823 (variable_tracking_main_1): Check vt_find_locations results and
30824 retry. Renamed from...
30825 (variable_tracking_main): ... this. New wrapper to preserve
30826 flag_var_tracking_assignments.
30827 * Makefile.in (var-tracking.o): Adjust dependencies.
30828
30829 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
30830 Jakub Jelinek <jakub@redhat.com>
30831
30832 PR target/42854
30833 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
30834 if weak_import attribute is present.
30835 * config/darwin.c (machopic_select_section): Likewise.
30836
30837 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
30838
30839 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
30840 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
30841 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
30842 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
30843
30844 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
30845 types.
30846
30847 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
30848 Fix argument types.
30849
30850 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
30851 Rewrite text to refer to the names.
30852
30853 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
30854
30855 * config/i386/i386-builtin-types.def
30856 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
30857 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
30858 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
30859 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
30860 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
30861 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
30862 IX86_BUILTIN_VPERMIL2PS256.
30863 (MULTI_ARG_4_DF2_DI_I): Defined.
30864 (MULTI_ARG_4_DF2_DI_I1): Defined.
30865 (MULTI_ARG_4_SF2_SI_I): Defined.
30866 (MULTI_ARG_4_SF2_SI_I1): Defined.
30867 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
30868 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
30869 __builtin_ia32_vpermil2ps256.
30870 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
30871 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
30872 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
30873 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
30874 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
30875 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
30876 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
30877 CODE_FOR_xop_vpermil2v8sf3.
30878 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
30879 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
30880 * config/i386/xopintrin.h (_mm_permute2_pd): New.
30881 (_mm256_permute2_pd): New.
30882 (_mm_permute2_ps): New.
30883 (_mm256_permute2_ps): New.
30884
30885 2010-02-15 Nick Clifton <nickc@redhat.com>
30886
30887 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
30888 boolean parameters. Use emit_jump_insn when emitting a pop
30889 instruction containing a return insn.
30890 (push): Use 'true' rather than '1' as second parameter to F.
30891 (h8300_expand_prologue): Likewise.
30892 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
30893 (h8300_expand_epilogue): Likewise.
30894
30895 2010-02-15 Richard Guenther <rguenther@suse.de>
30896
30897 PR middle-end/43068
30898 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
30899 if that is zero.
30900
30901 2010-02-15 Nick Clifton <nickc@redhat.com>
30902
30903 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
30904 delta.
30905
30906 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
30907
30908 * intl.c (fake_ngettext): New function.
30909 * intl.h (fake_ngettext): Declare.
30910 (ngettext): Define macro.
30911 * collect2.c (notice_translated): New function.
30912 (main): Use notice_translated and ngettext.
30913 * collect2.h (notice_translated): Declare.
30914
30915 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
30916
30917 * reorg.c (delete_computation): Comment fixes.
30918 * caller-save.c (setup_save_areas): Idem.
30919 * sel-sched-dump.c (dump_lv_set): Idem.
30920 * rtl.def: Idem.
30921
30922 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30923
30924 * config/s390/s390.c (s390_sched_init): New function.
30925 (TARGET_SCHED_INIT): Target hook defined.
30926
30927 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
30928 Jack Howarth <howarth@bromo.med.uc.edu>
30929 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
30930
30931 PR target/42982
30932 Partial revert of unintended change in fix for PR41605.
30933 * config/darwin.h: Fix typo.
30934 * config/darwin9.h: Same.
30935
30936 2010-02-11 Jakub Jelinek <jakub@redhat.com>
30937
30938 * c-pch.c (pch_init): Clear v.
30939
30940 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
30941
30942 PR middle-end/42930
30943 * graphite-scop-detection.c (graphite_can_represent_scev): Call
30944 graphite_can_represent_init for MULT_EXPR.
30945
30946 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
30947
30948 PR middle-end/42914
30949 PR middle-end/42530
30950 * graphite-sese-to-poly.c (remove_phi): New.
30951 (translate_scalar_reduction_to_array): Call remove_phi.
30952
30953 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
30954
30955 PR middle-end/42771
30956 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
30957 * graphite-clast-to-gimple.h (gloog): Update declaration.
30958 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
30959 * graphite-poly.h (struct poly_bb): Add missing comments.
30960 (struct scop): Add poly_scop_p field.
30961 (POLY_SCOP_P): New.
30962 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
30963 * graphite.c (graphite_transform_loops): Build the polyhedral
30964 representation for each scop before code generation.
30965 * sese.c (rename_variables_in_operand): Removed.
30966 (rename_variables_in_expr): Return the renamed expression.
30967 (rename_sese_parameters): New.
30968 * sese.h (rename_sese_parameters): Declared.
30969
30970 2010-02-11 Richard Guenther <rguenther@suse.de>
30971
30972 PR tree-optimization/42998
30973 * tree-ssa-pre.c (create_expression_by_pieces): Treat
30974 POINTER_PLUS_EXPR properly.
30975
30976 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
30977 Changpeng Fang <changpeng.fang@amd.com>
30978
30979 PR middle-end/40886
30980 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
30981 the cost of an IV candidate when the IV is used in a test against zero.
30982
30983 * gcc.dg/tree-ssa/ivopts-3.c: New.
30984
30985 2010-02-11 Richard Guenther <rguenther@suse.de>
30986
30987 PR lto/41664
30988 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
30989 pointer-vs-decl case by swapping refs. Handle some cases
30990 of pointer-vs-decl disambiguations more conservatively.
30991 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
30992 to false after expanding.
30993
30994 2010-02-11 Richard Guenther <rguenther@suse.de>
30995
30996 PR driver/43021
30997 * gcc.c (process_command): Handle LTO file@offset case more
30998 appropriately.
30999
31000 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31001
31002 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
31003 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
31004 of DEBUG_INSNs.
31005 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
31006
31007 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
31008 if MEM's mode size isn't DWARF2_ADDR_SIZE.
31009 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
31010 Optimize eq/ne comparisons when both arguments are known to be
31011 zero-extended.
31012 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
31013 Don't mask operands unnecessarily if they are known to be already
31014 zero-extended.
31015
31016 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
31017
31018 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
31019 instead of loop.
31020
31021 2010-02-10 Richard Guenther <rguenther@suse.de>
31022
31023 PR tree-optimization/43017
31024 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
31025 for wrapping signed arithmetic.
31026
31027 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31028
31029 PR debug/43010
31030 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
31031 if no debug info should be emitted for it.
31032
31033 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
31034
31035 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
31036 note when flag_exceptions is set.
31037
31038 2010-02-10 Duncan Sands <baldrick@free.fr>
31039
31040 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
31041
31042 2010-02-10 Richard Guenther <rguenther@suse.de>
31043
31044 PR c/43007
31045 * tree.c (get_unwidened): Handle constants.
31046 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
31047
31048 2010-02-10 Martin Jambor <mjambor@suse.cz>
31049
31050 PR lto/42985
31051 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
31052 check for variable argument counts independently.
31053
31054 2010-02-10 Christian Bruel <christian.bruel@st.com>
31055
31056 PR target/42841
31057 * config/sh/sh.c (find_barrier): Increase length for non delayed
31058 conditional branches.
31059
31060 2010-02-10 Christian Bruel <christian.bruel@st.com>
31061
31062 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
31063
31064 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31065
31066 * builtins.c (set_builtin_user_assembler_name): Also handle
31067 ffs if int is smaller than word.
31068
31069 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
31070
31071 PR middle-end/42973
31072 * ira-conflicts.c (get_dup): Remove.
31073 (process_reg_shuffles): Add new parameter. Use it as an
31074 additional guard for copy generation.
31075 (add_insn_allocno_copies): Rewrite.
31076
31077 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
31078
31079 * common.opt (fsched2-use-traces): Preserved for backward
31080 compatibility.
31081 * doc/invoke.texi: Remove the documentation about option
31082 -fsched2-use-traces.
31083 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
31084 flag_sched2_use_traces.
31085 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
31086 the backward compatibility flag section.
31087
31088 2010-02-09 Richard Guenther <rguenther@suse.de>
31089
31090 PR tree-optimization/43008
31091 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
31092 make HEAP variables initialized from global memory if they
31093 are not known builtin functions.
31094 (find_func_aliases): Adjust.
31095
31096 2010-02-09 Richard Guenther <rguenther@suse.de>
31097
31098 PR tree-optimization/43000
31099 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
31100 arithmetic manually.
31101
31102 2010-02-08 Jakub Jelinek <jakub@redhat.com>
31103
31104 PR tree-optimization/42931
31105 * tree-loop-linear.c (try_interchange_loops): Don't call
31106 double_int_mul if estimated_loop_iterations failed.
31107
31108 2010-02-08 Martin Jambor <mjambor@suse.cz>
31109
31110 PR middle-end/42898
31111 * tree-sra.c (build_accesses_from_assign): Do not mark in
31112 should_scalarize_away_bitmap if stmt has volatile ops.
31113 (sra_modify_assign): Do not process assigns piecemeal if if stmt
31114 has volatile ops.
31115
31116 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
31117
31118 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
31119
31120 2010-02-07 Adam Nemet <adambnmet@gmail.com>
31121
31122 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
31123 before the pattern.
31124
31125 2010-02-07 Andrew Pinski <pinskia@gmail.com>
31126
31127 PR middle-end/42946
31128 * df-core.c (df_finish_pass): Change type of saved_flags to int.
31129
31130 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31131
31132 PR middle-end/42988
31133 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
31134 to unknown_dependence.
31135 (graphite_legal_transform_dr): Handle the unknown_dependence.
31136 (graphite_carried_dependence_level_k): Same.
31137
31138 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31139
31140 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
31141
31142 2010-02-07 Richard Guenther <rguenther@suse.de>
31143
31144 PR middle-end/42991
31145 * expr.c (get_inner_reference): Always initialize *pbitsize.
31146
31147 2010-02-07 Richard Guenther <rguenther@suse.de>
31148
31149 PR middle-end/42956
31150 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
31151 new ARRAY_REFs on variable size element or minimal index arrays.
31152 Complete.
31153 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
31154 gimple_fold_indirect_ref.
31155
31156 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
31157
31158 PR target/42957
31159 * arm.c (arm_override_options): Just return if the user has specified
31160 an invalid fpu name.
31161
31162 2010-02-03 Jason Merrill <jason@redhat.com>
31163
31164 PR c++/42870
31165 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
31166 i386_pe_maybe_record_exported_symbol.
31167
31168 2010-02-05 Steve Ellcey <sje@cup.hp.com>
31169
31170 PR target/42924
31171 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31172 (pa_delegitimize_address): New function.
31173
31174 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
31175
31176 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
31177 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
31178
31179 2010-02-05 Richard Guenther <rguenther@suse.de>
31180
31181 PR lto/42762
31182 * lto-streamer-in.c (get_resolution): Deal with references
31183 to undefined functions.
31184
31185 2010-02-05 Richard Guenther <rguenther@suse.de>
31186
31187 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
31188 (fold_const_aggregate_ref): Likewise.
31189 (ccp_fold_stmt): Substitute loads.
31190 (maybe_fold_reference): Verify types before substituting.
31191 Unshare properly.
31192 (fold_gimple_assign): Unshare properly.
31193 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
31194
31195 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
31196
31197 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
31198 for rs6000_gen_cell_microcode.
31199
31200 2010-02-04 Richard Guenther <rguenther@suse.de>
31201
31202 PR rtl-optimization/42952
31203 * dse.c (const_or_frame_p): Remove MEM handling.
31204
31205 2010-02-04 Nick Clifton <nickc@redhat.com>
31206
31207 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
31208 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31209 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
31210 (mn10300_asm_output_mi_thunk): New function.
31211 (mn10300_can_output_mu_thunk): New function.
31212 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
31213 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
31214 (FUNCTION_ARG): Delete incorrect comment.
31215
31216 2010-02-03 Jason Merrill <jason@redhat.com>
31217
31218 PR c++/40138
31219 * fold-const.c (operand_equal_p): Handle erroneous types.
31220
31221 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
31222
31223 * config/h8300/h8300.md (can_delay): Fix attibute condition.
31224
31225 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
31226
31227 PR rtl-optimization/42941
31228 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
31229 of xmalloc.
31230
31231 2010-02-03 Jason Merrill <jason@redhat.com>
31232
31233 PR c++/35652
31234 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
31235
31236 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
31237
31238 PR debug/42896
31239 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
31240 (cselib_reset_table): Renamed from...
31241 (cselib_reset_table_with_next_value): ... this.
31242 (cselib_get_next_uid): Renamed from...
31243 (cselib_get_next_unknown_value): ... this.
31244 * cselib.c (next_uid): Renamed from...
31245 (next_unknown_value): ... this.
31246 (cselib_clear_table): Adjust.
31247 (cselib_reset_table): Adjust. Renamed from...
31248 (cselib_reset_table_with_next_value): ... this.
31249 (cselib_get_next_uid): Adjust. Renamed from...
31250 (cselib_get_next_unknown_value): ... this.
31251 (get_value_hash): Use hash.
31252 (cselib_hash_rtx): Likewise.
31253 (new_cselib_val): Adjust. Set and dump uid.
31254 (cselib_lookup_mem): Pass next_uid as hash.
31255 (cselib_subst_to_values): Likewise.
31256 (cselib_log_lookup): Dump uid.
31257 (cselib_lookup): Pass next_uid as hash. Adjust.
31258 (cselib_process_insn): Adjust.
31259 (cselib_init): Initialize next_uid.
31260 (cselib_finish): Adjust.
31261 (dump_cselib_table): Likewise.
31262 * dse.c (canon_address): Dump value uid.
31263 * print-rtl.c (print_rtx): Print value uid.
31264 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
31265 (dvuid): New type.
31266 (dv_uid): New function, sort of renamed from...
31267 (dv_htab_hash): ... this, reimplemented in terms of it and...
31268 (dv_uid2hash): ... this. New.
31269 (variable_htab_eq): Drop excess assertions.
31270 (tie_break_pointers): Removed.
31271 (canon_value_cmp): Compare uids.
31272 (variable_post_merge_New_vals): Print uids.
31273 (vt_add_function_parameters): Adjust.
31274 (vt_initialize): Reset table. Adjust.
31275
31276 2010-02-03 Richard Guenther <rguenther@suse.de>
31277
31278 PR tree-optimization/42944
31279 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
31280 (call_may_clobber_ref_p_1): Likewise. Properly handle
31281 malloc and calloc clobbering errno.
31282
31283 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
31284
31285 * doc/invoke.texi: Fix name of sched1 dump.
31286
31287 * opts.c (decode_options): Set flag_tree_switch_conversion
31288 only conditionally on optimize >= 2.
31289
31290 * gcse.c: Assorted comment fixes in pass description.
31291
31292 2010-02-03 Anthony Green <green@moxielogic.com>
31293
31294 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
31295 nop padding in order to maintain alignment of storage location of
31296 target function address.
31297 (moxie_trampoline_init): Store target function address at newly
31298 aligned location.
31299 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
31300 to 32.
31301 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
31302
31303 2010-02-03 Richard Guenther <rguenther@suse.de>
31304
31305 PR middle-end/42927
31306 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
31307
31308 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31309
31310 * config.gcc: Reenable check for obsolete targets.
31311 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
31312 mips-sgi-irix6.[0-4]*.
31313
31314 2010-02-02 Nick Clifton <nickc@redhat.com>
31315
31316 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
31317 constant size of 4 as being the same as 0.
31318 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
31319 can take values in the range 0..4.
31320
31321 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
31322
31323 PR java/41991
31324 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
31325 as _darwin10_Unwind_FindEnclosingFunction().
31326 * libgcc-libsystem.ver: New.
31327
31328 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
31329
31330 PR target/41399
31331 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
31332 implicitly set registers.
31333
31334 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
31335
31336 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
31337 (arm_override_options): Allow automatic selection of the thread
31338 pointer register if thumb2.
31339 (legitimize_pic_address): Improve code sequences for Thumb2.
31340 (arm_call_tls_get_addr): Likewise.
31341 (legitimize_tls_address): Likewise.
31342 * arm.md (pic_load_addr_arm): Delete. Replace with ...
31343 (pic_load_addr_32bit): ... this. New named pattern.
31344 * thumb2.md (pic_load_addr_thumb2): Delete.
31345 (pic_load_dot_plus_four): Delete.
31346 (tls_load_dot_plus_four): New named pattern.
31347
31348 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31349
31350 PR libgomp/29986
31351 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
31352 Document fix for TLS bug.
31353
31354 2010-01-31 Richard Guenther <rguenther@suse.de>
31355
31356 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
31357 conservatively correct.
31358
31359 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31360
31361 PR target/42850
31362 Revert:
31363 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31364
31365 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
31366
31367 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31368
31369 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
31370
31371 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
31372
31373 * config.gcc: Adjust order of makefile fragments for mingw targets.
31374
31375 2010-01-31 Richard Guenther <rguenther@suse.de>
31376
31377 PR middle-end/42898
31378 * gimplify.c (gimplify_init_constructor): For volatile LHS
31379 initialize a temporary.
31380
31381 2010-01-31 Matthias Klose <doko@ubuntu.com>
31382
31383 * configure.ac: Fix __stack_chk_fail check for cross builds configured
31384 --with-headers
31385 * configure: Regenerate.
31386
31387 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
31388
31389 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31390 the same alias set and their sizes different constantness.
31391 (aliasing_component_refs_p): Revert 2009-10-24 change.
31392
31393 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31394
31395 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
31396 unused.
31397
31398 2010-01-29 Richard Guenther <rguenther@suse.de>
31399
31400 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
31401 Assert we successfully updated the call.
31402
31403 2010-01-29 Jakub Jelinek <jakub@redhat.com>
31404
31405 PR rtl-optimization/42889
31406 * df.h (df_set_bb_dirty_nonlr): New prototype.
31407 * df-core.c (df_set_bb_dirty_nonlr): New function.
31408 * df-scan.c (df_insn_rescan): Call it instead of
31409 df_set_bb_dirty for DEBUG_INSNs.
31410
31411 2010-01-29 Richard Guenther <rguenther@suse.de>
31412
31413 PR middle-end/37448
31414 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
31415 quadratic behavior in most cases.
31416
31417 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
31418
31419 PR target/42891
31420 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
31421 in the call to gen_x86_movsicc_0_m1.
31422
31423 2010-01-28 Richard Guenther <rguenther@suse.de>
31424
31425 PR tree-optimization/42871
31426 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
31427
31428 2010-01-28 Richard Guenther <rguenther@suse.de>
31429
31430 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
31431 into call arguments.
31432
31433 2010-01-28 Richard Guenther <rguenther@suse.de>
31434
31435 PR middle-end/42883
31436 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
31437 the forwarder if the destination is an EH landing pad.
31438
31439 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
31440
31441 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
31442 block list passed to gimple_duplicate_sese_tail.
31443 (parallelize_loops): Avoid parallelization when the function
31444 has_nonlocal_label.
31445 Avoid parallelization when the preheader is IRREDUCIBLE.
31446 Try to optimize when estimated_loop_iterations_int is unresolved.
31447 Add the loop's location to the dump file.
31448 * tree-cfg.c (add_phi_args_after_redirect): Remove.
31449 (gimple_duplicate_sese_tail): Remove the check for the latch.
31450 Redirect nexits to the exit block.
31451 Remove handling of the incoming edges to the latch.
31452 Redirect the backedge from the copied latch to the exit bb.
31453
31454 2010-01-28 Michael Matz <matz@suse.de>
31455
31456 PR target/42881
31457 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
31458 Wrap force_reg into a sequence, emit it before user.
31459
31460 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
31461
31462 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
31463 (arm_rev): New.
31464 (arm_legacy_rev): Likewise.
31465 (thumb_legacy_rev): Likewise.
31466
31467 2010-01-27 Jakub Jelinek <jakub@redhat.com>
31468
31469 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
31470 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
31471 on MEM's address failed, try avoid_constant_pool_reference and
31472 recurse if it returned something different.
31473 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
31474 address, try avoid_constant_pool_reference and recurse if it
31475 returned something different.
31476 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
31477 address and avoid_constant_pool_reference returned something
31478 different, don't set have_address.
31479
31480 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
31481
31482 PR debug/42861
31483 * var-tracking.c (val_store): Add modified argument, obey it.
31484 Adjust callers.
31485 (count_uses): Move down logging of main.
31486 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
31487 don't need resolution.
31488 (emit_notes_in_bb): Likewise.
31489
31490 2010-01-27 Richard Guenther <rguenther@suse.de>
31491
31492 PR middle-end/42878
31493 * tree-inline.c (remap_decl): Delay remapping of SSA name
31494 default definitions until we need them.
31495
31496 2010-01-27 Jakub Jelinek <jakub@redhat.com>
31497
31498 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31499 (rs6000_delegitimize_address): New function.
31500
31501 * config/s390/s390.c (s390_delegitimize_address): Call
31502 delegitimize_mem_from_attrs.
31503
31504 PR middle-end/42874
31505 * tree-inline.c (cannot_copy_type_1): Removed.
31506 (copy_forbidden): Don't forbid copying of functions containing
31507 records/unions with variable length fields.
31508
31509 2010-01-27 Christian Bruel <christian.bruel@st.com>
31510
31511 Revert:
31512 PR target/42841
31513 * config/sh/sh.c (find_barrier): Increase length for non delayed
31514 conditional branches.
31515
31516 2010-01-27 Matthias Klose <doko@ubuntu.com>
31517
31518 * configure.ac (gnu-unique-object): Fix ldd version check.
31519 * configure: Regenerate.
31520
31521 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31522
31523 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
31524 HAVE_GNU_AS value.
31525 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
31526 Test for HAVE_GNU_AS value.
31527
31528 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31529
31530 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
31531 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
31532 INT64_TYPE): Define.
31533 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
31534 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
31535 INT_LEAST64_TYPE): Define.
31536 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
31537 UINT_LEAST64_TYPE): Define.
31538 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
31539 INT_FAST64_TYPE): Define.
31540 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
31541 UINT_FAST64_TYPE): Define.
31542 (INTMAX_TYPE, UINTMAX_TYPE): Define.
31543 (INTPTR_TYPE, UINTPTR_TYPE): Define.
31544 (SIG_ATOMIC_TYPE): Define.
31545
31546 2010-01-26 Richard Guenther <rguenther@suse.de>
31547
31548 * df-scan.c (df_scan_set_bb_info): Remove assert.
31549 (df_insn_rescan_debug_internal): Merge asserts.
31550 (df_install_ref): Likewise.
31551 (df_mark_reg): Use bitmap_set_range.
31552 (df_hard_reg_used_p): Remove assert.
31553 (df_hard_reg_used_count): Likewise.
31554
31555 2010-01-26 Richard Guenther <rguenther@suse.de>
31556
31557 PR rtl-optimization/42685
31558 * web.c (web_main): Ignore DEBUG_INSNs.
31559
31560 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
31561
31562 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
31563
31564 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
31565 Fix types of fndecl and arglist parameters.
31566
31567 2010-01-26 Richard Guenther <rguenther@suse.de>
31568
31569 PR middle-end/42806
31570 * tree-eh.c (unsplit_eh): Skip debug insns.
31571
31572 2010-01-26 Richard Guenther <rguenther@suse.de>
31573
31574 PR tree-optimization/42250
31575 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
31576
31577 2010-01-26 Jakub Jelinek <jakub@redhat.com>
31578
31579 PR fortran/42866
31580 * omp-low.c (expand_omp_sections): Only use single_pred if
31581 l2_bb is single_pred_p.
31582
31583 2010-01-25 Christian Bruel <christian.bruel@st.com>
31584
31585 PR target/42841
31586 * config/sh/sh.c (find_barrier): Increase length for non delayed
31587 conditional branches.
31588 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
31589
31590 2010-01-24 David S. Miller <davem@davemloft.net>
31591
31592 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
31593 define if not using GAS.
31594 * config/sparc/sparc.c (sparc_elf_asm_named_section):
31595 Likewise. Delete SECTION_MERGE code, which is only applicable
31596 when using GAS.
31597
31598 2010-01-24 Mark Mitchell <mark@codesourcery.com>
31599
31600 PR c++/42748
31601 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
31602 mangling of va_list in system headers.
31603
31604 2010-01-23 Toon Moene <toon@moene.org>
31605
31606 * tree-predcom.c (combine_chains): Return NULL, not false.
31607
31608 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
31609
31610 * tree-loop-distribution.c (distribute_loop): Fix declaration and
31611 initialization of variable res to agree with return type.
31612
31613 2010-01-22 Steve Ellcey <sje@cup.hp.com>
31614
31615 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
31616 * tree-sra.c: Add include of expr.h.
31617
31618 2010-01-22 Jakub Jelinek <jakub@redhat.com>
31619
31620 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
31621 insert the debug stmt on the single non-EH edge from the stmt.
31622
31623 2010-01-22 Richard Henderson <rth@redhat.com>
31624
31625 PR tree-opt/42833
31626 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
31627 the RHS until after generate_subtree_copies has insertted its
31628 code before the current statement.
31629
31630 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
31631
31632 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
31633
31634 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
31635
31636 2010-01-21 Martin Jambor <mjambor@suse.cz>
31637
31638 PR tree-optimization/42585
31639 * tree-sra.c (struct access): New field grp_total_scalarization.
31640 (dump_access): Dump the new field.
31641 (should_scalarize_away_bitmap): New variable.
31642 (cannot_scalarize_away_bitmap): Likewise.
31643 (sra_initialize): Allocate new bitmaps.
31644 (sra_deinitialize): Free new bitmaps.
31645 (create_access_1): New function.
31646 (create_access): Parts moved to create_access_1.
31647 (type_consists_of_records_p): New function.
31648 (completely_scalarize_record): Likewise.
31649 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
31650 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
31651 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
31652 access.
31653 (analyze_all_variable_accesses): Completely scalarize small eligible
31654 records.
31655
31656 2010-01-21 Martin Jambor <mjambor@suse.cz>
31657
31658 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
31659
31660 2010-01-21 Andrew Haley <aph@redhat.com>
31661
31662 * gcc.c (process_command): Move lang_specific_driver before
31663 setting cc_libexec_prefix.
31664
31665 2010-01-21 Richard Guenther <rguenther@suse.de>
31666
31667 PR middle-end/19988
31668 * fold-const.c (negate_expr_p): Pretend only negative
31669 real constants are easily negatable.
31670
31671 2010-01-20 Janis Johnson <janis187@us.ibm.com>
31672 Jason Merrill <jason@redhat.com>
31673
31674 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
31675 (TYPE_TRANSPARENT_AGGR): this, for union and record.
31676 * calls.c (initialize argument_information): Handle it.
31677 * c-common.c (handle_transparent_union_attribute): Use new name.
31678 * c-decl.c (finish_struct): Ditto.
31679 * c-typeck.c (type_lists_compatible_p): Ditto.
31680 (convert_for_assignment): Use new name and also handle record.
31681 * function.c (aggregate_value_p): Handle it.
31682 (pass_by_reference): Ditto.
31683 (assign_parm_data_types): Ditto.
31684 * print-tree.c (print_node): Ditto.
31685 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
31686 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
31687 * tree.c (first_field): New fn.
31688
31689 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
31690
31691 PR target/42818
31692 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
31693 even when linking statically, for now.
31694
31695 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
31696
31697 PR debug/42715
31698 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
31699 without a cselib val.
31700 (count_uses): Accept MO_VAL_SET with no val on stores.
31701 (add_stores): Likewise.
31702
31703 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31704
31705 * var-tracking.c (check_value_val): Add a compile time assertion.
31706 (dv_is_decl_p): Simplify.
31707 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
31708 gcc_assert if ENABLE_CHECKING.
31709
31710 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
31711
31712 PR debug/42782
31713 * var-tracking.c: Include tree-flow.h.
31714 (mem_dies_at_call): New.
31715 (dataflow_set_preserve_mem_locs): Use it.
31716 (dataflow_set_remove_mem_locs): Likewise.
31717 (dump_var): Renamed from dump_variable. Adjust all callers.
31718 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
31719 * Makefile.in (var-tracking.o): Adjust deps.
31720
31721 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
31722
31723 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
31724
31725 2010-01-20 Richard Guenther <rguenther@suse.de>
31726
31727 PR tree-optimization/42717
31728 * tree-ssa-dce.c (get_live_post_dom): Remove.
31729 (forward_edge_to_pdom): Take an arbitrary edge to copy
31730 degenerate PHI args from.
31731 (remove_dead_stmt): Use the first post-dominator even if it
31732 does not contain live statements as redirection destination.
31733
31734 2010-01-20 Richard Guenther <rguenther@suse.de>
31735
31736 * tree-inline.c (estimate_num_insns): Handle EH builtins.
31737
31738 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31739
31740 * sel-sched.c (create_speculation_check): Remove set but not used
31741 variable twin.
31742 (try_transformation_cache): Remove set but not used variable ds.
31743 (calculate_privileged_insns): Remove set but not used variables
31744 cur_insn and min_spec_insn.
31745 (find_best_expr): Remove set but not used variable avail_n.
31746 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
31747 variable e.
31748 * cgraphunit.c (assemble_thunk): Remove set but not used variable
31749 false_label.
31750 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
31751 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
31752 new_scop_exit_edge.
31753
31754 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
31755
31756 PR bootstrap/42786
31757 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
31758 cpu types. Add support for *-sse3 cpu types.
31759 (x86_64-*-*): Ditto.
31760
31761 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31762
31763 PR middle-end/42803
31764 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
31765 argument, call initializer_constant_valid_p_1 instead of
31766 initializer_constant_valid_p, pass CACHE to it, return NULL
31767 immediately if first call returns NULL.
31768 (initializer_constant_valid_p_1): New function.
31769 (initializer_constant_valid_p): Use it.
31770
31771 2010-01-20 Thomas Quinot <quinot@adacore.com>
31772
31773 * tree.def (PLACEHOLDER_EXPR): Fix comment.
31774
31775 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31776
31777 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
31778 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
31779 (loc_list_from_tree): Don't handle unsigned division. Handle
31780 signed modulo using DW_OP_{over,over,div,mul,minus}.
31781 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
31782 modulo instead of signed.
31783
31784 2010-01-20 DJ Delorie <dj@redhat.com>
31785
31786 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
31787 (Fpa): Pass it
31788 (h8300_emit_stack_adjustment): Propogate it.
31789 (push): Pass it.
31790 (h8300_expand_prologue): Likewise.
31791 (h8300_expand_epilogue): Likewise.
31792
31793 2010-01-19 Michael Matz <matz@suse.de>
31794
31795 PR tree-optimization/41783
31796 * tree-data-ref.c (toplevel): Include flags.h.
31797 (dump_data_dependence_relation): Also dump the inputs if the
31798 result will be unknown.
31799 (split_constant_offset_1): Look through some conversions.
31800 * tree-predcom.c (determine_roots_comp): Restart a new chain if
31801 the offset from last element is too large.
31802 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
31803 (reassociate_to_the_same_stmt): Handle vector registers.
31804 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
31805 (e.g. conversions).
31806 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
31807 wide_prolog_niters argument, emit widening instructions.
31808 (vect_do_peeling_for_alignment): Adjust caller, use widened
31809 variant of the iteration cound.
31810 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
31811
31812 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31813
31814 PR target/38697
31815 * config/arm/neon-testgen.m (emit_automatics): New parameter
31816 features. Adjust for Fixed_return_reg feature.
31817 (test_intrinsic): Call emit_automatics with new feature.
31818 * config/arm/neon.ml: Update copyright years.
31819 (features): New Fixed_return_reg feature.
31820 (ops): Update feature for Vget_low.
31821
31822 2010-01-19 Jakub Jelinek <jakub@redhat.com>
31823
31824 PR tree-optimization/42719
31825 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
31826 stmt uses.
31827
31828 PR debug/42728
31829 * fwprop.c (all_uses_available_at): Return false if def_set dest
31830 is a REG that is used in def_insn.
31831
31832 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
31833
31834 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
31835
31836 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
31837 Add argument names.
31838
31839 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
31840
31841 * target.h (struct gcc_target) <secondary_reload>: Change type
31842 of last argument to secondary_reload_info *.
31843
31844 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
31845
31846 PR target/42774
31847 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
31848 memory references with unaligned offsets. Remove CQImode handling.
31849 (unaligned_memory_operand): Return 1 for memory references with
31850 unaligned offsets. Remove CQImode handling.
31851
31852 2010-01-18 Richard Guenther <rguenther@suse.de>
31853
31854 PR middle-end/39954
31855 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
31856 builtin calls.
31857
31858 2010-01-18 Richard Guenther <rguenther@suse.de>
31859
31860 PR tree-optimization/42781
31861 * tree-ssa-structalias.c (find_what_var_points_to): Skip
31862 restrict processing only if the original variable was artificial.
31863
31864 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
31865
31866 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
31867 find number of popped argument bytes.
31868
31869 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
31870 Fix the text that describes the return value for invalid insns.
31871
31872 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
31873
31874 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
31875 Clarify what 'cost of the -dependence' is. Fix quoting.
31876
31877 * toplev.c (default_get_pch_validity): Rename argument to "sz".
31878 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
31879
31880 2010-01-17 Jakub Jelinek <jakub@redhat.com>
31881
31882 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
31883 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
31884
31885 2010-01-17 Richard Guenther <rguenther@suse.de>
31886
31887 PR middle-end/42248
31888 * function.c (split_complex_args): Take a VEC to modify.
31889 (assign_parms_augmented_arg_list): Build a VEC instead of
31890 a chain of PARM_DECLs.
31891 (assign_parms_unsplit_complex): Take a VEC of arguments.
31892 Do not fixup unmodified parms.
31893 (assign_parms): Deal with the VEC.
31894 (gimplify_parameters): Likewise.
31895
31896 2010-01-17 Richard Guenther <rguenther@suse.de>
31897
31898 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
31899 node existence check.
31900 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
31901 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
31902 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
31903 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
31904 (gimple_execute_on_growing_pred): Likewise.
31905
31906 2010-01-17 Richard Guenther <rguenther@suse.de>
31907
31908 PR tree-optimization/42773
31909 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
31910 (compute_antic_aux): Likewise.
31911 (compute_partial_antic_aux): Likewise.
31912
31913 2010-01-17 Jie Zhang <jie.zhang@analog.com>
31914
31915 PR debug/42767
31916 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
31917 and US_TRUNCATE.
31918
31919 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
31920
31921 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
31922 appearance.
31923
31924 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
31925 Fix markup for strict argument.
31926
31927 (TARGET_SCHED_REORDER2): Fix argument types.
31928
31929 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
31930 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
31931
31932 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
31933 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
31934
31935 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
31936 Add argument name.
31937
31938 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
31939 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
31940 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
31941 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
31942 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
31943
31944 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
31945
31946 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
31947
31948 (TARGET_ASM_RELOC_RW_MASK): Add return type.
31949 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
31950
31951 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
31952
31953 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
31954 Use prototype.
31955
31956 (TARGET_ASM_NAMED_SECTION): Fix argument list.
31957
31958 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
31959 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
31960
31961 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
31962
31963 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
31964
31965 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
31966 referring to it. Fix language.
31967
31968 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
31969
31970 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
31971
31972 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
31973
31974 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
31975
31976 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
31977 '@var{stream}. Remove stray 'and'.
31978
31979 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
31980
31981 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
31982
31983 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
31984
31985 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
31986 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
31987
31988 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
31989 Fix description of return value.
31990 Rename argument "sz" to "len."
31991
31992 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
31993 Clarify meaning of 'true' return value.
31994
31995 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
31996
31997 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
31998 rep_mode versus mode_rep.
31999
32000 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
32001
32002 (TARGET_BUILTIN_DECL): Fix name.
32003
32004 (TARGET_COMMUTATIVE_P): Fix type of first argument.
32005
32006 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
32007
32008 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
32009
32010 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
32011
32012 (TARGET_RELAXED_ORDERING): Use @deftypevr.
32013
32014 (TARGET_GET_DRAP_RTX): Note that this is a hook.
32015 Clarify language.
32016
32017 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
32018 Rename argument tm_fn to md_fn.
32019
32020 (TARGET_OPTION_PRINT): Fix argument list.
32021
32022 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
32023
32024 PR target/42664
32025 * config/i386/i386.c (ix86_fixup_binary_operands):
32026 Revert FMA4 fixup of operands.
32027
32028 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32029
32030 PR gcc/42525
32031 * Makefile.in (write_entries_to_file, install-plugin):
32032 Use \012 instead of \n with tr.
32033
32034 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
32035
32036 * configure.ac (HAVE_AS_REF): New C macro.
32037 * configure: Regenerate.
32038 * config.in: Likewise.
32039 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
32040 if HAVE_AS_REF.
32041 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
32042 if HAVE_AS_REF.
32043
32044 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
32045
32046 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
32047
32048 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
32049
32050 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
32051
32052 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
32053
32054 (TARGET_IN_SMALL_DATA_P): Fix argument type.
32055
32056 (TARGET_BINDS_LOCAL_P): Fix argument type.
32057
32058 (TARGET_ASM_FILE_END): Use prototype.
32059
32060 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
32061
32062 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
32063
32064 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
32065
32066 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
32067
32068 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
32069 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
32070
32071 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
32072 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
32073
32074 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
32075 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
32076 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
32077 (TARGET_ADDR_SPACE_CONVERT): Likewise.
32078
32079 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
32080
32081 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
32082
32083 (TARGET_INIT_BUILTINS): Use prototype.
32084
32085 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
32086 Put 'const char *' in braces. Fix parameter types.
32087 (TARGET_INVALID_CONVERSION): Fix parameter types.
32088 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
32089 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
32090
32091 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
32092 Fix argument type.
32093
32094 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
32095
32096 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
32097
32098 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
32099
32100 * doc/tm.texi (TARGET_HELP): Fix return type.
32101
32102 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
32103 in braces. Fix argument types.
32104
32105 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
32106
32107 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
32108
32109 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
32110
32111 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
32112 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
32113
32114 (TARGET_MANGLE_TYPE): Fix argument types.
32115
32116 (TARGET_IRA_COVER_CLASSES): Use prototype.
32117
32118 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
32119
32120 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
32121
32122 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
32123
32124 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
32125
32126 (TARGET_CALLEE_COPIES): Fix argument types.
32127
32128 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
32129
32130 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
32131
32132 (TARGET_FUNCTION_VALUE): Fix argument types.
32133
32134 (TARGET_RETURN_IN_MSB): Fix argument type.
32135
32136 (TARGET_RETURN_IN_MEMORY): Fix argument types.
32137
32138 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
32139
32140 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
32141
32142 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
32143 agree with return type.
32144
32145 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
32146
32147 2010-01-15 Jing Yu <jingyu@google.com>
32148
32149 PR rtl-optimization/42691
32150 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
32151 a pseudo to a constant and are merged, and adjust comments.
32152
32153 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
32154
32155 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
32156
32157 2010-01-15 Richard Guenther <rguenther@suse.de>
32158
32159 PR middle-end/42739
32160 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
32161 labels of computed or non-local gotos to the destination.
32162 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
32163 landing pad label is the first label.
32164
32165 2010-01-15 Richard Guenther <rguenther@suse.de>
32166
32167 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
32168
32169 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
32170
32171 PR target/42747
32172 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
32173 to allow generation of the xssqrtdp instruction on power7.
32174 (sqrtdf2_fpr): Ditto.
32175
32176 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32177
32178 PR middle-end/42674
32179 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
32180 functions with noreturn attribute.
32181
32182 PR c++/42608
32183 * varasm.c (declare_weak): Add weak attribute to decl if it
32184 doesn't have one already.
32185 (assemble_external): Only add decls to weak_decls if they also
32186 have weak attribute.
32187
32188 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
32189
32190 * var-tracking.c (var_reg_delete): Don't delete the association
32191 between REGs and values or one-part variables if the register
32192 isn't clobbered.
32193
32194 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32195
32196 PR debug/42657
32197 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
32198 because its first operand is a non-localized variable.
32199
32200 2010-01-14 Martin Jambor <mjambor@suse.cz>
32201
32202 PR tree-optimization/42706
32203 * tree-sra.c (encountered_recursive_call): New variable.
32204 (encountered_unchangable_recursive_call): Likewise.
32205 (sra_initialize): Initialize both new variables.
32206 (callsite_has_enough_arguments_p): New function.
32207 (scan_function): Call decl and flags check only for IPA-SRA, check
32208 whether there is a recursive call and whether it has enough arguments.
32209 (all_callers_have_enough_arguments_p): New function.
32210 (convert_callers): Look for recursive calls only when
32211 encountered_recursive_call is set.
32212 (ipa_early_sra): Bail out either if
32213 !all_callers_have_enough_arguments_p or
32214 encountered_unchangable_recursive_call.
32215
32216 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32217
32218 * sel-sched.c: Add 2010 to copyright years.
32219 * sel-sched-ir.c: Likewise.
32220 * sel-sched-ir.h: Likewise.
32221
32222 2010-01-14 Martin Jambor <mjambor@suse.cz>
32223
32224 PR tree-optimization/42714
32225 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
32226 constructors specially.
32227
32228 2010-01-14 Andi Kleen <ak@linux.intel.com>
32229
32230 * config/i386/drivers-i386.c (detect_caches_intel):
32231 Add l2sizekb parameter and fill in.
32232 (host_detect_local_cpu): Add l2sizekb, fill in.
32233 Add Atom small cache heuristic.
32234
32235 2010-01-14 Andi Kleen <ak@linux.intel.com>
32236
32237 * config/i386/drivers-i386.c (detect_caches_cpuid4):
32238 Add level3 parameter and fill in.
32239 (detect_caches_intel): Handle level3 cache.
32240
32241 2010-01-14 Andi Kleen <ak@linux.intel.com>
32242
32243 * config/i386/drivers-i386.c (host_detect_local_cpu):
32244 Fix core duo detection.
32245
32246 2010-01-14 Andi Kleen <ak@linux.intel.com>
32247
32248 * config/i386/drivers-i386.c (host_detect_local_cpu):
32249 Fix Atom detection.
32250
32251 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32252
32253 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
32254 (rs6000_variable_issue_1): this. Use...
32255 (rs6000_variable_issue): here. Reimplement. Print debug info.
32256
32257 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32258
32259 * sel-sched-ir.c (sel_restore_other_notes): Rename to
32260 sel_restore_notes. Update all callers. Call reemit_notes
32261 for all insns.
32262
32263 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32264
32265 PR rtl-optimization/42246
32266 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
32267 loops.
32268
32269 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32270
32271 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
32272 all successors is the same as number of successors in current region.
32273
32274 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32275
32276 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
32277 to rename is not separable. Otherwise check that its LHS is not NULL.
32278
32279 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32280
32281 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
32282
32283 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32284
32285 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
32286 available registers when failed to discover LHS register class.
32287 Fix indentation. Update comment.
32288
32289 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32290 Alexander Monakov <amonakov@ispras.ru>
32291
32292 PR rtl-optimization/42389
32293 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
32294 to can_issue_more.
32295 (advance_state_on_fence): Likewise.
32296 (sel_target_adjust_priority): Print debug output only when
32297 sched_verbose >= 4, not 2.
32298 (get_expr_cost): Do not issue all unique insns on the next cycle.
32299 (fill_insns): Initialize can_issue_more from the value saved
32300 with the fence.
32301 * sel-sched-ir.c (flist_add): New parameter issue_more.
32302 Init FENCE_ISSUE_MORE with it.
32303 (merge_fences): Likewise.
32304 (init_fences): Update call to flist_add.
32305 (add_to_fences, add_clean_fence_to_fences)
32306 (add_dirty_fence_to_fences): Likewise.
32307 (move_fence_to_fences): Update call to merge_fences.
32308 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
32309 sched groups.
32310 * sel-sched-ir.h (struct _fence): New field issue_more.
32311 (FENCE_ISSUE_MORE): New accessor macro.
32312
32313 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32314
32315 PR rtl-optimization/42388
32316 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
32317 that have no predecessors nor successors. Do not call move_bb_info
32318 for empty blocks outside of current region.
32319
32320 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32321
32322 PR rtl-optimization/42294
32323 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
32324 * sel-sched.c (move_exprs_to_boundary): Transitively add all
32325 originators' originators.
32326
32327 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32328
32329 PR rtl-optimization/39453
32330 PR rtl-optimization/42246
32331 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
32332 for pipelining_p.
32333 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
32334
32335 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32336 Alexander Monakov <amonakov@ispras.ru>
32337
32338 PR middle-end/42245
32339 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
32340 (maybe_tidy_empty_bb): ... here. Make static. Add new
32341 argument. Update all callers.
32342 (tidy_control_flow): ... and here. Recompute topological order
32343 of basic blocks in region if necessary.
32344 (sel_redirect_edge_and_branch): Change return type. Return true
32345 if topological order might have been invalidated.
32346 (purge_empty_blocks): Export and move from...
32347 * sel-sched.c (purge_empty_blocks): ... here.
32348 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
32349 (maybe_tidy_empty_bb): Delete prototype.
32350 (purge_empty_blocks): Declare.
32351
32352 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32353
32354 PR rtl-optimization/42249
32355 * sel-sched.c (try_replace_dest_reg): When chosen register
32356 and original register is the same, do not bail out early, but
32357 still check all original insns for validity of replacing destination
32358 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
32359 in this case.
32360
32361 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32362
32363 PR c/42721
32364 Port from no-undefined-overflow branch:
32365 2009-03-09 Richard Guenther <rguenther@suse.de>
32366
32367 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
32368
32369 2010-01-14 Richard Guenther <rguenther@suse.de>
32370
32371 PR lto/42665
32372 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
32373
32374 2010-01-14 Ira Rosen <irar@il.ibm.com>
32375
32376 PR tree-optimization/42709
32377 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
32378 as scalar type in creation of constant vector operand.
32379
32380 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32381
32382 PR testsuite/42414
32383 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
32384 (check-parallel-%): Match `testsuite' directory component only
32385 at the end.
32386
32387 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
32388
32389 PR translation/39521
32390 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
32391 strings with _().
32392
32393 2010-01-13 Richard Guenther <rguenther@suse.de>
32394
32395 PR tree-optimization/42730
32396 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
32397 offset zero.
32398
32399 2010-01-13 Steve Ellcey <sje@cup.hp.com>
32400
32401 PR target/pr42542
32402 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
32403 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
32404 them signed.
32405
32406 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
32407
32408 * config/bfin/libgcc-bfin.ver: Regenerate based on current
32409 libgcc-std.ver. Add entries for ___smulsi3_highpart and
32410 ___umulsi3_highpart.
32411
32412 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
32413 rather than schedule_insns if the pass is enabled.
32414
32415 2010-01-13 Martin Jambor <mjambor@suse.cz>
32416
32417 PR tree-optimization/42704
32418 * tree-sra.c (sra_modify_assign): Do not delete assignments to
32419 SSA_NAMEs.
32420
32421 2010-01-13 Martin Jambor <mjambor@suse.cz>
32422
32423 PR tree-optimization/42703
32424 * tree-sra.c (analyze_access_subtree): Check that we can build a
32425 reference to the original data within the aggregate.
32426
32427 2010-01-13 Richard Guenther <rguenther@suse.de>
32428
32429 PR tree-optimization/42705
32430 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
32431
32432 2010-01-13 Richard Guenther <rguenther@suse.de>
32433
32434 PR middle-end/42716
32435 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
32436
32437 2010-01-13 Jakub Jelinek <jakub@redhat.com>
32438
32439 PR debug/41371
32440 * var-tracking.c (values_to_unmark): New variable.
32441 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
32442 values_to_unmark vector. Moved body to...
32443 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
32444 instead queue it into values_to_unmark vector.
32445 (vt_find_locations): Free values_to_unmark vector.
32446
32447 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
32448
32449 * config/s390/s390.c (override_options): Set
32450 default of max-pending-list-length to 256
32451
32452 2010-01-13 Richard Guenther <rguenther@suse.de>
32453
32454 PR lto/42678
32455 * tree-pass.h (PROP_gimple_lcx): New.
32456 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
32457 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
32458 before the final cleanup_eh.
32459 (dump_properties): Dump PROP_gimple_lcx.
32460 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
32461 (tree_lower_complex_O0): Remove.
32462 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
32463 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
32464 tree_lower_complex, schedule TODO_update_ssa.
32465 * lto-streamer-out.c (output_function): Stream the functions
32466 properties.
32467 * lto-streamer-in.c (input_function): Likewise.
32468 (lto_read_body): Do not override them here.
32469
32470 2010-01-12 Joseph Myers <joseph@codesourcery.com>
32471
32472 PR c/42708
32473 * c-typeck.c (build_c_cast): Fold value cast to union type before
32474 wrapping it in a CONSTRUCTOR.
32475
32476 2010-01-12 Jakub Jelinek <jakub@redhat.com>
32477
32478 PR rtl-optimization/42699
32479 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
32480 involved.
32481
32482 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32483
32484 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
32485 SUBTARGET_WARN_UNUSED_SPEC): Move ...
32486 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
32487 SUBTARGET_WARN_UNUSED_SPEC): ... here
32488 * config/mips/iris5.h (LIBGCC_SPEC): Define.
32489
32490 2010-01-12 Julian Brown <julian@codesourcery.com>
32491
32492 * config/arm/neon-schedgen.ml (Utils): Don't try to
32493 open missing module.
32494 (find_with_result): New.
32495
32496 2010-01-12 Jakub Jelinek <jakub@redhat.com>
32497
32498 PR debug/42662
32499 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
32500 sharing when canonicalizing ({lt,ge}u (plus a b) b).
32501
32502 PR tree-optimization/42645
32503 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
32504 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
32505 decl_map, set processing_debug_stmt to -1 and return name without
32506 any remapping.
32507
32508 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
32509
32510 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
32511 binutils version, and reword target configuration description.
32512
32513 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
32514
32515 * config/avr/avr.h (LINKER_NAME): Remove.
32516
32517 2010-01-11 Janis Johnson <janis187@us.ibm.com>
32518
32519 PR target/42416
32520 * config/rs6000/rs6000.c (rs6000_override_options): On targets
32521 that support VSX, warn for -mno-altivec if vsx is not disabled,
32522 and disable vsx.
32523
32524 2010-01-11 Joseph Myers <joseph@codesourcery.com>
32525 Shujing Zhao <pearly.zhao@oracle.com>
32526
32527 PR translation/42469
32528 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
32529 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
32530 character between option name and help text.
32531 * c.opt (imultilib): Likewise.
32532
32533 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
32534
32535 * lto-streamer-out.c (output_unreferenced_globals): Output static
32536 variables.
32537
32538 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
32539
32540 PR rtl-optimization/42621
32541 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
32542 optimizing for size.
32543 (duplicate_computed_gotos): Remove now-redundant check.
32544
32545 2010-01-10 Steve Ellcey <sje@cup.hp.com>
32546
32547 PR target/37454
32548 * configure.ac: Save and restore LDFLAGS and LIBS
32549 * configure: Regenerate.
32550
32551 2010-01-10 Richard Guenther <rguenther@suse.de>
32552
32553 PR middle-end/42667
32554 * builtins.c (fold_builtin_strlen): Add type argument and
32555 convert the resulting length to it.
32556 (fold_builtin_1): Adjust.
32557
32558 2010-01-09 Jakub Jelinek <jakub@redhat.com>
32559
32560 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
32561 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
32562 1 insn.
32563 (num_insns_constant_wide): Adjust for that change.
32564
32565 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32566
32567 PR debug/42631
32568 * web.c (union_defs): Add used argument, to combine uses of
32569 uninitialized regs.
32570 (entry_register): Adjust type and tests of used argument.
32571 (web_main): Widen used for new use. Pass it to union_defs.
32572 * df.h (union_defs): Adjust prototype.
32573
32574 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32575
32576 PR debug/42630
32577 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
32578 uses in new incoming argument. Free body.
32579 (reset_debug_uses_in_loop): New.
32580 (analyze_insn_to_expand_var): Call the latter if the former found
32581 anything. Fix whitespace. Reject invalid dest overlaps before
32582 going through all insns in the loop.
32583
32584 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32585
32586 PR debug/42629
32587 * haifa-sched.c (dying_use_p): Debug insns don't count.
32588
32589 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32590
32591 PR middle-end/42363
32592 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
32593 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
32594 (verify_gimple_call): Reject LHS in noreturn calls.
32595
32596 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32597
32598 PR debug/42604
32599 PR debug/42395
32600 * tree-vect-loop-manip.c (adjust_info): New type.
32601 (adjust_vec): New pointer to vector.
32602 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
32603 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
32604 (slpeel_update_phis_for_duplicate_loop): Use them.
32605 (slpeel_update_phi_nodes_for_guard1): Likewise.
32606 (slpeel_update_phi_nodes_for_guard2): Likewise.
32607 (slpeel_tree_peel_loop_to_edge): Likewise.
32608 (vect_update_ivs_after_vectorizer): Likewise.
32609
32610 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32611
32612 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
32613 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
32614
32615 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32616
32617 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
32618 bogus uninitialized warning.
32619
32620 2010-01-09 Richard Guenther <rguenther@suse.de>
32621
32622 PR middle-end/42512
32623 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
32624 the evolution is compatible with the initial condition.
32625
32626 2010-01-09 Jakub Jelinek <jakub@redhat.com>
32627
32628 * gcc.c (process_command): Update copyright notice dates.
32629 * gcov.c (print_version): Likewise.
32630 * gcov-dump.c (print_version): Likewise.
32631 * mips-tfile.c (main): Likewise.
32632 * mips-tdump.c (main): Likewise.
32633
32634 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
32635
32636 PR target/41885
32637 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
32638 (rotlhi3): Delete.
32639 (rotlhi3_8): Delete.
32640 (rotlsi3): Delete.
32641 (rotlsi3_8): Delete.
32642 (rotlsi3_16): Delete.
32643 (rotlsi3_24): Delete.
32644 (rotl<mode>3): New.
32645 (*rotw<mode>3): New.
32646 (*rotb<mode>3): New.
32647 * config/avr/avr.c (avr_rotate_bytes): New function.
32648 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
32649
32650 2010-01-08 Steve Ellcey <sje@cup.hp.com>
32651
32652 PR target/37454
32653 * configure.ac: Modify -rdynamic check.
32654 * configure: Regenerate.
32655
32656 2010-01-08 DJ Delorie <dj@redhat.com>
32657
32658 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
32659 register popping order.
32660
32661 2010-01-08 Richard Guenther <rguenther@suse.de>
32662
32663 PR lto/42528
32664 * c.opt (fsigned-char): Also let LTO handle this option.
32665 (funsigned-char): Likewise.
32666
32667 2010-01-07 Richard Guenther <rguenther@suse.de>
32668
32669 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
32670 (gimple_op): Likewise.
32671 (gimple_op_ptr): Likewise.
32672 (gimple_assign_set_lhs): Remove gcc_assert.
32673 (gimple_assign_set_rhs1): Likewise.
32674 (gimple_assign_set_rhs2): Likewise.
32675 (gimple_call_set_lhs): Likewise.
32676 (gimple_call_set_fn): Likewise.
32677 (gimple_call_set_fndecl): Likewise.
32678 (gimple_call_fndecl): Likewise.
32679 (gimple_call_return_type): Likewise.
32680 (gimple_call_set_chain): Likewise.
32681 (gimple_call_num_args): Likewise.
32682 (gimple_call_set_arg): Likewise.
32683 (gimple_cond_set_code): Likewise.
32684 (gimple_cond_set_lhs): Likewise.
32685 (gimple_cond_set_rhs): Likewise.
32686 (gimple_cond_set_true_label): Likewise.
32687 (gimple_cond_set_false_label): Likewise.
32688 (gimple_label_set_label): Likewise.
32689 (gimple_goto_set_dest): Likewise.
32690 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
32691 (gimple_debug_bind_get_value): Likewise.
32692 (gimple_debug_bind_get_value_ptr): Likewise.
32693 (gimple_debug_bind_set_var): Likewise.
32694 (gimple_debug_bind_set_value): Likewise.
32695 (gimple_debug_bind_reset_value): Likewise.
32696 (gimple_debug_bind_has_value_p): Likewise.
32697 (gimple_return_retval_ptr): Remove gcc_assert.
32698 (gimple_return_retval): Likewise.
32699 (gimple_return_set_retval): Likewise.
32700 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
32701 (safe_referenced_var_iterator): Remove.
32702 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
32703 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
32704 (fill_referenced_var_vec): Remove.
32705 (first_readonly_imm_use): Remove redundant gcc_assert.
32706 (phi_arg_index_from_use): Combine gcc_asserts.
32707 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
32708 (first_imm_use_stmt): Remove redundant gcc_assert.
32709 * tree-cfg.c (verify_gimple_call): Verify function and chain
32710 operands. Verify arguments.
32711 (verify_types_in_gimple_stmt): Verify condition code and labels.
32712
32713 2010-01-07 Richard Guenther <rguenther@suse.de>
32714
32715 PR tree-optimization/42641
32716 * sese.c (rename_map_elt_info): Use the SSA name version, do
32717 not hash pointers.
32718
32719 2010-01-07 Jakub Jelinek <jakub@redhat.com>
32720
32721 PR tree-optimization/42625
32722 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
32723 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
32724
32725 2010-01-07 Duncan Sands <baldrick@free.fr>
32726
32727 * Makefile.in (PLUGIN_HEADERS): Add version.h.
32728
32729 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
32730
32731 PR target/42511
32732 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
32733 note itself is not function_invariant_p.
32734
32735 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
32736
32737 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
32738 Do not add the DF_NOTE problem.
32739 * store-motion.c (execute_rtl_store_motion): Likewise.
32740
32741 2010-01-07 Martin Jambor <mjambor@suse.cz>
32742
32743 PR tree-optimization/42157
32744 * tree-sra.c (compare_access_positions): Stabilize sort if both
32745 accesses have integer types, return zero immediately if they are the
32746 same.
32747
32748 2010-01-06 Richard Henderson <rth@redhat.com>
32749
32750 PR middle-end/41883
32751 * haifa-sched.c (add_to_note_list): Merge into ...
32752 (concat_note_lists): ... here, and ...
32753 (unlink_other_notes, rm_other_notes): Merge into...
32754 (remove_notes): ... here. Create REG_SAVE_NOTEs for
32755 NOTE_INSN_EPILOGUE_BEG.
32756
32757 2010-01-06 Richard Guenther <rguenther@suse.de>
32758
32759 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
32760 not inline regular functions into always-inline functions.
32761
32762 2010-01-06 Nick Clifton <nickc@redhat.com>
32763
32764 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
32765 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
32766 used together.
32767 (OVERRIDE_OPTIONS): Delete.
32768 (OPTIMIZATION_OPTIONS): Define.
32769 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
32770 * config/rx/rx.c (rx_handle_option): Issue an error message if
32771 -mcpu=rx200 and -fpu are used together.
32772 (rx_set_optimization_options): New function. Issue an error
32773 message if an optimization attribute attempts to reset the FPU/
32774 math optimization pairing.
32775 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
32776 * config/rx/rx.opt: Set the default to 32-bit doubles.
32777 * config/rx/t-rx: Add multilibs for -nofpu option.
32778 * doc/invoke.texi: Update documentation of RX options.
32779
32780 2010-01-06 Richard Guenther <rguenther@suse.de>
32781
32782 * tree-ssa-pre.c (name_to_id): New global.
32783 (alloc_expression_id): Simplify SSA name handling.
32784 (lookup_expression_id): Likewise.
32785 (init_pre): Zero name_to_id.
32786 (fini_pre): Free it.
32787
32788 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
32789
32790 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
32791
32792 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
32793
32794 PR target/42542
32795 * config/i386/sse.md (smaxv2di3): New.
32796 (umaxv2di3): Likewise.
32797 (sminv2di3): Likewise.
32798 (uminv2di3): Likewise.
32799
32800 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
32801
32802 PR target/42564
32803 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
32804 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
32805 (legitimize_tls_address): Likewise.
32806 (sparc_tls_referenced_p): Likewise.
32807 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
32808 and adjust calls to legitimize_pic_address.
32809 (legitimate_constant_p) Use sparc_tls_referenced_p.
32810 (legitimate_pic_operand_p): Likewise.
32811 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
32812 (sparc_tls_symbol_ref_1): Delete.
32813 (sparc_tls_referenced_p): Make static, recognize specific patterns.
32814 (legitimize_tls_address): Make static, handle CONST patterns.
32815 (legitimize_pic_address): Make static, remove unused parameter and
32816 adjust recursive calls.
32817 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
32818 and adjust call to legitimize_pic_address.
32819 (sparc_output_mi_thunk): Likewise.
32820
32821 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
32822 H.J. Lu <hongjiu.lu@intel.com>
32823
32824 PR target/42542
32825 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
32826 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
32827 operands to make them signed.
32828
32829 Revert:
32830 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
32831
32832 PR target/42542
32833 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
32834 GTU to GT for V4SI and V2DI.
32835
32836 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
32837 (umin<mode>3): Removed.
32838 (uminv8hi3): New.
32839 (uminv4si3): Likewise.
32840
32841 2010-01-05 Martin Jambor <mjambor@suse.cz>
32842
32843 PR tree-optimization/42462
32844 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
32845 current_function_decl to helper functions and macros.
32846
32847 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32848
32849 PR bootstrap/41771
32850 * flags.h: Don't include real.h.
32851 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
32852 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
32853 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
32854 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
32855 * dominance.c: Update copyright.
32856 * gimple.c (walk_gimple_op): Remove inline.
32857 * tree-ssa-reassoc.c: Include real.h.
32858 * Makefile.in (FLAGS_H): Remove $(REAL_H).
32859 (tree-ssa-reassoc.o): Depend on $(REAL_H).
32860
32861 2010-01-05 Nick Clifton <nickc@redhat.com>
32862
32863 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
32864 register to push into the stack frame when the accumulator has to
32865 be saved during interrupts.
32866
32867 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
32868
32869 * doc/invoke.texi: Remove the documentation about option
32870 -Wunreachable-code.
32871 * common.opt (Wunreachable-code): Preserved for backward
32872 compatibility.
32873 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
32874 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
32875 the backward compatibility flag section.
32876
32877 2010-01-05 Richard Guenther <rguenther@suse.de>
32878
32879 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
32880
32881 2010-01-05 Jakub Jelinek <jakub@redhat.com>
32882
32883 PR other/42611
32884 * cfgexpand.c (expand_one_var): Diagnose too large variables.
32885
32886 PR tree-optimization/42508
32887 * tree-sra.c (convert_callers): Check for recursive call
32888 by comparing cgraph nodes instead of decls.
32889 (modify_function): Call ipa_modify_formal_parameters also
32890 on all same_body aliases.
32891
32892 * cgraphunit.c (cgraph_materialize_all_clones): Compare
32893 cgraph nodes when checking for same_body aliases.
32894
32895 2010-01-05 Richard Guenther <rguenther@suse.de>
32896
32897 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
32898 allocation and lookup.
32899 (get_or_alloc_expr_for_constant): Likewise.
32900 (phi_translate): Sink allocation.
32901
32902 2010-01-04 Richard Guenther <rguenther@suse.de>
32903
32904 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
32905 a new entry only if needed.
32906 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
32907 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
32908 hashtable lookup.
32909 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
32910 the result array.
32911 (phi_translate): Handle CONSTANTs early.
32912
32913 2010-01-04 Martin Jambor <mjambor@suse.cz>
32914
32915 PR tree-optimization/42398
32916 * tree-sra.c (struct access): Removed flag grp_different_types.
32917 (dump_access): Do not dump the removed flag.
32918 (sort_and_splice_var_accesses): Do not set the removed flag.
32919 (sra_modify_expr): Check for type compatibility directly.
32920
32921 2010-01-04 Martin Jambor <mjambor@suse.cz>
32922
32923 PR tree-optimization/42366
32924 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
32925 edges with variable number of parameters.
32926 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
32927 flag instead of asserting it.
32928 (ipa_read_node_info): Read uses_analysis_done flag.
32929
32930 2010-01-04 Richard Guenther <rguenther@suse.de>
32931
32932 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
32933 iterative_hash_* as intended.
32934 (vn_reference_compute_hash): Likewise. Simplify hashing
32935 SSA names.
32936 (vn_reference_lookup_2): Likewise.
32937 (vn_nary_op_compute_hash): Likewise.
32938 (vn_phi_compute_hash): Likewise.
32939 (expressions_equal_p): Remove strange code.
32940 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
32941 (pre_expr_hash): Likewise. Simplify hashing SSA names.
32942 (bitmap_insert_into_set_1): Take value-id as parameter.
32943 (add_to_value): Pass it.
32944 (bitmap_insert_into_set): Likewise.
32945 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
32946
32947 2010-01-04 Jakub Jelinek <jakub@redhat.com>
32948
32949 PR driver/42442
32950 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
32951 (do_self_spec): For switches with SWITCH_IGNORE set set also
32952 SWITCH_IGNORE_PERMANENTLY.
32953 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
32954 of SWITCH_IGNORE.
32955
32956 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
32957
32958 * lto-streamer-out.c (output_unreferenced_globals): Output the full
32959 tree of an unreferenced global var.
32960
32961 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
32962
32963 PR target/42542
32964 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
32965 GTU to GT for V4SI and V2DI.
32966
32967 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
32968 (umin<mode>3): Removed.
32969 (uminv8hi3): New.
32970 (uminv4si3): Likewise.
32971
32972 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
32973
32974 PR lto/42581
32975 * collect2.c (main): Turn on trace in collect2 if -v is passed
32976 to gcc with LTO.
32977
32978 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
32979
32980 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
32981 description of expression operand.
32982
32983 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
32984
32985 * configure.ac: Add install-html to target_list for Make-hooks.
32986 * configure: Regenerate.
32987 * fortran/Make-lang.in (F95_HTMLFILES): New.
32988 (fortran.html): Use it.
32989 (fortran.install-html): New.
32990 * Makefile.in (install-html): Add lang.install-html.
32991 * java/Make-lang.in (JAVA_HTMLFILES): New.
32992 (java.html): Use it.
32993 (java.install-html): New.
32994 * objc/Make-lang.in (objc.install-html): New.
32995 * objcp/Make-lang.in (obj-c++.install-html): New.
32996 * cp/Make-lang.in (c++.install-html): New.
32997 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
32998 * lto/Make-lang.in (lto.install-html): New.
32999
33000 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33001
33002 PR lto/42520
33003 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
33004
33005 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
33006
33007 PR rtl-optimization/41862
33008 * store-motion.c (store_killed_in_insn, compute_store_table,
33009 remove_reachable_equiv_notes, replace_store_insn,
33010 build_store_vectors): Ignore all DEBUG_INSNs.
33011
33012 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33013
33014 PR lto/41564
33015 * common.opt: Add dumpdir.
33016
33017 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
33018 isn't specified.
33019 (option_map): Add --dumpdir.
33020
33021 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
33022
33023 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
33024
33025 * opts.c (decode_options): Try dump_dir_name first if
33026 dump_base_name isn't an absolute path.
33027 (common_handle_option): Handle OPT_dumpdir.
33028
33029 * toplev.c (dump_dir_name): New.
33030 (print_switch_values): Also ignore -dumpdir.
33031
33032 * toplev.h (dump_dir_name): New.
33033
33034 2010-01-03 Richard Guenther <rguenther@suse.de>
33035
33036 PR tree-optimization/42589
33037 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
33038 double-word expansion of bswap32.
33039
33040 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
33041
33042 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
33043 with BLOCK_FOR_INSN.
33044 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
33045 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
33046 noce_process_if_block): Likewise.
33047 * gcse.c (compute_local_properties, insert_expr_in_table,
33048 insert_set_in_table, canon_list_insert, find_avail_set,
33049 pre_insert_copy_insn): Likewise.
33050
33051 * basic-block.h (BLOCK_NUM): Move from here...
33052 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
33053
33054 2010-01-03 Richard Guenther <rguenther@suse.de>
33055
33056 PR tree-optimization/42438
33057 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
33058 contains_may_not_return_call flag.
33059 (BB_MAY_NOTRETURN): New.
33060 (valid_in_sets): Trapping nary operations are not valid
33061 in blocks that may not return.
33062 (insert_into_preds_of_block): Remove check for trapping expressions.
33063 (compute_avail): Compute also BB_MAY_NOTRETURN.
33064
33065 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
33066
33067 * doc/invoke.texi: Add 2010 to copyright years.
33068
33069 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
33070
33071 * config/sparc/sparc.c: Fix formatting nits.
33072
33073 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
33074 Alexander Monakov <amonakov@ispras.ru>
33075
33076 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
33077
33078 2010-01-02 Richard Guenther <rguenther@suse.de>
33079
33080 PR middle-end/42577
33081 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
33082 (simplify_switch_using_ranges): Mark to be removed edges
33083 as non-executable.
33084
33085 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33086
33087 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
33088
33089 * collect2.c (scan_libraries): Add missing argument in call to
33090 scan_prog_file.
33091
33092 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
33093
33094 PR target/42448
33095 * config/alpha/predicates.md (aligned_memory_operand): Return false
33096 for CQImode.
33097 (unaligned_memory_operand): Return true for CQImode.
33098 * config/alpha/alpha.c (get_aligned_mem): Assert that location
33099 doesn not cross aligned SImode word boundary.
33100
33101 2010-01-02 Anatoly Sokolov <aesok@post.ru>
33102
33103 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
33104 Remove.
33105 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
33106 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
33107
33108 2010-01-02 Richard Guenther <rguenther@suse.de>
33109
33110 PR lto/41597
33111 * toplev.c (compile_file): Emit LTO marker properly. Change
33112 it to __gnu_lto_v1.
33113 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
33114
33115 2010-01-01 Richard Guenther <rguenther@suse.de>
33116
33117 PR debug/42455
33118 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
33119
33120 2010-01-01 Richard Guenther <rguenther@suse.de>
33121
33122 PR c/42570
33123 * c-decl.c (grokdeclarator): For zero-size arrays force
33124 structural equality checks as layout_type does.
33125
33126 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33127
33128 * builtins.c: Update copyright to 2010.
33129
33130 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33131
33132 PR lto/42531
33133 * lto-streamer-out.c (produce_asm): Revert the last change.
33134 (copy_function): Likewise.
33135
33136 * lto-streamer.c (lto_get_section_name): Skip any leading
33137 asterisk in name.
33138
33139 2010-01-01 Richard Guenther <rguenther@suse.de>
33140
33141 PR middle-end/42559
33142 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
33143 for LABEL_DECLs.
33144
33145 \f
33146 Copyright (C) 2010 Free Software Foundation, Inc.
33147
33148 Copying and distribution of this file, with or without modification,
33149 are permitted in any medium without royalty provided the copyright
33150 notice and this notice are preserved.