re PR debug/48466 (Wrong variable locations at -O0 on i686)
[gcc.git] / gcc / ChangeLog
1 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2
3 PR debug/48466
4 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5 as base_reg whatever register reg has been eliminated to, instead
6 of hardcoding STACK_POINTER_REGNUM.
7
8 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9
10 * doc/tm.texi.in: Document C target hooks as separate from general
11 target hooks.
12 * doc/tm.texi: Regenerate.
13 * genhooks.c (struct hook_desc): Add docname field.
14 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
15 docname field.
16 (hook_array): Include c-target.def.
17 (emit_documentation): Use docname field in output.
18 (emit_init_macros): Take docname argument. Only emit definitions
19 for hooks matching docname.
20 (main): Expect additional arguments in all cases. Pass argument
21 to emit_init_macros.
22 * target.def: Move initial macro definitions and comments to
23 target-hooks-macros.h.
24 (gcc_targetcm): Move to c-family/c-target.def.
25 * target.h (targetcm): Move declaration to c-family/c-target.h.
26 * targhooks.c (default_handle_c_option): Move to
27 c-family/c-opts.c.
28 * targhooks.h (default_handle_c_option): Move declaration to
29 c-family/c-common.h.
30 * target-hooks-macros.h: New file.
31 * config.gcc (target_has_targetcm): Define and use to add to
32 c_target_objs and cxx_target_objs.
33 * config/default-c.c: New file.
34 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
35 of target.h and target-def.h.
36 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
37 (darwin_objc_construct_string, darwin_cfstring_ref_p,
38 darwin_check_cfstring_format_arg): Make static.
39 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
40 TARGET_STRING_OBJECT_REF_TYPE_P,
41 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
42 * config/darwin-protos.h (darwin_objc_construct_string,
43 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
44 declare.
45 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
46 TARGET_STRING_OBJECT_REF_TYPE_P,
47 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM):
48 Remove.
49 * config/t-darwin (darwin-c.o): Update dependencies.
50 * system.h (TARGET_HAS_TARGETCM): Poison.
51 * Makefile.in (TARGET_H): Update.
52 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
53 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
54 (default-c.o): New target.
55 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
56 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New
57 targets.
58 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
59 c-target.def.
60 (build/genhooks.o): Update dependencies.
61
62 2011-04-06 Richard Guenther <rguenther@suse.de>
63
64 * ipa-inline.c (enum inlining_mode): Remove.
65 (cgraph_flatten): Use some other token.
66 (cgraph_edge_early_inlinable_p): New function, split out from ...
67 (cgraph_perform_always_inlining): New function, split out from ...
68 (cgraph_decide_inlining_incrementally): ... here.
69 (cgraph_mark_inline_edge): Adjust.
70 (cgraph_early_inlining): Re-structure.
71 (pass_early_inline): Require SSA form.
72
73 2011-03-06 Andrew Stubbs <ams@codesourcery.com>
74 Julian Brown <julian@codesourcery.com>
75 Mark Shinwell <shinwell@codesourcery.com>
76
77 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
78 LO_REGS only for Thumb-1.
79 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
80 be used in short instructions when optimising for size on Thumb-2.
81
82 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
83
84 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
85 associated with user returns to be preserved.
86
87 2011-04-06 Tristan Gingold <gingold@adacore.com>
88
89 * dbxout.c: (debug_nesting, symbol_queue, symbol_queue_index)
90 (symbol_queue_size, DBXOUT_DECR_NESTING)
91 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
92 if XCOFF_DEBUGGING_INFO.
93
94 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
95
96 * config/i386/i386.md (attribute isa): New.
97 (attribute enabled): New.
98 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
99 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
100 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
101 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
102 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
103 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
104 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
105 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
106
107 * config/i386/sse.md (VF): New mode iterator.
108 (VF1): Ditto.
109 (VF2): Ditto.
110 (VF_128): Ditto.
111 (SSEMODEF4): Remove.
112 (attribute sse): Handle V8SF and V4DF modes.
113 (<absneg:code><mode>2): Use VF mode iterator.
114 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
115 mode iterator.
116 (<plusminus_insn><mode>3): Use VF mode iterator.
117 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
118 Use VF mode iterator.
119 (<sse>_vm<plusminus_insn><mode>3): Merge with
120 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
121 (mul<mode>3): Use VF mode iterator.
122 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
123 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
124 mode iterator.
125 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
126 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
127 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
128 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
129 mode iterator.
130 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
131 Use VF1 mode iterator.
132 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
133 (sqrt<VF2:mode>2): New expander.
134 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
135 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
136 and sqrtv2df2. Use VF mode iterator.
137 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
138 mode iterator.
139 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
140 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
141 Use VF1 mode iterator.
142 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
143 (<smaxmin:code><mode>3): Use VF mode iterator.
144 (*<smaxmin:code><mode>3_finite): Merge with
145 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
146 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
147 (<sse>_vm<smaxmin:code><mode>2): Merge with
148 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
149 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
150 mode iterator.
151 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
152 mode iterator.
153 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
154 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
155 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
156 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
157 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
158 VF mode iterator.
159 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
160 Use VF_128 mode iterator.
161 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
162 mode iterator.
163 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
164 VF_128 mode iterator.
165 (vcond<mode>): Use VF mode iterator.
166 * config/i386/predicates.md (sse_comparison_operator): Merge with
167 avx_comparison_float_operator. Do not declare as special_predicate.
168 * config/i386/i386.c (struct builtin_description): Update for renamed
169 compare patterns.
170 (ix86_expand_args_builtin): Ditto.
171 (ix86_expand_sse_compare_mask): Ditto.
172
173 2011-04-06 Richard Guenther <rguenther@suse.de>
174
175 * tree-inline.c (estimate_num_insns): For calls simply account
176 for all passed arguments and a used return value.
177
178 2011-04-06 Richard Guenther <rguenther@suse.de>
179
180 PR tree-optimization/47663
181 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
182 call_stmt_time fields.
183 (cgraph_edge_inlinable_p): Declare.
184 (cgraph_edge_recursive_p): New inline function.
185 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
186 (cgraph_clone_edge): Copy it.
187 * ipa-inline.c (cgraph_estimate_edge_time): New function.
188 Account for call stmt time.
189 (cgraph_estimate_time_after_inlining): Take edge argument.
190 (cgraph_estimate_edge_growth): Account call stmt size.
191 (cgraph_estimate_size_after_inlining): Take edge argument.
192 (cgraph_mark_inline_edge): Adjust.
193 (cgraph_check_inline_limits): Likewise.
194 (cgraph_recursive_inlining_p): Remove.
195 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
196 (cgraph_decide_recursive_inlining): Take edge argument and
197 adjust.
198 (cgraph_decide_inlining_of_small_functions): Do not avoid
199 diags for recursive inlining here.
200 (cgraph_flatten): Adjust.
201 (cgraph_decide_inlining_incrementally): Likewise.
202 (estimate_function_body_sizes): Remove call cost handling.
203 (compute_inline_parameters): Initialize caller edge call costs.
204 (cgraph_estimate_edge_growth): New function.
205 (cgraph_estimate_growth): Use it.
206 (cgraph_edge_badness): Likewise.
207 (cgraph_check_inline_limits): Take an edge argument.
208 (cgraph_decide_inlining_of_small_functions): Adjust.
209 (cgraph_decide_inlining): Likewise.
210 * tree-inline.c (estimate_num_insns): Only account for call
211 return value if it is used.
212 (expand_call_inline): Avoid diagnostics on recursive inline
213 functions here.
214 * lto-cgraph.c (lto_output_edge): Output edge call costs.
215 (input_edge): Input edge call costs.
216
217 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
218
219 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
220
221 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
222
223 * doc/invoke.texi (Spec Files): Fix typo.
224
225 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
226
227 * profile.c (branch_prob): Move declaration of local variable. Remove
228 obsolete ??? comment. Expand the location explicitly instead of using
229 the LOCATION_FILE and LOCATION_LINE macros.
230
231 2011-04-06 Wei Guozhi <carrot@google.com>
232
233 PR target/47855
234 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
235 (arm_cond_branch): Likewise.
236 (arm_cond_branch_reversed): Likewise.
237 (arm_jump): Likewise.
238 (push_multi): Likewise.
239 * config/arm/constraints.md (Py): New constraint.
240
241 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
242
243 PR bootstrap/48471
244 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
245 Move these...
246 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
247 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
248 #ifdef DBX_DEBUGGING_INFO.
249
250 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
251
252 PR bootstrap/48403
253 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
254 if old and new states differ.
255
256 2011-04-05 Joseph Myers <joseph@codesourcery.com>
257
258 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
259 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
260 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
261 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
262 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
263 mcfv4e): Use Alias.
264 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
265 ColdFire options to -mcpu= options.
266
267 2011-04-05 Jeff Law <law@redhat.com>
268
269 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
270 check if BB is a successor of LOOP->header and return
271 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
272
273 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
274
275 * cprop.c (struct reg_use): Remove.
276 (reg_use_table): Make an array of RTX.
277 (find_used_regs, constprop_register, local_cprop_pass,
278 bypass_block): Simplify users of reg_use_table.
279 (cprop_insn): Likewise. Iterate if copy propagation succeeded
280 on one of the uses found by find_used_regs.
281
282 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
283
284 PR bootstrap/48469
285 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
286 declaration.
287
288 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
289
290 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
291 as an rtx.
292 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
293
294 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
295
296 PR middle-end/48441
297 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
298
299 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
300
301 * combine.c: Include obstack.h.
302 (struct insn_link): Define.
303 (uid_log_links): Adjust type.
304 (FOR_EACH_LOG_LINK): New macro.
305 (insn_link_obstack): Declare.
306 (alloc_insn_link): Define.
307 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
308 type of link variables.
309 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
310 (try_combine, record_promoted_values, distribute_notes): Likewise.
311 (distribute_links): Likewise. Tweak prototype.
312 (clear_log_links): Delete.
313 (adjust_for_new_dest): Call alloc_insn_link.
314 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
315
316 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
317
318 * gcse.c (modify_mem_list): Convert to an array of VECs.
319 (canon_modify_mem_list, compute_transp): Tweak formatting.
320 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
321 (load_killed_in_block_p): Likewise.
322 (record_last_mem_set_info): Likewise.
323 (clear_modify_mem_tables): Likewise.
324
325 2011-04-05 Tom de Vries <tom@codesourcery.com>
326
327 PR middle-end/48461
328 * function.c (emit_use_return_register_into_block): Only define if
329 HAVE_return.
330
331 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
332
333 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
334
335 2011-04-05 Joseph Myers <joseph@codesourcery.com>
336
337 * config/rx/rx-opts.h: New.
338 * config/rx/rx.c (rx_cpu_type): Remove.
339 (rx_handle_option): Don't assert that global structures are in
340 use. Access variables via opts pointer. Defer most handling of
341 OPT_mint_register_. Use error_at.
342 (rx_option_override): Handle deferred OPT_mint_register_ here.
343 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
344 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
345 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
346 (rx_cpu_types): New Enum and EnumValue entries.
347 (mint-register=): Use Defer and use Var accordingly.
348
349 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
350
351 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
352 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
353 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
354 Move these...
355 (debug_free_queue, debug_nesting, symbol_queue_index):
356 ...and these...
357 * dbxout.c: ...to here. Make static.
358
359 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
360
361 * gcse.c (modify_pair): Define. Define a VEC of it.
362 (canon_modify_mem_list): Convert to an array of VECs.
363 (free_insn_expr_list_list): Delete.
364 (clear_modify_mem_tables): Call VEC_free instead.
365 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
366 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
367 (canon_list_insert, compute_transp): Likewise.
368
369 2011-04-05 Tom de Vries <tom@codesourcery.com>
370
371 PR target/43920
372 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
373 for size.
374
375 2011-04-05 Tom de Vries <tom@codesourcery.com>
376
377 PR target/43920
378 * function.c (emit_use_return_register_into_block): New function.
379 (thread_prologue_and_epilogue_insns): Use
380 emit_use_return_register_into_block.
381
382 2011-04-05 Tom de Vries <tom@codesourcery.com>
383
384 PR target/43920
385 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
386 insn.
387
388 2011-04-05 Tom de Vries <tom@codesourcery.com>
389
390 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
391
392 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
393
394 * config/arm/arm.md (define_constants for unspec): Replace with
395 define_c_enum.
396 (define_constants for unspecv): Replace with define_c_enum.
397 * config/arm/neon.md (define_constants for unspec): Replace with
398 define_c_enum.
399
400 2011-04-04 Richard Henderson <rth@redhat.com>
401
402 PR bootstrap/48400
403 * dwarf2out.c (output_line_info): Always emit line info from
404 at least one section.
405 (dwarf2out_init): Create text_section_line_info here ...
406 (set_cur_line_info_table): ... not here.
407
408 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
409
410 PR target/48380
411 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
412 not called.
413
414 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
415
416 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
417
418 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
419 (expr_equiv_p): Remove.
420 (insert_set_in_table): Look at <dest, src> pair instead of expr.
421 (hash_scan_set): Update call to insert_set_in_table.
422 (dump_hash_table): Dump <dest, src> pair.
423 (lookup_set): Simplify. Lookup <dest, src> pair.
424 (compute_transp): Remove, fold heavily simplified code into...
425 (compute_local_properties): ...here. Expect COMP and TRANSP
426 unconditionally.
427 (find_avail_set): Take set directly from struct expr.
428 (find_bypass-set): Likewise.
429 (bypass_block): Likewise.
430 (cprop_insn): Likewise. Remove redundant INSN_P test.
431
432 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
433 checks on form of COND from find_implicit_sets to here.
434 (find_implicit_sets): Cleanup control flow. Split critical edges
435 if it exposes implicit sets. Allocate/resize implicit_sets as
436 necessary.
437 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
438 changed something. Run df_analyze after find_implicit_sets if any
439 edges were split. Do not allocate implicit_sets here.
440
441 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
442 (gcse_obstack): Renamed to cprop_obstack.
443 (GNEW, GNEWVEC, GNEWVAR): Remove.
444 (gmalloc): Remove.
445 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
446 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
447 (gcse_alloc): Likewise, and rename to cprop_alloc.
448 (alloc_gcse_men, free_gcse_mem): Remove.
449 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
450 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
451 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
452
453 * cprop.c (oprs_not_set_p): Remove.
454 (mark_set, mark_clobber): Remove.
455 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
456 (reg_not_set_p): New function.
457 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
458 (cprop_insn): Likewise.
459 (cprop_jump): Use FOR_EACH_EDGE.
460
461 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
462
463 PR bootstrap/48403
464 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
465 (rank_for_schedule): Use scheduled_insns vector instead of
466 last_scheduled_insn.
467 (ok_for_early_queue_removal): Likewise.
468 (queue_to_ready): Search forward in nonscheduled_insns_begin if
469 we have a dbg_cnt.
470 (choose_ready): Likewise.
471 (commit_schedule): Use VEC_iterate.
472 (schedule_block): Initialize nonscheduled_insns_begin. If we have
473 a dbg_cnt, use it and ensure the first insn is in the ready list.
474 (haifa_sched_init): Allocate scheduled_insns.
475 (sched_extend_ready_list): Don't allocate it; reserve space.
476 (haifa_sched_finish): Free it.
477
478 2011-04-04 Joseph Myers <joseph@codesourcery.com>
479
480 * optc-gen.awk: Always remove type from Variable entry before
481 recording in var_seen.
482
483 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
484
485 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
486 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
487 call to tidy_fallthru_edges.
488
489 2011-04-04 Joseph Myers <joseph@codesourcery.com>
490
491 * doc/options.texi (ToLower): Document.
492 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower
493 field.
494 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
495 * opts.h (cl_option): Add cl_tolower field.
496 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
497 arguments with lowercase strings.
498 * config/rx/rx.opt (mcpu=): Add ToLower.
499 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
500 argument.
501
502 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
503
504 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
505
506 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
507
508 * config/vax/vax.c: Include reload.h.
509
510 2011-04-04 Anatoly Sokolov <aesok@post.ru>
511
512 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
513 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
514 (sparc_preferred_reload_class): New function.
515
516 2011-04-04 Jakub Jelinek <jakub@redhat.com>
517
518 PR debug/48401
519 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
520 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
521
522 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
523
524 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
525 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
526
527 2011-04-03 Anatoly Sokolov <aesok@post.ru>
528
529 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
530 (ASM_OUTPUT_ALIGNED_BSS): Define.
531
532 2011-04-03 Michael Matz <matz@suse.de>
533
534 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
535 and next_slot members.
536 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
537 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
538 (lto_streamer_cache_append): Declare.
539 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
540 unsigned index, remove offset parameter, ensure that we append
541 or update existing entries.
542 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
543 parameter, update next_slot for append.
544 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
545 parameter.
546 (lto_streamer_cache_insert_at): Likewise.
547 (lto_streamer_cache_append): New function.
548 (lto_streamer_cache_lookup): Use unsigned index.
549 (lto_streamer_cache_get): Likewise.
550 (lto_record_common_node): Don't test tree_node_can_be_shared.
551 (preload_common_node): Adjust call to lto_streamer_cache_insert.
552 (lto_streamer_cache_delete): Don't free offsets member.
553 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
554 (lto_output_string_with_length): Use lto_output_data_stream.
555 (lto_output_tree_header): Remove ix parameter, don't write it.
556 (lto_output_builtin_tree): Likewise.
557 (lto_write_tree): Adjust callers to above, don't track and write
558 offset, write unsigned index.
559 (output_unreferenced_globals): Don't emit all global vars.
560 (write_global_references): Use unsigned indices.
561 (lto_output_decl_state_refs): Likewise.
562 (write_symbol): Likewise.
563 * lto-streamer-in.c (lto_input_chain): Move earlier.
564 (input_function): Use unsigned index.
565 (input_alias_pairs): Don't read and then ignore all global vars.
566 (lto_materialize_tree): Remove ix_p parameter, don't read index,
567 don't pass it back, use lto_streamer_cache_append.
568 (lto_register_var_decl_in_symtab): Use unsigned index.
569 (lto_register_function_decl_in_symtab): Likewise.
570 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
571 index.
572 (lto_get_builtin_tree): Don't read index, use
573 lto_streamer_cache_append.
574 (lto_read_tree): Adjust call to lto_materialize_tree.
575
576 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
577 don't use function calls in arguments to MIN.
578
579 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
580 twice.
581
582 * gimple.c (gimple_type_leader_entry): Mark deletable.
583
584 2011-04-03 Alan Modra <amodra@gmail.com>
585
586 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
587
588 2011-04-03 Michael Matz <matz@suse.de>
589
590 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
591 an integer.
592 * tree.h (tree_decl_non_common.vindex): Adjust comment.
593
594 2011-04-03 Michael Matz <matz@suse.de>
595
596 * cgraphbuild.c (record_reference): Canonicalize constructor values.
597 * gimple-fold.c (canonicalize_constructor_val): Accept being called
598 without function context.
599 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
600 current_function_decl and cfun.
601
602 2011-04-03 Michael Matz <matz@suse.de>
603
604 * tree.c (decl_init_priority_insert): Don't create entry for
605 default priority.
606 (decl_fini_priority_insert): Ditto.
607 (fields_compatible_p, find_compatible_field): Remove.
608 * tree.h (fields_compatible_p, find_compatible_field): Remove.
609 * gimple.c (gimple_compare_field_offset): Adjust block comment.
610
611 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
612
613 * combine.c (try_combine): Remove useless local variable.
614
615 2011-04-03 Richard Guenther <rguenther@suse.de>
616 Ira Rosen <ira.rosen@linaro.org>
617
618 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
619 non-variable offsets and compare the remaining bases of the two
620 accesses instead of looking for exact same data-ref.
621
622 2011-04-02 Kai Tietz <ktietz@redhat.com>
623
624 PR target/48416
625 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
626
627 * i386.c (ix86_is_msabi_thiscall): New helper function.
628 (ix86_is_type_thiscall): New helper function.
629 (ix86_comp_type_attributes): Handle thiscall for method-functions
630 special.
631 (init_cumulative_args): Likewise.
632 (find_drap_reg): Likewise.
633 (ix86_static_chain): Likewise.
634 (x86_this_parameter): Likewise.
635 (x86_output_mi_thunk): Likewise.
636
637 2011-04-01 Olivier Hainque <hainque@adacore.com>
638 Nicolas Setton <setton@adacore.com>
639 Eric Botcazou <ebotcazou@adacore.com>
640
641 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
642 (add_gnat_descriptive_type_attribute): New function.
643 (gen_array_type_die): Call it.
644 (gen_enumeration_type_die): Likewise.
645 (gen_struct_or_union_type_die): Likewise.
646 (modified_type_die): Likewise.
647 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
648 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
649 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
650
651 2011-04-01 Jakub Jelinek <jakub@redhat.com>
652
653 PR bootstrap/48148
654 * dwarf2out.c (resolve_addr): Don't call force_decl_die
655 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
656
657 Revert:
658 2011-03-17 Richard Guenther <rguenther@suse.de>
659
660 PR bootstrap/48148
661 * lto-cgraph.c (input_overwrite_node): Clear the abstract
662 origin for decls in other ltrans units.
663 (input_varpool_node): Likewise.
664
665 2011-04-01 Jakub Jelinek <jakub@redhat.com>
666
667 PR middle-end/48335
668 * expr.c (expand_assignment): Handle all possibilities
669 if TO_RTX is CONCAT.
670 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
671 (store_split_bit_field): If SUBREG_REG (op0) or
672 op0 itself has smaller mode than word, return it
673 for offset 0 and const0_rtx for out-of-bounds stores.
674 If word is const0_rtx, skip it.
675
676 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
677
678 * config/h8300/h8300.c (print_operand_address): Rename to...
679 (h8300_print_operand_address): ...this. Make static. Adjust comments.
680 Call h8300_print_operand and h8300_print_operand_address instead of
681 print_operand and print_operand_address. Declare.
682 (print_operand): Renake to...
683 (h8300_print_operand): ...this. Make static. Adjust comments.
684 Call h8300_print_operand instead of print_operand. Declare.
685 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
686 (h8300_register_move_cost): Likewise.
687 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
688 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
689 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
690 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
691 * config/h8300/h8300-protos.h (print_operand): Delete.
692 (print_operand_address): Delete.
693
694 2011-04-01 Richard Henderson <rth@redhat.com>
695
696 PR 48400
697 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
698 in strict mode before dwarf4. Re-order tests to early out
699 before switching sections.
700
701 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
702
703 * config/h8300/constraints.md: New file.
704 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
705 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
706 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
707 * config/h8300/predicates.md (bit_operand): Likewise.
708 (incdec_operand): Use satisfies_constraint_M and
709 satisfies_constraint_O. Don't use C code block.
710 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
711 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
712 (compute_mov_length): Use satisfies_constraint_G.
713 (fix_bit_operand): Use satisfies_constraint_U.
714 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
715 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
716 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
717 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
718 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
719 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
720 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
721 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
722 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
723 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
724 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
725 (EXTRA_MEMORY_CONSTRAINT): Delete.
726
727 2011-04-01 Andrew Pinski <pinskia@gmail.com>
728 Michael Meissner <meissner@linux.vnet.ibm.com>
729
730 PR target/48262
731 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
732 operands, as per the specifications.
733
734 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
735 (vec_extract_evenv4sf): Ditto.
736 (vec_extract_evenv8hi): Ditto.
737 (vec_extract_evenv16qi): Ditto.
738 (vec_extract_oddv4si): Ditto.
739
740 2011-03-31 Mark Wielaard <mjw@redhat.com>
741
742 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
743 high_pc attribute if the CU has no associated code. Only output
744 DW_AT_entry_pc for CU if not generating strict dwarf and
745 dwarf_version < 4.
746
747 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
748
749 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
750 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
751 out of ...
752 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
753 * final.c (final_start_function): Call the new function rather
754 than using a NULL argument for dwarf2out_frame_debug.
755
756 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
757 that contains the prologue.
758
759 * haifa-sched.c (queue_insn): New arg REASON. All callers
760 changed. Print it in debugging output.
761
762 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
763
764 * sched-ebb.c (begin_schedule_ready): Remove second argument.
765 Split most of the code into...
766 (begin_move_insn): ... here. New function.
767 (ebb_sched_info): Add a pointer to it.
768 * haifa-sched.c (scheduled_insns): New static variable.
769 (sched_extend_ready_list): Allocate it.
770 (schedule_block): Use it to record the order of scheduled insns.
771 Perform RTL changes to move insns only after all scheduling
772 decisions have been made.
773 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
774 begin_move_insn field.
775 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
776 * sched-int.h (struct haifa_sched_info): Remove second argument
777 from begin_schedule_ready hook. Add new member begin_move_insn.
778 * sched-rgn.c (begin_schedule_ready): Remove second argument.
779 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
780
781 * haifa-sched.c (prune_ready_list): New function, broken out of
782 schedule_block.
783 (schedule_block): Use it.
784
785 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
786
787 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
788
789 2011-04-01 Kai Tietz <ktietz@redhat.com>
790
791 * config.gcc (*-*-mingw*): Allow as option the
792 posix threading model.
793 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
794 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
795 definition.
796 (CPP_SPEC): Add pthread/no-pthread handling.
797 (LIB_SPEC): Likewise.
798 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
799 (LIB_SPEC): Likewise.
800 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
801 flag to pass -pthread option for shared libgcc build.
802 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
803 for shared libgcc build.
804 * config/i386/t-mingw-pthread: New file.
805 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
806 New define to enable use of library pthread by default.
807 * config/i386/mingw.opt (pthread): New driver option.
808 (no-pthread): New driver option.
809 * config/i386/cygming.opt: Make sure trailing empty line is retained.
810 * config/i386/mingw-w64.opt: Likewise.
811
812 2011-04-01 Gary Funck <gary@intrepid.com>
813
814 * c-decl.c (grokdeclarator): Fix formatting.
815
816 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
817
818 * expr.c (emit_block_move_via_movmem): Use n_generator_args
819 instead of n_operands.
820 (set_storage_via_setmem): Likewise.
821 * optabs.c (maybe_gen_insn): Likewise.
822 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
823 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
824 (mips_expand_builtin_direct): Likewise.
825 * config/spu/spu.c (expand_builtin_args): Likewise.
826
827 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
828
829 * recog.h (insn_data_d): Add n_generator_args.
830 * genoutput.c (data): Likewise.
831 (output_insn_data): Print it.
832 (max_opno, num_dups): Delete.
833 (scan_operands): Just fill in "d->operand[...]".
834 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
835
836 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
837
838 * gensupport.h (pattern_stats): New structure.
839 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
840 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
841 (max_operand_1, max_operand_vec): Delete.
842 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
843
844 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
845
846 * emit-rtl.c (emit_pattern_after_setloc): New function.
847 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
848 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
849 (emit_pattern_after): New function.
850 (emit_insn_after, emit_jump_insn_after): Call it.
851 (emit_call_insn_after, emit_debug_insn_after): Likewise.
852 (emit_pattern_before_setloc): New function.
853 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
854 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
855 Likewise.
856 (emit_pattern_before): New function.
857 (emit_insn_before, emit_jump_insn_before): Call it.
858 (emit_call_insn_before, emit_debug_insn_before): Likewise.
859
860 2011-03-31 Richard Henderson <rth@redhat.com>
861
862 * dwarf2out.c (dw_separate_line_info_ref): Remove.
863 (dw_separate_line_info_entry): Remove.
864 (enum dw_line_info_opcode): New.
865 (dw_line_info_entry): Use it.
866 (dw_line_info_table, dw_line_info_table_p): New.
867 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
868 (line_info_table, line_info_label_num): Remove.
869 (line_info_table_in_use): Remove.
870 (separate_line_info_table): Remove.
871 (separate_line_info_table_allocated): Remove.
872 (separate_line_info_table_in_use): Remove.
873 (LINE_INFO_TABLE_INCREMENT): Remove.
874 (line_info_label_num): New.
875 (cur_line_info_table): New.
876 (text_section_line_info, cold_text_section_line_info): New.
877 (separate_line_info): New.
878 (SEPARATE_LINE_CODE_LABEL): Remove.
879 (print_dwarf_line_table): Remove.
880 (debug_dwarf): Don't dump it.
881 (output_one_line_info_table): New.
882 (output_line_info): Use it.
883 (new_line_info_table): New.
884 (set_cur_line_info_table): New.
885 (dwarf2out_switch_text_section): Use it.
886 (dwarf2out_begin_function): Likewise.
887 (push_dw_line_info_entry): New.
888 (dwarf2out_source_line): Rewrite for new line info tables.
889 (dwarf2out_init): Remove dead initailizations.
890
891 2011-03-31 Joseph Myers <joseph@codesourcery.com>
892
893 * opts.h (cl_option): Add comments to fields. Add bit-fields for
894 various flags.
895 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
896 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
897 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
898 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
899 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
900 * opt-functions.awk (flag_init, switch_bit_fields): New.
901 (switch_flags): Don't handle flags moved to bit-fields. Don't
902 generate CL_MISSING_OK or CL_SAVE.
903 * optc-gen.awk: Update to generate bit-field output as well as
904 flags field.
905 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
906 bit-field instead of CL_REJECT_DRIVER flag.
907 * opts-common.c (generate_canonical_option,
908 decode_cmdline_option): Use bit-fields instead of CL_* flags.
909 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
910 instead of CL_REJECT_NEGATIVE flag.
911 * toplev.c (print_switch_values): Use cl_report bit-field instead
912 of CL_REPORT flag.
913
914 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
915
916 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
917 a zero minimum index only if it is redundant.
918
919 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
920
921 PR rtl-optimization/48381
922 * ira-color.c (assign_hard_reg): Use hard reg set intersection
923 instead of ira_class_hard_reg_index for calculating conflicting
924 hard registers.
925
926 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
927
928 * cprop.c: Clean up hash table building.
929 (reg_avail_info): Remove.
930 (oprs_available_p): Remove.
931 (record_last_reg_set_info): Remove.
932 (record_last_set_info): Remove.
933 (reg_available_p): New function.
934 (gcse_constant_p): Do not treat unfolded conditions as constants.
935 (make_set_regs_unavailable): New function.
936 (hash_scan_set): Simplify with new reg_available_p.
937 (compute_hash_table_work): Traverse insns stream only once.
938 Do not compute reg_avail_info. Traverse insns in reverse order.
939 Record implicit sets after recording explicit sets from the block.
940
941 2011-03-31 Michael Matz <matz@suse.de>
942
943 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
944
945 2011-03-31 Anatoly Sokolov <aesok@post.ru>
946
947 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
948 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
949 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
950 (h8300_mode_dependent_address_p): New function.
951 (h8300_get_index): Make static.
952
953 2011-03-31 Jeff Law <law@redhat.com>
954
955 * reload1.c (elimination_effects): Fix typo in recent change.
956
957 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
958 typo potentially leading to null pointer dereference.
959
960 * caller-save.c (new_saved_hard_reg): Eliminate return value.
961 (setup_save_areas): Corresponding changes to avoid useless
962 assignments.
963
964 * jump.c (reversed_comparison_code_parts): Avoid successive return
965 statements when REVERSE_CONDITION is defined.
966
967 * expr.c (expand_assignment): Avoid useless assignments.
968 (expand_expr_real_1): Likewise.
969 (expand_expr_real_2): Avoid useless statements.
970
971 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
972
973 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
974
975 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
976 statements.
977
978 * stmt.c (expand_expr_stmt): Avoid useless assignment.
979
980 2011-03-31 Joseph Myers <joseph@codesourcery.com>
981
982 PR target/47109
983 * doc/tm.texi.in (TARGET_VERSION): Remove.
984 * doc/tm.texi: Regenerate.
985 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
986 * collect2.c (main): Don't use TARGET_VERSION.
987 * mips-tdump.c (main): Don't use TARGET_VERSION.
988 * mips-tfile.c (main): Don't use TARGET_VERSION.
989 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
990 * config/rs6000/vxworksae.h: Remove.
991 * config/alpha/alpha.h (TARGET_VERSION): Remove.
992 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
993 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
994 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
995 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
996 * config/arm/arm.h (TARGET_VERSION): Remove.
997 * config/arm/coff.h (TARGET_VERSION): Remove.
998 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
999 * config/arm/elf.h (TARGET_VERSION): Remove.
1000 * config/arm/freebsd.h (TARGET_VERSION): Remove.
1001 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
1002 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
1003 * config/arm/pe.h (TARGET_VERSION): Remove.
1004 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
1005 * config/arm/semi.h (TARGET_VERSION): Remove.
1006 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
1007 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
1008 * config/arm/vxworks.h (TARGET_VERSION): Remove.
1009 * config/avr/avr.h (TARGET_VERSION): Remove.
1010 * config/bfin/bfin.h (TARGET_VERSION): Remove.
1011 * config/fr30/fr30.h (TARGET_VERSION): Remove.
1012 * config/frv/frv.h (TARGET_VERSION): Remove.
1013 * config/h8300/h8300.h (TARGET_VERSION): Remove.
1014 * config/i386/cygwin.h (TARGET_VERSION): Remove.
1015 * config/i386/darwin.h (TARGET_VERSION): Remove.
1016 * config/i386/darwin64.h (TARGET_VERSION): Remove.
1017 * config/i386/djgpp.h (TARGET_VERSION): Remove.
1018 * config/i386/freebsd.h (TARGET_VERSION): Remove.
1019 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
1020 * config/i386/gnu.h (TARGET_VERSION): Remove.
1021 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
1022 * config/i386/i386elf.h (TARGET_VERSION): Remove.
1023 * config/i386/linux.h (TARGET_VERSION): Remove.
1024 * config/i386/linux64.h (TARGET_VERSION): Remove.
1025 * config/i386/lynx.h (TARGET_VERSION): Remove.
1026 * config/i386/mingw32.h (TARGET_VERSION): Remove.
1027 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
1028 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
1029 * config/i386/netware.h (TARGET_VERSION): Remove.
1030 * config/i386/nto.h (TARGET_VERSION): Remove.
1031 * config/i386/openbsd.h (TARGET_VERSION): Remove.
1032 * config/i386/vxworks.h (TARGET_VERSION): Remove.
1033 * config/ia64/elf.h (TARGET_VERSION): Remove.
1034 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
1035 * config/ia64/hpux.h (TARGET_VERSION): Remove.
1036 * config/ia64/linux.h (TARGET_VERSION): Remove.
1037 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
1038 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
1039 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1040 * config/lm32/lm32.h (TARGET_VERSION): Remove.
1041 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
1042 * config/m32c/m32c.h (TARGET_VERSION): Remove.
1043 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
1044 * config/m32r/m32r.h (TARGET_VERSION): Remove.
1045 * config/m68k/linux.h (TARGET_VERSION): Remove.
1046 * config/m68k/m68k.h (TARGET_VERSION): Remove.
1047 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
1048 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
1049 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
1050 * config/mep/mep.h (TARGET_VERSION): Remove.
1051 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
1052 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1053 * config/mips/iris6.h (MACHINE_TYPE): Remove.
1054 * config/mips/linux.h (TARGET_VERSION): Remove.
1055 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
1056 * config/mips/vxworks.h (TARGET_VERSION): Remove.
1057 * config/mmix/mmix.h (TARGET_VERSION): Remove.
1058 * config/mn10300/linux.h (TARGET_VERSION): Remove.
1059 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
1060 * config/pa/pa.h (TARGET_VERSION): Remove.
1061 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
1062 * config/picochip/picochip.h (TARGET_VERSION): Remove.
1063 * config/rs6000/aix.h (TARGET_VERSION): Remove.
1064 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
1065 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
1066 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
1067 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
1068 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
1069 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
1070 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
1071 * config/rs6000/linux.h (TARGET_VERSION): Remove.
1072 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
1073 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
1074 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
1075 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
1076 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
1077 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
1078 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
1079 * config/s390/linux.h (TARGET_VERSION): Remove.
1080 * config/s390/s390.h (TARGET_VERSION): Remove.
1081 * config/s390/tpf.h (TARGET_VERSION): Remove.
1082 * config/score/score.h (TARGET_VERSION): Remove.
1083 * config/sh/linux.h (TARGET_VERSION): Remove.
1084 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
1085 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
1086 * config/sh/sh.h (TARGET_VERSION): Remove.
1087 * config/sh/sh64.h (TARGET_VERSION): Remove.
1088 * config/sh/superh.h (TARGET_VERSION): Remove.
1089 * config/sh/vxworks.h (TARGET_VERSION): Remove.
1090 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
1091 * config/sparc/linux.h (TARGET_VERSION): Remove.
1092 * config/sparc/linux64.h (TARGET_VERSION): Remove.
1093 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
1094 TARGET_NAME32, TARGET_NAME): Remove.
1095 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
1096 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
1097 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
1098 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
1099 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
1100 * config/spu/spu.h (TARGET_VERSION): Remove.
1101 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
1102 * config/v850/v850.h (TARGET_VERSION): Remove.
1103 * config/vax/linux.h (TARGET_VERSION): Remove.
1104 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
1105 * config/xtensa/elf.h (TARGET_VERSION): Remove.
1106 * config/xtensa/linux.h (TARGET_VERSION): Remove.
1107
1108 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1109
1110 PR target/48142
1111 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
1112 frame-related from frame-unrelated adjustments to the stack pointer.
1113
1114 2011-03-31 Jakub Jelinek <jakub@redhat.com>
1115
1116 * common.opt (fdebug-types-section): Move earlier.
1117 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
1118
1119 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
1120
1121 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
1122 var.
1123
1124 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
1125
1126 * tree.h (CASE_CHAIN): Define.
1127 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
1128 (gimple_redirect_edge_and_branch): Likewise.
1129
1130 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
1131
1132 PR middle-end/48367
1133 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
1134 calculation.
1135
1136 2011-03-30 Jeff Law <law@redhat.com>
1137
1138 * PR bootstrap/48371
1139 * reload1.c (reload): Fix botch in last change.
1140
1141 * reload.h (struct reload): Fix typo introduced in last change.
1142
1143 2011-03-30 Joseph Myers <joseph@codesourcery.com>
1144
1145 * config/arm/arm.opt (mhard-float, msoft-float): Mark
1146 Undocumented. Remove help text.
1147 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
1148 -mhard-float.
1149
1150 2011-03-30 Joseph Myers <joseph@codesourcery.com>
1151
1152 * doc/options.texi (NegativeAlias): Document.
1153 (Alias): Mention NegativeAlias.
1154 * opt-functions.awk: Handle NegativeAlias.
1155 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
1156 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
1157 * opts.h (CL_NEGATIVE_ALIAS): Define.
1158 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
1159 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
1160 OPT_mspe_.
1161 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
1162 Alias entries.
1163 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
1164 mno-spe and mno-isel instead of mspe=no and -misel=no.
1165
1166 2011-03-29 Mark Wielaard <mjw@redhat.com>
1167
1168 * common.opt (fdebug-types-section): New flag.
1169 * doc/invoke.texi: Document new -fno-debug-types-section flag.
1170 * dwarf2out.c (use_debug_types): New define.
1171 (struct die_struct): Mark die_id with GTY desc use_debug_types.
1172 (print_die): Guard output of type unit signatures using
1173 use_debug_types.
1174 (build_abbrev_table): Replace assert of dwarf_version >= 4
1175 with assert on use_debug_types.
1176 (size_of_die): Likewise.
1177 (unmark_dies): Likewise.
1178 (value_format): Decide AT_ref_external form on use_debug_types.
1179 (output_die): Replace dwarf_version version check guard with
1180 use_debug_types where appropriate.
1181 (modified_type_die): Likewise.
1182 (gen_reference_type_die): Likewise.
1183 (dwarf2out_start_source_file): Likewise.
1184 (dwarf2out_end_source_file): Likewise.
1185 (prune_unused_types_walk_attribs): Likewise.
1186 (dwarf2out_finish): Likewise.
1187
1188 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
1189
1190 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
1191
1192 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1193
1194 PR rtl-optimization/48332
1195 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
1196 mode of input operand N and modeN to its actual mode.
1197
1198 2011-03-30 Jeff Law <law@redhat.com>
1199
1200 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
1201 define accessor macro.
1202 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
1203 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
1204 (reg_equiv_init): Likewise.
1205 (reg_equivs_size): New variable.
1206 (reg_equiv_init_size): Remove.
1207 (allocate_initial_values): Move prototype to here from....
1208 * integrate.h (allocate_initial_values): Remove prototype.
1209 * integrate.c: Include reload.h.
1210 (allocate_initial_values): Corresponding changes.
1211 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
1212 (fix_reg_equiv_init, no_equiv): Corresponding changes.
1213 (update_equiv_regs): Corresponding changes.
1214 (ira): Corresponding changes.
1215 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
1216 (push_secondary_reload): Corresponding changes.
1217 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
1218 (make_memloc, find_reloads_address): Corresponding changes.
1219 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
1220 (find_reloads_address_1): Corresponding changes.
1221 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
1222 (refers_to_regno_for_reload_p): Corresponding changes.
1223 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
1224 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
1225 * reload1.c: Include ggc.h.
1226 (grow_reg_equivs): New function.
1227 (replace_pseudos_in, reload): Corresponding changes.
1228 (calculate_needs_all_insns, alter_regs): Corresponding changes.
1229 (eliminate_regs_1, elimination_effects): Corresponding changes.
1230 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
1231 (delete_output_reload): Likewise.
1232 * caller-save.c (mark_referenced_regs): Corresponding changes.
1233 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
1234 * frv/predicates.md (frv_load_operand): Corresponding changes.
1235 * microblaze/microblaze.c (double_memory_operand): Corresponding
1236 changes.
1237 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
1238 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
1239 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
1240 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
1241 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
1242 changes.
1243 * pa/pa.c (emit_move_sequence): Corresponding changes.
1244 * vax/vax.c (nonindexed_address_p): Corresponding changes.
1245
1246 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1247
1248 PR target/47551
1249 * config/arm/arm.c (coproc_secondary_reload_class): Handle
1250 structure modes. Don't check neon_vector_mem_operand for
1251 vector or structure modes.
1252
1253 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1254 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1255
1256 PR target/43590
1257 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
1258 operand 1 and reshuffle the operands to match.
1259 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
1260
1261 2011-03-30 Christian Schüler <cschueler@gmx.de>
1262
1263 PR driver/48208
1264 * config/c.opt (F): Added 'Driver' to -F option.
1265
1266 PR driver/48260
1267 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
1268 handler function.
1269 * config/darwin.opt: Added '-arch' option.
1270
1271 2011-03-30 Nick Clifton <nickc@redhat.com>
1272
1273 * config/rx/rx.md: Add peepholes and patterns to combine
1274 extending loads and simple arithmetic instructions.
1275 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
1276 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
1277 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
1278 modes to use pre-decrement and post-increment addressing.
1279 (rx_is_restricted_memory_address): Add range checking of REG+INT
1280 addresses.
1281 (rx_print_operand): Add support for %Q. Fix handling of %Q.
1282 (rx_memory_move_cost): Adjust cost of stores.
1283 (rx_adjust_insn_length): New function.
1284
1285 2011-03-30 Jakub Jelinek <jakub@redhat.com>
1286
1287 PR c/48305
1288 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
1289 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
1290 matching arg00/arg01 types.
1291
1292 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
1293
1294 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
1295 last_location to UNKNOWN_LOCATION.
1296
1297 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
1298
1299 PR target/48349
1300 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
1301 FLOAT_SSE_REGS.
1302
1303 2011-03-30 Joseph Myers <joseph@codesourcery.com>
1304 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1305
1306 PR bootstrap/48337
1307 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
1308 Init(PROCESSOR_V7).
1309 (sparc_cpu): Likewise.
1310 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
1311 PROCESSOR_V7.
1312
1313 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1314
1315 PR target/48336
1316 PR middle-end/48342
1317 PR rtl-optimization/48345
1318 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
1319 hard regs for given mode from profitable regs when doing secondary
1320 allocation.
1321
1322 2011-03-29 Jeff Law <law@redhat.com>
1323
1324 PR bootstrap/48327
1325 * tree-ssa-threadupdate.c (struct redirection_data): Remove
1326 do_not_duplicate field.
1327 (lookup_redirection_data): Corresponding changes.
1328 (create_duplicates): Always create a template block.
1329 (redirect_edges): Remove code which reused the original block
1330 when it was going to become unreachable code.
1331 (thread_block): Don't set do_not_duplicate field.
1332
1333 2011-03-29 Joseph Myers <joseph@codesourcery.com>
1334
1335 * lto-opts.c (register_user_option_p, lto_register_user_option):
1336 Make type argument unsigned.
1337 * lto-streamer.h (lto_register_user_option): Make type argument
1338 unsigned.
1339 * opth-gen.awk: Make CL_* macros unsigned.
1340 * opts-common.c (find_opt): Make lang_mask argument unsigned.
1341 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1342 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
1343 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
1344 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
1345 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
1346 (find_opt): Make lang_mask argument unsigned.
1347
1348 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1349
1350 PR rtl-optimization/48331
1351 PR rtl-optimization/48334
1352 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
1353 for any used algorithm.
1354
1355 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1356
1357 * ira-conflicts.c (build_object_conflicts): Add unused attribute
1358 to parent_max.
1359
1360 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
1361
1362 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
1363 (alpha_option_override): Don't set alpha_sr_alias_set.
1364 (emit_frame_store_1): Use gen_frame_mem rather than calling
1365 set_mem_alias_set.
1366 (alpha_expand_epilogue): Ditto.
1367
1368 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
1369
1370 PR tree-optimization/48290
1371 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
1372 vectorization, check that relevant phis in the basic block after
1373 the inner loop are really inner loop's exit phis.
1374
1375 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
1376
1377 PR debug/48190
1378 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
1379 (cached_dw_loc_list_def): New structure.
1380 (cached_dw_loc_list): New typedef.
1381 (cached_dw_loc_list_table): New variable.
1382 (cached_dw_loc_list_table_hash): New function.
1383 (cached_dw_loc_list_table_eq): Likewise.
1384 (add_location_or_const_value_attribute): Take a bool cache_p.
1385 Cache the list when the parameter is true.
1386 (gen_formal_parameter_die): Update caller.
1387 (gen_variable_die): Likewise.
1388 (dwarf2out_finish): Likewise.
1389 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
1390 while generating debug info for the decl.
1391 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
1392 (dwarf2out_init): Initialize cached_dw_loc_list_table.
1393 (resolve_addr): Cache the result of resolving a chain of
1394 location lists.
1395
1396 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
1397
1398 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
1399 conflict object hard regset nodes have intersecting hard reg sets.
1400
1401 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
1402 after regstat_init_n_sets_and_refs.
1403
1404 * ira.c: Add more comments at the top.
1405 (setup_stack_reg_pressure_class, setup_pressure_classes):
1406 Add comments how we compute the register pressure classes.
1407 (setup_allocno_and_important_classes): Add more comments.
1408 (setup_class_translate_array, reorder_important_classes)
1409 (setup_reg_class_relations): Add comments.
1410
1411 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
1412 start of the file.
1413
1414 * ira-color.c: Add 2011 to the Copyright line.
1415 (assign_hard_reg): Add more comments.
1416 (improve_allocation): Ditto.
1417
1418 * ira-costs.c: Add 2011 to the Copyright line.
1419 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
1420 comments.
1421 (setup_regno_cost_classes_by_mode): Ditto.
1422
1423 Initial patches from ira-improv branch:
1424
1425 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1426
1427 * ira-build.c: (ira_create_object): Remove initialization of
1428 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
1429 (ira_create_allocno): Remove initialization of
1430 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
1431 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
1432 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1433 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
1434 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
1435 Initialize ALLOCNO_ADD_DATA.
1436 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
1437 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
1438 ALLOCNO_REG.
1439 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
1440 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
1441
1442 * ira.c (ira_reallocate): Remove.
1443 (setup_pressure_classes): Call
1444 ira_init_register_move_cost_if_necessary. Use
1445 ira_register_move_cost instead of ira_get_register_move_cost.
1446 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
1447 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
1448
1449 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
1450 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1451 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
1452 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
1453 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
1454 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
1455 Fix formatting.
1456 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1457 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1458 (struct allocno_color_data): New.
1459 (allocno_color_data_t): New typedef.
1460 (allocno_color_data): New definition.
1461 (ALLOCNO_COLOR_DATA): New macro.
1462 (struct object_color_data): New.
1463 (object_color_data_t): New typedef.
1464 (object_color_data): New definition.
1465 (OBJECT_COLOR_DATA): New macro.
1466 (update_copy_costs, calculate_allocno_spill_cost): Call
1467 ira_init_register_move_cost_if_necessary. Use
1468 ira_register_move_cost instead of ira_get_register_move_cost.
1469 (move_spill_restore, update_curr_costs): Ditto.
1470 (allocno_spill_priority): Make it inline.
1471 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1472 (struct coalesce_data, coalesce_data_t): New.
1473 (allocno_coalesce_data): New definition.
1474 (ALLOCNO_COALESCE_DATA): New macro.
1475 (merge_allocnos, coalesced_allocno_conflict_p): Use
1476 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
1477 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
1478 (coalesce_allocnos): Ditto.
1479 (setup_coalesced_allocno_costs_and_nums): Ditto.
1480 (collect_spilled_coalesced_allocnos): Ditto.
1481 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
1482 (setup_slot_coalesced_allocno_live_ranges): Ditto.
1483 (coalesce_spill_slots): Ditto.
1484 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
1485 free allocno_coalesce_data.
1486
1487 * ira-conflicts.c: Fix formatting.
1488 (process_regs_for_copy): Call
1489 ira_init_register_move_cost_if_necessary. Use
1490 ira_register_move_cost instead of ira_get_register_move_cost.
1491 (build_object_conflicts): Optimize.
1492
1493 * ira-costs.c (record_reg_classes): Optimize. Call
1494 ira_init_register_move_cost_if_necessary. Use
1495 ira_register_move_cost, ira_may_move_in_cost, and
1496 ira_may_move_out_cost instead of ira_get_register_move_cost and
1497 ira_get_may_move_cost.
1498 (record_address_regs): Ditto.
1499 (scan_one_insn): Optimize.
1500 (find_costs_and_classes): Optimize.
1501 (process_bb_node_for_hard_reg_moves): Call
1502 ira_init_register_move_cost_if_necessary. Use
1503 ira_register_move_cost instead of ira_get_register_move_cost.
1504
1505 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
1506 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
1507 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
1508 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
1509 definitions.
1510 (ira_initiate_emit_data, ira_finish_emit_data)
1511 (create_new_allocno): New functions.
1512 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1513 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
1514 Use ira_register_move_cost instead of ira_get_register_move_cost.
1515
1516 * ira-int.h: Fix some comments.
1517 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
1518 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1519 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
1520 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
1521 add_data.
1522 (struct ira_allocno): Make mode and aclass a bitfield. Move other
1523 bitfield after mode. Make hard_regno a short int. Make
1524 hard_regno short. Remove first_coalesced_allocno and
1525 next_coalesced_allocno. Move mem_optimized_dest_p,
1526 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
1527 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
1528 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
1529 temp, colorable_p. Add new member add_data.
1530 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
1531 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
1532 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
1533 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
1534 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
1535 (ALLOCNO_ADD_DATA): New macro.
1536 (ira_emit_data_t): New typedef.
1537 (struct ira_emit_data): New. Move mem_optimized_dest_p,
1538 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
1539 from struct ira_allocno.
1540 (ALLOCNO_EMIT_DATA): New macro.
1541 (ira_allocno_emit_data, allocno_emit_reg): New.
1542 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
1543 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1544 (OBJECT_ADD_DATA): New macro.
1545 (ira_reallocate): Remove.
1546 (ira_initiate_emit_data, ira_finish_emit_data): New.
1547 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
1548 (ira_init_register_move_cost_if_necessary): New.
1549 (ira_object_conflict_iter_next): Merge into
1550 ira_object_conflict_iter_cond.
1551 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1552
1553 * ira-live.c: (process_single_reg_class_operands): Call
1554 ira_init_register_move_cost_if_necessary. Use
1555 ira_register_move_cost instead of ira_get_register_move_cost.
1556
1557 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1558
1559 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
1560
1561 * ira-costs.c: Fix formatting.
1562 (cost_classes, cost_classes_num): Remove.
1563 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
1564 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
1565 (cost_classes_del, cost_classes_htab): New.
1566 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
1567 (initiate_regno_cost_classes, setup_cost_classes): New.
1568 (setup_regno_cost_classes_by_aclass): New.
1569 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1570 (record_reg_classes): Use regno_cost_classes instead of
1571 cost_classes. Move checking opposite operand up.
1572 (record_address_regs): Use regno_cost_classes
1573 instead of cost_classes.
1574 (scan_one_insn): Ditto. Use always general register.
1575 (print_allocno_costs): Use regno_cost_classes instead of
1576 cost_classes.
1577 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
1578 (find_costs_and_classes): Set up cost classes for each registers.
1579 Use also their mode for this. Use regno_cost_classes instead of
1580 cost_classes.
1581 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
1582 cost_classes.
1583 (free_ira_costs, ira_init_costs): Don't use cost_classes.
1584 (ira_costs, ira_set_pseudo_classes): Call
1585 initiate_regno_cost_classes and finish_regno_cost_classes.
1586
1587 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
1588
1589 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
1590
1591 * target.def (ira_cover_classes): Remove.
1592
1593 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1594
1595 * doc/tm.texi.in: Ditto.
1596
1597 * ira-conflicts.c: Remove mentioning cover classes from the file.
1598 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
1599 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1600
1601 * targhooks.c (default_ira_cover_classes): Remove.
1602
1603 * targhooks.h (default_ira_cover_classes): Ditto.
1604
1605 * haifa-sched.c: Remove mentioning cover classes from the file.
1606 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1607 ira_pressure_classes and ira_pressure_classes_num instead of
1608 ira_reg_class_cover_size and ira_reg_class_cover. Use
1609 sched_regno_pressure_class instead of sched_regno_cover_class.
1610 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
1611 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1612
1613 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
1614 classes from the file.
1615 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
1616 (struct object_hard_regs, struct object_hard_regs_node): New.
1617 (struct ira_object): New members profitable_hard_regs,
1618 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
1619 (struct ira_allocno): Rename cover_class to aclass. Rename
1620 cover_class_cost and updated_cover_class_cost to class_cost and
1621 updated_class_cost. Remove splay_removed_p and
1622 left_conflict_size. Add new members colorable_p.
1623 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
1624 (ALLOCNO_COLORABLE_P): New macro.
1625 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
1626 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
1627 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
1628 (OBJECT_...): Rename parameter C to O.
1629 (OBJECT_PROFITABLE_HARD_REGS): New macro.
1630 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
1631 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
1632 (struct target_ira_int): New members x_ira_max_memory_move_cost,
1633 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
1634 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
1635 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
1636 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
1637 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
1638 x_ira_reg_class_subunion.
1639 (ira_max_memory_move_cost, ira_max_register_move_cost)
1640 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
1641 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
1642 (ira_important_class_nums, ira_reg_class_superunion): New macros.
1643 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1644 (ira_reg_class_union): Rename to ira_reg_class_subunion.
1645 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1646 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1647 (ira_tune_allocno_costs_and_cover_classes): Rename to
1648 ira_tune_allocno_costs.
1649 (ira_debug_hard_regs_forest): New.
1650 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
1651 (ira_object_conflict_iter_next): Fix comments.
1652 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1653 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
1654 cover_class to aclass.
1655 (ira_allocate_and_accumulate_costs): Ditto.
1656 (ira_allocate_and_set_or_copy_costs): Ditto.
1657
1658 * opts.c (decode_options): Remove ira_cover_class check.
1659
1660 * ira-color.c: Remove mentioning cover classes from the file. Use
1661 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
1662 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
1663 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1664 (splay-tree.h): Remove include.
1665 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
1666 before copy_freq_compare_func.
1667 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
1668 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
1669 New definitions.
1670 (hard_regs_roots, hard_regs_node_vec): Ditto.
1671 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
1672 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
1673 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
1674 (create_new_object_hard_regs_node): Ditto.
1675 (add_new_object_hard_regs_node_to_forest): Ditto.
1676 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1677 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
1678 Ditto.
1679 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
1680 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
1681 (remove_unused_object_hard_regs_nodes): Ditto.
1682 (enumerate_object_hard_regs_nodes): Ditto.
1683 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
1684 (object_hard_regs_subnode_t): Ditto.
1685 (struct object_hard_regs_subnode): Ditto.
1686 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
1687 (setup_object_hard_regs_subnode_index): Ditto.
1688 (get_object_hard_regs_subnodes_num): Ditto.
1689 (form_object_hard_regs_nodes_forest): Ditto.
1690 (finish_object_hard_regs_nodes_tree): Ditto.
1691 (finish_object_hard_regs_nodes_forest): Ditto.
1692 (allocnos_have_intersected_live_ranges_p): Rename to
1693 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1694 (pseudos_have_intersected_live_ranges_p): Rename to
1695 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1696 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
1697 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
1698 (update_copy_costs): Remove assert. Skip cost update if the hard
1699 reg does not belong the class.
1700 (assign_hard_reg): Process only profitable hard regs.
1701 (uncolorable_allocnos_num): Make it scalar.
1702 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1703 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
1704 and ira_reg_class_max_nregs.
1705 (bucket_allocno_compare_func): Check frequency first.
1706 (sort_bucket): Add compare function as a parameter.
1707 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
1708 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
1709 (push_allocno_to_stack): Rewrite for checking new allocno
1710 colorability.
1711 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1712 (push_only_colorable): Pass new parameter to sort_bucket.
1713 (push_allocno_to_spill): Remove.
1714 (allocno_spill_priority_compare): Make it inline and rewrite.
1715 (splay_tree_allocate, splay_tree_free): Remove.
1716 (allocno_spill_sort_compare): New function.
1717 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
1718 build and use splay tree. Choose first allocno in uncolorable
1719 allocno bucket to spill. Remove setting spill cost.
1720 (all_conflicting_hard_regs): Remove.
1721 (setup_allocno_available_regs_num): Check only profitable hard
1722 regs. Print info about hard regs nodes.
1723 (setup_allocno_left_conflicts_size): Remove.
1724 (put_allocno_into_bucket): Don't call
1725 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1726 (improve_allocation): New.
1727 (color_allocnos): Call setup_profitable_hard_regs,
1728 form_object_hard_regs_nodes_forest, improve_allocation,
1729 finish_object_hard_regs_nodes_forest. Setup spill cost.
1730 (print_loop_title): Use pressure classes.
1731 (color_allocnso): Ditto.
1732 (do_coloring): Remove allocation and freeing splay_tree_node_pool
1733 and allocnos_for_spilling.
1734 (ira_sort_regnos_for_alter_reg): Don't setup members
1735 {first,next}_coalesced_allocno.
1736 (color): Remove allocating and freeing removed_splay_allocno_vec.
1737 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
1738 prohibited_class_mode_regs.
1739
1740 * ira-lives.c: Remove mentioning cover classes from the file. Fix
1741 formatting.
1742 (update_allocno_pressure_excess_length): Use pressure classes.
1743 (inc_register_pressure, dec_register_pressure): Check for pressure
1744 class.
1745 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
1746 pressure class. Use ira_reg_class_nregs instead of
1747 ira_reg_class_max_nregs.
1748 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
1749 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
1750 (single_reg_class): Use ira_reg_class_nregs instead of
1751 ira_reg_class_max_nregs.
1752 (process_bb_node_lives): Use pressure classes.
1753
1754 * ira-emit.c: Remove mentioning cover classes from the file. Use
1755 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
1756 (change_loop): Use pressure classes.
1757 (modify_move_list): Call ira_set_allocno_class instead of
1758 ira_set_allocno_cover_class.
1759
1760 * ira-build.c: Remove mentioning cover classes from the file. Use
1761 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
1762 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
1763 ALLOCNO_UPDATED_CLASS_COST instead of
1764 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1765 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
1766 (ira_create_allocno): Remove initialization of
1767 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
1768 ALLOCNO_COLORABLE_P.
1769 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1770 Update conflict regs for the objects.
1771 (create_cap_allocno): Remove assert. Don't propagate
1772 ALLOCNO_AVAILABLE_REGS_NUM.
1773 (ira_free_allocno_costs): New function.
1774 (finish_allocno): Change a part of code into call of
1775 ira_free_allocno_costs.
1776 (low_pressure_loop_node_p): Use pressure classes.
1777 (object_range_compare_func): Don't compare classes.
1778 (setup_min_max_conflict_allocno_ids): Ditto.
1779
1780 * loop-invariant.c: Remove mentioning cover classes from the file.
1781 Use ira_pressure_classes and ira_pressure_classes_num instead of
1782 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
1783 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
1784 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1785 Use reg_allocno_class instead of reg_cover_class.
1786 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
1787 STACK_REG_COVER_CLASS.
1788 (get_regno_cover_class): Rename to get_regno_pressure_class.
1789 (move_loop_invariants): Initialize and finalize regstat.
1790
1791 * ira.c: Remove mentioning cover classes from the file. Add
1792 comments about coloring without cover classes. Use ALLOCNO_CLASS
1793 instead of ALLOCNO_COVER_CLASS. Fix formatting.
1794 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
1795 setup_class_subset_and_memory_move_costs.
1796 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
1797 (setup_cover_and_important_classes): Rename to
1798 setup_allocno_and_important_classes.
1799 (setup_class_translate_array): New.
1800 (setup_class_translate): Call it for allocno and pressure classes.
1801 (cover_class_order): Rename to allocno_class_order.
1802 (comp_reg_classes_func): Use ira_allocno_class_translate instead
1803 of ira_class_translate.
1804 (reorder_important_classes): Set up ira_important_class_nums.
1805 (setup_reg_class_relations): Set up ira_reg_class_superunion.
1806 (print_class_cover): Rename to print_classes. Add parameter.
1807 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1808 Print pressure classes too.
1809 (find_reg_class_closure): Rename to find_reg_classes. Don't call
1810 setup_reg_subclasses.
1811 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1812 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1813 (setup_prohibited_class_mode_regs): Use
1814 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1815 (clarify_prohibited_class_mode_regs): New function.
1816 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
1817 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
1818 (ira_init_once): Initialize them.
1819 (free_register_move_costs): Process them.
1820 (ira_init): Move calls of find_reg_classes and
1821 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
1822 Call clarify_prohibited_class_mode_regs.
1823 (ira_no_alloc_reg): Remove.
1824 (too_high_register_pressure_p): Use pressure classes.
1825
1826 * sched-deps.c: Remove mentioning cover classes from the file.
1827 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1828 ira_pressure_classes and ira_pressure_classes_num instead of
1829 ira_reg_class_cover_size and ira_reg_class_cover.
1830 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
1831 sched_regno_pressure_class instead of sched_regno_cover_class.
1832 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
1833 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1834
1835 * ira.h: Add 2010 to Copyright.
1836 (ira_no_alloc_reg): Remove external.
1837 (struct target_ira): Rename x_ira_hard_regno_cover_class,
1838 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
1839 x_ira_class_translate to x_ira_hard_regno_allocno_class,
1840 x_ira_allocno_classes_num, x_ira_allocno_classes, and
1841 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
1842 x_ira_pressure_classes, x_ira_pressure_class_translate, and
1843 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
1844 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
1845 x_ira_no_alloc_regs.
1846 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1847 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
1848 ira_allocno_classes_num and ira_allocno_classes.
1849 (ira_class_translate): Rename to ira_allocno_class_translate.
1850 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
1851 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
1852 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1853 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
1854 (ira_no_alloc_regs): New.
1855
1856 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
1857 classes from the file. Use ALLOCNO_CLASS instead of
1858 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
1859 ALLOCNO_COVER_CLASS_COST.
1860 (regno_cover_class): Rename to regno_aclass.
1861 (record_reg_classes): Use ira_reg_class_subunion instead of
1862 ira_reg_class_union.
1863 (record_address_regs): Check overflow.
1864 (scan_one_insn): Ditto.
1865 (print_allocno_costs): Print total mem cost fore regional allocation.
1866 (print_pseudo_costs): Use REG_N_REFS.
1867 (find_costs_and_classes): Use classes intersected with them on the
1868 1st pass. Check overflow. Use ira_reg_class_subunion instead of
1869 ira_reg_class_union. Use ira_allocno_class_translate and
1870 regno_aclass instead of ira_class_translate and regno_cover_class.
1871 Modify code for finding regno_aclass. Setup preferred classes for
1872 the next pass.
1873 (setup_allocno_cover_class_and_costs): Rename to
1874 setup_allocno_class_and_costs. Use regno_aclass instead of
1875 regno_cover_class. Use ira_set_allocno_class instead of
1876 ira_set_allocno_cover_class.
1877 (init_costs, finish_costs): Use regno_aclass instead of
1878 regno_cover_class.
1879 (ira_costs): Use setup_allocno_class_and_costs instead of
1880 setup_allocno_cover_class_and_costs.
1881 (ira_tune_allocno_costs_and_cover_classes): Rename to
1882 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
1883 by processing objects. Use ira_reg_class_max_nregs instead of
1884 ira_reg_class_nregs.
1885
1886 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
1887
1888 * sched-int.h: Remove mentioning cover classes from the file.
1889 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
1890
1891 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
1892 classes from the file.
1893 (struct reg_pref): Rename coverclass into allocnoclass.
1894 (reg_cover_class): Rename to reg_allocno_class.
1895
1896 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1897
1898 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
1899
1900 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
1901
1902 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
1903
1904 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
1905
1906 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
1907
1908 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
1909
1910 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
1911
1912 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
1913
1914 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
1915
1916 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
1917 (i386_ira_cover_classes): Ditto.
1918
1919 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
1920
1921 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
1922
1923 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
1924
1925 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
1926
1927 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
1928
1929 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
1930
1931 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
1932 (mips_ira_cover_classes): Ditto.
1933
1934 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
1935
1936 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
1937
1938 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
1939
1940 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
1941
1942 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
1943
1944 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
1945 (IRA_COVER_CLASSES_VSX): Ditto.
1946
1947 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
1948 (rs6000_ira_cover_classes): Ditto.
1949
1950 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
1951
1952 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
1953
1954 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
1955
1956 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
1957
1958 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
1959
1960 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
1961
1962 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
1963
1964 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
1965
1966 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
1967
1968 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
1969
1970 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1971
1972 PR debug/48253
1973 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
1974 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
1975 dw_fde_unlikely_section_end_label, cold_in_std_section,
1976 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
1977 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
1978 fields.
1979 (output_fde): Use dw_fde_second_{begin,end} if second is
1980 true, otherwise dw_fde_{begin,end}.
1981 (output_call_frame_info): Test dw_fde_second_begin != NULL
1982 instead of dw_fde_switched_sections.
1983 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
1984 fields, initialize new fields. Initialize in_std_section
1985 unconditionally from the first partition.
1986 (dwarf2out_end_epilogue): Don't override dw_fde_end when
1987 dw_fde_second_begin is non-NULL.
1988 (dwarf2out_switch_text_section): Stop initializing removed
1989 dw_fde_struct fields, initialize new fields, initialize
1990 also dw_fde_end here. Set dw_fde_switch_cfi even when
1991 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
1992 (struct var_loc_list_def): Add last_before_switch field.
1993 (arange_table, arange_table_allocated, arange_table_in_use,
1994 ARANGE_TABLE_INCREMENT, add_arange): Removed.
1995 (size_of_aranges): Count !in_std_section and !second_in_std_section
1996 hunks in fdes, instead of looking at arange_table_in_use.
1997 (output_aranges): Add aranges_length argument, don't call
1998 size_of_aranges here. Instead of using aranges_table*
1999 emit ranges for fdes when !in_std_section resp.
2000 !second_in_std_section.
2001 (dw_loc_list): Break ranges crossing section switch.
2002 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
2003 use dw_fde_second_end instead of dw_fde_end as end of last range.
2004 (gen_subprogram_die): Don't call add_arange. Use
2005 dw_fde_{begin,end} for first partition and if switched
2006 section dw_fde_second_{begin,end} for the second.
2007 (var_location_switch_text_section_1,
2008 var_location_switch_text_section): New functions.
2009 (dwarf2out_begin_function): Initialize cold_text_section even
2010 when function_section () isn't text_section.
2011 (prune_unused_types): Don't walk arange_table.
2012 (dwarf2out_finish): Don't needlessly test
2013 flag_reorder_blocks_and_partition when testing cold_text_section_used.
2014 If info_section_emitted, call size_of_aranges and if it indicates
2015 non-empty .debug_aranges, call output_aranges with the computed
2016 size. Stop using removed dw_fde_struct fields, use
2017 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
2018 for second.
2019
2020 PR debug/48203
2021 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
2022 create ENTRY_VALUE if incoming or address of incoming's MEM
2023 is a hard REG.
2024 * dwarf2out.c (mem_loc_descriptor): Don't emit
2025 DW_OP_GNU_entry_value of DW_OP_fbreg.
2026 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
2027 on ENTRY_VALUE is able to find the canonical parameter VALUE.
2028 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
2029 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
2030 ENTRY_VALUE_EXPs.
2031 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
2032 is a REG_P or MEM_P with REG_P address, compute hash directly
2033 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
2034 (preserve_only_constants): Don't clear VALUES forwaring
2035 ENTRY_VALUE to some other VALUE.
2036
2037 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
2038
2039 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
2040 instead of GEN_INT.
2041
2042 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
2043
2044 * cfgexpand.c (expand_gimple_cond): Always set the source location and
2045 block before expanding the statement.
2046 (expand_gimple_stmt_1): Likewise. Set them here...
2047 (expand_gimple_stmt): ...and not here. Tidy.
2048 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
2049 unknown.
2050
2051 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
2052
2053 * Makefile.in: New rule for cprop.o.
2054 * gcse.c: Move constant/copy propagation to cprop.c.
2055 (compute_local_properties): Only handle expression tables.
2056 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
2057 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
2058 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
2059 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
2060 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
2061 compute_cprop_data, find_used_regs, try_replace_reg,
2062 find_avail_set, cprop_jump, constprop_register, cprop_insn,
2063 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
2064 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
2065 find_bypass_set, reg_killed_on_edge, bypass_block,
2066 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
2067 execute_rtl_cprop, pass_rtl_cprop): Move to...
2068 * cprop.c: ...here. New file, constant/copy propagation for RTL
2069 moved from gcse.c to here with minor cleanups in duplicated code.
2070
2071 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
2072
2073 * config/i386/i386.c (flag_opts): Fix a typo in
2074 -mavx256-split-unaligned-store.
2075
2076 2011-03-28 Anatoly Sokolov <aesok@post.ru>
2077
2078 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2079 LIBCALL_VALUE): Remove macros.
2080 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2081 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2082 (h8300_function_value, h8300_libcall_value,
2083 h8300_function_value_regno_p): New functions.
2084
2085 2011-03-28 Anatoly Sokolov <aesok@post.ru>
2086
2087 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
2088
2089 2011-03-28 Jeff Law <law@redhat.com>
2090
2091 * tree-ssa-threadupdate.c (redirect_edges): Call
2092 create_edge_and_update_destination_phis as needed.
2093 (create_edge_and_update_destination_phis): Accept new BB argument.
2094 All callers updated.
2095 (thread_block): Do not update the profile when threading around
2096 intermediate blocks.
2097 (thread_single_edge): Likewise.
2098 (determine_bb_domination_status): If BB is not a successor of the
2099 loop header, return NONDOMINATING.
2100 (register_jump_thread): Note when we register a jump thread around
2101 an intermediate block.
2102 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
2103 (thread_across_edge): Use it.
2104
2105 2011-03-28 Tristan Gingold <gingold@adacore.com>
2106
2107 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
2108 when for_return is 2.
2109
2110 2011-03-28 Jeff Law <law@redhat.com>
2111
2112 * var-tracking.c (canonicalize_values_mark): Delete unused
2113 lhs assignment.
2114 (canonicalize_values_star, set_variable_part): Likewise.
2115 (clobber_variable_part, delete_variable_part): Likewise.
2116
2117 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
2118
2119 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
2120
2121 2011-03-28 Martin Jambor <mjambor@suse.cz>
2122
2123 * tree-inline.c (expand_call_inline): Do not check that destination
2124 node is analyzed.
2125 (optimize_inline_calls): Assert that destination node is analyzed.
2126 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
2127 not call tree_lowering_passes.
2128 * cgraph.h (cgraph_analyze_function): Declare.
2129 * cgraphunit.c (cgraph_analyze_function): Make public.
2130
2131 2011-03-28 Joseph Myers <joseph@codesourcery.com>
2132
2133 * config/sparc/sparc-opts.h: New.
2134 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
2135 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
2136 (sparc_option_override): Store processor_type enumeration rather
2137 than string in cpu_default. Remove name and enumeration from
2138 cpu_table. Directly default -mcpu then default -mtune from -mcpu
2139 without using sparc_select. Use target_flags_explicit instead of
2140 fpu_option_set.
2141 * config/sparc/sparc.h (enum processor_type): Move to
2142 sparc-opts.h.
2143 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
2144 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
2145 HeaderInclude entry.
2146 (mcpu=, mtune=): Use Var and Enum.
2147 (sparc_processor_type): New Enum and EnumValue entries.
2148
2149 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2150 Iain Sandoe <iains@gcc.gnu.org>
2151
2152 PR target/48245
2153 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
2154
2155 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
2156
2157 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
2158 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
2159 Insert new statements at it in lieu of STMT.
2160 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
2161 * tree-vect-stmts.c (vectorizable_store): Likewise.
2162 (vectorizable_load): Likewise.
2163
2164 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
2165
2166 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
2167 (divtf3): Ditto.
2168 (multf3): Ditto.
2169 (subtf3): Ditto.
2170
2171 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
2172
2173 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
2174 unaligned 256bit load/store.
2175 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
2176 (*avx_movdqu<avxmodesuffix>): Likewise.
2177
2178 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2179
2180 PR target/48288
2181 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
2182 * config/pa/pa.md (iordi3): Use new predicate in expander.
2183 (iorsi3): Likewise.
2184
2185 2011-03-27 Anatoly Sokolov <aesok@post.ru>
2186
2187 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
2188 FUNCTION_VALUE_REGNO_P): Remove macros.
2189 * config/mips/mips-protos.h (mips_function_value): Remove.
2190 * config/mips/mips.c (mips_function_value): Rename to...
2191 (mips_function_value_1): ... this. Make static. Handle receiving
2192 the function type in 'fn_decl_or_type' argument.
2193 (mips_function_value, mips_libcall_value,
2194 mips_function_value_regno_p): New function.
2195 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2196 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2197
2198 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
2199
2200 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
2201 and -mavx256-split-unaligned-store.
2202 (ix86_option_override_internal): Split 32-byte AVX unaligned
2203 load/store by default.
2204 (ix86_avx256_split_vector_move_misalign): New.
2205 (ix86_expand_vector_move_misalign): Use it.
2206
2207 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
2208 -mavx256-split-unaligned-store.
2209
2210 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
2211 256bit load/store. Generate unaligned store on misaligned memory
2212 operand.
2213 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
2214 256bit load/store.
2215 (*avx_movdqu<avxmodesuffix>): Likewise.
2216
2217 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
2218 -mavx256-split-unaligned-store.
2219
2220 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
2221
2222 PR target/38598
2223 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
2224 Update commentary.
2225
2226 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
2227
2228 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
2229 opno arguments with an expand_operand. Use create_input_operand.
2230 (mips_prepare_builtin_target): Delete.
2231 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
2232 functions.
2233 (mips_expand_builtin_direct): Use create_output_operand and
2234 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
2235 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
2236 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
2237
2238 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
2239
2240 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
2241 function.
2242 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
2243
2244 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
2245
2246 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
2247 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
2248 basic blocks and call commit_edge_insertions directly.
2249 (fixup_abnormal_edges): Move from here to...
2250 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
2251 on the edges and return whether some have actually been inserted.
2252 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
2253 compensation code.
2254
2255 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
2256
2257 PR rtl-optimization/48144
2258 * sel-sched-ir.c (merge_history_vect): Factor out from ...
2259 (merge_expr_data): ... here.
2260 (av_set_intersect): Rename to av_set_code_motion_filter.
2261 Update all callers. Call merge_history_vect when an expression
2262 is found in both sets.
2263 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
2264
2265 2011-03-26 Alan Modra <amodra@gmail.com>
2266
2267 * config/rs6000/predicates.md (word_offset_memref_op): Handle
2268 cmodel medium addresses.
2269 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
2270 64-bit gpr loads and stores.
2271 (rs6000_secondary_reload_ppc64): New function.
2272 * config/rs6000/rs6000-protos.h: Declare it.
2273 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
2274
2275 2011-03-26 Alan Modra <amodra@gmail.com>
2276
2277 PR target/47487
2278 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
2279 GNU Go in traceback table.
2280
2281 2011-03-25 Richard Henderson <rth@redhat.com>
2282
2283 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
2284 if there are exactly 6 operands.
2285 (set_storage_via_setmem): Similarly.
2286
2287 2011-03-25 Kai Tietz <ktietz@redhat.com>
2288
2289 * collect2.c (write_c_file_stat): Handle backslash
2290 as right-hand directory separator.
2291 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
2292 checking just for slash.
2293 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
2294 instead of checking for trailing slash.
2295 * gcc.c (record_temp_file): Use filename_cmp instead
2296 of strcmp.
2297 (do_spec_1): Likewise.
2298 (replace_outfile_spec_function): Likewise.
2299 (is_directory): Use filename_ncmp instead of strncmp.
2300 (print_multilib_info): Likewise.
2301 * gcov.c (find_source): Use filename_cmp instead
2302 instead of strcmp.
2303 (make_gcov_file_name): Fix order of slash/backslash
2304 checks.
2305 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
2306 (add_standard_paths): Likewise.
2307 * mips-tfile.c (saber_stop): Handle backslash.
2308 * prefix.c (update_path): Use filename_ncmp instead of
2309 strncmp.
2310 * profile.c (output_location): Use filename_cmp instead
2311 of strcmp.
2312 * read-md.c (handle_toplevel_file): Handle backslash.
2313 * tlink.c (frob_extension): Likewise.
2314 * tree-cfg.c (same_line_p): Use filename_cmp instead of
2315 strcmp.
2316 * tree-dump.c (dequeue_and_dump): Handle backslash.
2317 * tree.c (get_file_function_name): Likewise.
2318 * gengtype.c (read_input_list): Likewise.
2319 (get_file_realbasename): Likewise.
2320 (get_output_file_with_visibility): Use filename_cmp
2321 instead of strcmp.
2322
2323 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
2324
2325 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
2326 case to VFPv1.
2327
2328 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
2329
2330 * fold-const.c (expr_location_or): New function.
2331 (fold_truth_not_expr): Call it.
2332
2333 2011-03-25 Jeff Law <law@redhat.com>
2334
2335 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
2336 va_end.
2337 * c-family/c-common.c (def_fn_type): Likewise.
2338 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
2339 * emit-rtl.c (gen_rtvec): Likewise.
2340 * lto/lto-lang.c (def_fn_type): Likewise.
2341
2342 2011-03-25 Richard Guenther <rguenther@suse.de>
2343
2344 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
2345 also generate copies.
2346 (fini_copy_prop): Handle constant values properly.
2347
2348 2011-03-25 Jakub Jelinek <jakub@redhat.com>
2349
2350 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
2351 mode size instead of bitsize with DWARF2_ADDR_SIZE.
2352 (hash_loc_operands, compare_loc_operands): Handle
2353 DW_OP_GNU_entry_value.
2354
2355 2011-03-25 Kai Tietz <ktietz@redhat.com>
2356
2357 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
2358 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
2359 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
2360 comment and use macro TARGET_64BIT_MS_ABI instead.
2361 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
2362 and change default behavior for 32-bit MS_ABI.
2363 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
2364 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
2365 32-bit, too.
2366 (ix86_cfun_abi): Likewise.
2367 (ix86_maybe_switch_abi): Adjust comment.
2368 (init_cumulative_args): Check for bit-ness in MS_ABI case.
2369 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
2370 instead of checking for SYSV_ABI.
2371 (ix86_nsaved_sseregs): Likewise.
2372 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
2373 to 16 bytes.
2374 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
2375 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
2376 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
2377 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
2378 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
2379
2380 2011-03-25 Richard Guenther <rguenther@suse.de>
2381
2382 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
2383 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2384 (verify_gimple): Remove.
2385 * tree-cfg.c (verify_gimple_call): Merge verification
2386 from verify_stmts.
2387 (verify_gimple_phi): Merge verification from verify_stmts.
2388 (verify_gimple_label): New function.
2389 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
2390 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2391 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
2392 (verify_stmts): Rename to verify_gimple_in_cfg.
2393 (verify_gimple_in_cfg): New function.
2394 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
2395 * tree-ssa.c (verify_ssa): Likewise.
2396 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
2397
2398 2011-03-25 Richard Guenther <rguenther@suse.de>
2399
2400 * passes.c (init_optimization_passes): Add FRE pass after
2401 early SRA.
2402
2403 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
2404 Andrew Stubbs <ams@codesourcery.com>
2405
2406 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
2407 for Cortex-A8.
2408 (arm_movdi_vfp_cortexa8): New pattern.
2409 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
2410 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
2411 instructions when tuning for Cortex-A8. Set attribute "arch".
2412 * config/arm/arm.md: Move include arm-tune.md up a bit.
2413 (define_attr "arch"): Add "onlya8" and "nota8" values.
2414 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
2415
2416 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
2417
2418 PR bootstrap/48282
2419 Revert:
2420 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2421
2422 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2423 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2424 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2425 * passes.c (init_optimization_passes): Move
2426 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2427
2428 2011-03-25 Kai Tietz <ktietz@redhat.com>
2429
2430 * c-typeck.c (comptypes_internal): Replace target
2431 hook call of comp_type_attributes by version in tree.c file.
2432 * gimple.c (gimple_types_compatible_p_1): Likewise.
2433 * tree-ssa.c (useless_type_conversion_p): Likewise.
2434 * tree.c (build_type_attribute_qual_variant): Likewise.
2435 (attribute_value_equal): New static helper function.
2436 (comp_type_attributes): New function.
2437 (merge_attributes): Use attribute_value_equal for comparison.
2438 (attribute_list_contained): Likewise.
2439 * tree.h (comp_type_attributes): New prototype.
2440
2441 2011-03-25 Richard Guenther <rguenther@suse.de>
2442
2443 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
2444 of complex types at -O0.
2445 (verify_gimple_assign_binary): Likewise.
2446 (verify_gimple_assign_ternary): Likewise.
2447
2448 2011-03-24 Mark Wielaard <mjw@redhat.com>
2449
2450 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
2451 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2452
2453 2011-03-24 Mark Wielaard <mjw@redhat.com>
2454
2455 PR debug/48041
2456 * dwarf2out.c (output_abbrev_section): Only write table when
2457 abbrev_die_table_in_use > 1.
2458
2459 2011-02-24 Richard Henderson <rth@redhat.com>
2460
2461 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
2462 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
2463 (alpha_expand_unaligned_load_words): Use extql.
2464 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
2465 (emit_insxl): Handle all modes for consistency.
2466
2467 2011-02-24 Richard Henderson <rth@redhat.com>
2468
2469 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
2470 (alpha_expand_unaligned_load): Likewise.
2471 (alpha_expand_unaligned_store): Likewise.
2472 (alpha_expand_unaligned_load_words): Likewise.
2473 (alpha_expand_unaligned_store_words): Likewise.
2474 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
2475 (alpha_split_lock_test_and_set_12): Likewise.
2476 (print_operand, alpha_fold_builtin_extxx): Likewise.
2477 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
2478 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
2479 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
2480 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
2481 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
2482 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
2483 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
2484 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
2485 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
2486 (extwl, extll, extql): Similarly.
2487 (inswh, inslh, insqh): Similarly.
2488 (mskbl, mskwl, mskll, mskql): Similarly.
2489 (mskwh, msklh, mskqh): Similarly.
2490
2491 2011-02-24 Richard Henderson <rth@redhat.com>
2492
2493 * config/alpha/alpha.md (attribute isa): Add er, ner.
2494 (attribute enabled): Handle them.
2495 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
2496
2497 2011-02-24 Richard Henderson <rth@redhat.com>
2498
2499 * config/alpha/alpha.md (attribute isa): Add vms.
2500 (attribute enabled): Handle it.
2501 (*movsf): Merge *movsf_{nofix,fix,nofp}.
2502 (*movdf): Merge *movdf_{nofix,fix,nofp}.
2503 (*movtf): Rename from *movtf_internal for consistency.
2504 (*movsi): Merge with *movsi_nt_vms.
2505 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
2506 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
2507 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
2508 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
2509
2510 2011-02-24 Richard Henderson <rth@redhat.com>
2511
2512 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
2513 (extendqisi2, extendhisi2): Likewise.
2514 (extendqidi2): Simplify BWX/non-BWX expansions.
2515 (extendhidi2): Similarly.
2516
2517 2011-02-24 Richard Henderson <rth@redhat.com>
2518
2519 * config/alpha/alpha.md (attribute isa): New.
2520 (attribute enabled): New.
2521 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
2522 (zero_extendqisi2, zero_extendqidi2): Similarly.
2523 (zero_extendhisi2, zero_extendhidi2): Similarly.
2524 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
2525
2526 2011-02-24 Richard Henderson <rth@redhat.com>
2527
2528 * config/alpha/predicates.md (input_operand): Revert last change;
2529 update comment to mention 32-bit VMS rather than Windows.
2530
2531 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2532
2533 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2534 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2535 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2536 * passes.c (init_optimization_passes): Move
2537 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2538
2539 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2540
2541 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
2542
2543 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2544
2545 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
2546 correctly.
2547
2548 2011-03-24 Jakub Jelinek <jakub@redhat.com>
2549
2550 PR debug/48204
2551 * simplify-rtx.c (simplify_const_unary_operation): Call
2552 real_convert when changing mode class with FLOAT_EXTEND.
2553
2554 2011-03-24 Nick Clifton <nickc@redhat.com>
2555
2556 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
2557 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2558 * config/rx/rx.c (rx_option_override): Set align_jumps,
2559 align_loops and align_labels if not set by the user.
2560 (rx_align_for_label): New function.
2561 (rx_max_skip_for_label): New function.
2562 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2563 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2564 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2565 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2566 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
2567
2568 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2569
2570 PR rtl-optimization/48263
2571 * optabs.c (expand_binop_directly): Reinstate convert_modes code
2572 and original commutative_p handling. Use maybe_gen_insn.
2573
2574 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2575
2576 * reload.c (find_reloads_subreg_address): Add address_reloaded
2577 parameter and return true there if the full address has been
2578 reloaded.
2579 (find_reloads_toplev): Pass address_reloaded flag.
2580 (find_reloads_address_1): Don't use address_reloaded parameter.
2581
2582 2011-03-24 Jeff Law <law@redhat.com>
2583
2584 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
2585 unused variable "ann".
2586 (remove_unused_locals): Likewise.
2587
2588 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
2589 statement.
2590
2591 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
2592 after it is freed.
2593
2594 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2595
2596 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2597 for invalid symbolic addresses.
2598 (s390_secondary_reload): Don't use s390_check_symref_alignment for
2599 larl operands.
2600
2601 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2602
2603 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
2604 the argument in calls to fold_truth_not_expr.
2605
2606 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2607
2608 * tree.c (record_node_allocation_statistics): New function.
2609 (make_node_stat, copy_node_stat, build_string): Call it.
2610 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
2611 (build1_stat, build_omp_clause): Likewise.
2612
2613 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2614
2615 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
2616 last commit.
2617
2618 2011-03-24 Richard Guenther <rguenther@suse.de>
2619
2620 PR tree-optimization/48271
2621 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
2622 blocks that still exist.
2623
2624 2011-03-24 Richard Guenther <rguenther@suse.de>
2625
2626 PR tree-optimization/48270
2627 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
2628 not free datarefs before ddrs.
2629
2630 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2631
2632 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
2633 from the address built for a reference with variable offset.
2634
2635 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2636
2637 PR target/48237
2638 * config/i386/i386.md (*movdf_internal_rex64): Do not split
2639 alternatives that can be handled with movq or movabsq insn.
2640 (*movdf_internal): Disable for !TARGET_64BIT.
2641 (*movdf_internal_nointeger): Ditto.
2642 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
2643
2644 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2645
2646 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2647 (FUNCTION_ARG_ADVANCE): Likewise.
2648 * tm.texi.in: Change references to them to hook references.
2649 * tm.texi: Regenerate.
2650 * targhooks.c (default_function_arg): Eliminate check for target macro.
2651 (default_function_incoming_arg): Likewise.
2652 (default_function_arg_advance): Likewise.
2653 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
2654 (function_arg_advance): Likewise.
2655 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2656
2657 2011-03-24 Richard Guenther <rguenther@suse.de>
2658
2659 PR middle-end/48269
2660 * tree-object-size.c (addr_object_size): Do not double-account
2661 for MEM_REF offsets.
2662
2663 2011-03-24 Diego Novillo <dnovillo@google.com>
2664
2665 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
2666 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
2667 (lto_input_data_block): Move from lto-opts.c. Make extern.
2668 Update all users.
2669 (lto_input_string): Rename from input_string. Make extern.
2670 Update all users.
2671 * lto-streamer-out.c (lto_output_string_with_length): Rename from
2672 output_string_with_length.
2673 Output 0 to indicate a non-NULL string. Update all callers to
2674 not emit 0.
2675 (lto_output_string): Rename from output_string. Make extern.
2676 Update all users.
2677 (lto_output_decl_state_streams): Make extern.
2678 (lto_output_decl_state_refs): Make extern.
2679 * lto-streamer.h (lto_input_string): Declare.
2680 (lto_input_data_block): Declare.
2681 (lto_output_string): Declare.
2682 (lto_output_string_with_length): Declare.
2683 (lto_output_decl_state_streams): Declare.
2684 (lto_output_decl_state_refs): Declare.
2685
2686 2011-03-24 Richard Guenther <rguenther@suse.de>
2687
2688 PR tree-optimization/46562
2689 * tree.c (build_invariant_address): New function.
2690 * tree.h (build_invariant_address): Declare.
2691 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
2692 a renamed function moved ...
2693 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
2694 Take valueization callback parameter.
2695 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
2696 * gimple-fold.h: New file.
2697 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
2698 (ccp_fold, fold_const_aggregate_ref,
2699 fold_ctor_reference, fold_nonarray_ctor_reference,
2700 fold_array_ctor_reference, fold_string_cst_ctor_reference,
2701 get_base_constructor): Move ...
2702 * gimple-fold.c: ... here.
2703 (gimple_fold_stmt_to_constant_1): New function
2704 split out from ccp_fold. Take a valueization callback parameter.
2705 Valueize all operands.
2706 (gimple_fold_stmt_to_constant): New wrapper function.
2707 (fold_const_aggregate_ref_1): New function split out from
2708 fold_const_aggregate_ref. Take a valueization callback parameter.
2709 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
2710 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
2711 invariant POINTER_PLUS_EXPRs to invariant form.
2712 (vn_valueize): New function.
2713 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
2714 * tree-vrp.c (vrp_valueize): New function.
2715 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
2716 to fold statements to constants.
2717 * tree-ssa-pre.c (eliminate): Properly guard propagation of
2718 function declarations.
2719 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
2720 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
2721
2722 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2723
2724 * config/h8300/predicates.md (jump_address_operand): Fix register
2725 mode check.
2726
2727 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
2728
2729 * doc/invoke.texi (max-stores-to-sink): Document.
2730 * params.h (MAX_STORES_TO_SINK): Define.
2731 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
2732 if either vectorization or if-conversion is disabled.
2733 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
2734 tree-vect-data-refs.c vect_equal_offsets.
2735 (dr_equal_offsets_p): New function.
2736 (find_data_references_in_bb): Remove static.
2737 * tree-data-ref.h (find_data_references_in_bb): Declare.
2738 (dr_equal_offsets_p): Likewise.
2739 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
2740 (vect_drs_dependent_in_basic_block): Update calls to
2741 vect_equal_offsets.
2742 (vect_check_interleaving): Likewise.
2743 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
2744 (cond_if_else_store_replacement): Rename to...
2745 (cond_if_else_store_replacement_1): ... this. Change arguments and
2746 documentation.
2747 (cond_if_else_store_replacement): New function.
2748 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
2749 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
2750
2751 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
2752
2753 PR target/46934
2754 * config/arm/arm.md (casesi): Use the gen_int_mode() function
2755 to subtract lower bound instead of GEN_INT().
2756
2757 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
2758
2759 PR other/48179
2760 PR other/48221
2761 PR other/48234
2762 * doc/extend.texi (Alignment): Move section to match order in TOC.
2763 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
2764 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
2765
2766 2011-03-23 Jeff Law <law@redhat.com>
2767
2768 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
2769 before removing the edge.
2770
2771 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
2772 it may have been freed by redirect_branch_edge or
2773 redirect_edge_succ_nodup.
2774
2775 2011-03-23 Richard Guenther <rguenther@suse.de>
2776
2777 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
2778 (check_va_list_escapes): Likewise.
2779 (check_all_va_list_escapes): Likewise.
2780
2781 2011-03-23 Richard Guenther <rguenther@suse.de>
2782
2783 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
2784 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
2785 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
2786 (alias.o): Likewise.
2787 (ipa-type-escape.o): Remove.
2788 (ipa-struct-reorg.o): Likewise.
2789 (GTFILES): Remove ipa-struct-reorg.c.
2790 * alias.c: Do not include ipa-type-escape.h.
2791 * tree-ssa-alias.c: Likewise.
2792 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
2793 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
2794 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
2795 and ipa-type-escape passes.
2796 * tree-pass.h (pass_ipa_type_escape): Remove.
2797 (pass_ipa_struct_reorg): Likewise.
2798 * ipa-struct-reorg.h: Remove.
2799 * ipa-struct-reorg.c: Likewise.
2800 * ipa-type-escape.h: Likewise.
2801 * ipa-type-escape.c: Likewise.
2802 * doc/invoke.texi (-fipa-struct-reorg): Remove.
2803 (--param struct-reorg-cold-struct-ratio): Likewise.
2804 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2805 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2806 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
2807
2808 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2809
2810 * config/s390/2084.md: Enable all insn reservations also for z9_ec
2811 cpu attribute value.
2812 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
2813 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
2814 * config/s390/s390.c (processor_flags_table): New constant array.
2815 (s390_handle_arch_option): Remove.
2816 (s390_handle_option): Remove s390_handle_arch_option invocations
2817 and OPT_mwarn_framesize_ handling.
2818 (s390_option_override): Remove s390_handle_arch_option invocation.
2819 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
2820 warnings.
2821 * config/s390/s390.md (cpu attribute): Add z9_ec value.
2822 * config/s390/s390.opt (s390_tune, s390_arch)
2823 (march=): Replace s390_arch_option enum and values with
2824 processor_type. Set variable name to s390_arch. Set
2825 initialization value.
2826 (mtune=): Replace s390_arch_option with processor_type. Set
2827 variable name to s390_tune. Set initialization value.
2828
2829 2011-03-23 Julian Brown <julian@codesourcery.com>
2830
2831 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
2832 accesses which are not naturally aligned.
2833
2834 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2835
2836 PR target/47553
2837 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
2838
2839 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2840
2841 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
2842 parameter from "int" to "enum insn_code".
2843 (expand_operand_type): New enum.
2844 (expand_operand): New structure.
2845 (create_expand_operand): New function.
2846 (create_fixed_operand, create_output_operand): Likewise
2847 (create_input_operand, create_convert_operand_to): Likewise.
2848 (create_convert_operand_from, create_address_operand): Likewise.
2849 (create_integer_operand): Likewise.
2850 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
2851 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2852 (expand_insn, expand_jump_insn): Likewise.
2853 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
2854 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
2855 (expand_movstr, expand_builtin___clear_cache): Likewise.
2856 (expand_builtin_lock_release): Likewise.
2857 * explow.c (allocate_dynamic_stack_space): Likewise.
2858 (probe_stack_range): Likewise. Allow check_stack to FAIL,
2859 and use the default handling in that case.
2860 * expmed.c (check_predicate_volatile_ok): Delete.
2861 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
2862 (emit_cstore): Likewise.
2863 * expr.c (emit_block_move_via_movmem): Likewise.
2864 (set_storage_via_setmem, expand_assignment): Likewise.
2865 (emit_storent_insn, try_casesi): Likewise.
2866 (emit_single_push_insn): Likewise. Allow the expansion to fail.
2867 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
2868 (expand_vec_shift_expr, expand_binop_directly): Likewise.
2869 (expand_twoval_unop, expand_twoval_binop): Likewise.
2870 (expand_unop_direct, emit_indirect_jump): Likewise.
2871 (emit_conditional_move, vector_compare_rtx): Likewise.
2872 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
2873 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
2874 (expand_sync_lock_test_and_set): Likewise.
2875 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
2876 (emit_unop_insn): Likewise.
2877 (expand_copysign_absneg): Change icode to an insn_code.
2878 (create_convert_operand_from_type): New function.
2879 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
2880 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2881 (expand_insn, expand_jump_insn): Likewise.
2882 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
2883 than const_int_operand for operand 2.
2884
2885 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2886
2887 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
2888 if possible.
2889
2890 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2891
2892 * emit-rtl.c (emit_pattern_before_noloc): New function.
2893 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
2894 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
2895 (emit_pattern_after_noloc): New function.
2896 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
2897 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
2898
2899 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2900
2901 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
2902 (__ffsDI2): Likewise.
2903
2904 2011-03-22 Richard Henderson <rth@redhat.com>
2905
2906 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
2907 of !TARGET_ABI_OPEN_VMS.
2908 (alpha_trampoline_init, alpha_start_function): Likewise.
2909 (alpha_expand_epilogue, alpha_file_start): Likewise.
2910 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
2911 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
2912 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
2913 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
2914 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
2915
2916 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2917
2918 * config/s390/s390-opts.h: New.
2919 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
2920 s390_arch_flags, s390_warn_framesize, s390_stack_size,
2921 s390_stack_guard): Remove.
2922 (s390_handle_arch_option): Return void. Take enum
2923 s390_arch_option value instead of string and searching array.
2924 (s390_handle_option): Don't assert that global structures are in
2925 use. Access variables via opts pointer. Use error_at. Don't use
2926 sscanf for -mstack-guard= or -mstack-size=. Update call to
2927 s390_handle_arch_option.
2928 (s390_option_override): Update call to s390_handle_arch_option.
2929 (s390_emit_prologue): Use %d format for s390_stack_size in
2930 diagnostic. Use %wd for HOST_WIDE_INT.
2931 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
2932 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
2933 * config/s390/s390.opt (config/s390/s390-opts.h): New
2934 HeaderInclude entry.
2935 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
2936 s390_arch_flags, s390_warn_framesize): New Variable entries.
2937 (s390_arch_option): New Enum and EnumValue entries.
2938 (march=): Use Enum instead of Var.
2939 (mstack-guard=, mstack-size=): Use UInteger and Var.
2940 (mtune=): Use Enum.
2941
2942 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2943
2944 * config/score/score.c (score_handle_option): Don't assert that
2945 global structures are in use. Access target_flags via opts
2946 pointer. Use value of -march= option to determine target_flags
2947 settings.
2948 * config/score/score.opt (march=): Use Enum.
2949 (score_arch): New Enum and EnumValue entries.
2950
2951 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2952
2953 * config/mep/mep.c (option_mtiny_specified): Remove.
2954 (mep_option_override): Move register handling for -mivc2 from
2955 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
2956 instead of option_mtiny_specified.
2957 (mep_handle_option): Access target_flags via opts pointer. Don't
2958 assert that global structures are in use. Defer part of -mivc2
2959 handling and move it to mep_option_override.
2960 * config/mep/mep.opt (IVC2): New Mask entry.
2961 (mivc2): Use Var and Defer instead of Mask.
2962
2963 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2964
2965 * config/v850/v850-opts.h: New.
2966 * config/v850/v850.c (small_memory): Replace with
2967 small_memory_physical_max array. Make that array static const.
2968 (v850_handle_memory_option): Take integer value of argument. Take
2969 gcc_options pointer, option text and location. Return void.
2970 Update for changes to small memory structures.
2971 (v850_handle_option): Access target_flags via opts pointer. Don't
2972 assert that global structures are in use. Update calls to
2973 v850_handle_memory_option.
2974 (v850_encode_data_area): Update references to small memory settings.
2975 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
2976 (enum small_memory_type): Move to v850-opts.h.
2977 * config/v850/v850.opt (config/v850/v850-opts.h): New
2978 HeaderInclude entry.
2979 (small_memory_max): New Variable entry.
2980 (msda): Replace by pair of options msda= and msda-. Use UInteger.
2981 (mtda, mzda): Likewise.
2982
2983 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2984
2985 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
2986 pointer. Don't assert that global structures are in use.
2987
2988 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2989
2990 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
2991 via opts pointer. Don't assert that global structures are in use.
2992
2993 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2994
2995 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
2996 (munix=93): Use Var.
2997 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
2998 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
2999 * config/pa/pa-opts.h: New.
3000 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
3001 (pa_handle_option): Don't assert that global structures are in
3002 use. Access target_flags via opts pointer. Don't handle
3003 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
3004 OPT_munix_98 here.
3005 (pa_option_override): Handle deferred OPT_mfixed_range_.
3006
3007 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3008
3009 * config/mn10300/mn10300-opts.h: New.
3010 * config/mn10300/mn10300.c (mn10300_processor,
3011 mn10300_tune_string): Remove.
3012 (mn10300_handle_option): Don't assert that global structures are
3013 in use. Access mn10300_processor via opts pointer. Don't handle
3014 OPT_mtune_ here.
3015 * config/mn10300/mn10300.h (enum processor_type): Move to
3016 mn10300-opts.h.
3017 (mn10300_processor): Remove.
3018 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
3019 HeaderInclude entry.
3020 (mn10300_processor): New Variable entry.
3021 (mtune=): Use Var.
3022
3023 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3024
3025 * config/microblaze/microblaze.c: Don't include opts.h.
3026 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
3027 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
3028 (mno-clearbss): Use Var and Warn.
3029
3030 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3031
3032 * config/m32r/m32r-opts.h: New.
3033 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
3034 (m32r_handle_option): Don't assert that global structures are in
3035 use. Access target_flags and m32r_cache_flush_func via opts
3036 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
3037 OPT_mno_flush_trap here.
3038 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
3039 include of m32r-opts.h.
3040 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
3041 HeaderInclude entry.
3042 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
3043 (mmodel=): Use Enum and Var.
3044 (m32r_model): New Enum and EnumValue entries.
3045 (mno-flush-trap): Use Var.
3046 (msdata=): Use Enum and Var.
3047 (m32r_sdata): New Enum and EnumValue entries.
3048
3049 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3050
3051 * config/m32c/m32c.c: Don't include opts.h.
3052 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
3053 m32c_handle_option): Remove.
3054 (m32c_option_override): Check global_options_set.x_target_memregs
3055 instead of target_memregs_set.
3056 * config/m32c/m32c.h (target_memregs): Remove.
3057 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
3058 variable.
3059
3060 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3061
3062 * config/iq2000/iq2000-opts.h: New.
3063 * config/iq2000/iq2000.c: Don't include opts.h.
3064 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
3065 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
3066 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
3067 HeaderInclude entry.
3068 (iq2000_tune): New Variable entry.
3069 (march=): Add comment. Use Enum.
3070 (iq2000_arch): New Enum and EnumValue entries.
3071 (mcpu=): Use Enum and Var.
3072 (iq2000_tune): New Enum and EnumValue entries.
3073
3074 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3075
3076 * config/ia64/ia64-opts.h: New.
3077 * config/ia64/ia64.c (ia64_tune): Remove.
3078 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
3079 here. Use error_at.
3080 (ia64_option_override): Handle deferred OPT_mfixed_range_.
3081 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
3082 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
3083 HeaderInclude entry.
3084 (ia64_tune): New Variable entry.
3085 (mfixed-range=): Use Defer and Var.
3086 (mtune=): Use Enum and Var.
3087 (ia64_tune): New Enum and EnumValue entries.
3088
3089 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3090
3091 * config/frv/frv-opts.h: New.
3092 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
3093 frv-opts.h.
3094 (frv_cpu_type): Remove.
3095 * config/frv/frv.c: Don't include opts.h.
3096 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
3097 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
3098 (frv_cpu_type): New Variable entry.
3099 (frv_cpu): New Enum and EnumValue entries.
3100
3101 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3102
3103 * config/cris/cris.c (cris_handle_option): Access target_flags via
3104 opts pointer. Don't assert that global structures are in use.
3105 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
3106 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
3107
3108 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3109
3110 * config/bfin/bfin-opts.h: New.
3111 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
3112 bfin_si_revision, bfin_workarounds): Remove.
3113 (bfin_cpus): Make static const.
3114 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
3115 not bfin_lib_id_given.
3116 (bfin_handle_option): Don't set bfin_lib_id_given. Access
3117 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
3118 pointer. Use error_at. Don't assert that global structures are in use.
3119 * config/bfin/bfin.h: Include bfin-opts.h.
3120 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
3121 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
3122 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
3123 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
3124 entries.
3125
3126 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3127
3128 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
3129 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
3130 or -msoft-float here.
3131 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
3132 -msoft-float and -mhard-float.
3133 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
3134 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
3135 msoft-float.
3136 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
3137 -msoft-float.
3138 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
3139 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
3140 not mhard-float.
3141 (LIBGCC_SPEC): Don't handle -msoft-float.
3142 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
3143 -mhard-float.
3144 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
3145 msoft-float.
3146 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
3147 -mfloat-abi=*, not -msoft-float and -mhard-float.
3148 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
3149 -msoft-float.
3150 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
3151 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
3152 mhard-float and msoft-float.
3153 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
3154 mfloat-abi=soft in comments, not mhard-float and msoft-float.
3155 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3156 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
3157 mhard-float.
3158 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
3159 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
3160 msoft-float.
3161 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
3162 not mhard-float.
3163 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
3164 not msoft-float.
3165
3166 2011-03-22 Richard Henderson <rth@redhat.com>
3167
3168 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
3169 TARGET_ABI_WINDOWS_NT.
3170 (alpha_output_function_end_prologue): Likewise.
3171 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
3172 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3173 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
3174 (trap, *movsi_nt_vms): Likewise.
3175 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
3176 (*tablejump_osf_nt_internal): Remove.
3177 * config/alpha/predicates.md (input_operand): Only test Pmode.
3178
3179 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3180
3181 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
3182 via opts pointer. Use error_at. Don't assert that global
3183 structures are in use.
3184
3185 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3186
3187 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
3188 (ix86_handle_option): Access ix86_isa_flags and
3189 ix86_isa_flags_explicit via opts pointer. Don't assert that
3190 global structures are in use.
3191 (ix86_function_specific_save, ix86_function_specific_restore):
3192 Update ix86_isa_flags_explicit field name.
3193 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
3194 (ix86_isa_flags_explicit): Rename TargetSave entry to
3195 x_ix86_isa_flags_explicit.
3196
3197 2011-03-22 Richard Henderson <rth@redhat.com>
3198
3199 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
3200 (alpha_option_override, direct_return): Likewise.
3201 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
3202 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
3203 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
3204 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
3205 (alpha_expand_epilogue, alpha_end_function): Likewise.
3206 (alpha_init_libfuncs): Likewise.
3207 (struct machine_function): Remove unicosmk members.
3208 (print_operand) ['t']: Remove.
3209 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
3210 unicosmk_output_module_name, unicosmk_output_common,
3211 current_section_align, unicosmk_output_text_section_asm_op,
3212 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
3213 unicosmk_section_type_flags, unicosmk_unique_section,
3214 unicosmk_asm_named_section, unicosmk_insert_attributes,
3215 unicosmk_output_align, unicosmk_defer_case_vector,
3216 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
3217 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
3218 unicosmk_output_ssib, unicosmk_add_call_info_word,
3219 unicosmk_extern_head, unicosmk_output_default_externs,
3220 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
3221 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
3222 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
3223 * config/alpha/alpha-protos.h: Update.
3224 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
3225 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
3226 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
3227 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
3228 (*mulsi_se, mulvsi3): Likewise.
3229 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
3230 (*divmodsi_internal, call, call_value, realign): Likewise.
3231 (moddi3, umoddi3): Likewise; remove duplicate expander.
3232 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
3233 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
3234 (*movdi_nofix): Remove r/U alternative.
3235 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
3236 * config/alpha/constraints.md ("U"): Remove.
3237 * config/alpha/predicates.md (call_operand"): Don't test
3238 TARGET_ABI_UNICOSMK.
3239
3240 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3241
3242 * target.def (handle_option): Take gcc_options and
3243 cl_decoded_option pointers and location_t.
3244 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
3245 * doc/tm.texi: Regenerate.
3246 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
3247 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
3248 * lto-opts.c (lto_reissue_options): Generate option structure for
3249 targetm.handle_option call.
3250 * opts.c (target_handle_option): Update call to
3251 targetm.handle_option. Remove assertions about values now passed
3252 down to hook.
3253 * targhooks.c (default_target_handle_option): New.
3254 * targhooks.h (default_target_handle_option): Declare.
3255 * config/alpha/alpha.c: Include opts.h.
3256 (alpha_handle_option): Update to new hook interface.
3257 * config/arm/arm.c: Include opts.h.
3258 (arm_handle_option): Update to new hook interface.
3259 * config/arm/t-arm (arm.o): Update dependencies.
3260 * config/bfin/bfin.c: Include opts.h.
3261 (bfin_handle_option): Update to new hook interface.
3262 * config/cris/cris.c: Include opts.h.
3263 (cris_handle_option): Update to new hook interface.
3264 * config/frv/frv.c: Include opts.h.
3265 (frv_handle_option): Update to new hook interface.
3266 * config/i386/i386.c: Include opts.h.
3267 (ix86_handle_option): Update to new hook interface.
3268 (ix86_valid_target_attribute_inner_p): Generate option structure
3269 for call to ix86_handle_option.
3270 * config/i386/t-i386 (i386.o): Update dependencies.
3271 * config/ia64/ia64.c: Include opts.h.
3272 (ia64_handle_option): Update to new hook interface.
3273 * config/ia64/t-ia64 (ia64.o): Update dependencies.
3274 * config/iq2000/iq2000.c: Include opts.h.
3275 (iq2000_handle_option): Update to new hook interface.
3276 * config/m32c/m32c.c: Include opts.h.
3277 (m32c_handle_option): Update to new hook interface.
3278 * config/m32r/m32r.c: Include opts.h.
3279 (m32r_handle_option): Update to new hook interface.
3280 * config/m68k/m68k.c: Include opts.h.
3281 (m68k_handle_option): Update to new hook interface.
3282 * config/mep/mep.c: Include opts.h.
3283 (mep_handle_option): Update to new hook interface.
3284 * config/microblaze/microblaze.c: Include opts.h.
3285 (microblaze_handle_option): Update to new hook interface.
3286 * config/mips/mips.c: Include opts.h.
3287 (mips_handle_option): Update to new hook interface.
3288 * config/mn10300/mn10300.c: Include opts.h.
3289 (mn10300_handle_option): Update to new hook interface.
3290 * config/pa/pa.c: Include opts.h.
3291 (pa_handle_option): Update to new hook interface.
3292 * config/pdp11/pdp11.c: Include opts.h.
3293 (pdp11_handle_option): Update to new hook interface.
3294 * config/rs6000/rs6000.c: Include opts.h.
3295 (rs6000_handle_option): Update to new hook interface.
3296 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
3297 * config/rx/rx.c: Include opts.h.
3298 (rx_handle_option): Update to new hook interface.
3299 * config/s390/s390.c: Include opts.h.
3300 (s390_handle_option): Update to new hook interface.
3301 * config/score/score.c: Include opts.h.
3302 (score_handle_option): Update to new hook interface.
3303 * config/sh/sh.c: Include opts.h.
3304 (sh_handle_option): Update to new hook interface.
3305 * config/sparc/sparc.c: Include opts.h.
3306 (sparc_handle_option): Update to new hook interface.
3307 * config/v850/v850.c: Include opts.h.
3308 (v850_handle_option): Update to new hook interface.
3309
3310 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3311
3312 * gcc.c (driver_unknown_option_callback): Only permit and save
3313 unknown -Wno- options.
3314 (driver_wrong_lang_callback): Save options directly instead of via
3315 driver_unknown_option_callback.
3316
3317 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3318
3319 * combine.c (simplify_set): Try harder to find the best CC mode when
3320 simplifying a nested COMPARE on the RHS.
3321
3322 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3323
3324 * config/alpha/gnu.h: Remove.
3325 * config/arc: Remove directory.
3326 * config/arm/netbsd.h: Remove.
3327 * config/arm/t-pe: Remove.
3328 * config/crx: Remove directory.
3329 * config/i386/netbsd.h: Remove.
3330 * config/m68hc11: Remove directory.
3331 * config/m68k/uclinux-oldabi.h: Remove.
3332 * config/mcore/mcore-pe.h: Remove.
3333 * config/mcore/t-mcore-pe: Remove.
3334 * config/netbsd-aout.h: Remove.
3335 * config/rs6000/gnu.h: Remove.
3336 * config/sh/sh-symbian.h: Remove.
3337 * config/sh/symbian-base.c: Remove.
3338 * config/sh/symbian-c.c: Remove.
3339 * config/sh/symbian-cxx.c: Remove.
3340 * config/sh/symbian-post.h: Remove.
3341 * config/sh/symbian-pre.h: Remove.
3342 * config/sh/t-symbian: Remove.
3343 * config/svr3.h: Remove.
3344 * config/vax/netbsd.h: Remove.
3345 * config.build: Don't handle i[34567]86-*-pe.
3346 * config.gcc: Remove handling of deprecations for most deprecated
3347 targets.
3348 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
3349 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
3350 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
3351 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
3352 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
3353 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
3354 Remove cases.
3355 * config.host: Don't handle i[34567]86-*-pe.
3356 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
3357 (ASM_SPEC32): Don't handle -mcall-gnu.
3358 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
3359 -mcall-gnu.
3360 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
3361 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
3362 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
3363 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
3364 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
3365 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
3366 conditional on SYMBIAN.
3367 * configure.ac: Don't handle powerpc*-*-gnu*.
3368 * configure: Regenerate.
3369 * doc/extend.texi (interrupt attribute): Don't mention CRX.
3370 * doc/install-old.texi (m6811, m6812): Don't mention.
3371 * doc/install.texi (arc-*-elf*): Don't document multilib option.
3372 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
3373 (m68k-uclinuxoldabi): Don't mention.
3374 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
3375 Remove.
3376 (-mcall-gnu): Remove.
3377 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
3378 families): Remove constraint documentation.
3379
3380 2011-03-22 Marius Strobl <marius@FreeBSD.org>
3381
3382 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
3383 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
3384 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3385
3386 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
3387
3388 * config/avr/avr-protos.h (expand_epilogue): Change prototype
3389 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
3390 * config/avr/avr.c (init_cumulative_args)
3391 (avr_function_arg_advance): Use it.
3392 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
3393 sibcall epilogues.
3394 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
3395 (avr_function_ok_for_sibcall): ...this new function.
3396 (avr_lookup_function_attribute1): New static Function.
3397 (avr_naked_function_p, interrupt_function_p)
3398 (signal_function_p, avr_OS_task_function_p)
3399 (avr_OS_main_function_p): Use it.
3400 * config/avr/avr.md ("sibcall", "sibcall_value")
3401 ("sibcall_epilogue"): New expander.
3402 ("*call_insn", "*call_value_insn"): New insn.
3403 ("call_insn", "call_value_insn"): Remove
3404 ("call", "call_value", "epilogue"): Change expander to handle
3405 sibling calls.
3406
3407 2011-03-21 Nick Clifton <nickc@redhat.com>
3408
3409 * doc/invoke.texi (Overall Options): Move closing brace to end of
3410 options list.
3411 (Optimization Options): Add missing @gol.
3412 (Directory Options): Likewise.
3413 (i386 and x86-64 Options): Likewise.
3414 (RS6000 and PowerPC Options): Likewise.
3415 (i386 and x86-64 Windows Options): Likewise.
3416 (V850 Options): Add text missing from descriptions.
3417
3418 2011-03-22 Richard Henderson <rth@redhat.com>
3419
3420 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
3421 (avr_incoming_return_addr_rtx): New.
3422 (emit_push_byte): New.
3423 (expand_prologue): Use it. Remove incorrect dwarf annotation for
3424 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
3425 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
3426 (emit_pop_byte): New.
3427 (expand_epilogue): Use it. Pop frame pointer by bytes.
3428 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
3429 (INCOMING_RETURN_ADDR_RTX): New.
3430 (INCOMING_FRAME_SP_OFFSET): New.
3431 (ARG_POINTER_CFA_OFFSET): New.
3432 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
3433 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
3434 (pophi): Remove.
3435
3436 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
3437
3438 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3439
3440 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3441 (FUNCTION_ARG_ADVANCE): Likewise.
3442 * tm.texi.in: Change references to them to hook references.
3443 * tm.texi: Regenerate.
3444 * targhooks.c (default_function_arg): Eliminate check for target
3445 macro.
3446 (default_function_incoming_arg): Likewise.
3447 (default_function_arg_advance): Likewise.
3448 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3449 (function_arg_advance): Likewise.
3450 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3451
3452 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3453
3454 * tree.c (build_call_1): New function.
3455 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
3456
3457 2011-03-22 Richard Guenther <rguenther@suse.de>
3458
3459 PR tree-optimization/48228
3460 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3461 for single-arg PHIs.
3462
3463 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
3464
3465 PR rtl-optimization/48143
3466 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
3467 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
3468 sse2_cvtps2pd): Likewise.
3469
3470 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3471
3472 * recog.c (canonicalize_change_group): Use validate_unshare_change.
3473
3474 2011-03-22 Richard Guenther <rguenther@suse.de>
3475
3476 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
3477 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
3478 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
3479 and REALIGN_LOAD_EXPR.
3480 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
3481 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
3482 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
3483 DOT_PROD_EXPR case ...
3484 (expand_expr_real_2): ... here.
3485 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
3486 and REALIGN_LOAD_EXPR.
3487 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
3488 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
3489 (vect_create_epilog_for_reduction): Likewise.
3490 (vectorizable_reduction): Likewise.
3491 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
3492 * tree-vect-stmts.c (vectorizable_load): Likewise.
3493
3494 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3495
3496 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
3497
3498 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3499
3500 * config/s390/s390.c (s390_delegitimize_address): Fix offset
3501 handling for PLTOFF/GOTOFF.
3502
3503 2011-03-22 Nick Clifton <nickc@redhat.com>
3504
3505 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3506 trailing backslash from the end of the macro definition.
3507
3508 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3509
3510 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
3511 and PLT unspecs.
3512
3513 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
3514
3515 * expr.h (prepare_operand): Move to...
3516 * optabs.h (prepare_operand): ...here and change the insn code
3517 parameter from "int" to "enum insn_code".
3518 (insn_operand_matches): Declare.
3519 * expr.c (init_expr_target): Use insn_operand_matches.
3520 (compress_float_constant): Likewise.
3521 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
3522 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
3523 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
3524 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
3525 Likewise.
3526 (gen_cond_trap): Likewise.
3527 (prepare_operand): Likewise. Change icode to an insn_code.
3528 (insn_operand_matches): New function.
3529 * reload.c (find_reloads_address_1): Use insn_operand_matches.
3530 * reload1.c (gen_reload): Likewise.
3531 * targhooks.c (default_secondary_reload): Likewise.
3532
3533 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3534
3535 * config/alpha/alpha.md (unspec): New define_c_enum.
3536 (unspecv): Ditto.
3537
3538 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3539
3540 PR debug/48214
3541 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
3542 between a call and its CALL_ARG_LOCATION note.
3543
3544 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
3545
3546 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
3547
3548 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3549
3550 PR c/42544
3551 PR c/48197
3552 * c-common.c (shorten_compare): If primopN is first sign-extended
3553 to opN and then zero-extended to result type, set primopN to opN.
3554
3555 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3556
3557 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
3558 for barrier handlers.
3559
3560 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3561
3562 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
3563 UNSPEC constants to be in the unspec enumeration, and redefine
3564 all UNSPECV constants to be in the unspecv enumeration, so that
3565 dumps print which unspec/unspec_volatile this is.
3566 * config/rs6000/vector.md (UNSPEC_*): Ditto.
3567 * config/rs6000/paired.md (UNSPEC_*): Ditto.
3568 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
3569 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
3570 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
3571
3572 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
3573 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
3574 UNSPECV_LWSYNC, since these are used as unspec_volatile.
3575 * config/rs6000/sync.md (isync, lwsync): Ditto.
3576
3577 2011-03-21 Richard Guenther <rguenther@suse.de>
3578
3579 * params.def (lto-min-partition): Fix typo.
3580
3581 2011-03-21 Richard Guenther <rguenther@suse.de>
3582
3583 PR c/47939
3584 * c-decl.c (grokdeclarator): Drop to the main variant only
3585 for array types. Drop flag_gen_aux_info check.
3586
3587 2011-03-21 Richard Guenther <rguenther@suse.de>
3588
3589 PR translation/47911
3590 * params.def (lto-partitions): Fix typo.
3591 (lto-min-partition): Fix wording.
3592
3593 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
3594
3595 * config/rs6000/t-freebsd: Remove duplication from file.
3596
3597 2011-03-21 Richard Guenther <rguenther@suse.de>
3598
3599 PR middle-end/47661
3600 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
3601
3602 2011-03-21 Richard Guenther <rguenther@suse.de>
3603
3604 PR lto/48210
3605 * params.def (lto-partitions): Require at least 1 partition.
3606
3607 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3608
3609 * gthr-solaris.h: Remove.
3610 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
3611 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
3612 (LIB_SPEC): Likewise.
3613 * config/sol2.opt (threads): Remove.
3614 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
3615 (sparc*-*-solaris2*): Likewise.
3616 * configure.ac (enable_threads): Enable solaris support.
3617 * configure: Regenerate.
3618 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
3619 * doc/install.texi (Configuration, --enable-threads=lib): Remove
3620 solaris.
3621
3622 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3623
3624 * config.gcc: Obsolete *-*-solaris2.8*.
3625 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3626
3627 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3628
3629 PR bootstrap/48135
3630 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
3631 reference. Solaris 8 perl works.
3632
3633 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3634
3635 PR bootstrap/48135
3636 * doc/install.texi (Prerequisites): Move jar etc. up.
3637 Explain support library version requirements.
3638
3639 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3640
3641 PR bootstrap/48135
3642 * doc/install.texi (Prerequisites): Move Perl to build
3643 requirements. Always necessary on Solaris 2 with Sun ld.
3644
3645 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3646
3647 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3648 binutils 2.21.
3649 (Specific, i?86-*-solaris2.[89]): Likewise.
3650 (Specific, i?86-*-solaris2.10): Likewise.
3651 (Specific, mips-sgi-irix6): Likewise.
3652 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3653 Update for binutils 2.21.
3654
3655 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3656
3657 * configure.ac (gcc_cv_lto_plugin): Fix typo.
3658 Allow -fuse-linker-plugin for non-default plugin linker.
3659 * configure: Regenerate.
3660
3661 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
3662
3663 PR bootstrap/48167
3664 * gengtype.c (files_rules): Added rule for cp/parser.h.
3665
3666 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3667
3668 PR target/48213
3669 * config/s390/s390.c (s390_delegitimize_address): Don't call
3670 lowpart_subreg if orig_x has BLKmode.
3671
3672 2011-03-21 Kai Tietz <ktietz@redhat.com>
3673
3674 PR target/12171
3675 * doc/plugins.texi: Adjust documentation for plugin register_callback.
3676 * tree.h (attribute_spec): Add new member affects_type_identity.
3677 * attribs.c (empty_attribute_table): Adjust attribute_spec
3678 initializers.
3679 * config/alpha/alpha.c: Likewise.
3680 * config/arc/arc.c: Likewise.
3681 * config/arm/arm.c: Likewise.
3682 * config/avr/avr.c: Likewise.
3683 * config/bfin/bfin.c: Likewise.
3684 * config/crx/crx.c: Likewise.
3685 * config/darwin.h: Likewise.
3686 * config/h8300/h8300.c: Likewise.
3687 * config/i386/cygming.h: Likewise.
3688 * config/i386/i386.c: Likewise.
3689 * config/ia64/ia64.c: Likewise.
3690 * config/m32c/m32c.c: Likewise.
3691 * config/m32r/m32r.c: Likewise.
3692 * config/m68hc11/m68hc11.c: Likewise.
3693 * config/m68k/m68k.c: Likewise.
3694 * config/mcore/mcore.c: Likewise.
3695 * config/mep/mep.c: Likewise.
3696 * config/microblaze/microblaze.c: Likewise.
3697 * config/mips/mips.c: Likewise.
3698 * config/rs6000/rs6000.c: Likewise.
3699 * config/rx/rx.c: Likewise.
3700 * config/sh/sh.c: Likewise.
3701 * config/sol2.h: Likewise.
3702 * config/sparc/sparc.c: Likewise.
3703 * config/spu/spu.c: Likewise.
3704 * config/stormy16/stormy16.c: Likewise.
3705 * config/v850/v850.c: Likewise.
3706
3707 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
3708
3709 * simplify-rtx.c (simplify_binary_operation_1): Handle
3710 (xor (and A B) C) case when B and C are both constants.
3711
3712 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
3713
3714 * tree-dfa.c (add_referenced_var): Fix typo in comment.
3715
3716 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
3717
3718 PR bootstrap/48168
3719 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
3720
3721 2011-03-20 Jakub Jelinek <jakub@redhat.com>
3722
3723 PR rtl-optimization/48156
3724 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3725 assume df and df_lr are not NULL.
3726
3727 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3728
3729 PR debug/48023
3730 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
3731 between a call and its CALL_ARG_LOCATION note.
3732
3733 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
3734
3735 PR debug/48178
3736 * config/sh/sh.c (find_barrier): Don't emit a constant pool
3737 between a call and its corresponding CALL_ARG_LOCATION note.
3738
3739 2011-03-19 Anatoly Sokolov <aesok@post.ru>
3740
3741 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
3742 instead of loop. Use HARD_REGISTER_NUM_P predicate.
3743 * haifa-sched.c (setup_ref_regs): Ditto.
3744 * caller-save.c (add_used_regs_1): Ditto.
3745 * dse.c (look_for_hardregs): Ditto.
3746 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
3747 * sched-rgn.c (check_live_1): Ditto.
3748
3749 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3750
3751 * c-decl.c (diagnose_mismatched_decls): Give an error for
3752 redefining a typedef with variably modified type.
3753
3754 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3755
3756 * c-decl.c (grokfield): Don't allow typedefs for structures or
3757 unions with no tag by default.
3758 * doc/extend.texi (Unnamed Fields): Update.
3759
3760 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
3761
3762 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3763 Rewrite using indirect functions.
3764 (lwp_slwpcb): Ditto.
3765 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
3766 (avx_vinsertf128<mode>): Ditto.
3767
3768 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3769
3770 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
3771 unspecs.
3772
3773 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3774
3775 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
3776 splitting between a call and its corresponding CALL_ARG_LOCATION note.
3777
3778 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3779
3780 PR rtl-optimization/48170
3781 * gcse.c (hoist_code): Remove bogus asserts.
3782
3783 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
3784
3785 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
3786 computation for prologue/epilogue.
3787
3788 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3789
3790 * Makefile.in (check-consistency): Remove.
3791
3792 2011-03-18 Jakub Jelinek <jakub@redhat.com>
3793
3794 PR debug/48176
3795 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
3796 arange_table_in_use is 0, but either text_section_used or
3797 cold_text_section_used is true. Don't call it if
3798 !info_section_emitted.
3799
3800 2011-03-18 Anatoly Sokolov <aesok@post.ru>
3801
3802 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
3803 FUNCTION_VALUE_REGNO_P): Remove.
3804 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
3805 Remove.
3806 * config/avr/avr.c (avr_ret_register): Make static inline.
3807 (avr_function_value_regno_p): New function.
3808 (avr_libcall_value): Make static. Add 'func' argument.
3809 (avr_function_value): Make static. Rename 'func' argument to
3810 'fn_decl_or_type', forward it to avr_libcall_value. Call
3811 avr_ret_register function instead of RET_REGISTER macro.
3812 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3813
3814 2011-03-18 Jason Merrill <jason@redhat.com>
3815
3816 PR c++/23372
3817 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
3818
3819 2011-03-18 Richard Guenther <rguenther@suse.de>
3820
3821 * doc/install.texi (--enable-gold): Remove.
3822 (--with-plugin-ld): Document.
3823 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
3824
3825 2011-03-18 Andrew Pinski <pinskia@gmail.com>
3826
3827 PR middle-end/47790
3828 * expr.c (optimize_bitfield_assignment_op): Revamp to work
3829 again after expansion changes.
3830
3831 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
3832
3833 * combine.c (try_combine): Do simplification only call of
3834 subst() on i2 even when i1 is present. Update comments.
3835
3836 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
3837
3838 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
3839 and UNSPEC_PCREL_SYMOFF.
3840
3841 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3842
3843 * config/s390/s390.md: Use define_c_enum for the unspec constant
3844 definitions.
3845
3846 2011-03-18 Richard Henderson <rth@redhat.com>
3847 Jakub Jelinek <jakub@redhat.com>
3848
3849 PR bootstrap/48161
3850 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
3851 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
3852
3853 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3854
3855 PR middle-end/47725
3856 * combine.c (cant_combine_insn_p): Don't check zero/sign
3857 extended hard registers.
3858
3859 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3860
3861 PR middle-end/47725
3862 * combine.c (cant_combine_insn_p): Check zero/sign extended
3863 hard registers.
3864
3865 2011-03-17 Anatoly Sokolov <aesok@post.ru>
3866
3867 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3868 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
3869 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
3870 Change return type to bool.
3871 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3872
3873 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3874
3875 PR debug/48163
3876 * var-tracking.c (prepare_call_arguments): If CALL target
3877 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
3878 pc instead of looking it up using cselib_lookup and use
3879 Pmode for it if x has VOIDmode.
3880 * dwarf2out.c (gen_subprogram_die): If also both first and
3881 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
3882
3883 PR debug/48163
3884 * function.c (assign_parms): For data.passed_pointer parms
3885 use MEM of data.entry_parm instead of data.entry_parm itself
3886 as DECL_INCOMING_RTL.
3887 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
3888 also when passed and declared mode is the same, DECL_RTL
3889 is a MEM with pseudo as address and DECL_INCOMING_RTL is
3890 a MEM too.
3891
3892 2011-03-16 Jeff Law <law@redhat.com>
3893
3894 PR rtl-optimization/37273
3895 * ira-costs.c (scan_one_insn): Detect constants living in memory and
3896 handle them like argument loads from stack slots. Do not double
3897 count memory for memory constants and argument loads from stack slots.
3898
3899 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3900
3901 PR debug/48160
3902 * var-tracking.c (prepare_call_arguments): Check SUBREG.
3903
3904 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3905
3906 PR target/48171
3907 * config/i386/i386.opt: Add Save to -mavx and -mfma.
3908
3909 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3910
3911 PR bootstrap/48153
3912 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
3913 if dwarf_strict.
3914 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
3915 Clear call_arg_locations and call_arg_loc_last always.
3916
3917 PR middle-end/48152
3918 * var-tracking.c (prepare_call_arguments): If argument needs to be
3919 passed by reference, adjust argtype and mode.
3920
3921 2011-03-17 Richard Guenther <rguenther@suse.de>
3922
3923 PR middle-end/48134
3924 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
3925 a value make sure to fold the statement.
3926
3927 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
3928
3929 PR target/43872
3930 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
3931 return condition with !cfun->calls_alloca.
3932
3933 2011-03-17 Richard Guenther <rguenther@suse.de>
3934
3935 PR bootstrap/48148
3936 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3937 origin for decls in other ltrans units.
3938 (input_varpool_node): Likewise.
3939
3940 2011-03-17 Richard Guenther <rguenther@suse.de>
3941
3942 PR middle-end/48165
3943 * tree-object-size.c (compute_object_offset): Properly return
3944 the offset operand of MEM_REFs as sizetype.
3945
3946 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3947
3948 PR rtl-optimization/48141
3949 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3950 * dse.c: Include params.h.
3951 (active_local_stores_len): New variable.
3952 (add_wild_read, dse_step1): Clear it when setting active_local_stores
3953 to NULL.
3954 (record_store, check_mem_read_rtx): Decrease it when removing
3955 from the chain.
3956 (scan_insn): Likewise. Increase it when adding to chain, if it
3957 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3958 set active_local_stores to NULL before the addition.
3959 * Makefile.in (dse.o): Depend on $(PARAMS_H).
3960
3961 PR rtl-optimization/48141
3962 * dse.c (record_store): If no positions are needed in an insn
3963 that cannot be deleted, at least unchain it from active_local_stores.
3964
3965 2011-03-16 Dodji Seketeli <dodji@redhat.com>
3966
3967 PR debug/47510
3968 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3969 (lookup_type_die_strip_naming_typedef): ... here.
3970 (get_context_die): Use it.
3971 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3972 the anonymous struct named by the naming typedef.
3973
3974 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
3975
3976 PR target/48154
3977 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
3978 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3979
3980 2011-03-16 Jeff Law <law@redhat.com>
3981
3982 * tree-vrp.c (identify_jump_threads): Slightly simplify type
3983 check for operands of conditional. Allow type to be a pointer.
3984
3985 2011-03-16 Richard Guenther <rguenther@suse.de>
3986
3987 PR tree-optimization/48149
3988 * fold-const.c (fold_binary_loc): Fold
3989 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
3990
3991 2011-03-16 Richard Guenther <rguenther@suse.de>
3992
3993 PR tree-optimization/26134
3994 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
3995 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
3996 (non_rewritable_mem_ref_base): Handle complex type component
3997 accesses, constrain offsets for vector and complex extracts
3998 more properly.
3999
4000 2011-03-16 Richard Guenther <rguenther@suse.de>
4001
4002 PR tree-optimization/48146
4003 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
4004 operands avoiding the need for renaming.
4005
4006 2011-03-16 Richard Guenther <rguenther@suse.de>
4007
4008 * gimple-fold.c (maybe_fold_reference): Open-code relevant
4009 constant folding. Move MEM_REF canonicalization first.
4010 Rely on fold_const_aggregate_ref for initializer folding.
4011 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
4012
4013 2011-03-16 Jakub Jelinek <jakub@redhat.com>
4014
4015 PR middle-end/48136
4016 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4017 arg0/arg1 or their arguments are always fold converted to matching
4018 types.
4019
4020 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
4021 to nargs.
4022
4023 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4024
4025 PR lto/46944
4026 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
4027 Handle in-tree gold.
4028 (ld_vers): Extract binutils version for gold.
4029 (gcc_cv_ld_hidden): Handle gold here.
4030 (gcc_cv_lto_plugin): Determine level of linker plugin support.
4031 * configure: Regenerate.
4032 * config.in: Regenerate.
4033 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
4034 -fuse-linker-plugin otherwise.
4035 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
4036 (LINK_COMMAND_SPEC): Use it.
4037 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
4038
4039 2011-03-16 Jakub Jelinek <jakub@redhat.com>
4040
4041 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
4042 * calls.c: Remove debug.h include.
4043 (emit_call_1): Don't call virtual_call_token debug hook.
4044 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
4045 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
4046 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
4047 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
4048 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
4049 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
4050 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
4051 dwarf2out_virtual_call): Remove.
4052 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
4053 copy_call_info and virtual_call hooks.
4054 (dwarf2out_init): Don't initialize vcall_insn_table,
4055 debug_dcall_section and debug_vcall_section.
4056 (prune_unused_types): Don't mark nodes from dcall_table.
4057 (dwarf2out_finish): Don't output dcall or vcall tables.
4058 * final.c (final_scan_insn): Don't call direct_call or
4059 virtual_call debug hooks.
4060 * debug.h (struct gcc_debug_hooks): Remove direct_call,
4061 virtual_call_token, copy_call_info and virtual_call hooks.
4062 (debug_nothing_uid): Remove prototype.
4063 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
4064 copy_call_info and virtual_call hooks.
4065 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4066 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
4067 * debug.c (do_nothing_debug_hooks): Likewise.
4068 (debug_nothing_uid): Remove.
4069 * doc/invoke.texi (-fenable-icf-debug): Remove.
4070 * common.opt (-fenable-icf-debug): Likewise.
4071
4072 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
4073 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
4074 call's MEM. Handle functions returning aggregate through a hidden
4075 first pointer. For virtual calls add clobbered pc to call arguments
4076 chain.
4077 * dwarf2out.c (gen_subprogram_die): Emit
4078 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
4079 can't be emitted.
4080
4081 PR debug/45882
4082 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
4083 * rtl.h (ENTRY_VALUE_EXP): Define.
4084 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
4085 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
4086 * print-rtl.c (print_rtx): Likewise.
4087 * gengtype.c (adjust_field_rtx_def): Likewise.
4088 * var-tracking.c (vt_add_function_parameter): Adjust
4089 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
4090 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
4091 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
4092 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
4093 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
4094
4095 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
4096 Call var_location debug hook even on CALL_INSNs.
4097 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
4098 * rtl.def (ENTRY_VALUE): New.
4099 * dwarf2out.c: Include cfglayout.h.
4100 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4101 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
4102 (struct call_arg_loc_node): New type.
4103 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
4104 tail_call_site_count): New variables.
4105 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
4106 DW_TAG_GNU_call_site_parameter.
4107 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
4108 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
4109 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
4110 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
4111 and DW_AT_GNU_all_source_call_sites.
4112 (mem_loc_descriptor): Handle ENTRY_VALUE.
4113 (add_src_coords_attributes): Don't add enything if
4114 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
4115 (dwarf2out_abstract_function): Save and clear call_arg_location,
4116 call_site_count and tail_call_site_count around dwarf2out_decl call.
4117 (gen_call_site_die): New function.
4118 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
4119 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
4120 (dwarf2out_function_decl): Clear call_arg_locations,
4121 call_arg_loc_last, set call_site_count and tail_call_site_count
4122 to -1 and free block_map.
4123 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
4124 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
4125 followed by any real instructions.
4126 (dwarf2out_begin_function): Set call_site_count and
4127 tail_call_site_count to 0.
4128 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
4129 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
4130 attempt to force a DIE for it and worst case remove the attribute.
4131 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
4132 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
4133 the decl itself.
4134 * var-tracking.c: Include tm_p.h.
4135 (vt_stack_adjustments): For calls call note_register_arguments.
4136 (argument_reg_set): New variable.
4137 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
4138 ensure the VALUE is resolved.
4139 (call_arguments): New variable.
4140 (prepare_call_arguments): New function.
4141 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
4142 (struct expand_loc_callback_data): Add ignore_cur_loc field.
4143 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
4144 always use the best expression.
4145 (vt_expand_loc): Add ignore_cur_loc argument.
4146 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
4147 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
4148 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
4149 note for all calls.
4150 (vt_add_function_parameter): Use cselib_lookup_from_insn.
4151 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
4152 argument. Don't call cselib_preserve_only_values and
4153 cselib_reset_table.
4154 (note_register_arguments): New function.
4155 (vt_initialize): Compute argument_reg_set. Call
4156 vt_add_function_parameters before processing basic blocks instead of
4157 afterwards. For calls call prepare_call_arguments before calling
4158 cselib_process_insn.
4159 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
4160 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
4161 (var-tracking.o): Depend on $(TM_P_H).
4162 * cfglayout.h (insn_scope): New prototype.
4163 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
4164 * cfglayout.c (insn_scope): No longer static.
4165 * insn-notes.def (CALL_ARG_LOCATION): New.
4166 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
4167 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
4168 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
4169 nothing for DECL_EXTERNAL BLOCK_VARS.
4170
4171 2011-03-16 Alan Modra <amodra@gmail.com>
4172
4173 PR target/45844
4174 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
4175 create invalid offset address for vsx splat insn.
4176 * config/rs6000/predicates.md (splat_input_operand): New.
4177 * config/rs6000/vsx.md (vsx_splat_*): Use it.
4178
4179 2011-03-15 Xinliang David Li <davidxl@google.com>
4180
4181 PR c/47837
4182 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
4183 (normalize_preds): New function.
4184 (is_use_properly_guarded): Normalize def predicates.
4185
4186 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4187
4188 PR target/46788
4189 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
4190 in the output template.
4191
4192 2011-03-15 Richard Guenther <rguenther@suse.de>
4193
4194 PR middle-end/47650
4195 * tree-pretty-print.c (dump_function_declaration): Properly
4196 dump unprototyped and varargs function types.
4197
4198 2011-03-15 Richard Guenther <rguenther@suse.de>
4199
4200 PR tree-optimization/13954
4201 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
4202 and friends.
4203
4204 2011-03-15 Richard Guenther <rguenther@suse.de>
4205
4206 PR tree-optimization/48037
4207 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
4208 selects into BIT_FIELD_REFs.
4209 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
4210 vector select.
4211
4212 2011-03-15 Jakub Jelinek <jakub@redhat.com>
4213
4214 PR tree-optimization/48129
4215 * builtins.c (fold_builtin_snprintf): Convert to type of
4216 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
4217 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
4218
4219 2011-03-15 Richard Guenther <rguenther@suse.de>
4220
4221 PR tree-optimization/41490
4222 * tree-ssa-dce.c (propagate_necessity): Handle returns without
4223 value but with VUSE.
4224 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
4225 return statements.
4226 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
4227 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
4228 * tree-tailcall.c (find_tail_calls): Ignore returns.
4229
4230 2011-03-15 Richard Guenther <rguenther@suse.de>
4231
4232 PR middle-end/48031
4233 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
4234 or variable-indexed array accesses when in gimple form.
4235
4236 2011-03-15 Richard Guenther <rguenther@suse.de>
4237
4238 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
4239
4240 2011-03-15 Alan Modra <amodra@gmail.com>
4241
4242 PR target/48032
4243 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
4244 presume symbol_refs without a symbol_ref_decl are suitably
4245 aligned, nor other trees we may see here. Handle anchor symbols.
4246 (legitimate_constant_pool_address_p): Comment. Add mode param.
4247 Check cmodel=medium addresses. Adjust all calls.
4248 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
4249 creating cmodel=medium optimized access to locals.
4250 * config/rs6000/constraints.md (R): Pass QImode to
4251 legitimate_constant_pool_address_p.
4252 * config/rs6000/predicates.md (input_operand): Pass mode to
4253 legitimate_constant_pool_address_p.
4254 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
4255 Update prototype.
4256
4257 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4258
4259 PR target/48053
4260 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
4261 64-bit constants being loaded into registers other than GPRs such
4262 as loading 0 into a VSX register.
4263
4264 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4265
4266 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
4267
4268 2011-03-14 Jakub Jelinek <jakub@redhat.com>
4269
4270 PR middle-end/47917
4271 * builtins.c (fold_builtin_snprintf): New function.
4272 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
4273 (fold_builtin_4): Likewise.
4274
4275 PR middle-end/38878
4276 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
4277 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
4278 and C - X == X also strip nops from +/-/p+ operand.
4279 When optimizing -X == C, fold C to arg0's type.
4280
4281 PR debug/47946
4282 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
4283 emit it as add_AT_int instead of add_AT_unsigned.
4284
4285 2011-03-14 Tom Tromey <tromey@redhat.com>
4286
4287 * unwind-dw2.c: Include sys/sdt.h if it exists.
4288 (_Unwind_DebugHook): Use STAP_PROBE2.
4289 * config.in, configure: Rebuild.
4290 * configure.ac: Check for sys/sdt.h.
4291
4292 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
4293
4294 * config/i386/i386.md (ROUND_FLOOR): New constant.
4295 (ROUND_CEIL): Ditto.
4296 (ROUND_TRUNC): Ditto.
4297 (ROUND_MXCSR): Ditto.
4298 (ROUND_NO_EXC): Ditto.
4299 (rint<mode>2): Use new defines instead of numerical constants.
4300 (floor<mode>2): Ditto.
4301 (ceil<mode>2): Ditto.
4302 (btrunc<mode>2): Ditto.
4303 * config/i386/i386-builtin-types.def: Define ROUND function type
4304 aliases.
4305 * config/i386/i386.c (enum ix86_builtins): Add
4306 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
4307 (struct builtin_description): Add
4308 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
4309 (ix86_expand_sse_round): New static function.
4310 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
4311 function types.
4312 (ix86_builtin_vectorized_function): Handle
4313 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4314
4315 2011-03-14 Tom Tromey <tromey@redhat.com>
4316
4317 * c-parser.c (c_parser_asm_string_literal): Clear
4318 warn_overlength_strings.
4319
4320 2011-03-14 Tom Tromey <tromey@redhat.com>
4321
4322 * c-parser.c (disable_extension_diagnostics): Save
4323 warn_overlength_strings.
4324 (restore_extension_diagnostics): Restore warn_overlength_strings.
4325
4326 2011-03-14 Jakub Jelinek <jakub@redhat.com>
4327
4328 * BASE-VER: Change to 4.7.0.
4329
4330 2011-03-14 Richard Guenther <rguenther@suse.de>
4331
4332 PR middle-end/48098
4333 * tree.c (build_vector_from_val): Adjust assert to requirements
4334 and reality.
4335
4336 2011-03-14 Jakub Jelinek <jakub@redhat.com>
4337
4338 PR bootstrap/48102
4339 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
4340
4341 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
4342
4343 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
4344 terms of target_flags_explicit. Adjust copyright year.
4345
4346 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
4347 * config/rs6000/t-freebsd: New file. Add override for
4348 LIB2FUNCS_EXTRA.
4349
4350 2011-03-13 Chris Demetriou <cgd@google.com>
4351
4352 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
4353 (-fno-diagnostics-show-option): this, to reflect current default.
4354 (-Werror=): Update text about -fno-diagnostics-show-option.
4355
4356 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
4357
4358 PR target/48053
4359 * config/rs6000/predicates.md (easy_vector_constant_add_self,
4360 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
4361 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
4362 mode is not V2DImode or V2DFmode.
4363 (vspltis_constant): Do not handle V2DImode and V2DFmode.
4364 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
4365 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
4366 registers to 0.
4367 (movdi_internal64): Likewise.
4368
4369 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
4370
4371 PR tree-optimization/47127
4372 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
4373 parameter.
4374 (set_cloog_options): Same.
4375 (scop_to_clast): Same.
4376 (print_clast_stmt): Do not call cloog_state_malloc and
4377 cloog_state_free.
4378 (print_generated_program): Same.
4379 (gloog): Same.
4380 * graphite-clast-to-gimple.h (cloog_state): Declared.
4381 (scop_to_clast): Adjust declaration.
4382 * graphite.c (cloog_state): Defined here.
4383 (graphite_initialize): Call cloog_state_malloc.
4384 (graphite_finalize): Call cloog_state_free.
4385
4386 2011-03-11 Jason Merrill <jason@redhat.com>
4387
4388 * attribs.c (lookup_attribute_spec): Take const_tree.
4389 * tree.h: Adjust.
4390
4391 2011-03-11 Joseph Myers <joseph@codesourcery.com>
4392
4393 * config/sparc/sparc.c (sparc_option_override): Use
4394 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
4395
4396 2011-03-11 Richard Guenther <rguenther@suse.de>
4397
4398 PR tree-optimization/48067
4399 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
4400 multiplication result will be only used once on the target
4401 stmt.
4402
4403 2011-03-11 Richard Guenther <rguenther@suse.de>
4404
4405 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
4406
4407 2011-03-11 Richard Guenther <rguenther@suse.de>
4408
4409 PR lto/48073
4410 * tree.c (find_decls_types_r): Do not walk types only reachable
4411 from IDENTIFIER_NODEs.
4412
4413 2011-03-11 Jakub Jelinek <jakub@redhat.com>
4414
4415 PR middle-end/48044
4416 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
4417 all vnode->force_output nodes as needed.
4418
4419 2011-03-11 Jason Merrill <jason@redhat.com>
4420
4421 PR c++/48069
4422 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
4423 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
4424
4425 2011-03-11 Martin Jambor <mjambor@suse.cz>
4426
4427 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
4428 cgraph_node.
4429
4430 2011-03-11 Jakub Jelinek <jakub@redhat.com>
4431
4432 PR tree-optimization/48063
4433 * ipa-inline.c (cgraph_decide_inlining): Don't try to
4434 inline functions called once if !tree_can_inline_p (node->callers).
4435
4436 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
4437
4438 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
4439 extra_objs.
4440 * config/score/score3.c: Delete.
4441 * config/score/score3.h: Delete.
4442 * config/score/mul-div.S: Delete.
4443 * config/score/sfp-machine.h: Add new file.
4444 * config/score/constraints.md: Add new file.
4445 * config/score/t-score-softfp: Add new file.
4446 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
4447 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
4448 (score7_extra_constraint): Delete.
4449 (score7_option_override): Remove unused code.
4450 * config/score/score.c: Remove score3 and score5 define and code.
4451 * config/score/score.h: Remove score3 and score5 define and code.
4452 * config/score/score.md: Remove score3 template and unusual insn.
4453 * config/score/score.opt: Remove score3 and score5 options.
4454
4455 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4456
4457 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
4458 when _HPUX_SOURCE is defined.
4459 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
4460
4461 2011-03-10 Jason Merrill <jason@redhat.com>
4462
4463 PR c++/48029
4464 * stor-layout.c (layout_type): Don't set structural equality
4465 on arrays of incomplete type.
4466 * tree.c (type_hash_eq): Handle comparing them properly.
4467
4468 2011-03-10 Jakub Jelinek <jakub@redhat.com>
4469
4470 PR debug/48043
4471 * config/s390/s390.c (s390_delegitimize_address): Make sure the
4472 result mode matches original rtl mode.
4473
4474 2011-03-10 Nick Clifton <nickc@redhat.com>
4475
4476 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
4477 (andsi3, andsi3_flags): Fix timings for three operand alternative.
4478
4479 2011-03-09 Jakub Jelinek <jakub@redhat.com>
4480
4481 PR rtl-optimization/47866
4482 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
4483 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
4484 if target wasn't scalar.
4485 * function.c (assign_stack_temp_for_type): Assert that neither
4486 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
4487 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
4488 macro.
4489 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
4490
4491 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4492
4493 * config/s390/s390-protos.h (s390_label_align): New prototype.
4494 * config/s390/s390.c (s390_label_align): New function.
4495 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
4496
4497 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4498
4499 PR target/47755
4500 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
4501 V2DI/V2DF constants. Only all 0's or all 1's are easy.
4502 (output_vec_const_move): Ditto.
4503
4504 2011-03-08 Anatoly Sokolov <aesok@post.ru>
4505
4506 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
4507 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
4508 * config/mips/mips.c (mips_preferred_reload_class): Make static.
4509 Change 'rclass' argument and result type to reg_class_t.
4510 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4511
4512 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
4513
4514 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4515 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
4516 (TARGET_MEMORY_MOVE_COST): Define.
4517 (avr_register_move_cost, avr_memory_move_cost): New Functions.
4518
4519 2011-03-08 Jakub Jelinek <jakub@redhat.com>
4520
4521 PR debug/47881
4522 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
4523 removed anything.
4524
4525 PR tree-optimization/48022
4526 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
4527 for EQ/NE_EXPR.
4528
4529 2011-03-07 Jakub Jelinek <jakub@redhat.com>
4530
4531 PR debug/47991
4532 * var-tracking.c (find_use_val): Return NULL for
4533 cui->sets && cui->store_p BLKmode MEMs.
4534
4535 2011-03-07 Anatoly Sokolov <aesok@post.ru>
4536
4537 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4538 Remove.
4539 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
4540 xstormy16_print_operand_address): Remove.
4541 * config/stormy16/stormy16.c (xstormy16_print_operand,
4542 xstormy16_print_operand_address): Make static.
4543 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4544
4545 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
4546
4547 PR target/47862
4548 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4549 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
4550 before definition.
4551
4552 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
4553
4554 PR bootstrap/48000
4555 * cfgloopmanip.c (fix_bb_placements): Return immediately
4556 if FROM is BASE_LOOP's header.
4557
4558 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
4559
4560 * gimplify.c (gimplify_function_tree): Fix building calls
4561 to __builtin_return_address.
4562
4563 2011-03-07 Alan Modra <amodra@gmail.com>
4564
4565 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
4566 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
4567 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
4568 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
4569 return_mode args.
4570 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
4571 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
4572 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
4573 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
4574 * config/rs6000/rs6000.c
4575 (rs6000_elf_end_indicate_exec_stack): Rename to..
4576 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
4577 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
4578 (rs6000_file_start): ..here.
4579 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
4580 file scope variables.
4581 (call_ABI_of_interest): New function.
4582 (init_cumulative_args): Set above vars when function return value
4583 is a float, vector, or small struct.
4584 (rs6000_function_arg_advance_1): Likewise for function args.
4585 (rs6000_va_start): Set rs6000_passes_float if variable arg function
4586 references float args.
4587
4588 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
4589
4590 * doc/cfg.texi: Remove "See" before @ref.
4591 * doc/invoke.texi: Likewise.
4592
4593 2011-03-05 Jason Merrill <jason@redhat.com>
4594
4595 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
4596
4597 2011-03-05 Anthony Green <green@moxielogic.com>
4598
4599 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
4600
4601 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
4602
4603 PR rtl-optimization/47899
4604 * cfgloopmanip.c (fix_bb_placements): Fix first argument
4605 to flow_loop_nested_p when moving the loop upward.
4606
4607 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
4608
4609 PR target/47719
4610 * arm.md (movhi_insn_arch4): Accept any immediate constant.
4611
4612 2011-03-05 Jakub Jelinek <jakub@redhat.com>
4613
4614 PR tree-optimization/47967
4615 * ipa-cp.c (build_const_val): Return NULL instead of creating
4616 VIEW_CONVERT_EXPR for mismatching sizes.
4617 (ipcp_create_replace_map): Return NULL if build_const_val failed.
4618 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
4619 give up on versioning.
4620
4621 2011-03-05 Alan Modra <amodra@gmail.com>
4622
4623 PR target/47986
4624 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4625 full cmodel medium/large lo_sum + high addresses.
4626
4627 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4628
4629 * config/s390/s390.c (s390_decompose_address): Reject non-literal
4630 pool references in UNSPEC_LTREL_OFFSET.
4631
4632 2011-03-04 Jan Hubicka <jh@suse.cz>
4633
4634 PR lto/47497
4635 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
4636 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
4637 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
4638 Add node pointers.
4639 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
4640 cgraph_add_thunk): Add node pointers.
4641 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
4642 associated to right node.
4643 (input_node): Update use of cgraph_same_body_alias
4644 and cgraph_add_thunk.
4645
4646 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
4647
4648 * config/i386/i386.opt (mprefer-avx128): New flag.
4649 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
4650 modes when the flag -mprefer-avx128 is on.
4651
4652 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
4653
4654 * dwarf2out.c (compare_loc_operands): Fix address handling.
4655
4656 2011-03-04 Alan Modra <amodra@gmail.com>
4657
4658 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
4659
4660 2011-03-04 Richard Guenther <rguenther@suse.de>
4661
4662 PR middle-end/47968
4663 * expmed.c (extract_bit_field_1): Prefer vector modes that
4664 vec_extract patterns can handle.
4665
4666 2011-03-04 Richard Guenther <rguenther@suse.de>
4667
4668 PR middle-end/47975
4669 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
4670
4671 2011-03-04 Richard Henderson <rth@redhat.com>
4672
4673 * explow.c (emit_stack_save): Remove 'after' parameter.
4674 (emit_stack_restore): Likewise.
4675 * expr.h: Update to match.
4676 * builtins.c, calls.c, stmt.c: Likewise.
4677 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
4678 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
4679 * function.c (expand_function_end): Insert the emit_stack_save
4680 sequence before parm_birth_insn instead of after.
4681
4682 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
4683
4684 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
4685 (ssse3_pmaddubsw128): Ditto.
4686 (ssse3_pmaddubsw): Ditto.
4687
4688 2011-03-03 Steve Ellcey <sje@cup.hp.com>
4689
4690 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
4691
4692 2011-03-03 Jakub Jelinek <jakub@redhat.com>
4693
4694 PR c/47963
4695 * gimplify.c (omp_add_variable): Only call omp_notice_variable
4696 on TYPE_SIZE_UNIT if it is a DECL.
4697
4698 PR debug/47283
4699 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
4700 first operand is not is_gimple_mem_ref_addr, try to fold it.
4701 If the operand still isn't is_gimple_mem_ref_addr, clear
4702 MEM_EXPR on op0.
4703
4704 2011-03-03 Richard Guenther <rguenther@suse.de>
4705
4706 PR middle-end/47283
4707 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
4708 match comment.
4709 (refs_may_alias_p_1): For release branches return true if
4710 we are confused by our input.
4711
4712 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4713
4714 * config/s390/s390.c (s390_function_value): Rename to ...
4715 (s390_function_and_libcall_value): ... this.
4716 (s390_function_value): New function.
4717 (s390_libcall_value): New function.
4718 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
4719 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
4720 target macro definitions.
4721 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
4722
4723 2011-03-02 Joseph Myers <joseph@codesourcery.com>
4724
4725 * config/i386/freebsd64.h (CC1_SPEC): Define.
4726 * config/i386/linux64.h (CC1_SPEC): Define.
4727 * config/i386/x86-64.h (CC1_SPEC): Don't define.
4728
4729 2011-03-02 Anatoly Sokolov <aesok@post.ru>
4730
4731 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4732 Remove.
4733 * config/stormy16/stormy16.c: Include reload.h.
4734 (xstormy16_memory_move_cost): New function.
4735 (TARGET_MEMORY_MOVE_COST): Define.
4736
4737 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
4738
4739 PR rtl-optimization/47925
4740 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
4741 with side effects. Remove the more-specific check for volatile asms.
4742
4743 2011-03-02 Alan Modra <amodra@gmail.com>
4744
4745 PR target/47935
4746 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
4747 toc relative addresses for valid offsets.
4748
4749 2011-03-01 Richard Guenther <rguenther@suse.de>
4750
4751 PR tree-optimization/47890
4752 * tree-vect-loop.c (get_initial_def_for_induction): Set
4753 related stmt properly.
4754
4755 2011-03-01 Richard Guenther <rguenther@suse.de>
4756
4757 PR lto/47924
4758 * lto-streamer.c (lto_record_common_node): Also register
4759 the canonical type.
4760
4761 2011-03-01 Richard Guenther <rguenther@suse.de>
4762
4763 PR lto/46911
4764 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4765 Do not stream DECL_ABSTRACT_ORIGIN.
4766 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4767 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4768 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4769 Do not stream DECL_ABSTRACT_ORIGIN.
4770 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4771 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4772
4773 2011-02-28 Anatoly Sokolov <aesok@post.ru>
4774
4775 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
4776 FUNCTION_VALUE_REGNO_P): Remove.
4777 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
4778 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
4779 Add 'outgoing' argument.
4780 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
4781 function.
4782 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4783 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4784
4785 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
4786
4787 PR debug/28047
4788 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
4789 (lookup_filename): Likewise.
4790 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
4791
4792 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
4793 Jakub Jelinek <jakub@redhat.com>
4794
4795 PR middle-end/47893
4796 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
4797 (assign_stack_local_1): Change last argument type to int.
4798 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
4799 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
4800 don't record padding space into frame_space_list nor use those areas.
4801 (assign_stack_local): Adjust caller.
4802 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
4803 of assign_stack_local, pass 0 as last argument.
4804 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
4805 callers.
4806
4807 2011-02-28 Jakub Jelinek <jakub@redhat.com>
4808
4809 PR debug/47283
4810 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
4811 Use target address_mode and pointer_mode hooks instead of hardcoded
4812 Pmode and ptr_mode. Handle some simple cases of extending if
4813 POINTERS_EXTEND_UNSIGNED < 0.
4814 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
4815 Call convert_debug_memory_address.
4816 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
4817 convert_debug_memory_address.
4818
4819 PR middle-end/46790
4820 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
4821 * configure: Regenerated.
4822 * config.in: Regenerated.
4823 * varasm.c (default_function_section): Return NULL
4824 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
4825
4826 2011-02-28 Martin Jambor <mjambor@suse.cz>
4827
4828 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
4829 the description to match the printed values.
4830
4831 2011-02-28 Richard Guenther <rguenther@suse.de>
4832
4833 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
4834 of the copied scope tree.
4835
4836 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4837
4838 * doc/extend.texi (Function Attributes): Avoid deeply (and
4839 wrongly) nested tables.
4840
4841 2011-02-27 Jakub Jelinek <jakub@redhat.com>
4842
4843 PR middle-end/47903
4844 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
4845 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
4846 r isn't op0 nor op1.
4847
4848 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
4849
4850 * config/avr/avr.md: Remove magic comment for emacs.
4851
4852 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
4853
4854 PR target/45261
4855 * config/avr/avr.c (avr_option_override): Use error on bad options.
4856 (avr_help): New function.
4857 (TARGET_HELP): Define.
4858
4859 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
4860
4861 PR target/42240
4862 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
4863 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
4864
4865 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
4866
4867 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
4868 (ARM Options): Ditto.
4869 (i386 and x86-64 Options): Ditto.
4870 (RX Options): Ditto.
4871 (SPARC Options): Ditto.
4872
4873 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
4874
4875 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
4876 FreeBSD 6 and later. Generally use cpu generic.
4877
4878 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
4879
4880 * doc/cpp.texi: Update copyright years.
4881
4882 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
4883
4884 PR target/46898
4885 * config/lm32/lm32.md (ashrsi3): Added needed variable.
4886
4887 2011-02-25 Jon Beniston <jon@beniston.com>
4888
4889 PR target/46898
4890 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
4891 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
4892 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
4893 (lm32_block_move_inline): Add type cast to remove warning.
4894 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
4895 (gen_int_relational): Move declarations to start of function.
4896
4897 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
4898
4899 PR tree-optimization/45470
4900 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
4901 can throw internally only.
4902 * tree-vect-stmts.c (vectorizable_call): Likewise.
4903
4904 2011-02-24 Anatoly Sokolov <aesok@post.ru>
4905
4906 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
4907 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4908 * config/stormy16/stormy16-protos.h
4909 (xstormy16_preferred_reload_class): Remove.
4910 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
4911 static. Change 'rclass' argument and return type to reg_class_t.
4912 (TARGET_PREFERRED_RELOAD_CLASS,
4913 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4914
4915 2011-02-24 Richard Guenther <rguenther@suse.de>
4916
4917 * lto-streamer-in.c (input_bb): Do not find referenced vars
4918 in debug statements.
4919
4920 2011-02-23 Jason Merrill <jason@redhat.com>
4921
4922 * common.opt (fabi-version): Document v5 and v6.
4923
4924 2011-02-23 Richard Guenther <rguenther@suse.de>
4925
4926 PR tree-optimization/47849
4927 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
4928
4929 2011-02-23 Jie Zhang <jie@codesourcery.com>
4930
4931 * opts-common.c (decode_cmdline_option): Print empty string
4932 argument as "" in decoded->orig_option_with_args_text.
4933 * gcc.c (execute): Print empty string argument as ""
4934 in the verbose output.
4935 (do_spec_1): Keep empty string argument.
4936
4937 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
4938
4939 * config.gcc: Declare score-* and crx-* obsolete.
4940
4941 2011-02-23 Jie Zhang <jie@codesourcery.com>
4942
4943 PR rtl-optimization/47763
4944 * web.c (web_main): Ignore naked clobber when replacing register.
4945
4946 2011-02-22 Anatoly Sokolov <aesok@post.ru>
4947
4948 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4949 Remove.
4950
4951 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
4952
4953 PR doc/47848
4954 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
4955
4956 2011-02-22 Mike Stump <mikestump@comcast.net>
4957
4958 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
4959 assembler.
4960 * configure: Regenerate.
4961
4962 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
4963
4964 PR rtl-optimization/46002
4965 * ira-color.c (update_copy_costs): Change class intersection
4966 test to reg_class_contents[] test of 'hard_regno'.
4967
4968 2011-02-21 Joseph Myers <joseph@codesourcery.com>
4969
4970 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
4971 than Driver option.
4972 * config/hpux11.opt (mt): Likewise.
4973 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
4974 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
4975 * config/vax/elf.opt (mno-asm-pic): Likewise.
4976 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
4977
4978 2011-02-21 Mike Stump <mikestump@comcast.net>
4979
4980 PR target/47822
4981 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
4982 tree so we can get save the type.
4983 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
4984 for CFString instead of trying to use past the end of the builtins.
4985 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
4986 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
4987 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
4988 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
4989 Rename to darwin_builtin_cfstring.
4990 (darwin_init_cfstring_builtins): Return the built type.
4991
4992 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
4993
4994 PR target/47840
4995 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
4996 (_mm256_insert_epi64): Use _mm_insert_epi64.
4997
4998 2011-02-21 Anatoly Sokolov <aesok@post.ru>
4999
5000 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5001 * config/stormy16/stormy16-protos.h
5002 (xstormy16_mode_dependent_address_p): Remove.
5003 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
5004 Make static. Change return type to bool. Change argument type to
5005 const_rtx. Remove dead code.
5006 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5007
5008 2011-02-21 Richard Guenther <rguenther@suse.de>
5009
5010 PR lto/47820
5011 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5012 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
5013 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
5014 TUs context.
5015 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5016 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
5017
5018 2011-02-20 Richard Guenther <rguenther@suse.de>
5019
5020 PR lto/47822
5021 * tree.c (free_lang_data_in_decl): Clean builtins from
5022 the TU decl BLOCK_VARS.
5023
5024 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
5025
5026 PR debug/47620
5027 PR debug/47630
5028 * haifa-sched.c (fix_tick_ready): Skip tick computation
5029 for debug insns.
5030
5031 2011-02-19 Richard Guenther <rguenther@suse.de>
5032
5033 PR lto/47647
5034 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
5035 Remove lazy BLOCK_VARS streaming.
5036 (lto_input_ts_block_tree_pointers): Likewise.
5037 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
5038
5039 2011-02-19 Joseph Myers <joseph@codesourcery.com>
5040
5041 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
5042
5043 2011-02-19 Joseph Myers <joseph@codesourcery.com>
5044
5045 * config/i386/biarch32.h, config/i386/mach.h,
5046 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
5047
5048 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5049
5050 PR target/47800
5051 * config/i386/i386.md (peephole2 for shift and plus): Use
5052 operands[1] original mode in the first insn.
5053
5054 2011-02-18 Mike Stump <mikestump@comcast.net>
5055
5056 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
5057
5058 2011-02-18 Jan Hubicka <jh@suse.cz>
5059
5060 PR middle-end/47788
5061 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
5062 to zero when the function is not inlinable at all.
5063
5064 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5065
5066 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
5067 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5068 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
5069 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
5070 * config/pa/t-pa64: Likewise.
5071 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5072
5073 2011-02-18 Jakub Jelinek <jakub@redhat.com>
5074
5075 PR driver/47787
5076 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
5077
5078 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5079
5080 PR target/47792
5081 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
5082
5083 2011-02-18 Anatoly Sokolov <aesok@post.ru>
5084
5085 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5086 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
5087 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
5088 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5089 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
5090 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
5091 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
5092 m32r_load_postinc_p, m32r_store_preinc_predec_p,
5093 m32r_legitimate_address_p): New functions.
5094 * config/m32r/constraints.md (constraint "S"): Don't use
5095 STORE_PREINC_PREDEC_P.
5096 (constraint "U"): Don't use LOAD_POSTINC_P.
5097
5098 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
5099
5100 PR rtl-optimization/46178
5101 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
5102 compute ira_hard_regno_cover_class[].
5103
5104 2011-02-18 Richard Guenther <rguenther@suse.de>
5105
5106 PR lto/47798
5107 * lto-streamer.h (lto_global_var_decls): Declare.
5108 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
5109 statics for global var processing.
5110
5111 2011-02-18 Richard Guenther <rguenther@suse.de>
5112
5113 PR tree-optimization/47737
5114 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
5115 edge dominance check.
5116
5117 2011-02-18 Jakub Jelinek <jakub@redhat.com>
5118
5119 PR debug/47780
5120 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
5121 avoid invalid rtx sharing.
5122
5123 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
5124
5125 * doc/cpp.texi (Obsolete Features): Add background on the
5126 origin of assertions.
5127
5128 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5129
5130 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
5131 objc_abi == 2.
5132 * config/darwin.c (output_objc_section_asm_op): Added support for
5133 ABI v1 and v2.
5134 (is_objc_metadata): New.
5135 (darwin_objc2_section): New.
5136 (darwin_objc1_section): New.
5137 (machopic_select_section): Added support for ABI v1 and v2.
5138 (darwin_emit_objc_zeroed): New.
5139 (darwin_output_aligned_bss): Detect objc metadata and treat it
5140 appropriately.
5141 (darwin_asm_output_aligned_decl_common): Same.
5142 (darwin_asm_output_aligned_decl_local): Same.
5143 * config/darwin-sections.def: Updated for ABI v1 and v2.
5144 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
5145 compiling Objective-C code for the NeXT runtime, default to using
5146 ABI version 0 for 32-bit, and version 2 for 64-bit.
5147
5148 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5149
5150 * common.opt (optimize_fast): New Variable.
5151 * opts.c (default_options_optimization): Use opts->x_optimize_fast
5152 instead of local variable ofast.
5153
5154 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
5155
5156 * doc/invoke.texi (fobjc-abi-version): Documented.
5157 (fobjc-nilcheck): Documented.
5158 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
5159 version.
5160
5161 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5162
5163 PR driver/47390
5164 * common.opt (export-dynamic): New Driver option.
5165 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
5166
5167 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5168
5169 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
5170
5171 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
5172 Jan Hubicka <jh@suse.cz>
5173
5174 PR debug/47106
5175 PR debug/47402
5176 * cfgexpand.c (account_used_vars_for_block): Remove.
5177 (estimated_stack_frame_size): Use referenced vars.
5178 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
5179 that were referenced in the original function. Test src_fn
5180 rather than cfun. Drop redundant get_var_ann.
5181 (setup_one_parameter): Drop redundant get_var_ann.
5182 (declare_return_variable): Likewise.
5183 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
5184 (copy_arguments_for_versioning): Drop redundant get_var_ann.
5185 * ipa-inline.c (compute_inline_parameters): Do not compute
5186 disregard_inline_limits here.
5187 (compute_inlinable_for_current, pass_inlinable): New.
5188 (pass_inline_parameters): Require PROP_referenced_vars.
5189 * cgraphunit.c (cgraph_process_new_functions): Don't run
5190 compute_inline_parameters explicitly unless function is in SSA form.
5191 (cgraph_analyze_function): Set .disregard_inline_limits.
5192 * tree-sra.c (convert_callers): Compute inliner parameters
5193 only for functions already in SSA form.
5194
5195 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5196
5197 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
5198 -mlittle-endian-data.
5199
5200 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5201
5202 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
5203 -mno-fpu, not -fpu and -no-fpu.
5204 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
5205 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
5206
5207 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
5208
5209 PR target/43653
5210 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
5211 input reload with PLUS RTX.
5212
5213 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5214
5215 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
5216 of InverseVar(MDMX).
5217
5218 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5219
5220 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
5221 --m4-340.
5222
5223 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5224
5225 * config/mn10300/mn10300.opt (mno-crt0): New.
5226
5227 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5228
5229 * config/m68k/uclinux.opt (static-libc): New Driver option.
5230
5231 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5232
5233 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
5234
5235 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5236
5237 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
5238 %{muser-extend-enabled}.
5239
5240 2011-02-16 Richard Guenther <rguenther@suse.de>
5241
5242 PR tree-optimization/47738
5243 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
5244 the TODO from tree_predictive_commoning.
5245
5246 2011-02-15 Jeff Law <law@redhat.com>
5247
5248 Revert
5249 2011-01-25 Jeff Law <law@redhat.com>
5250
5251 PR rtl-optimization/37273
5252 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5253 handle them like argument loads from stack slots. Do not double
5254 count memory for memory constants and argument loads from stack slots.
5255
5256 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
5257
5258 PR middle-end/47725
5259 * combine.c (cant_combine_insn_p): Revert the last change.
5260
5261 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5262
5263 PR target/47755
5264 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
5265 mode for vector constants. Remove code that checks for TImode.
5266
5267 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5268
5269 PR debug/47106
5270 PR debug/47402
5271 * cgraph.h (compute_inline_parameters): Return void.
5272 * ipa-inline.c (compute_inline_parameters): Adjust.
5273
5274 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5275
5276 PR debug/47106
5277 PR debug/47402
5278 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
5279 rather than decl.
5280 * cfgexpand.c (estimated_stack_frame_size): Likewise.
5281 * ipa-inline.c (compute_inline_parameters): Adjust.
5282
5283 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5284
5285 PR debug/47106
5286 PR debug/47402
5287 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
5288 Adjust all users. Pass FN to...
5289 * tree-flow-inline.h (first_referenced_var): ... this. Add
5290 fn argument.
5291 * ipa-struct-reorg.c: Adjust.
5292 * tree-dfa.c: Adjust.
5293 * tree-into-ssa.c: Adjust.
5294 * tree-sra.c: Adjust.
5295 * tree-ssa-alias.c: Adjust.
5296 * tree-ssa-live.c: Adjust.
5297 * tree-ssa.c: Adjust.
5298 * tree-ssanames.c: Adjust.
5299 * tree-tailcall.c: Adjust.
5300
5301 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5302
5303 PR debug/47106
5304 PR debug/47402
5305 * tree-flow.h (referenced_var_lookup): Add fn parameter.
5306 Adjust all callers.
5307 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
5308 * tree-flow-inline.h: Adjust.
5309 * gimple-pretty-print.c: Adjust.
5310 * tree-into-ssa.c: Adjust.
5311 * tree-ssa.c: Adjust.
5312 * cfgexpand.c: Adjust.
5313
5314 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5315
5316 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
5317 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5318 (EXTRA_CONSTRAINT): Delete.
5319 * config/iq2000/constraints.md: New file.
5320 * config/iq2000/iq2000.md: Include it.
5321 (define_insn ""): Delete.
5322 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
5323 unsupported constraint letters from patterns.
5324 (call_value, call_value_internal1): Likewise.
5325 (call_value_multiple_internal1): Likewise.
5326
5327 2011-02-15 Nick Clifton <nickc@redhat.com>
5328
5329 * config/mn10300/mn10300.c: Include tm-constrs.h.
5330 (struct liw_data): New data structure describing an LIW candidate
5331 instruction.
5332 (extract_bundle): Use struct liw_data. Allow small integer
5333 operands for some instructions.
5334 (check_liw_constraints): Use struct liw_data. Remove swapped
5335 parameter. Add comments describing the checks. Fix bug when
5336 assigning the source of liw1 to the source of liw2.
5337 (liw_candidate): Delete. Code moved into extract_bundle.
5338 (mn10300_bundle_liw): Use struct liw_data. Check constraints
5339 before swapping.
5340 * config/mn10300/predicates.md (liw_operand): New predicate.
5341 Allows registers and small integer constants.
5342 * config/mn10300/constraints.md (O): New constraint. Accetps
5343 integers in the range -8 to +7 inclusive.
5344 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
5345 for moving a small integer into a register. Give this alternative
5346 LIW attributes.
5347 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
5348 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
5349 using the J,K,L and M constraints,
5350 (liw): Remove SI mode on second operands to allow for HI and QI
5351 mode values.
5352 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
5353 instruction.
5354
5355 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
5356
5357 PR middle-end/47725
5358 * combine.c (cant_combine_insn_p): Check zero/sign extended
5359 hard registers.
5360
5361 2011-02-15 Richard Guenther <rguenther@suse.de>
5362
5363 PR tree-optimization/47743
5364 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
5365 for a non-type-compatible VN lookup bail out.
5366
5367 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5368
5369 * config/fr30/constraints.md: New file.
5370 * config/fr30/fr30.md: Include it.
5371 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
5372 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5373 (EXTRA_CONSTRAINT): Delete.
5374
5375 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5376
5377 * config/frv/constraints.md: New file.
5378 * config/frv/predicates.md: Include it.
5379 * config/frv/frv.c (reg_class_from_letter): Delete.
5380 (frv_option_override): Don't initialize it.
5381 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
5382 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
5383 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
5384 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5385 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
5386 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5387 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
5388 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
5389 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
5390 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
5391 (REG_CLASS_FROM_CONSTRAINT): Delete.
5392
5393 2011-02-15 Jakub Jelinek <jakub@redhat.com>
5394
5395 PR middle-end/47581
5396 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
5397 if frame size is 0 in a leaf function.
5398
5399 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5400
5401 PR pch/14940
5402 * config/alpha/host-osf.c: New file.
5403 * config/alpha/x-osf: New file.
5404 * config.host (alpha*-dec-osf*): Use it.
5405
5406 2011-02-14 Anatoly Sokolov <aesok@post.ru>
5407
5408 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5409 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
5410 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
5411 (rx_mode_dependent_address_p): ...this. Make static. Change argument
5412 type to const_rtx.
5413 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5414
5415 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5416
5417 * config/stormy16/constraints.md: New file.
5418 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
5419 Use satisfies_constraint_Q and satisfies_constraint_R.
5420 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
5421 Delete.
5422 (xstormy16_legitiamte_address_p): Declare.
5423 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
5424 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5425 (EXTRA_CONSTRAINT): Delete.
5426 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
5427 Un-staticize.
5428 (xstormy16_extra_constraint_p): Delete.
5429
5430 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
5431
5432 PR tree-optimization/46494
5433 * loop-unroll.c (split_edge_and_insert): Adjust comment.
5434 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
5435 (pass_rtl_loop_done): Add TODO_verify_flow.
5436 * fwprop.c (pass_rtl_fwprop): Likewise.
5437 * modulo-sched.c (pass_sms): Likewise.
5438 * tree-ssa-dom.c (pass_dominator): Likewise.
5439 * tree-ssa-loop-ch.c (pass_ch): Likewise.
5440 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
5441 (pass_tree_loop_done): Likewise.
5442 * tree-ssa-pre.c (execute_pre): Likewise.
5443 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
5444 * tree-ssa-sink.c (pass_sink_code): Likewise.
5445 * tree-vrp.c (pass_vrp): Likewise.
5446
5447 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5448
5449 * config/v850/constraints.md: New file.
5450 * config/v850/v850.md: Include it.
5451 * config/v850/predicates.md (reg_or_0_operand): Use
5452 satisfies_constraint_G.
5453 (special_symbolref_operand): Use satisfies_constraint_K.
5454 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
5455 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
5456 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
5457 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5458 (EXTRA_CONSTRAINT): Delete.
5459 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
5460 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
5461 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
5462
5463 2011-02-14 Anatoly Sokolov <aesok@post.ru>
5464
5465 PR target/47696
5466 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
5467 description.
5468
5469 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5470
5471 * config/mcore/constraints.md: New file.
5472 * config/mcore/mcore.md: Include it.
5473 * config/mcore/mcore.c (reg_class_from_letter): Delete.
5474 * config/mcore/mcore.h (reg_class_from_letter): Delete.
5475 (REG_CLASS_FROM_LETTER): Delete.
5476 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
5477 insn_const_int_ok_for_constraint.
5478 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
5479 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
5480 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5481 (EXTRA_CONSTRAINT): Delete.
5482
5483 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5484
5485 PR ada/41929
5486 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
5487 (IS_SIGHANDLER): Define.
5488 (sparc64_is_sighandler): New function, split off from
5489 sparc64_fallback_frame_state.
5490 (sparc_is_sighandler): New function, split off from
5491 sparc_fallback_frame_state.
5492 (sparc64_fallback_frame_state): Merge with ...
5493 (sparc_fallback_frame_state): ... this into ...
5494 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
5495 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
5496 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
5497 stack instead of hardcoded offsets.
5498
5499 2011-02-14 Andriy Gapon <avg@freebsd.org>
5500
5501 PR target/45808
5502 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
5503
5504 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5505
5506 * configure: Regenerate.
5507
5508 2011-02-12 Joseph Myers <joseph@codesourcery.com>
5509
5510 PR driver/45731
5511 * gcc.c (asm_options): Correct spec matching --target-help.
5512
5513 2011-02-12 Martin Jambor <mjambor@suse.cz>
5514
5515 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
5516 to gimple call error.
5517
5518 2011-02-12 Mike Stump <mikestump@comcast.net>
5519
5520 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
5521 comments in backslash regions.
5522
5523 2011-02-12 Mike Stump <mikestump@comcast.net>
5524 Jakub Jelinek <jakub@redhat.com>
5525 Iain Sandoe <iains@gcc.gnu.org>
5526
5527 PR target/47324
5528 * dwarf2out.c (output_cfa_loc): When required, apply the
5529 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
5530 (output_loc_sequence): Likewise.
5531 (output_loc_operands_raw): Likewise.
5532 (output_loc_sequence_raw): Likewise.
5533 (output_cfa_loc): Likewise.
5534 (output_loc_list): Suppress register number adjustment when
5535 calling output_loc_sequence()
5536 (output_die): Likewise.
5537
5538 2011-02-12 Anatoly Sokolov <aesok@post.ru>
5539
5540 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5541 Remove macros.
5542 * config/xtensa/xtensa.c (xtensa_register_move_cost,
5543 xtensa_memory_move_cost): New functions.
5544 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
5545
5546 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
5547
5548 PR lto/47225
5549 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
5550 in the current directory.
5551 * configure: Rebuilt.
5552
5553 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5554
5555 * config/darwin.c (darwin_override_options): Add a hunk missed
5556 from the commit of r168571. Trim comment line lengths and
5557 correct indents of the preceding block.
5558
5559 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5560
5561 * gcc.c (driver_handle_option): Concatenate the argument to -F with
5562 the switch.
5563
5564 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5565
5566 * common.opt (nostartfiles): New Driver option.
5567
5568 2011-02-11 Xinliang David Li <davidxl@google.com>
5569
5570 PR tree-optimization/47707
5571 * tree-chrec.c (convert_affine_scev): Keep type precision.
5572
5573 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
5574
5575 PR tree-optimization/47420
5576 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
5577
5578 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
5579
5580 PR rtl-optimization/47614
5581 * rtl.h (check_for_inc_dec): Declare.
5582 * dse.c (check_for_inc_dec): Externalize...
5583 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
5584 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
5585
5586 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5587
5588 PR driver/47678
5589 * gcc.c (main): Do not compile inputs if there were errors in
5590 option handling.
5591 * opts-common.c (read_cmdline_option): Check for wrong language
5592 after other error checks.
5593
5594 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
5595
5596 * cgraph.c: Fix comment typos.
5597 * cgraph.h: Likewise.
5598 * cgraphunit.c: Likewise.
5599 * ipa-cp.c: Likewise.
5600 * ipa-inline.c: Likewise.
5601 * ipa-prop.c: Likewise.
5602 * ipa-pure-const.c: Likewise.
5603 * ipa-ref.c: Likewise.
5604 * ipa-reference.c: Likewise.
5605
5606 2011-02-11 Jakub Jelinek <jakub@redhat.com>
5607
5608 PR debug/47684
5609 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
5610
5611 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5612
5613 PR testsuite/47400
5614 * doc/sourcebuild.texi (Require Support): Document
5615 dg-require-ascii-locale.
5616
5617 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
5618
5619 * doc/lto.texi (Write summary): Fix missing parentheses.
5620
5621 2011-02-10 DJ Delorie <dj@redhat.com>
5622
5623 * config/m32c/m32c.c (m32c_option_override): Disable
5624 -fcombine-stack-adjustments until flag value tracking and compare
5625 optimization can be rewritten.
5626
5627 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
5628
5629 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
5630 PROCESSOR_POWER7.
5631 (PROCESSOR_DEFAULT64): Likewise.
5632
5633 2011-02-10 Richard Henderson <rth@redhat.com>
5634
5635 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
5636 change from 2011-02-03.
5637 * config/rx/rx.c (flags_from_code): Likewise.
5638 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
5639 is valid, n/pz otherwise.
5640 (rx_select_cc_mode): Return CCmode if Y is not zero.
5641
5642 2011-02-10 Richard Guenther <rguenther@suse.de>
5643
5644 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
5645
5646 2011-02-10 Richard Guenther <rguenther@suse.de>
5647
5648 PR tree-optimization/47677
5649 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
5650
5651 2011-02-10 Jakub Jelinek <jakub@redhat.com>
5652
5653 PR target/47665
5654 * combine.c (make_compound_operation): Only change shifts into
5655 multiplication for SCALAR_INT_MODE_P.
5656
5657 2011-02-10 Jie Zhang <jie@codesourcery.com>
5658
5659 PR testsuite/47622
5660 Revert
5661 2011-02-05 Jie Zhang <jie@codesourcery.com>
5662 PR debug/42631
5663 * web.c (entry_register): Don't clobber the number of the
5664 first uninitialized reference in used[].
5665
5666 2011-02-09 Richard Guenther <rguenther@suse.de>
5667
5668 PR tree-optimization/47664
5669 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
5670 all edges again.
5671
5672 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
5673
5674 PR target/46481
5675 PR target/47032
5676 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
5677 PROCESSOR_POWER7.
5678 (PROCESSOR_DEFAULT64): Same.
5679 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
5680
5681 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5682
5683 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
5684
5685 2011-02-09 Martin Jambor <mjambor@suse.cz>
5686
5687 PR middle-end/45505
5688 * tree-sra.c (struct access): New flags grp_scalar_read and
5689 grp_scalar_write. Changed description of assignment read and write
5690 flags.
5691 (dump_access): Dump new flags, reorder all of them.
5692 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
5693 to detect multiple scalar reads.
5694 (analyze_access_subtree): Use the new scalar read write flags instead
5695 of the old flags. Adjusted comments.
5696
5697 2011-02-08 DJ Delorie <dj@redhat.com>
5698
5699 PR target/47548
5700 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
5701 patterns.
5702
5703 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5704
5705 * config/m68k/uclinux.opt: New.
5706 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
5707
5708 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5709
5710 * config/cris/elf.opt (sim): New Driver option.
5711
5712 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5713
5714 * config/xtensa/elf.opt: New.
5715 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
5716
5717 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5718
5719 * config/vax/elf.opt: New.
5720 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
5721
5722 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5723
5724 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
5725
5726 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5727
5728 * config/gnu-user.opt: New.
5729 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
5730 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
5731 *-*-uclinux*): Use gnu-user.opt.
5732
5733 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
5734
5735 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
5736 * config/i386/gnu.h (CPP_SPEC): Likewise.
5737
5738 2011-02-08 Ian Lance Taylor <iant@google.com>
5739
5740 * common.opt (fcx-limited-range): Add SetByCombined flag.
5741 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
5742 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
5743 (fassociative-math, freciprocal-math): Likewise.
5744 (funsafe-math-optimizations): Likewise.
5745 * opth-gen.awk: Handle SetByCombined.
5746 * optc-gen.awk: Likewise.
5747 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5748 (set_unsafe_math_optimizations_flags): Likewise.
5749 * doc/options.texi (Option properties): Document SetByCombined.
5750
5751 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5752
5753 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
5754 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
5755 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
5756 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
5757 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
5758
5759 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
5760
5761 PR tree-optimization/46834
5762 PR tree-optimization/46994
5763 PR tree-optimization/46995
5764 * graphite-sese-to-poly.c (used_outside_reduction): New.
5765 (detect_commutative_reduction): Call used_outside_reduction.
5766 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
5767 translate_scalar_reduction_to_array only when at least one
5768 loop-phi/close-phi tuple has been detected.
5769
5770 2011-02-08 Richard Guenther <rguenther@suse.de>
5771
5772 PR middle-end/47639
5773 * tree-vect-generic.c (expand_vector_operations_1): Update
5774 stmts here ...
5775 (expand_vector_operations): ... not here. Cleanup EH info
5776 and the CFG if required.
5777
5778 2011-02-08 Richard Guenther <rguenther@suse.de>
5779
5780 PR tree-optimization/47641
5781 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
5782 require type compatibility.
5783
5784 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5785
5786 * gimple-low.c (lower_function_body): Don't remove the location of
5787 the return statement here.
5788 (lower_gimple_return): Do it here instead but only if the return
5789 statement is actually used twice.
5790
5791 2011-02-08 Richard Guenther <rguenther@suse.de>
5792
5793 PR tree-optimization/47632
5794 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
5795 unused up_to_stmt parameter, return whether cfg-cleanup is
5796 necessary, remove EH info properly.
5797 (forward_propagate_into_gimple_cond): Adjust caller.
5798 (forward_propagate_into_cond): Likewise.
5799 (forward_propagate_comparison): Likewise.
5800 (tree_ssa_forward_propagate_single_use_vars): Make
5801 forward_propagate_comparison case similar to the two others.
5802
5803 2011-02-08 Nick Clifton <nickc@redhat.com>
5804
5805 * config/mn10300/mn10300.opt (mliw): New command line option.
5806 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
5807 (liw_bundling): New automaton.
5808 (liw): New attribute.
5809 (liw_op): New attribute.
5810 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
5811 (movsi_internal): Add LIW attributes.
5812 (andsi3): Likewise.
5813 (iorsi3): Likewise.
5814 (xorsi3): Likewise.
5815 (addsi3): Separate register and immediate alternatives.
5816 Add LIW attributes.
5817 (subsi3): Likewise.
5818 (cmpsi): Likewise.
5819 (aslsi3): Likewise.
5820 (lshrsi3): Likewise.
5821 (ashrsi3): Likewise.
5822 (liw): New pattern.
5823 * config/mn10300/mn10300.c (liw_op_names): New
5824 (mn10300_print_operand): Handle 'W' operand descriptor.
5825 (extract_bundle): New function.
5826 (check_liw_constraints): New function.
5827 (liw_candidate): New function.
5828 (mn10300_bundle_liw): New function.
5829 (mn10300_reorg): New function.
5830 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5831 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
5832 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
5833 __LIW__ or __NO_LIW__.
5834 * doc/invoke.texi: Describe the -mliw command line option.
5835
5836 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5837
5838 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
5839 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5840 pthread_mutex_unlock): Remove.
5841 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
5842 * config/pa/t-pa64: Likewise.
5843 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
5844 shared libc if not linking against libpthread.
5845 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5846
5847 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
5848
5849 PR target/47558
5850 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
5851 on 10.6 and later to ensure that we always use the unwinder from
5852 the system. Only add -no_compact_unwind when tarteting darwin
5853 10.6 or later.
5854
5855 2011-02-07 Steve Ellcey <sje@cup.hp.com>
5856
5857 PR target/46997
5858 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
5859 (vec_interleave_lowv2sf): Ditto.
5860 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
5861 (vec_extract_oddv2sf): Ditto.
5862
5863 2011-02-07 Mike Stump <mikestump@comcast.net>
5864
5865 PR target/42333
5866 Add __ieee_divdc3 entry point.
5867 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
5868 entry point.
5869 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
5870 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
5871 * config/darwin.c (darwin_rename_builtins): Add.
5872 * config/darwin-protos.h (darwin_rename_builtins): Add.
5873
5874 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
5875
5876 PR target/47636
5877 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
5878 for the condition.
5879
5880 2011-02-07 Mike Stump <mikestump@comcast.net>
5881
5882 * config/darwin.opt (mmacosx-version-min): Update default OS version.
5883
5884 2011-02-07 Denis Chertykov <chertykov@gmail.com>
5885
5886 PR target/47534
5887 * config/avr/libgcc.S (exit): Move .endfunc
5888
5889 2011-02-07 Richard Guenther <rguenther@suse.de>
5890
5891 PR tree-optimization/47615
5892 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
5893 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
5894 (run_scc_vn): Initialize it.
5895 (visit_reference_op_load): Use it.
5896 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
5897
5898 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5899
5900 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
5901 DImode trapping arithmetic libfuncs.
5902
5903 2011-02-07 Richard Guenther <rguenther@suse.de>
5904
5905 PR tree-optimization/47621
5906 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
5907 two duplicates ...
5908 (execute_update_addresses_taken): ... here. Make it more
5909 conservative in what we accept.
5910
5911 2011-02-06 Joseph Myers <joseph@codesourcery.com>
5912
5913 * config/sparc/freebsd.h (ASM_SPEC): Define.
5914 * config/sparc/vxworks.h (ASM_SPEC): Define.
5915
5916 2011-02-06 Joseph Myers <joseph@codesourcery.com>
5917
5918 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
5919
5920 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
5921
5922 * doc/invoke.texi: Remove reference to compiler internals from
5923 user documentation.
5924
5925 * reg-notes.def: Remove REG_VALUE_PROFILE.
5926 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
5927
5928 2011-02-05 Jakub Jelinek <jakub@redhat.com>
5929
5930 PR middle-end/47610
5931 * varasm.c (default_section_type_flags): If decl is NULL,
5932 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
5933
5934 2011-02-05 Jie Zhang <jie@codesourcery.com>
5935
5936 PR debug/42631
5937 * web.c (entry_register): Don't clobber the number of the
5938 first uninitialized reference in used[].
5939
5940 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
5941
5942 PR tree-optimization/46194
5943 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
5944 (build_classic_dist_vector_1): Do not represent classic distance
5945 vectors when the access functions are variating in different loops.
5946
5947 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5948
5949 * config/mips/iris6.opt: New.
5950 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
5951
5952 2011-02-04 Richard Henderson <rth@redhat.com>
5953 Steve Ellcey <sje@cup.hp.com>
5954
5955 PR target/46997
5956 * config/ia64/predicates.md (mux1_brcst_element): New.
5957 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
5958 * config/ia64/ia64.c (ia64_unpack_assemble): New.
5959 (ia64_unpack_sign): New.
5960 (ia64_expand_unpack): Rewrite using new routines.
5961 (ia64_expand_widen_sum): Ditto.
5962 (ia64_expand_dot_prod_v8qi): Ditto.
5963 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
5964 routines, add endian check.
5965 (pmpy2_even): Rename from pmpy2_r, add endian check.
5966 (pmpy2_odd): Rename from pmpy2_l, add endian check.
5967 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
5968 (vec_widen_smult_hi_v4hi): Ditto.
5969 (vec_widen_umult_lo_v4hi): Ditto.
5970 (vec_widen_umult_hi_v4hi): Ditto.
5971 (mulv2si3): Change endian checks.
5972 (sdot_prodv4hi): Rewrite with new calls.
5973 (udot_prodv4hi): New.
5974 (vec_pack_ssat_v4hi): Add endian check.
5975 (vec_pack_usat_v4hi): Ditto.
5976 (vec_pack_ssat_v2si): Ditto.
5977 (max1_even): Rename from max1_r, add endian check.
5978 (max1_odd): Rename from max1_l, add endian check.
5979 (*mux1_rev): Format change.
5980 (*mux1_mix): Ditto.
5981 (*mux1_shuf): Ditto.
5982 (*mux1_alt): Ditto.
5983 (*mux1_brcst_v8qi): Use new predicate.
5984 (vec_extract_evenv8qi): Remove endian check.
5985 (vec_extract_oddv8qi): Ditto.
5986 (vec_interleave_lowv4hi): Format change.
5987 (vec_interleave_highv4hi): Ditto.
5988 (mix2_even): Rename from mix2_r, add endian check.
5989 (mix2_odd): Rename from mux2_l, add endian check.
5990 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
5991 (vec_extract_evenodd_helper): Format change.
5992 (vec_extract_evenv4hi): Remove endian check.
5993 (vec_extract_oddv4hi): Remove endian check.
5994 (vec_interleave_lowv2si): Format change.
5995 (vec_interleave_highv2si): Format change.
5996 (vec_initv2si): Remove endian check.
5997 (vecinit_v2si): Add endian check.
5998 (reduc_splus_v2sf): Add endian check.
5999 (reduc_smax_v2sf): Ditto.
6000 (reduc_smin_v2sf): Ditto.
6001 (vec_initv2sf): Remove endian check.
6002 (fpack): Add endian check.
6003 (fswap): Add endian check.
6004 (vec_interleave_highv2sf): Add endian check.
6005 (vec_interleave_lowv2sf): Add endian check.
6006 (fmix_lr): Add endian check.
6007 (vec_setv2sf): Format change.
6008 (*vec_extractv2sf_0_be): Use shift to extract operand.
6009 (*vec_extractv2sf_1_be): New.
6010 (vec_pack_trunc_v4hi): Add endian check.
6011 (vec_pack_trunc_v2si): Format change.
6012
6013 2011-02-04 Jakub Jelinek <jakub@redhat.com>
6014
6015 PR inline-asm/23200
6016 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
6017 do bb, locus and block comparison and disallow loads if it is not set.
6018 (stmt_is_replaceable_p): New function.
6019 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
6020 callers.
6021 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
6022 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
6023 SSA_NAME_DEF_STMT.
6024 * tree-flow.h (stmt_is_replaceable_p): New prototype.
6025
6026 2011-02-04 Joseph Myers <joseph@codesourcery.com>
6027
6028 * config/rs6000/xilinx.opt: New.
6029 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
6030
6031 2011-02-04 Joseph Myers <joseph@codesourcery.com>
6032
6033 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
6034
6035 2011-02-03 Anatoly Sokolov <aesok@post.ru>
6036
6037 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
6038 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6039 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
6040 secondary_reload_info, xtensa_secondary_reload): Remove.
6041 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
6042 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6043 (xtensa_preferred_reload_class): Make static. Change return and
6044 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
6045 Use CONST_DOUBLE_P predicate.
6046 (xtensa_preferred_output_reload_class): New function.
6047 (xtensa_secondary_reload): Make static.
6048
6049 2011-02-03 Joseph Myers <joseph@codesourcery.com>
6050
6051 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
6052 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
6053 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
6054
6055 2011-02-03 Jakub Jelinek <jakub@redhat.com>
6056
6057 PR middle-end/31490
6058 * output.h (SECTION_RELRO): Define.
6059 (SECTION_MACH_DEP): Adjust.
6060 (get_variable_section): New prototype.
6061 * varpool.c (varpool_finalize_named_section_flags): New function.
6062 (varpool_assemble_pending_decls): Call it.
6063 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
6064 * cgraphunit.c (cgraph_output_in_order): Call
6065 varpool_finalize_named_section_flags.
6066 * varasm.c (get_section): Allow section flags conflicts between
6067 relro and read-only sections if the section hasn't been declared yet.
6068 Set SECTION_OVERRIDE after diagnosing section type conflict.
6069 (get_variable_section): No longer static.
6070 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
6071 readonly sections that need relocations.
6072 (decl_readonly_section_1): New function.
6073 (decl_readonly_section): Use it.
6074
6075 Revert:
6076 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
6077 Steve Ellcey <sje@cup.hp.com>
6078
6079 PR middle-end/31490
6080 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
6081 if section attribute used.
6082
6083 2011-02-03 Jakub Jelinek <jakub@redhat.com>
6084
6085 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
6086 * config/darwin.c (SECTION_NO_ANCHOR): Define.
6087 (darwin_init_sections): Remove assertion.
6088
6089 2011-02-03 Nick Clifton <nickc@redhat.com>
6090
6091 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
6092 lt and ge.
6093 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6094 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
6095 instead of "n" and "pz".
6096 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
6097 CC_FLAG_S.
6098
6099 2011-02-03 Jakub Jelinek <jakub@redhat.com>
6100
6101 PR target/47312
6102 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
6103 fma, expand FMA_EXPR as fma{,f,l} call.
6104
6105 PR lto/47274
6106 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
6107 copy them into a unsigned char variable and pass address of it to
6108 lto_output_data_stream.
6109
6110 PR target/47564
6111 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
6112 around backend_init_target and lang_dependent_init_target calls.
6113 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
6114 (verify_cgraph_node): Don't call set_cfun here. Use
6115 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
6116 Set error_found for incorrectly represented calls to thunks.
6117
6118 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
6119
6120 PR debug/43092
6121 PR rtl-optimization/43494
6122 * rtl.h (for_each_inc_dec_fn): New type.
6123 (for_each_inc_dec): Declare.
6124 * rtlanal.c (struct for_each_inc_dec_ops): New type.
6125 (for_each_inc_dec_find_inc_dec): New fn.
6126 (for_each_inc_dec_find_mem): New fn.
6127 (for_each_inc_dec): New fn.
6128 * dse.c (struct insn_size): Remove.
6129 (replace_inc_dec, replace_inc_dec_mem): Remove.
6130 (emit_inc_dec_insn_before): New fn.
6131 (check_for_inc_dec): Use it, along with for_each_inc_dec.
6132 (canon_address): Pass mem modes to cselib_lookup.
6133 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
6134 (cselib_lookup_from_insn): Likewise.
6135 (cselib_subst_to_values): Likewise.
6136 * cselib.c (find_slot_memmode): New var.
6137 (cselib_find_slot): New fn. Use it instead of
6138 htab_find_slot_with_hash everywhere.
6139 (entry_and_rtx_equal_p): Use find_slot_memmode.
6140 (autoinc_split): New fn.
6141 (rtx_equal_for_cselib_p): Rename and implement in terms of...
6142 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
6143 Deal with autoinc. Special-case recursion into MEMs.
6144 (cselib_hash_rtx): Likewise.
6145 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
6146 address and MEM modes.
6147 (cselib_subst_to_values): Add memmode, pass it on.
6148 Deal with autoinc.
6149 (cselib_lookup): Add memmode argument, pass it on.
6150 (cselib_lookup_from_insn): Add memmode.
6151 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
6152 (struct cselib_record_autoinc_data): New.
6153 (cselib_record_autoinc_cb): New fn.
6154 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
6155 mode to cselib_lookup. Reset autoinced REGs here instead of...
6156 (cselib_process_insn): ... here.
6157 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
6158 to cselib_lookup.
6159 (add_uses): Likewise, also to cselib_subst_to_values.
6160 (add_stores): Likewise.
6161 * sched-deps.c (add_insn_mem_dependence): Pass mode to
6162 cselib_subst_to_values.
6163 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
6164 * gcse.c (do_local_cprop): Adjusted.
6165 * postreload.c (reload_cse_simplify_set): Adjusted.
6166 (reload_cse_simplify_operands): Adjusted.
6167 * sel-sched-dump (debug_mem_addr_value): Pass mode.
6168
6169 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
6170
6171 PR tree-optimization/45122
6172 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
6173 unsafe assumptions when there's more than one loop exit.
6174
6175 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6176
6177 PR target/47272
6178 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
6179 Document using vector double with the load/store builtins, and
6180 that the load/store builtins always use Altivec instructions.
6181
6182 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
6183 to use altivec memory instructions, even on VSX.
6184 (vector_altivec_store_<mode>): Ditto.
6185
6186 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
6187 function.
6188
6189 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6190 V2DF, V2DI support to load/store overloaded builtins.
6191
6192 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
6193 altivec load/store builtins for V2DF/V2DI types.
6194
6195 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
6196 set avoid indexed addresses on power6 if -maltivec.
6197 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
6198 vector_altivec_load/vector_altivec_store builtins.
6199 (altivec_expand_st_builtin): Ditto.
6200 (altivec_expand_builtin): Add VSX memory builtins.
6201 (rs6000_init_builtins): Add V2DI types to internal types.
6202 (altivec_init_builtins): Add support for V2DF/V2DI altivec
6203 load/store builtins.
6204 (rs6000_address_for_altivec): Insure memory address is appropriate
6205 for Altivec.
6206
6207 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
6208 vec_vsx_ld and vec_vsx_st.
6209 (vsx_store_<mode>): Ditto.
6210
6211 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
6212 variables to hold long long types for VSX vector memory builtins.
6213 (RS6000_BTI_unsigned_long_long): Ditto.
6214 (long_long_integer_type_internal_node): Ditti.
6215 (long_long_unsigned_type_internal_node): Ditti.
6216
6217 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
6218 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
6219 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
6220
6221 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
6222 short cuts.
6223 (vec_vsx_st): Ditto.
6224
6225 2011-02-02 Joseph Myers <joseph@codesourcery.com>
6226
6227 * config/pa/pa-hpux10.opt: New.
6228 * config/hpux11.opt (pthread): New Driver option.
6229 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
6230 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
6231
6232 2011-02-02 Joseph Myers <joseph@codesourcery.com>
6233
6234 * config/ia64/vms.opt: New.
6235 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
6236
6237 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6238
6239 PR target/47580
6240 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
6241 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
6242 generator functions.
6243 (vsx_floatuns<VSi><mode>2): Ditto.
6244 (vsx_fix_trunc<mode><VSi>2): Ditto.
6245 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
6246
6247 2011-02-02 Joseph Myers <joseph@codesourcery.com>
6248
6249 * config/i386/djgpp.opt (posix): New Driver option.
6250
6251 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
6252
6253 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
6254 Move to the unsupported targets list.
6255
6256 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
6257
6258 PR rtl-optimization/47525
6259 * df-scan.c: Update copyright years.
6260 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
6261 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
6262
6263 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6264
6265 * config/i386/sysv4.h (TARGET_VERSION): Remove.
6266 (SUBTARGET_RETURN_IN_MEMORY): Remove.
6267 (ASM_OUTPUT_ASCII): Remove.
6268 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
6269
6270 2011-02-02 Jeff Law <law@redhat.com>
6271
6272 PR middle-end/47543
6273 * reload.c (find_reloads_address): Handle reg+d address where both
6274 components are invalid by reloading the entire address.
6275
6276 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
6277 Richard Guenther <rguenther@suse.de>
6278
6279 PR tree-optimization/40979
6280 PR bootstrap/47044
6281 * passes.c (init_optimization_passes): After LIM call copy_prop
6282 and DCE to clean up.
6283 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
6284
6285 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
6286
6287 PR tree-optimization/47576
6288 PR tree-optimization/47555
6289 * doc/invoke.texi (scev-max-expr-complexity): Documented.
6290 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6291 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
6292 * tree-scalar-evolution.c (follow_ssa_edge): Use
6293 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
6294
6295 2011-02-02 Richard Guenther <rguenther@suse.de>
6296
6297 PR tree-optimization/47566
6298 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
6299
6300 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
6301
6302 PR debug/47106
6303 PR debug/47402
6304 * tree-inline.c (declare_return_variable): Remove unused caller
6305 variable.
6306
6307 PR debug/47106
6308 PR debug/47402
6309 * tree-flow-inline.h (clear_is_used, is_used_p): New.
6310 * cfgexpand.c (account_used_vars_for_block): Use them.
6311 * tree-nrv.c (tree_nrv): Likewise.
6312 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
6313 (dump_scope_block): Likewise.
6314 (remove_unused_locals): Likewise.
6315
6316 PR debug/47106
6317 PR debug/47402
6318 * tree-inline.c (declare_return_variable): Add result decl to
6319 local decls only once.
6320 * gimple-low.c (record_vars_into): Mark newly-created variables
6321 as referenced.
6322
6323 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
6324
6325 PR debug/47498
6326 PR debug/47501
6327 PR debug/45136
6328 PR debug/45130
6329 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6330 debug insns.
6331 (no_real_insns_p, schedule_block, set_priorities): Drop special
6332 treatment of boundary debug insns.
6333 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6334 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
6335 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6336 (BOUNDARY_DEBUG_INSN_P): Likewise.
6337 (SCHEDULE_DEBUG_INSN_P): Likewise.
6338 * sched-rgn.c (init_ready_list): Drop special treatment of
6339 boundary debug insns.
6340 * final.c (rest_of_clean_state): Clear notes' BB.
6341
6342 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6343
6344 * config/openbsd.opt (assert=): New Driver option.
6345
6346 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6347
6348 * config/i386/nto.opt: New.
6349 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
6350
6351 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6352
6353 * config/i386/netware.opt: New.
6354 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
6355
6356 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6357
6358 * config/interix.opt (posix): New Driver option.
6359
6360 2011-02-01 DJ Delorie <dj@redhat.com>
6361
6362 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
6363
6364 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
6365 class for A0/A1.
6366
6367 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
6368
6369 PR tree-optimization/47561
6370 * toplev.c (process_options): Print the Graphite flags. Add
6371 flag_loop_flatten to the list of options requiring Graphite.
6372
6373 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6374
6375 * config/i386/cygming.opt (posix): New Driver option.
6376
6377 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6378
6379 * config/arm/vxworks.opt: New.
6380 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
6381
6382 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6383
6384 * config/alpha/elf.opt: New.
6385 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
6386 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
6387
6388 2011-02-01 Richard Guenther <rguenther@suse.de>
6389
6390 PR tree-optimization/47559
6391 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
6392 store-motion on references that can throw.
6393
6394 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
6395
6396 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
6397 * tree-pass.h (TDF_CSELIB): New macro.
6398 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
6399 cselib_lookup): Check for it rather than for TDF_DETAILS.
6400
6401 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
6402
6403 PR driver/47547
6404 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
6405 is HOST_BIT_BUCKET.
6406
6407 * opts.c (finish_options): Don't add x_aux_base_name if it is
6408 HOST_BIT_BUCKET.
6409
6410 2011-02-01 Richard Guenther <rguenther@suse.de>
6411
6412 PR tree-optimization/47555
6413 Revert
6414 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
6415
6416 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6417
6418 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
6419
6420 PR gcc/46692
6421 * config/lm32/t-lm32: Add multilib for all CPU options.
6422
6423 2011-02-01 Richard Guenther <rguenther@suse.de>
6424
6425 PR tree-optimization/47541
6426 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6427 sure to have a field at offset zero.
6428
6429 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6430
6431 * config/arc/arc.opt (EB, EL): New Driver options.
6432
6433 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6434
6435 * config/alpha/osf5.opt: New.
6436 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
6437
6438 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6439
6440 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
6441
6442 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
6443
6444 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
6445 -floop-interchange.
6446 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
6447 is an alias of -floop-interchange and that it requires the
6448 Graphite infrastructure.
6449 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
6450 flag_loop_interchange based on the value of flag_tree_loop_linear.
6451
6452 2011-01-31 Jakub Jelinek <jakub@redhat.com>
6453 Richard Guenther <rguenther@suse.de>
6454
6455 PR tree-optimization/47538
6456 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
6457 type instead of r1type, except for comparisons. For right
6458 shifts and comparisons punt if there are mismatches in
6459 sizetype vs. non-sizetype types.
6460
6461 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6462
6463 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6464 avx_runtime.
6465
6466 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6467
6468 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
6469 version number.
6470 * configure: Regenerate.
6471
6472 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6473
6474 * configure.ac (gcc_cv_ld_static_option): Define.
6475 (gcc_cv_ld_dynamic_option): Define.
6476 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
6477 instead.
6478 (HAVE_LD_STATIC_DYNAMIC): Update message.
6479 (LD_STATIC_OPTION): Define.
6480 (LD_DYNAMIC_OPTION): Define.
6481 * configure: Regenerate.
6482 * config.in: Regenerate.
6483 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
6484 HAVE_LD_STATIC_DYNAMIC]: Use them.
6485
6486 2011-01-31 Nick Clifton <nickc@redhat.com>
6487
6488 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
6489 registers inside interrupt handlers if the handler is not a leaf
6490 function.
6491
6492 2011-01-31 Nick Clifton <nickc@redhat.com>
6493
6494 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
6495 reg_renumber returning an INVALID_REGNUM.
6496
6497 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
6498
6499 PR libgcj/44341
6500 * doc/install.texi: Document host options discarded when cross
6501 configuring target libraries.
6502
6503 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
6504
6505 Reverted:
6506 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6507 PR debug/45136
6508 PR debug/45130
6509 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6510 debug insns.
6511 (no_real_insns_p, schedule_block, set_priorities): Drop special
6512 treatment of boundary debug insns.
6513 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6514 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6515 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6516 (BOUNDARY_DEBUG_INSN_P): Likewise.
6517 (SCHEDULE_DEBUG_INSN_P): Likewise.
6518 * sched-rgn.c (init_ready_list): Drop special treatment of
6519 boundary debug insns.
6520 * final.c (rest_of_clean-state): Clear notes' BB.
6521
6522 2011-01-31 Alan Modra <amodra@gmail.com>
6523
6524 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
6525 toc relative expressions as we do in print_operand_address.
6526
6527 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
6528
6529 * doc/extend.texi: Follow spelling conventions.
6530 * doc/invoke.texi: Fix a typo.
6531
6532 2011-01-30 Joseph Myers <joseph@codesourcery.com>
6533
6534 * config/hpux11.opt: New.
6535 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
6536 ia64*-*-hpux*): Use hpux11.opt.
6537
6538 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
6539
6540 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
6541 to tmake_file.
6542
6543 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6544
6545 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
6546 support sites.
6547
6548 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6549
6550 * doc/install.texi (Binaries): Remove outdated reference for
6551 Motorola 68HC11/68HC12 downloads.
6552
6553 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6554
6555 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
6556 Drepper's paper.
6557
6558 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6559
6560 PR bootstrap/47147
6561 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
6562 used by NetBSD.
6563
6564 2011-01-28 Ahmad Sharif <asharif@google.com>
6565
6566 * value-prof.c (check_counter): Corrected error message.
6567
6568 2011-01-29 Jie Zhang <jie@codesourcery.com>
6569
6570 * config/arm/arm.c (arm_legitimize_reload_address): New.
6571 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6572 arm_legitimize_reload_address.
6573 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
6574
6575 2011-01-28 Ian Lance Taylor <iant@google.com>
6576
6577 * godump.c (go_define): Ignore macros whose definitions include
6578 two adjacent operands.
6579
6580 2011-01-28 Jakub Jelinek <jakub@redhat.com>
6581
6582 PR target/42894
6583 * varasm.c (force_const_mem): Store copy of x in desc->constant
6584 instead of x itself.
6585 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
6586 itself into REG_EQUAL note.
6587
6588 2011-01-28 Joseph Myers <joseph@codesourcery.com>
6589
6590 * config/freebsd.opt (posix, rdynamic): New Driver options.
6591
6592 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6593
6594 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
6595 -Bstatic/-Bdynamic.
6596 * configure: Regenerate.
6597
6598 2011-01-27 Joseph Myers <joseph@codesourcery.com>
6599
6600 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
6601 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
6602
6603 2011-01-27 Anatoly Sokolov <aesok@post.ru>
6604
6605 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
6606 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
6607 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6608 (s390_preferred_reload_class): Make static. Change return and
6609 'rclass' argument type to reg_class_t.
6610
6611 2011-01-27 Jan Hubicka <jh@suse.cz>
6612
6613 PR middle-end/46949
6614 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
6615 (process_function_and_variable_attributes): Check defined weakrefs.
6616
6617 2011-01-27 Martin Jambor <mjambor@suse.cz>
6618
6619 PR tree-optimization/47228
6620 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
6621 build_ref_for_offset.
6622
6623 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6624
6625 * config/spu/spu-elf.h (ASM_SPEC): Remove.
6626
6627 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
6628
6629 PR rtl-optimization/46856
6630 * postreload.c (reload_combine_recognize_const_pattern): Do not
6631 separate cc0 setter and user on cc0 targets.
6632
6633 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
6634
6635 PR c/43082
6636 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
6637 passed a VOID_TYPE expression, immediately emit an error and
6638 return error_mark_node.
6639
6640 2011-01-26 Jeff Law <law@redhat.com>
6641
6642 PR rtl-optimization/47464
6643 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
6644 rather than may_trap_p as needed.
6645
6646 2011-01-26 DJ Delorie <dj@redhat.com>
6647
6648 PR rtl-optimization/46878
6649 * combine.c (insn_a_feeds_b): Check for the implicit cc0
6650 setter/user dependency as well.
6651
6652 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
6653
6654 PR rtl-optimization/44469
6655 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
6656 after removing trivially dead basic blocks.
6657
6658 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6659
6660 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
6661 * config/frv/frv.h (LINK_SPEC): Likewise.
6662 * config/i386/netware.h (LINK_SPEC): Likewise.
6663 * config/m68k/linux.h (ASM_SPEC): Likewise.
6664 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
6665 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6666 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6667 * config/sparc/linux.h (ASM_SPEC): Likewise.
6668 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6669 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6670
6671 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6672
6673 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
6674 * config/frv/frv.h (ASM_SPEC): Likewise.
6675 * config/m68k/linux.h (ASM_SPEC): Likewise.
6676 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6677 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
6678 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6679 * config/sparc/linux.h (ASM_SPEC): Likewise.
6680 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6681 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6682
6683 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6684
6685 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
6686 * config/frv/frv.h (LINK_SPEC): Likewise.
6687 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6688
6689 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6690
6691 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
6692 * config/frv/frv.h (ASM_SPEC): Likewise.
6693 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
6694 * config/m68k/linux.h (ASM_SPEC): Likewise.
6695 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6696 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6697 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6698 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
6699 * config/sparc/linux.h (ASM_SPEC): Likewise.
6700 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6701 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6702 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
6703
6704 2011-01-26 Steve Ellcey <sje@cup.hp.com>
6705
6706 PR target/46997
6707 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
6708 (*mux2): Ditto.
6709 (vec_extract_evenodd_help): Ditto.
6710 (vec_extract_evenv4hi): Ditto.
6711 (vec_extract_oddv4hi): Ditto.
6712 (vec_interleave_lowv2si): Ditto.
6713 (vec_interleave_highv2si): Ditto.
6714 (vec_extract_evenv2si): Ditto.
6715 (vec_extract_oddv2si: Ditto.
6716 (vec_pack_trunc_v2si): Ditto.
6717
6718 2011-01-22 Jan Hubicka <jh@suse.cz>
6719
6720 PR target/47237
6721 * cgraph.h (cgraph_local_info): New field can_change_signature.
6722 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
6723 signature can change.
6724 (ipcp_estimate_growth): Call sequence simplify only if calle signature
6725 can change.
6726 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
6727 (cgraph_function_versioning): We can not change signature of functions
6728 that don't allow that.
6729 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
6730 (lto_input_node): Likewise.
6731 * ipa-inline.c (compute_inline_parameters): Compute
6732 local.can_change_signature.
6733 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
6734 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
6735 functions that can not change signature.
6736 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
6737 init_cumulative_args): Do not use local calling conventions
6738 for functions that can not change signature.
6739
6740 2011-01-22 Jan Hubicka <jh@suse.cz>
6741
6742 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
6743
6744 2011-01-26 Richard Guenther <rguenther@suse.de>
6745
6746 PR tree-optimization/47190
6747 * cgraphunit.c (process_common_attributes): New function.
6748 (process_function_and_variable_attributes): Use it.
6749
6750 2011-01-26 Richard Guenther <rguenther@suse.de>
6751
6752 PR lto/47423
6753 * cgraphbuild.c (record_eh_tables): Record reference to personality
6754 function.
6755
6756 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
6757
6758 PR debug/45454
6759 * sel-sched.c (moveup_expr): Don't let debug insns prevent
6760 non-debug insns from moving up.
6761
6762 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6763
6764 PR target/40125
6765 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
6766 t-dlldir{,-x} fragment for build and add it to tmake_file.
6767 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
6768 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
6769 * config/i386/t-dlldir: New file.
6770 (SHLIB_DLLDIR): Define.
6771 * config/i386/t-dlldir-x: New file.
6772 (SHLIB_DLLDIR): Define.
6773 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
6774 (SHLIB_INSTALL): Use it.
6775
6776 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
6777
6778 PR target/47246
6779 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
6780 lower bound of the allowed Thumb-2 coprocessor load/store
6781 index range to -256. Add explaining comment.
6782
6783 2011-01-25 Ian Lance Taylor <iant@google.com>
6784
6785 * godump.c (go_define): Improve lexing of macro expansion to only
6786 accept expressions which match Go spec.
6787
6788 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6789
6790 PR c++/43601
6791 * tree.c (handle_dll_attribute): Handle it.
6792 * doc/extend.texi (@item dllexport): Mention it.
6793 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
6794
6795 2011-01-25 Ian Lance Taylor <iant@google.com>
6796
6797 PR tree-optimization/26854
6798 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
6799 (decl_jump_unsafe): Move higher in file, with no other change.
6800 (bind): Set has_jump_unsafe_decl if appropriate.
6801 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
6802 (check_earlier_gotos): Likewise.
6803 (c_check_switch_jump_warnings): Likewise.
6804
6805 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
6806
6807 * doc/invoke.texi (Warning Options): Add missing hyphen.
6808 (-fprofile-dir): Minor grammatical fixes.
6809 (-fbranch-probabilities): Likewise.
6810
6811 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6812
6813 PR debug/45136
6814 PR debug/45130
6815 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6816 debug insns.
6817 (no_real_insns_p, schedule_block, set_priorities): Drop special
6818 treatment of boundary debug insns.
6819 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6820 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6821 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6822 (BOUNDARY_DEBUG_INSN_P): Likewise.
6823 (SCHEDULE_DEBUG_INSN_P): Likewise.
6824 * sched-rgn.c (init_ready_list): Drop special treatment of
6825 boundary debug insns.
6826 * final.c (rest_of_clean-state): Clear notes' BB.
6827
6828 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6829
6830 * Makefile.in (LAMBDA_H): Removed.
6831 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
6832 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
6833 lambda-trans.o, and tree-loop-linear.o.
6834 (lto-symtab.o): Remove dependence on LAMBDA_H.
6835 (tree-loop-linear.o): Remove rule.
6836 (lambda-mat.o): Same.
6837 (lambda-trans.o): Same.
6838 (lambda-code.o): Same.
6839 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
6840 (tree-vect-slp.o): Same.
6841 * hwint.h (gcd): Moved here.
6842 (least_common_multiple): Same.
6843 * lambda-code.c: Removed.
6844 * lambda-mat.c: Removed.
6845 * lambda-trans.c: Removed.
6846 * lambda.h: Removed.
6847 * tree-loop-linear.c: Removed.
6848 * lto-symtab.c: Do not include lambda.h.
6849 * omega.c (gcd): Removed.
6850 * passes.c (init_optimization_passes): Remove pass_linear_transform.
6851 * tree-data-ref.c (print_lambda_vector): Moved here.
6852 (lambda_vector_copy): Same.
6853 (lambda_matrix_copy): Same.
6854 (lambda_matrix_id): Same.
6855 (lambda_vector_first_nz): Same.
6856 (lambda_matrix_row_add): Same.
6857 (lambda_matrix_row_exchange): Same.
6858 (lambda_vector_mult_const): Same.
6859 (lambda_vector_negate): Same.
6860 (lambda_matrix_row_negate): Same.
6861 (lambda_vector_equal): Same.
6862 (lambda_matrix_right_hermite): Same.
6863 * tree-data-ref.h: Do not include lambda.h.
6864 (lambda_vector): Moved here.
6865 (lambda_matrix): Same.
6866 (dependence_level): Same.
6867 (lambda_transform_legal_p): Removed declaration.
6868 (lambda_collect_parameters): Same.
6869 (lambda_compute_access_matrices): Same.
6870 (lambda_vector_gcd): Same.
6871 (lambda_vector_new): Same.
6872 (lambda_vector_clear): Same.
6873 (lambda_vector_lexico_pos): Same.
6874 (lambda_vector_zerop): Same.
6875 (lambda_matrix_new): Same.
6876 * tree-flow.h (least_common_multiple): Removed declaration.
6877 * tree-parloops.c (lambda_trans_matrix): Moved here.
6878 (LTM_MATRIX): Same.
6879 (LTM_ROWSIZE): Same.
6880 (LTM_COLSIZE): Same.
6881 (LTM_DENOMINATOR): Same.
6882 (lambda_trans_matrix_new): Same.
6883 (lambda_matrix_vector_mult): Same.
6884 (lambda_transform_legal_p): Same.
6885 * tree-pass.h (pass_linear_transform): Removed declaration.
6886 * tree-ssa-loop.c (tree_linear_transform): Removed.
6887 (gate_tree_linear_transform): Removed.
6888 (pass_linear_transform): Removed.
6889 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
6890 flag_loop_interchange.
6891
6892 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6893
6894 PR tree-optimization/47265
6895 PR tree-optimization/47443
6896 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
6897 if name still has some uses.
6898
6899 2011-01-25 Martin Jambor <mjambor@suse.cz>
6900
6901 PR tree-optimization/47382
6902 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
6903 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
6904
6905 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
6906
6907 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
6908 sjlj_except_unwind_info.
6909
6910 2011-01-25 Richard Guenther <rguenther@suse.de>
6911
6912 PR tree-optimization/47426
6913 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
6914 visible functions results escape.
6915
6916 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6917
6918 PR target/45701
6919 * config/arm/arm.c (any_sibcall_uses_r3): New function.
6920 (arm_get_frame_offsets): Use it.
6921
6922 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6923 Jakub Jelinek <jakub@redhat.com>
6924
6925 PR tree-optimization/47271
6926 * tree-if-conv.c (bb_postdominates_preds): New.
6927 (if_convertible_bb_p): Call bb_postdominates_preds.
6928 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
6929 (predicate_scalar_phi): Call bb_postdominates_preds.
6930
6931 2011-01-25 Nick Clifton <nickc@redhat.com>
6932
6933 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
6934 * config/rx/rx.c (rx_function_value): Likewise.
6935 (rx_promote_function_mode): Likewise.
6936 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
6937 in order to make it legitimate.
6938 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
6939 make sure that the first operand is the same as the result register.
6940 (addsi3_unspec): Delete.
6941 (subdi3): Do not accept immediate operands.
6942 (subdi3_internal): Likewise.
6943
6944 2011-01-25 Jeff Law <law@redhat.com>
6945
6946 PR rtl-optimization/37273
6947 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6948 handle them like argument loads from stack slots. Do not double
6949 count memory for memory constants and argument loads from stack slots.
6950
6951 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6952
6953 PR tree-optimization/47427
6954 PR tree-optimization/47428
6955 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6956 coalesce if the new root var would be TREE_READONLY.
6957
6958 2011-01-25 Richard Guenther <rguenther@suse.de>
6959
6960 PR middle-end/47414
6961 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
6962 correct type for TBAA.
6963
6964 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6965
6966 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
6967 (close_phi_written_to_memory): Call for_each_index with
6968 dr_indices_valid_in_loop.
6969
6970 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6971
6972 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
6973 when it is initialized.
6974
6975 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6976
6977 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
6978 call to graphite_find_data_references_in_stmt.
6979 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
6980 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
6981 call to graphite_find_data_references_in_stmt.
6982 (analyze_drs_in_stmts): Same.
6983 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
6984 in which the scalar analysis of indices is performed.
6985 (create_data_ref): Same. Update call to dr_analyze_indices.
6986 (find_data_references_in_stmt): Update call to create_data_ref.
6987 (graphite_find_data_references_in_stmt): Same.
6988 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
6989 declaration.
6990 (create_data_ref): Same.
6991 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
6992 call to create_data_ref.
6993
6994 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6995
6996 * graphite-sese-to-poly.c (build_poly_scop): Move
6997 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
6998
6999 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7000
7001 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
7002 VAR_DECL, PARM_DECL, and RESULT_DECL.
7003
7004 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7005
7006 * graphite-dependences.c (reduction_dr_1): Allow several reductions
7007 in a reduction PBB.
7008 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
7009 that have already been marked as PBB_IS_REDUCTION.
7010
7011 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7012
7013 * graphite-scop-detection.c (same_close_phi_node): New.
7014 (remove_duplicate_close_phi): New.
7015 (make_close_phi_nodes_unique): New.
7016 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
7017
7018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7019
7020 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
7021 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
7022 of both data references to be the same.
7023
7024 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7025
7026 * graphite-dependences.c (build_lexicographical_constraint): Remove
7027 the gdim parameter.
7028 (build_lexicographical_constraint): Adjust call to
7029 ppl_powerset_is_empty.
7030 (dependence_polyhedron): Same.
7031 (graphite_legal_transform_dr): Same.
7032 (graphite_carried_dependence_level_k): Same.
7033 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
7034 parameter.
7035 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
7036
7037 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7038
7039 * graphite-sese-to-poly.c
7040 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
7041 (close_phi_written_to_memory): New.
7042 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
7043 and unshare_expr.
7044
7045 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7046
7047 * doc/install.texi: Update the expected version number of PPL to 0.11.
7048 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
7049 #if PPL_VERSION_MINOR < 11.
7050
7051 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7052
7053 * graphite-dependences.c: Include graphite-cloog-util.h.
7054 (new_poly_ddr): Inlined into dependence_polyhedron.
7055 (free_poly_ddr): Moved close by new_poly_ddr.
7056 (dependence_polyhedron_1): Renamed dependence_polyhedron.
7057 Early return NULL when ppl_powerset_is_empty returns true.
7058 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
7059 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
7060 (graphite_legal_transform_dr): Call new_poly_ddr.
7061 (graphite_carried_dependence_level_k): Same.
7062 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
7063 (dot_transformed_deps_stmt_1): Removed.
7064 (dot_deps_stmt_1): Call dot_deps_stmt_2.
7065 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
7066 (dot_deps_1): Call dot_deps_2.
7067 * Makefile.in (graphite-dependences.o): Add missing dependence on
7068 graphite-cloog-util.h.
7069
7070 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7071
7072 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
7073 (build_lexicographical_constraint): Same.
7074 (dependence_polyhedron_1): Same.
7075 (graphite_legal_transform_dr): Same.
7076 (graphite_carried_dependence_level_k): Same.
7077 * graphite-ppl.c (ppl_powerset_is_empty): New.
7078 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
7079 * tree-data-ref.c (dump_data_reference): Print the basic block index.
7080
7081 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7082
7083 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
7084 the "a followed by b" relation and document it.
7085
7086 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7087
7088 * graphite-dependences.c (build_lexicographical_constraint): Stop the
7089 iteration when the bag of constraints is empty.
7090
7091 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7092
7093 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
7094
7095 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7096
7097 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
7098 nest and two loop depths as parameters.
7099 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
7100 lst_perfect_nestify.
7101
7102 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7103
7104 * graphite-dependences.c (print_pddr): Call
7105 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
7106
7107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7108
7109 * graphite-ppl.c (debug_gmp_value): New.
7110 * graphite-ppl.h (debug_gmp_value): Declared.
7111
7112 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
7113
7114 * doc/install.texi: Document availability of cloog-0.16.
7115
7116 2011-01-25 Vladimir Kargov <kargov@gmail.com>
7117
7118 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
7119 invalid postdominance info.
7120
7121 2011-01-24 Jan Hubicka <jh@suse.cz>
7122
7123 PR c/21659
7124 * doc/extend.texi (weak pragma): Drop claim that it must
7125 appear before definition.
7126 * varasm.c (merge_weak, declare_weak): Only sanity check
7127 that DECL is not output at a time it is declared weak.
7128
7129 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
7130
7131 * machmode.def: Fixed comments.
7132
7133 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
7134
7135 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
7136
7137 2011-01-24 Paul Koning <ni1d@arrl.net>
7138
7139 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
7140 WORDS_BIG_ENDIAN.
7141
7142 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
7143
7144 PR target/46519
7145 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
7146 (block_info): Add scanned and prev.
7147 (move_or_delete_vzeroupper_2): Return if the basic block
7148 has been scanned and the upper 128bit state is unchanged
7149 from the last scan.
7150 (move_or_delete_vzeroupper_1): Return true if the exit
7151 state is changed.
7152 (move_or_delete_vzeroupper): Visit basic blocks using the
7153 work-list based algorithm based on vt_find_locations in
7154 var-tracking.c.
7155
7156 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
7157
7158 2011-01-24 Nick Clifton <nickc@redhat.com>
7159
7160 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
7161 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
7162 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
7163 then define __v850e1__.
7164 * doc/invoke.texi: Document -mv850es.
7165
7166 2011-01-24 Richard Henderson <rth@redhat.com>
7167
7168 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
7169 compound unordered comparisons.
7170 * config/rx/rx.c (rx_split_fp_compare): Remove.
7171 * config/rx/rx-protos.h: Update.
7172 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
7173 (cbranchsf4): Don't call rx_split_fp_compare.
7174 (*cbranchsf4): Use rx_split_cbranch.
7175 (*cmpsf): Don't accept "i" constraint.
7176 (*conditional_branch): Only valid after reload.
7177 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
7178
7179 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7180
7181 PR target/47385
7182 * config/rs6000/altivec.md (vector constant splitters): Add
7183 support for creating vector single precision constants if -mvsx is
7184 used and we would create the constant using Altivec primitives.
7185
7186 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
7187 Richard Sandiford <rdsandiford@googlemail.com>
7188
7189 PR rtl-optimization/47166
7190 * reload1.c (emit_reload_insns): Disable the spill_reg_store
7191 mechanism for PRE_MODIFY and POST_MODIFY.
7192 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
7193 reloadreg.
7194
7195 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
7196
7197 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7198
7199 2011-01-22 Jan Hubicka <jh@suse.cz>
7200
7201 PR lto/47333
7202 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
7203
7204 2011-01-22 Jan Hubicka <jh@suse.cz>
7205
7206 PR tree-optimization/43884
7207 PR lto/44334
7208 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
7209 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
7210
7211 2011-01-22 Anatoly Sokolov <aesok@post.ru>
7212
7213 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7214 * config/s390/s390.c (s390_register_move_cost,
7215 s390_memory_move_cost): New.
7216 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7217
7218 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7219
7220 PR middle-end/47401
7221 * except.c (sjlj_assign_call_site_values): Move setting the
7222 crtl->uses_eh_lsda flag to ...
7223 (sjlj_mark_call_sites): ... here.
7224 (sjlj_emit_function_enter): Support NULL dispatch label.
7225 (sjlj_build_landing_pads): In a function with no landing pads
7226 that still has must-not-throw regions, generate code to register
7227 a personality function with empty LSDA.
7228
7229 2011-01-21 Richard Henderson <rth@redhat.com>
7230
7231 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
7232
7233 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
7234
7235 * compare-elim.c: New file.
7236 * Makefile.in (OBJS-common): Add it.
7237 (compare-elim.o): New.
7238 * common.opt (fcompare-elim): New.
7239 * opts.c (default_options_table): Add OPT_fcompare_elim.
7240 * tree-pass.h (pass_compare_elim_after_reload): New.
7241 * passes.c (init_optimization_passes): Add it.
7242 * recog.h: Protect against re-inclusion.
7243 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
7244 * doc/invoke.texi (-fcompare-elim): Document it.
7245 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
7246 * doc/tm.texi: Rebuild.
7247
7248 2011-01-22 Nick Clifton <nickc@redhat.com>
7249
7250 * config/rx/rx.md (cstoresf4): Pass comparison operator to
7251 rx_split_fp_compare.
7252
7253 2011-01-22 Nick Clifton <nickc@redhat.com>
7254
7255 * config/rx/rx.md (UNSPEC_CONST): New.
7256 (deallocate_and_return): Wrap the amount popped off the stack in
7257 an UNSPEC_CONST in order to stop it being rejected by
7258 -mmax-constant-size.
7259 (pop_and_return): Add a "(return)" rtx.
7260 (call): Drop the immediate operand.
7261 (call_internal): Likewise.
7262 (call_value): Likewise.
7263 (call_value_internal): Likewise.
7264 (sibcall_internal): Likewise.
7265 (sibcall_value_internal): Likewise.
7266 (sibcall): Likewise. Generate an explicit call using
7267 sibcall_internal.
7268 (sibcall_value): Likewise.
7269 (mov<>): FAIL if a constant operand is not legitimate.
7270 (addsi3_unpsec): New pattern.
7271
7272 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
7273 (ok_for_max_constant): New function.
7274 (gen_safe_add): New function.
7275 (rx_expand_prologue): Use gen_safe_add.
7276 (rx_expand_epilogue): Likewise.
7277 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
7278 UNSPEC CONSTs.
7279
7280 2011-01-21 Jeff Law <law@redhat.com>
7281
7282 PR tree-optimization/47053
7283 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
7284 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
7285 statements are deleted.
7286 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
7287 is nonempty, then purge dead edges and cleanup the CFG.
7288
7289 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7290
7291 PR debug/47402
7292 Temporarily revert:
7293 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7294 PR debug/47106
7295 * tree-dfa.c (create_var_ann): Mark variable as used.
7296
7297 2011-01-21 Jakub Jelinek <jakub@redhat.com>
7298
7299 PR middle-end/45566
7300 * except.c (convert_to_eh_region_ranges): Emit queued no-region
7301 notes from other section in hot/cold partitioning even if
7302 last_action is -3. Increment call_site_base.
7303
7304 PR rtl-optimization/47366
7305 * fwprop.c (forward_propagate_into): Return bool. If
7306 any changes are made, -fnon-call-exceptions is used and
7307 REG_EH_REGION note is present, call purge_dead_edges
7308 and return true if it purged anything.
7309 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
7310 any EH edges were purged.
7311
7312 2011-01-21 Jeff Law <law@redhat.com>
7313
7314 PR rtl-optimization/41619
7315 * caller-save.c (setup_save_areas): Break out code to determine
7316 which hard regs are live across calls by examining the reload chains
7317 so that it is always used.
7318 Eliminate code which checked REG_N_CALLS_CROSSED.
7319
7320 2011-01-21 Jakub Jelinek <jakub@redhat.com>
7321
7322 PR tree-optimization/47355
7323 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
7324 NOP has non-debug uses beyond PHIs in new_bb.
7325
7326 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7327
7328 PR debug/47106
7329 * cfgexpand.c (account_used_vars_for_block): Only account vars
7330 that are annotated as used.
7331 (estimated_stack_frame_size): Don't set TREE_USED.
7332 * tree-dfa.c (create_var_ann): Mark variable as used.
7333
7334 2011-01-21 Richard Guenther <rguenther@suse.de>
7335
7336 PR middle-end/47395
7337 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
7338
7339 2011-01-21 Richard Guenther <rguenther@suse.de>
7340
7341 PR tree-optimization/47365
7342 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
7343 (vn_reference_lookup_pieces): Adjust.
7344 (vn_reference_lookup): Likewise.
7345 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
7346 (vn_reference_lookup_3): Only look through kills if in
7347 VN_WALKREWRITE mode.
7348 (vn_reference_lookup_pieces): Adjust.
7349 (vn_reference_lookup): Likewise.
7350 (visit_reference_op_load): Likewise.
7351 (visit_reference_op_store): Likewise.
7352 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
7353 (compute_avail): Likewise.
7354 (eliminate): Likewise.
7355
7356 2011-01-21 Jakub Jelinek <jakub@redhat.com>
7357
7358 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
7359 DECL_IGNORED_P non-reg vars if they are used.
7360
7361 PR tree-optimization/47391
7362 * varpool.c (const_value_known_p): Return false if
7363 decl is volatile.
7364
7365 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
7366
7367 PR bootstrap/47215
7368 * config/i386/i386.c (ix86_local_alignment): Handle
7369 case for va_list_type_node is nil.
7370 (ix86_canonical_va_list_type): Likewise.
7371
7372 2011-01-21 Alan Modra <amodra@gmail.com>
7373
7374 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
7375 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
7376
7377 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7378
7379 * config/arm/arm.md (define_attr type): Rename f_load
7380 and f_store to f_fpa_load and f_fpa_store. Update.
7381 (write_conflict): Deal with rename fallout.
7382 (*push_fp_multi): Likewise.
7383 * config/arm/fpa.md (f_load): Use f_fpa_load.
7384 (f_store): Use f_fpa_store.
7385 (*movsf_fpa): Likewise.
7386 (*movdf_fpa): Likewise.
7387 (*movxf_fpa): Likewise.
7388 (*thumb2_movsf_fpa): Likewise.
7389 (*thumb2_movdf_fpa): Likewise.
7390 (*thumb2_movxf_fpa): Likewise.
7391 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
7392 f_loadd and f_stored.
7393 (*thumb2_movdi_vfp): Likewise.
7394 (*thumb2_movsf_vfp): Fix attribute to f_loads.
7395 (*thumb2_movsi_vfp): Likewise.
7396 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
7397 Use f_loads instead of f_load.
7398 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
7399
7400 2011-01-20 Anatoly Sokolov <aesok@post.ru>
7401
7402 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7403 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
7404 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7405 (xtensa_mode_dependent_address_p): New function.
7406 (constantpool_address_p): Make static. Change return type to bool.
7407 Change argument type to const_rtx. Use CONST_INT_P predicate.
7408
7409 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
7410
7411 PR debug/46583
7412 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
7413
7414 2011-01-20 Jakub Jelinek <jakub@redhat.com>
7415
7416 PR debug/47283
7417 * cfgexpand.c (expand_debug_expr): Instead of generating
7418 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
7419 etc. handling.
7420
7421 2011-01-20 Richard Guenther <rguenther@suse.de>
7422
7423 PR middle-end/47370
7424 * tree-inline.c (remap_gimple_op_r): Recurse manually for
7425 the pointer operand of MEM_REFs.
7426
7427 2011-01-20 Jakub Jelinek <jakub@redhat.com>
7428
7429 PR tree-optimization/46130
7430 * ipa-split.c (consider_split): If return_bb contains non-virtual
7431 PHIs other than for retval or if split_function would not adjust it,
7432 refuse to split.
7433
7434 2011-01-20 Richard Guenther <rguenther@suse.de>
7435
7436 PR tree-optimization/47167
7437 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7438 Revert previous change, only avoid enumeral type changes.
7439
7440 2011-01-19 Mike Stump <mikestump@comcast.net>
7441
7442 * doc/tm.texi.in (BRANCH_COST): Englishify.
7443 * doc/tm.texi (BRANCH_COST): Likewise.
7444
7445 2011-01-19 Dodji Seketeli <dodji@redhat.com>
7446
7447 PR c++/47291
7448 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
7449 (gen_scheduled_generic_parms_dies): New functions.
7450 (gen_struct_or_union_type_die): Schedule template parameters DIEs
7451 generation for the end of CU compilation.
7452 (dwarf2out_finish): Generate template parameters DIEs here.
7453
7454 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7455
7456 PR debug/46240
7457 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
7458 debug bind stmt on merge edges.
7459
7460 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7461
7462 PR debug/47079
7463 PR debug/46724
7464 * function.c (instantiate_expr): Instantiate incoming rtl of
7465 implicit arguments, and recurse on VALUE_EXPRs.
7466 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
7467 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
7468
7469 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7470
7471 * c-parser.c (c_parser_for_statement): Initialize
7472 collection_expression.
7473
7474 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7475
7476 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
7477
7478 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7479
7480 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
7481 (LINK_SHLIB_SPEC): Don't use %(link_path).
7482 (SUBTARGET_EXTRA_SPECS): Remove link_path.
7483
7484 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7485
7486 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
7487 (NO_SHARED_LIB_SUPPORT): Remove.
7488 (LINK_SHLIB_SPEC): Remove one conditional definition.
7489
7490 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7491
7492 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
7493 %{call_shared}.
7494 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
7495 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
7496 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
7497 %{call_shared} and conditionals on these options not being passed.
7498 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
7499 %{call_shared}.
7500
7501 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7502
7503 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
7504 simplify.
7505
7506 * ipa-split.c: Spelling fixes.
7507
7508 2011-01-19 Richard Henderson <rth@redhat.com>
7509
7510 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
7511 (*mulsi3): Likewise.
7512
7513 * longlong.h [__mn10300__] (count_leading_zeros): New.
7514 [__mn10300__] (umul_ppmm, smul_ppmm): New.
7515 [__mn10300__] (add_ssaaaa, subddmmss): New.
7516 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
7517 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
7518
7519 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7520
7521 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
7522
7523 2011-01-19 Richard Henderson <rth@redhat.com>
7524
7525 * config/mn10300/mn10300.md (addsi3_flags): New.
7526 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
7527 (subsi3_flags, subc_internal, subdi3): New.
7528 (subdi3_internal, *subdi3_degenerate): New.
7529 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
7530
7531 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
7532 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
7533 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
7534 * config/mn10300/mn10300-protos.h: Update.
7535 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
7536 (return_ret): Likewise. Rename from return_internal_regs.
7537 (return_internal): Remove.
7538
7539 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
7540 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
7541 (mn10300_legitimate_constant_p): Likewise.
7542 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
7543 (mn10300_frame_size): New.
7544 (mn10300_expand_prologue): Use it.
7545 (mn10300_expand_epilogue): Likewise.
7546 (mn10300_initial_offset): Likewise.
7547 * config/mn10300/mn10300-protos.h: Update.
7548 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
7549 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
7550 (prologue, epilogue, return_internal): Tidy output code.
7551 (mn10300_store_multiple_operation, return): Likewise.
7552 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
7553 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
7554 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
7555 (load_pic, am33_load_pic): New.
7556 (mn10300_load_pic0, mn10300_load_pic1): New.
7557
7558 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
7559 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
7560 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
7561 (cc_flags_for_mode, cc_flags_for_code): New.
7562 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
7563 overflow flag is not valid. Validate that the flags we need
7564 for the comparison are valid.
7565 (mn10300_output_cmp): Remove.
7566 (mn10300_output_add): New.
7567 (mn10300_select_cc_mode): Use cc_flags_for_code.
7568 (mn10300_split_cbranch): New.
7569 (mn10300_match_ccmode): New.
7570 (mn10300_split_and_operand_count): New.
7571 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
7572 to the function.
7573 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
7574 (addsi3): ... here. Use mn10300_output_add.
7575 (*addsi3_flags): New.
7576 (*am33_subsi3, *mn10300_subsi3): Merge...
7577 (subsi3): ... here. Use attribute isa.
7578 (*subsi3_flags): New.
7579 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
7580 when possible.
7581 (*am33_andsi3, *mn10300_andsi3): Merge...
7582 (andsi3): ... here.
7583 (*andsi3_flags): New.
7584 (andsi3 splitters): New.
7585 (*am33_iorsi3, *mn10300_iorsi3): Merge...
7586 (iorsi3): ... here.
7587 (*iorsi3_flags): New.
7588 (*am33_xorsi3, *mn10300_xorsi3): Merge...
7589 (xorsi3): ... here.
7590 (*xorsi3_flags): New.
7591 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
7592 (one_cmplsi2): ... here.
7593 (*one_cmplsi2_flags): New.
7594 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
7595 instead of "dax" in constraints. Use mn10300_split_cbranch.
7596 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
7597 use matching constraints to eliminate a self-comparison.
7598 (*integer_conditional_branch): Rename from integer_conditional_branch.
7599 Use int_mode_flags to match CC_REG.
7600 (*cbranchsi4_btst, *btstsi): New.
7601 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
7602 mn10300_split_cbranch.
7603 (*am33_cmpsf): Rename from am33_cmpsf.
7604 (*float_conditional_branch): Rename from float_conditional_branch.
7605 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
7606 (zero_extendqisi2): ... here.
7607 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
7608 (zero_extendhisi2): ... here.
7609 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
7610 (extendqisi2): ... here.
7611 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
7612 (extendhisi2): ... here.
7613 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
7614 (ashlsi3): ... here.
7615 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
7616 (lshrsi3): ... here.
7617 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
7618 (ashrsi3): ... here.
7619 (consecutive add peephole): Remove.
7620 * config/mn10300/predicates.md (label_ref_operand): New.
7621 (int_mode_flags): New.
7622 (CCZN_comparison_operator): New.
7623
7624 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
7625 (throughput_42_latency_43): New reservation.
7626 (mulsidi3, umulsidi3): New expanders.
7627 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
7628 the MDR register to allocation; separately allocate the low and
7629 high parts of the DImode result.
7630 (umulsidi3_internal): Similarly.
7631 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
7632 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
7633 (udivsi3, umodsi3): Remove.
7634 (udivmodsi4, divmodsi4): New expanders.
7635 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
7636 (*divmodsi4): Simiarly.
7637 (ext_internal): New.
7638
7639 * config/mn10300/constraints.md ("z"): New constraint.
7640 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
7641 (FIXED_REGISTERS): Don't fix MDR.
7642 (CALL_USED_REGSITERS): Reformat nicely.
7643 (REG_ALLOC_ORDER): Add MDR.
7644 (enum regclass): Add MDR_REGS.
7645 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
7646 (IRA_COVER_CLASSES): Add MDR_REGS.
7647 (REGNO_REG_CLASS): Handle MDR_REG.
7648 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
7649 (mn10300_register_move_cost): Likewise.
7650 * config/mn10300/mn10300.md (MDR_REG): New.
7651 (*movsi_internal): Handle moves to/from MDR_REGS.
7652
7653 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
7654 POST_MODIFY.
7655 (mn10300_secondary_reload): Tidy combination reload classes.
7656 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
7657 addresses for AM33. Allow symbolic offsets for reg+imm.
7658 (mn10300_regno_in_class_p): New.
7659 (mn10300_legitimize_reload_address): New.
7660 * config/mn10300/mn10300.h (enum reg_class): Remove
7661 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
7662 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
7663 SP_OR_GENERAL_REGS.
7664 (REG_CLASS_NAMES): Update to match.
7665 (REG_CLASS_CONTENTS): Likewise.
7666 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
7667 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
7668 (REGNO_IN_RANGE_P): Remove.
7669 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
7670 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
7671 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
7672 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
7673 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
7674 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
7675 (REGNO_GENERAL_P): New.
7676 (HAVE_POST_MODIFY_DISP): New.
7677 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
7678 (LEGITIMIZE_RELOAD_ADDRESS): New.
7679 * config/mn10300/mn10300-protos.h: Update.
7680
7681 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
7682 DATA_REGS for AM33 stack-pointer destination.
7683 (mn10300_preferred_output_reload_class): Likewise.
7684 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
7685 into a form appropriate for ...
7686 (TARGET_SECONDARY_RELOAD): New.
7687 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
7688 * config/mn10300/mn10300-protos.h: Update.
7689 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
7690 reload_insi; use the "A" constraint for the scratch; handle AM33
7691 moves of sp to non-address registers.
7692
7693 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
7694 (*movqi_internal): ... here.
7695 (*am33_movhi, *mn10300_movhi): Merge into...
7696 (*movhi_internal): ... here.
7697 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
7698 as the source/destination of moves from/to SP.
7699 (movsf): Only allow for AM33-2.
7700 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
7701 any integer constant constraint. Only allow for AM33-2. Tidy
7702 all of the alternative outputs.
7703 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
7704 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
7705 for MN103.
7706 (udivsi3, umodsi3): New patterns for MN103 only.
7707
7708 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
7709
7710 * doc/tm.texi.in: Spell out that a lack of register class unions
7711 can lead to ICEs.
7712 * doc/tm.texi: Regenerate.
7713
7714 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7715
7716 PR rtl-optimization/47337
7717 * dce.c (check_argument_store): New function.
7718 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
7719
7720 PR tree-optimization/47290
7721 * tree-eh.c (infinite_empty_loop_p): New function.
7722 (cleanup_empty_eh): Use it.
7723
7724 2011-01-18 Steve Ellcey <sje@cup.hp.com>
7725
7726 PR target/46997
7727 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
7728 (a64_expand_widen_sum): Ditto.
7729 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
7730 (vec_extract_evenodd_help): Ditto.
7731 (vec_extract_evenv4hi): Ditto.
7732 (vec_extract_oddv4hi): Ditto.
7733 (vec_extract_evenv2si): Ditto.
7734 (vec_extract_oddv2si): Ditto.
7735 (vec_extract_evenv2sf): Ditto.
7736 (vec_extract_oddv2sf): Ditto.
7737 (vec_pack_trunc_v4hi: Ditto.
7738 (vec_pack_trunc_v2si): Ditto.
7739 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
7740 (vec_interleave_highv8qi): Ditto.
7741 (mix1_r): Ditto.
7742 (vec_extract_oddv8qi): Ditto.
7743 (vec_interleave_lowv4hi): Ditto.
7744 (vec_interleave_highv4hi): Ditto.
7745 (vec_interleave_lowv2si): Ditto.
7746 (vec_interleave_highv2si): Ditto.
7747
7748 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7749
7750 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
7751 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
7752 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
7753 (pa_c_mode_for_suffix): New.
7754 (TARGET_EXPAND_BUILTIN): Define.
7755 (TARGET_C_MODE_FOR_SUFFIX): Define.
7756 (pa_builtins): Define.
7757 (pa_init_builtins): Register __float128 type and init new support
7758 builtins.
7759 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
7760 * config/pa/quadlib.c (_U_Qfcopysign): New.
7761
7762 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
7763
7764 PR middle-end/46894
7765 * explow.c (allocate_dynamic_stack_space): Do not assume more than
7766 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
7767 are defined.
7768
7769 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7770
7771 PR tree-optimization/47179
7772 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
7773 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
7774
7775 2011-01-18 Richard Guenther <rguenther@suse.de>
7776
7777 PR rtl-optimization/47216
7778 * emit-rtl.c: Include tree-flow.h.
7779 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
7780 of replicating it with different semantics.
7781 * Makefile.in (emit-rtl.o): Adjust.
7782
7783 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7784
7785 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
7786 (cortex_a9_dp): Handle neon types correctly.
7787
7788 2011-01-18 Jakub Jelinek <jakub@redhat.com>
7789
7790 PR rtl-optimization/47299
7791 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
7792 subtarget. Use normal multiplication if both operands are constants.
7793 * expmed.c (expand_widening_mult): Don't try to optimize constant
7794 multiplication if op0 has VOIDmode. Convert op1 constant to mode
7795 before using it.
7796
7797 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7798
7799 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
7800 spacing after 'e.g.', typos, comma, hyphenation.
7801
7802 2011-01-17 Richard Henderson <rth@redhat.com>
7803
7804 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
7805 (rx_restricted_mem_operand): New.
7806 (rx_shift_operand): Use register_operand.
7807 (rx_source_operand, rx_compare_operand): Likewise.
7808 * config/rx/rx.md (addsi3_flags): New expander.
7809 (adddi3): Rewrite as expander.
7810 (adc_internal, *adc_flags, adddi3_internal): New patterns.
7811 (subsi3_flags): New expander.
7812 (subdi3): Rewrite as expander.
7813 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
7814
7815 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
7816 (rx_init_builtins): Remove sat builtin.
7817 (rx_expand_builtin): Likewise.
7818 * config/rx/rx.md (ssaddsi3): New.
7819 (*sat): Rename from sat. Represent the CC_REG input.
7820
7821 * config/rx/predicates.md (rshift_operator): New.
7822 * config/rx/rx.c (rx_expand_insv): Remove.
7823 * config/rx/rx-protos.h: Update.
7824 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
7825 operand to the canonical position.
7826 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
7827 (*bitclr, *bitclr_in_memory): Similarly.
7828 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
7829 (insv): Retain the zero_extract in the expansion.
7830
7831 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
7832 (bswaphi2, bitinvert, revw): Likewise.
7833
7834 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
7835 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7836 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
7837 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
7838 (bitset, bitset_in_memory): Likewise.
7839 (bitinvert, bitinvert_in_memory): Likewise.
7840 (bitclr, bitclr_in_memory): Likewise.
7841 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
7842 (rx_strend, rx_cmpstrn): Likewise.
7843 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
7844 (bitop peep2 patterns): Remove.
7845
7846 * config/rx/rx.c (rx_match_ccmode): New.
7847 * config/rx/rx-protos.h: Update.
7848 * config/rx/rx.md (abssi2): Clobber, don't set flags.
7849 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
7850 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
7851 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
7852 (fix_truncsfsi2, floatsisf2): Likewise.
7853 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
7854 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
7855 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
7856 (*subsi3_flags, *xorsi3_flags): New.
7857
7858 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
7859
7860 * config/rx/rx.c (rx_print_operand): Remove workaround for
7861 unsplit comparison operations.
7862
7863 * config/rx/rx.md (movsicc): Split after reload.
7864 (*movsicc): Merge *movsieq and *movsine via match_operator.
7865 (*stcc): New pattern.
7866
7867 * config/rx/rx.c (rx_float_compare_mode): Remove.
7868 * config/rx/rx.h (rx_float_compare_mode): Remove.
7869 * config/rx/rx.md (cstoresi4): Split after reload.
7870 (*sccc): New pattern.
7871
7872 * config/rx/predicates.md (label_ref_operand): New.
7873 (rx_z_comparison_operator): New.
7874 (rx_zs_comparison_operator): New.
7875 (rx_fp_comparison_operator): New.
7876 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
7877 Validate that the flags are set properly for the comparison.
7878 (rx_gen_cond_branch_template): Remove.
7879 (rx_cc_modes_compatible): Remove.
7880 (mode_from_flags): New.
7881 (flags_from_code): Rename from flags_needed_for_conditional.
7882 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
7883 (rx_select_cc_mode): Likewise.
7884 (rx_split_fp_compare): New.
7885 (rx_split_cbranch): New.
7886 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
7887 (*cbranchsi4): Use match_operator and rx_split_cbranch.
7888 (*cbranchsf4): Similarly.
7889 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
7890 match_operator and rx_split_cbranch.
7891 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
7892 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
7893 (*cmpsi): Rename from cmpsi.
7894 (*tstsi): Rename from tstsi.
7895 (*cmpsf): Rename from cmpsf; use CC_Fmode.
7896 (*conditional_branch): Rename from conditional_branch.
7897 (*reveresed_conditional_branch): Remove.
7898 (b<code>): Remove expander.
7899 * config/rx/rx-protos.h: Update.
7900
7901 * config/rx/rx.c (rx_compare_redundant): Remove.
7902 * config/rx/rx.md (cmpsi): Don't use it.
7903 * config/rx/rx-protos.h: Update.
7904
7905 * config/rx/rx-modes.def (CC_F): New mode.
7906 * config/rx/rx.c (rx_select_cc_mode): New.
7907 * config/rx/rx.h (SELECT_CC_MODE): Use it.
7908 * config/rx/rx-protos.h: Update.
7909
7910 2011-01-17 Richard Henderson <rth@redhat.com>
7911
7912 * except.c (dump_eh_tree): Fix stray ; after for statement.
7913
7914 2011-01-17 Richard Guenther <rguenther@suse.de>
7915
7916 PR tree-optimization/47313
7917 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
7918 handling before copying the body. Properly deal with
7919 by-reference result in SSA form.
7920
7921 2011-01-17 Ian Lance Taylor <iant@google.com>
7922
7923 PR target/47219
7924 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
7925 (struct_value_alias_set): Don't define.
7926 (sparc_option_override): Don't set sparc_sr_alias_set and
7927 struct_value_alias_set.
7928 (save_or_restore_regs): Use gen_frame_mem rather than calling
7929 set_mem_alias_set.
7930 (sparc_struct_value_rtx): Likewise.
7931
7932 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
7933
7934 PR target/47318
7935 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
7936 (_mm_maskstore_pd): Likewise.
7937 (_mm_maskload_ps): Likewise.
7938 (_mm_maskstore_ps): Likewise.
7939 (_mm256_maskload_pd): Change mask to __m256i.
7940 (_mm256_maskstore_pd): Likewise.
7941 (_mm256_maskload_ps): Likewise.
7942 (_mm256_maskstore_ps): Likewise.
7943
7944 * config/i386/i386-builtin-types.def: Updated.
7945 (ix86_expand_special_args_builtin): Likewise.
7946
7947 * config/i386/i386.c (bdesc_special_args): Update
7948 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
7949 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
7950 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
7951 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
7952
7953 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
7954 Use <avxpermvecmode> on mask register.
7955 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
7956
7957 2011-01-17 Olivier Hainque <hainque@adacore.com>
7958 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7959 Eric Botcazou <ebotcazou@adacore.com>
7960
7961 PR target/46655
7962 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
7963 if <= USHRT_MAX in 32-bit mode.
7964
7965 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7966
7967 * doc/install.texi (Configuration, Specific): Wrap long
7968 lines in examples. Allow line wrapping in long options
7969 and URLs where beneficial for PDF output.
7970
7971 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
7972
7973 * config/mips/mips.c (mips_classify_symbol): Don't return
7974 SYMBOL_PC_RELATIVE for nonlocal labels.
7975
7976 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
7977
7978 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
7979
7980 2011-01-15 Jan Hubicka <jh@suse.cz>
7981
7982 PR tree-optimization/47276
7983 * ipa.c (function_and_variable_visibility): Do not try to mark alias
7984 declarations as needed.
7985
7986 2011-01-15 Martin Jambor <mjambor@suse.cz>
7987
7988 * common.opt (fdevirtualize): New flag.
7989 * doc/invoke.texi (Option Summary): Document it.
7990 * opts.c (default_options_table): Add devirtualize flag.
7991 * ipa-prop.c (detect_type_change): Return immediately if
7992 devirtualize flag is not set.
7993 (detect_type_change_ssa): Likewise.
7994 (compute_known_type_jump_func): Likewise.
7995 (ipa_analyze_virtual_call_uses): Likewise.
7996
7997 2011-01-14 Martin Jambor <mjambor@suse.cz>
7998
7999 PR tree-optimization/45934
8000 PR tree-optimization/46302
8001 * ipa-prop.c (type_change_info): New type.
8002 (stmt_may_be_vtbl_ptr_store): New function.
8003 (check_stmt_for_type_change): Likewise.
8004 (detect_type_change): Likewise.
8005 (detect_type_change_ssa): Likewise.
8006 (compute_complex_assign_jump_func): Check for dynamic type change.
8007 (compute_complex_ancestor_jump_func): Likewise.
8008 (compute_known_type_jump_func): Likewise.
8009 (compute_scalar_jump_functions): Likewise.
8010 (ipa_analyze_virtual_call_uses): Likewise.
8011 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
8012
8013 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8014
8015 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
8016 * config/i386/i386.opt (msse5): New Alias.
8017
8018 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8019
8020 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8021 * config/sparc/linux64.h (CC1_SPEC): Likewise.
8022 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8023 * config/sparc/sparc.h (CC1_SPEC): Likewise.
8024
8025 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8026
8027 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
8028 -mcpu options.
8029 * config/sparc/linux64.h (CC1_SPEC): Likewise.
8030 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8031 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
8032 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
8033 Likewise.
8034 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
8035
8036 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8037
8038 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
8039
8040 2011-01-14 Mike Stump <mikestump@comcast.net>
8041
8042 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
8043 * config/fr30/fr30.md: Likweise
8044 (movsi_push): Likewise.
8045 (movsi_pop): Likewise.
8046 (enter_func): Likewise.
8047 * config/moxie/moxie.md (movsi_push): Likewise.
8048 (movsi_pop): Likewise.
8049
8050 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8051
8052 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
8053 %{no_archive} %{exact_version}.
8054 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
8055 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
8056 %{no_archive} %{exact_version}.
8057 * config/mips/openbsd.h (LINK_SPEC): Likewise.
8058 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
8059 * config/mips/vxworks.h: Likewise.
8060
8061 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8062
8063 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
8064
8065 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8066
8067 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
8068 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
8069
8070 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8071
8072 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
8073 -nodefaultlib.
8074
8075 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8076
8077 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
8078 for mcpu not cpu.
8079 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
8080 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
8081 not cpu.
8082 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
8083 Don't handle -shlib.
8084
8085 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8086
8087 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
8088 (CC1_SPEC): Don't handle -profile.
8089
8090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8091
8092 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
8093 * config/mips/mips.h (CC1_SPEC): Likewise.
8094
8095 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8096
8097 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
8098 * config/mips/mips.h (CC1_SPEC): Likewise.
8099
8100 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8101
8102 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
8103 * config/m32r/linux.h (LINK_SPEC): Likewise.
8104 * config/mips/linux.h (LINK_SPEC): Likewise.
8105 * config/mips/linux64.h (LINK_SPEC): Likewise.
8106 * config/sparc/linux.h (LINK_SPEC): Likewise.
8107 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8108 LINK_SPEC): Likewise.
8109 * config/xtensa/linux.h (LINK_SPEC): Likewise.
8110
8111 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8112
8113 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
8114 %{version:-v}.
8115 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
8116
8117 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8118
8119 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
8120 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
8121
8122 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8123
8124 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
8125
8126 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8127
8128 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
8129 supports -Bstatic/-Bdynamic.
8130 * configure: Regenerate.
8131
8132 2011-01-14 Jan Hubicka <jh@suse.cz>
8133 Jack Howarth <howarth@bromo.med.uc.edu>
8134
8135 PR target/46037
8136 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
8137 when checking debug_info_level. Test write_symbols instead of
8138 debug_hooks->var_location when setting flag_var_tracking_uninit.
8139
8140 2011-01-14 Richard Guenther <rguenther@suse.de>
8141
8142 PR tree-optimization/47179
8143 * target.def (ref_may_alias_errno): New target hook.
8144 * targhooks.h (default_ref_may_alias_errno): Declare.
8145 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
8146 (default_ref_may_alias_errno): New function.
8147 * target.h (struct ao_ref_s): Declare.
8148 * tree-ssa-alias.c: Include target.h.
8149 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
8150 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
8151 (targhooks.o): Likewise.
8152 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
8153 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
8154
8155 2011-01-14 Richard Guenther <rguenther@suse.de>
8156
8157 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
8158
8159 2011-01-14 Richard Guenther <rguenther@suse.de>
8160
8161 PR tree-optimization/47280
8162 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
8163 return CFG changes.
8164 (tree_ssa_forward_propagate_single_use_vars): Deal with
8165 CFG changes from associate_plusminus.
8166
8167 2011-01-14 Richard Guenther <rguenther@suse.de>
8168
8169 PR middle-end/47281
8170 Revert
8171 2011-01-11 Richard Guenther <rguenther@suse.de>
8172
8173 PR tree-optimization/46076
8174 * tree-ssa.c (useless_type_conversion_p): Conversions from
8175 unprototyped to empty argument list function types are useless.
8176
8177 2011-01-14 Richard Guenther <rguenther@suse.de>
8178
8179 PR tree-optimization/47286
8180 * tree-ssa-structalias.c (new_var_info): Register variables are global.
8181
8182 2011-01-14 Martin Jambor <mjambor@suse.cz>
8183
8184 PR middle-end/46823
8185 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
8186
8187 2011-01-13 Anatoly Sokolov <aesok@post.ru>
8188
8189 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
8190 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8191 * config/xtensa/xtensa.c (xtensa_libcall_value,
8192 xtensa_function_value_regno_p): New functions.
8193 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8194
8195 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
8196
8197 PR c++/47213
8198 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
8199 PE specific hook.
8200 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
8201 New function prototype.
8202 * config/i386/winnt.c (i386_pe_assemble_visibility):
8203 Warn only if attribute was specified by user.
8204
8205 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8206
8207 PR target/47251
8208 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
8209 floating point.
8210 (floatunsdidf2_fcfidu): Ditto.
8211
8212 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8213
8214 * config/s390/s390.c (print_operand_address): Replace 'error' with
8215 'output_operand_lossage'.
8216 (print_operand): Likewise.
8217
8218 2011-01-13 Jeff Law <law@redhat.com>
8219
8220 PR rtl-optimization/39077
8221 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
8222 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
8223 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
8224 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
8225 * gcse.c (prune_insertions_deletions): New function.
8226 (compute_pre_data): Use it.
8227
8228 2011-01-13 Dodji Seketeli <dodji@redhat.com>
8229
8230 PR debug/PR46973
8231 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
8232 static function.
8233 (prune_unused_types_mark): Use it.
8234
8235 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
8236
8237 PR rtl-optimization/45352
8238 * sel-sched.c: Update copyright years.
8239 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
8240 in the advancing loop when we have issued issue_rate insns.
8241
8242 2011-01-12 Richard Henderson <rth@redhat.com>
8243
8244 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
8245 (TARGET_MD_ASM_CLOBBERS): New.
8246
8247 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
8248 (TARGET_DELEGITIMIZE_ADDRESS): New.
8249
8250 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
8251 (clzsi2, *bsch): New patterns.
8252
8253 * config/mn10300/mn10300.md (INT): New mode iterator.
8254 (*mov<INT>_clr): New pattern, and peep2 to generate it.
8255
8256 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
8257 flag_split_wide_types.
8258
8259 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
8260 (mn10300_trampoline_init): Rewrite without a template, an immediate
8261 load and a direct branch.
8262 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
8263
8264 2011-01-12 Anatoly Sokolov <aesok@post.ru>
8265
8266 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8267 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
8268 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
8269 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8270
8271 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
8272
8273 PR debug/47209
8274 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
8275 of type.
8276
8277 2011-01-12 Jan Hubicka <jh@suse.cz>
8278
8279 PR driver/47244
8280 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
8281 (PLUGIN_COND_CLOSE): New macro.
8282 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
8283
8284 2011-01-12 Richard Guenther <rguenther@suse.de>
8285
8286 PR lto/47259
8287 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
8288 register variables in a MEM_REF.
8289
8290 2011-01-12 Joseph Myers <joseph@codesourcery.com>
8291
8292 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
8293 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
8294 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
8295 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8296 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8297 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
8298 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
8299 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
8300 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
8301 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
8302 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
8303 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
8304 * config/gnu-user.h: New. Copied from linux.h.
8305 (LINUX_TARGET_STARTFILE_SPEC): Rename to
8306 GNU_USER_TARGET_STARTFILE_SPEC.
8307 (LINUX_TARGET_ENDFILE_SPEC): Rename to
8308 GNU_USER_TARGET_ENDFILE_SPEC.
8309 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
8310 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
8311 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
8312 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
8313 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
8314 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
8315 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
8316 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
8317 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
8318 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
8319 * config/arm/linux-eabi.h (CC1_SPEC): Use
8320 GNU_USER_TARGET_CC1_SPEC.
8321 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
8322 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
8323 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
8324 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
8325 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
8326 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
8327 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
8328 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
8329
8330 2011-01-12 Richard Guenther <rguenther@suse.de>
8331
8332 PR other/46946
8333 * doc/invoke.texi (ffast-math): Document it is turned on
8334 with -Ofast.
8335
8336 2011-01-12 Jan Hubicka <jh@suse.cz>
8337
8338 PR tree-optimization/47233
8339 * opts.c (common_handle_option): Disable ipa-reference with profile
8340 feedback.
8341
8342 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
8343
8344 * c-parser.c (c_parser_objc_at_property_declaration): Improved
8345 error message.
8346
8347 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
8348
8349 * c-parser.c (c_lex_one_token): Updated and reindented some
8350 comments. No changes in code.
8351
8352 2011-01-11 Ian Lance Taylor <iant@google.com>
8353
8354 * godump.c (go_output_var): Don't output the variable if there is
8355 already a type with the same name.
8356
8357 2011-01-11 Ian Lance Taylor <iant@google.com>
8358
8359 * godump.c (go_format_type): Don't generate float80.
8360
8361 2011-01-11 Richard Henderson <rth@redhat.com>
8362
8363 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
8364 declaration. Rewrite for both speed and size.
8365 (mn10300_address_cost_1): Remove.
8366 (mn10300_register_move_cost): New.
8367 (mn10300_memory_move_cost): New.
8368 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
8369 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
8370 extensions, shifts, BSWAP, CLZ.
8371 (mn10300_wide_const_load_uses_clr): Remove.
8372 (TARGET_REGISTER_MOVE_COST): New.
8373 (TARGET_MEMORY_MOVE_COST): New.
8374 * config/mn10300/mn10300-protos.h: Update.
8375 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
8376
8377 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
8378 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
8379 * config/mn10300/mn10300-protos.h: Update.
8380 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
8381 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
8382 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
8383 (*test_int_bitfield, *test_byte_bitfield): Remove.
8384 (*bit_test, *subreg_bit_test): Remove.
8385 * config/mn10300/predicates.md (const_8bit_operand): Remove.
8386
8387 * config/mn10300/constraints.md ("c"): Rename from "A".
8388 ("A", "D"): New constraint letters.
8389 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
8390 (fmssf4, fnmasf4, fnmssf4): Likewise.
8391
8392 * config/mn10300/mn10300.md (isa): New attribute.
8393 (enabled): New attribute.
8394
8395 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
8396 (abssf2, negsf2): Define only for hardware fp.
8397 (sqrtsf2): Reformat.
8398 (addsf3, subsf3, mulsf3): Merge expander and insn.
8399
8400 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
8401 (DEBUGGER_AUTO_OFFSET): Remove.
8402 (DEBUGGER_ARG_OFFSET): Remove.
8403
8404 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
8405 Emit register stores with the same offsets as the hardware.
8406 (mn10300_store_multiple_operation): Don't check that the register
8407 save offsets are monotonic.
8408 * config/mn10300/mn10300-protos.h: Update.
8409
8410 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
8411
8412 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
8413 in terms of the value on the stack, not the MDR register.
8414
8415 2011-01-11 Jan Hubicka <jh@suse.cz>
8416
8417 PR lto/45721
8418 PR lto/45375
8419 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
8420 (symbol_alias_set_destroy, symbol_alias_set_contains,
8421 propagate_aliases_backward): Declare.
8422 * lto-streamer-out.c (struct sets): New sturcture.
8423 (trivally_defined_alias): New function.
8424 (output_alias_pair_p): Rewrite.
8425 (output_unreferenced_globals): Fix output of alias pairs.
8426 (produce_symtab): Likewise.
8427 * ipa.c (function_and_variable_visibility): Set weak alias destination
8428 as needed in lto.
8429 * varasm.c (symbol_alias_set_t): Remove.
8430 (symbol_alias_set_destroy): Export.
8431 (propagate_aliases_forward, propagate_aliases_backward): New functions
8432 based on ...
8433 (compute_visible_aliases): ... this one; remove.
8434 (trivially_visible_alias): New
8435 (trivially_defined_alias): New.
8436 (remove_unreachable_alias_pairs): Rewrite.
8437 (finish_aliases_1): Reorganize code checking if alias is defined.
8438 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
8439 in LTO mode.
8440
8441 2011-01-11 Richard Guenther <rguenther@suse.de>
8442
8443 PR tree-optimization/46076
8444 * tree-ssa.c (useless_type_conversion_p): Conversions from
8445 unprototyped to empty argument list function types are useless.
8446
8447 2011-01-11 Richard Guenther <rguenther@suse.de>
8448
8449 PR middle-end/45235
8450 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
8451 volatile MEMs as MEM_READONLY_P.
8452
8453 2011-01-11 Richard Guenther <rguenther@suse.de>
8454
8455 PR tree-optimization/47239
8456 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
8457
8458 2011-01-11 Jeff Law <law@redhat.com>
8459
8460 PR tree-optimization/47086
8461 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
8462 IVs from statements that might throw.
8463
8464 2011-01-10 Jan Hubicka <jh@suse.cz>
8465
8466 PR lto/45375
8467 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
8468
8469 2011-01-10 Jan Hubicka <jh@suse.cz>
8470
8471 PR lto/45375
8472 * profile.c (read_profile_edge_counts): Ignore profile inconistency
8473 when correcting profile.
8474
8475 2011-01-10 Jan Hubicka <jh@suse.cz>
8476
8477 PR lto/46083
8478 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
8479 DECL_FINI_PRIORITY.
8480 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
8481 Restore DECL_FINI_PRIORITY.
8482
8483 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8484
8485 * doc/gimple.texi: Fix quoting of multi-word return values in
8486 @deftypefn statements. Ensure presence of return value. Wrap
8487 overlong @deftypefn lines.
8488 (is_gimple_operand, is_gimple_min_invariant_address): Remove
8489 descriptions of removed functions.
8490 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
8491 of multi-word return value in @deftypefn statement.
8492
8493 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8494
8495 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
8496 (Conditional Expressions, Logical Operators)
8497 (Statement and operand traversals): Do not indent smallexample
8498 code. Fix duplicate function argument in example.
8499
8500 2011-01-10 Jeff Law <law@redhat.com>
8501
8502 PR tree-optimization/47141
8503 * ipa-split.c (split_function): Handle case where we are
8504 returning a value and the return block has a virtual operand phi.
8505
8506 2011-01-10 Jan Hubicka <jh@suse.cz>
8507
8508 PR tree-optimization/47234
8509 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
8510 (pass_feedback_split_functions): Declare.
8511 * passes.c (init_optimization_passes): Add ipa-split as subpass of
8512 tree-profile.
8513 * ipa-split.c (gate_split_functions): Update comments; disable
8514 split-functions for profile_arc_flag and branch_probabilities.
8515 (gate_feedback_split_functions): New function.
8516 (execute_feedback_split_functions): New function.
8517 (pass_feedback_split_functions): New global var.
8518
8519 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
8520
8521 PR lto/46760
8522 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
8523 calling gimple_call_set_cannot_inline.
8524
8525 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
8526
8527 * config/darwin-sections.def: Remove unused section.
8528
8529 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
8530
8531 PR c++/47218
8532 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
8533
8534 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
8535
8536 PR objc/47232
8537 * c-parser.c (c_parser_declaration_or_fndef): Improved
8538 error message.
8539
8540 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
8541
8542 * config/i386/winnt.c (i386_pe_start_function): Make sure
8543 to switch back to function's section.
8544
8545 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
8546
8547 PR gcc/46902
8548 PR testsuite/46912
8549 * plugin.c: Move include of dlfcn.h from here...
8550 * system.h: ... to here.
8551
8552 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8553
8554 * doc/cpp.texi (C++ Named Operators): Fix markup for header
8555 file name.
8556 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
8557 two extra empty pages in PDF output.
8558
8559 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
8560
8561 PR objc/47078
8562 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
8563 for error recovery purposes behave as if it was not specified so
8564 that the default type is usd.
8565
8566 2011-01-07 Jan Hubicka <jh@suse.cz>
8567
8568 PR tree-optmization/46469
8569 * ipa.c (function_and_variable_visibility): Clear needed flags on
8570 nodes with external decls; handle weakrefs merging correctly.
8571
8572 2011-01-07 Joseph Myers <joseph@codesourcery.com>
8573
8574 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
8575 not false.
8576
8577 2011-01-07 Jan Hubicka <jh@suse.cz>
8578
8579 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
8580 and no longer claim that gold is required for linker plugin.
8581 * configure: Regenerate.
8582 * gcc.c (PLUGIN_COND): New macro.
8583 (LINK_COMMAND_SPEC): Use it.
8584 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
8585 * config.in (HAVE_LTO_PLUGIN): New.
8586 * configure.ac (--with-lto-plugin): New parameter; autodetect
8587 HAVE_LTO_PLUGIN.
8588
8589 2011-01-07 Jan Hubicka <jh@suse.cz>
8590
8591 PR tree-optimization/46367
8592 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
8593 when we can update original.
8594 (cgraph_mark_inline_edge): Sanity check.
8595 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
8596
8597 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8598
8599 * config/spu/spu.h (ASM_COMMENT_START): Define.
8600
8601 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
8602
8603 PR driver/42445
8604 * gcc.c (%>S): New.
8605 (SWITCH_KEEP_FOR_GCC): Likewise.
8606 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
8607 (do_spec_1): Handle "%>".
8608
8609 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
8610
8611 2011-01-07 Jakub Jelinek <jakub@redhat.com>
8612
8613 PR target/47201
8614 * config/i386/i386.c (ix86_delegitimize_address): If
8615 simplify_gen_subreg fails, return orig_x.
8616
8617 PR bootstrap/47187
8618 * value-prof.c (gimple_stringop_fixed_value): Handle
8619 lhs of the call properly.
8620
8621 2011-01-07 Jan Hubicka <jh@suse.cz>
8622
8623 PR lto/45375
8624 * lto-opt.c (lto_reissue_options): Set flag_shlib.
8625
8626 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8627
8628 * target.def (function_switched_text_sections): New hook.
8629 * doc/tm.texi: Regenerated.
8630 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8631 * final.c (default_function_switched_text_sections): New.
8632 (final_scan_insn): Call function_switched_text_sections when a
8633 mid-function section change occurs.
8634 * output.h (default_function_switched_text_sections): Declare.
8635 * config/darwin-protos.h (darwin_function_switched_text_sections):
8636 Likewise.
8637 * config/darwin.c (darwin_function_switched_text_sections): New.
8638 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8639
8640 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8641
8642 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
8643 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
8644 the secondary code fragment when outputting for DWARF == 2.
8645
8646 2011-01-07 Anatoly Sokolov <aesok@post.ru>
8647
8648 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8649 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
8650 Remove.
8651 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
8652 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8653
8654 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
8655
8656 PR debug/46704
8657 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
8658 when it is not empty.
8659
8660 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
8661
8662 Bobcat Enablement
8663 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
8664 (case ${target}): Add btver1.
8665 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8666 -march=native recognize btver1 processors.
8667 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8668 btver1 def_and_undef
8669 * config/i386/i386.c (struct processor_costs btver1_cost): New
8670 btver1 cost table.
8671 (m_BTVER1): New definition.
8672 (m_AMD_MULTIPLE): Includes m_BTVER1.
8673 (initial_ix86_tune_features): Add btver1 tune.
8674 (processor_target_table): Add btver1 entry.
8675 (static const char *const cpu_names): Add btver1 entry.
8676 (software_prefetching_beneficial_p): Add btver1.
8677 (ix86_option_override_internal): Add btver1 instruction sets.
8678 (ix86_issue_rate): Add btver1.
8679 (ix86_adjust_cost): Add btver1.
8680 * config/i386/i386.h (TARGET_BTVER1): New definition.
8681 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
8682 (enum processor_type): Add PROCESSOR_BTVER1.
8683 * config/i386/i386.md (define_attr "cpu"): Add btver1.
8684
8685 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8686
8687 PR target/43309
8688 * config/i386/i386.c (legitimize_tls_address)
8689 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
8690 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
8691 (tls_initial_exec_64_sun): New pattern.
8692
8693 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
8694
8695 * doc/invoke.texi (Overall Options): Improve wording and markup
8696 of the description of -wrapper.
8697
8698 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8699
8700 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
8701 rdynamic, threads): New Driver options.
8702
8703 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8704
8705 PR target/38118
8706 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
8707 if coming from .tdata.
8708 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8709
8710 2011-01-06 Jan Hubicka <jh@suse.cz>
8711
8712 PR lto/47188
8713 * collect2.c (main): Do not enable LTOmode when plugin is active.
8714
8715 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8716
8717 PR other/45915
8718 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
8719 --version output if supported.
8720 * configure: Regenerate.
8721
8722 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8723
8724 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
8725 Driver options.
8726
8727 2011-01-06 Jakub Jelinek <jakub@redhat.com>
8728
8729 PR c/47150
8730 * c-convert.c (convert): When converting a complex expression
8731 other than COMPLEX_EXPR to a different complex type, ensure
8732 c_save_expr is called instead of save_expr, unless in_late_binary_op.
8733 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
8734 when converting COMPLEX_TYPE.
8735
8736 2011-01-06 Ira Rosen <irar@il.ibm.com>
8737
8738 PR tree-optimization/47139
8739 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
8740 only the last reduction value is used outside the loop. Update
8741 documentation.
8742
8743 2011-01-05 Joseph Myers <joseph@codesourcery.com>
8744
8745 * config/rtems.opt: New.
8746 * config.gcc (*-*-rtems*): Use rtems.opt.
8747
8748 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
8749
8750 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
8751 processors do not support 3DNow instructions.
8752
8753 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8754
8755 * config/spu/spu.c (spu_option_override): Set parameter
8756 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
8757
8758 2011-01-05 Jan Hubicka <jh@suse.cz>
8759
8760 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
8761 at the command line.
8762
8763 2011-01-05 Martin Jambor <mjambor@suse.cz>
8764
8765 PR lto/47162
8766 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
8767 deltas on streamed outgoing edges.
8768 (output_node_opt_summary): Output info for outgoing edges only when
8769 the node is in new parameter set.
8770 (output_cgraph_opt_summary): New parameter set, passed to the two
8771 aforementioned functions. Update its forward declaration and its
8772 callee too.
8773
8774 2011-01-05 Tom Tromey <tromey@redhat.com>
8775
8776 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
8777 operator to c_finish_omp_atomic.
8778 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
8779 (build_unary_op): Update.
8780 (build_modify_expr): Update.
8781 (build_asm_expr): Update.
8782
8783 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8784
8785 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
8786 newly inserted insns.
8787 (pad_bb): Likewise.
8788 (spu_emit_branch_hint): Likewise.
8789 (insert_hbrp_for_ilb_runout): Likewise.
8790 (spu_machine_dependent_reorg): Call df_finish_pass after
8791 schedule_insns returns.
8792
8793 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8794
8795 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
8796
8797 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
8798
8799 PR tree-optimization/47005
8800 * tree-sra.c (struct access): Add 'non_addressable' bit.
8801 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
8802 (decide_one_param_reduction): Return 0 if the parameter is passed by
8803 reference and one of the accesses in the group is non_addressable.
8804
8805 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8806
8807 PR tree-optimization/47056
8808 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
8809 (mark_load): Likewise. Handle FUNCTION_DECL specially.
8810 (mark_store): Likewise. Pass STMT to ipa_record_reference.
8811
8812 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8813
8814 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
8815 initializer. Skip view conversions from aggregate types.
8816
8817 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
8818
8819 PR bootstrap/47055
8820 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
8821
8822 2011-01-04 Philipp Thomas <pth@suse.de>
8823
8824 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
8825 obvious typo.
8826
8827 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8828
8829 * function.c (thread_prologue_and_epilogue_insns): Do not crash
8830 on empty epilogue sequences.
8831
8832 2011-01-04 Joseph Myers <joseph@codesourcery.com>
8833
8834 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
8835 non-static): New Driver options.
8836
8837 2011-01-04 Jie Zhang <jie@codesourcery.com>
8838
8839 PR driver/47137
8840 * gcc.c (default_compilers[]): Set combinable field to 0
8841 for all assembly languages.
8842
8843 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
8844
8845 * config/mips/loongson3a.md: New file.
8846 * config/mips/mips.md: Include loongson3a.md.
8847 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
8848 TUNE_LOONGSON_3A.
8849
8850 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
8851
8852 PR middle-end/47017
8853 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
8854 instead of convert_memory_address_addr_space on the base expression.
8855
8856 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8857
8858 * config/spu/spu.c (spu_option_override): Update error text
8859 for bad -march= / -mtune= values.
8860
8861 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8862
8863 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
8864 if branch-hint optimization will be performed.
8865
8866 2011-01-03 Jakub Jelinek <jakub@redhat.com>
8867
8868 PR tree-optimization/47148
8869 * ipa-split.c (split_function): Convert arguments to
8870 DECL_ARG_TYPE if possible.
8871
8872 PR tree-optimization/47155
8873 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
8874 when computing uns.
8875
8876 PR rtl-optimization/47157
8877 * combine.c (try_combine): If undobuf.other_insn becomes
8878 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
8879 and set *new_direct_jump_p too.
8880
8881 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
8882
8883 PR tree-optimization/47021
8884 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
8885
8886 2011-01-03 Jakub Jelinek <jakub@redhat.com>
8887
8888 * gcc.c (process_command): Update copyright notice dates.
8889 * gcov.c (print_version): Likewise.
8890 * gcov-dump.c (print_version): Likewise.
8891 * mips-tfile.c (main): Likewise.
8892 * mips-tdump.c (main): Likewise.
8893
8894 2011-01-03 Martin Jambor <mjambor@suse.cz>
8895
8896 PR tree-optimization/46801
8897 * tree-sra.c (type_internals_preclude_sra_p): Check whether
8898 aggregate fields start at byte boundary instead of the bit-field flag.
8899
8900 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
8901
8902 PR driver/47137
8903 * gcc.c (main): Revert revision 168407.
8904
8905 2011-01-03 Martin Jambor <mjambor@suse.cz>
8906
8907 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
8908
8909 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8910
8911 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
8912 vector optab to expand vector/scalar shift, update gimple to vector.
8913
8914 2011-01-03 Martin Jambor <mjambor@suse.cz>
8915
8916 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
8917 a thunk.
8918
8919 2011-01-03 Martin Jambor <mjambor@suse.cz>
8920
8921 PR tree-optimization/46984
8922 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
8923 HOST_WIDE_INT.
8924 (cgraph_create_indirect_edge): Fixed line length.
8925 (cgraph_indirect_call_info): Declare.
8926 (cgraph_make_edge_direct) Update declaration.
8927 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
8928 (cgraph_create_indirect_edge): Use it.
8929 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
8930 callees.
8931 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
8932 the new thunk_delta representation.
8933 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
8934 HOST_WIDE_INT.
8935 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
8936 (ipa_read_indirect_edge_info): Likewise.
8937 * lto-cgraph.c (output_edge_opt_summary): New function.
8938 (output_node_opt_summary): Call it on all outgoing edges.
8939 (input_edge_opt_summary): New function.
8940 (input_node_opt_summary): Call it on all outgoing edges.
8941
8942 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
8943
8944 PR driver/47137
8945 * gcc.c (main): Don't check have_o when settting combine_inputs.
8946
8947 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
8948
8949 * regrename.c: Add general comment describing the pass.
8950 (struct du_head): Remove 'length' field.
8951 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
8952 (regrename_optimize): Do not sort chains. Rework comments, add others.
8953 Force renaming to the preferred class (if any) in the first pass and do
8954 not consider registers that belong to it in the second pass.
8955 (create_new_chain): Do not set 'length' field.
8956 (scan_rtx_reg): Likewise.
8957
8958 2011-01-02 Jakub Jelinek <jakub@redhat.com>
8959
8960 PR tree-optimization/47140
8961 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
8962 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
8963 to bit_value_binop.
8964
8965 PR rtl-optimization/47028
8966 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
8967 parm_birth_insn instead of at the beginning of first bb.
8968
8969 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
8970
8971 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
8972 Remove the word "see" before "@pxref".
8973 * doc/rtl.texi: Remove the word "see" before "@pxref".
8974
8975 2011-01-01 Jan Hubicka <jh@suse.cz>
8976
8977 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
8978 memory.
8979
8980 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
8981
8982 PR target/38662
8983 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
8984
8985 \f
8986 Copyright (C) 2011 Free Software Foundation, Inc.
8987
8988 Copying and distribution of this file, with or without modification,
8989 are permitted in any medium without royalty provided the copyright
8990 notice and this notice are preserved.