c5f5c4799b5c5adc8e3ee48ae89fcd7384f5d2e7
[gcc.git] / gcc / ChangeLog
1 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2
3 * opts-common.c (handle_option, handle_generated_option,
4 read_cmdline_option, set_option): Add diagnostic_context
5 parameter. Update calls among these functions.
6 (set_option): Don't use global_dc.
7 * opts.c (read_cmdline_options): Pass global_dc to
8 read_cmdline_option.
9 (decode_options): Pass global_dc to enable_warning_as_error.
10 (common_handle_option): Pass global_dc to enable_warning_as_error.
11 (enable_warning_as_error): Add diagnostic_context parameter.
12 Document parameters. Don't use global_dc. Pass
13 diagnostic_context parameter to handle_generated_option.
14 * opts.h (set_option, handle_option, handle_generated_option,
15 read_cmdline_option, enable_warning_as_error): Add
16 diagnostic_context parameter.
17 * Makefile.in (lto-opts.o): Update dependencies.
18 * coretypes.h (struct diagnostic_context, diagnostic_context):
19 Declare here.
20 * diagnostic.h (diagnostic_context): Don't declare typedef here.
21 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
22 * langhooks-def.h (struct diagnostic_context): Don't declare here.
23 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
24 using diagnostic_context typedef.
25 * langhooks.c (lhd_initialize_diagnostics): Declare using
26 diagnostic_context typedef.
27 * langhooks.h (struct diagnostic_context): Don't declare here.
28 (initialize_diagnostics, print_error_function): Declare using
29 diagnostic_context typedef.
30 * lto-opts.c: Include diagnostic.h.
31 (lto_reissue_options): Pass global_dc to set_option. Pass
32 DK_UNSPECIFIED not 0.
33 * plugin.c (plugins_internal_error_function): Declare using
34 diagnostic_context typedef.
35 * plugin.h (struct diagnostic_context): Don't declare here.
36 (plugins_internal_error_function): Declare using
37 diagnostic_context typedef.
38
39 2010-10-05 Olivier Hainque <hainque@adacore.com>
40 Nicolas Roche <roche@adacore.com>
41
42 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
43 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
44
45 2010-10-05 Ira Rosen <irar@il.ibm.com>
46
47 PR tree-optimization/45752
48 * tree-vect-slp.c (vect_get_mask_element): Remove static
49 variables, make them function arguments.
50 (vect_transform_slp_perm_load): Pass new arguments to
51 vect_get_mask_element.
52
53 2010-10-05 Richard Guenther <rguenther@suse.de>
54
55 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
56 (gimple_mod_pow2): Likewise.
57 (gimple_mod_subtract): Likewise.
58 (gimple_ic): Likewise.
59 (gimple_stringop_fixed_value): Likewise.
60 * tree-profile.c (tree_init_edge_profiler): Mark profile
61 functions nothrow and leaf.
62 (add_abnormal_goto_call_edges): Remove.
63 (tree_gen_edge_profiler): Work on SSA form.
64 (tree_gen_ic_profiler): Likewise. Simplify.
65 (do_tree_profiling): Update SSA form.
66 (pass_tree_profile): Remove.
67 (do_tree_profiling): Likewise.
68 (gate_tree_profile_ipa): New function.
69 (pass_ipa_tree_profile): New.
70 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
71 state of instrumented functions.
72 * passes.c (init_optimization_passes): Remove early non-SSA
73 inlining. Move profiling after early optimizations.
74 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
75 (pass_ipa_early_inline): Likewise.
76 * tree-pass.h (pass_ipa_early_inline): Remove.
77 (pass_tree_profile): Likewise.
78 (pass_ipa_tree_profile): Declare.
79
80 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
81 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
82
83 * gcc/config/s390/s390.c (z196_cost): New.
84 (s390_handle_arch_option): Add -march=z196.
85 (s390_option_override): Use the new cost function and use the z10
86 defaults also for z196.
87 (legitimate_reload_constant_p): Adjust comment.
88 (legitimate_reload_fp_constant_p): New function.
89 (s390_preferred_reload_class): Distingiush between FP and Int constants.
90 (preferred_la_operand_p): Avoid la with index on z196.
91 (s390_adjust_priority): Trigger also for z196.
92 (s390_issue_rate): Issue rate for z196 is 3.
93 (s390_z10_fix_long_loop_prediction): Rename to ...
94 (s390_fix_long_loop_prediction): ... this.
95 (s390_reorg): Apply the z10 adjustments also for z196.
96 (s390_loop_unroll_adjust): Do this also for z196.
97 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
98 (enum processor_flags): Add PF_Z196.
99 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
100 (TARGET_CPU_Z196, TARGET_Z196): New macros.
101 * gcc/config.gcc: Enable z196 for --with-arch.
102 * gcc/config/s390/2817.md: New file.
103 * gcc/config/s390/2084.md: New type for multiply and add.
104 * gcc/config/s390/2097.md: Likewise.
105 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
106 (UNSPECV_ATOMIC_OP): New constants.
107 (fmadddf, fmaddsf): New values for type attribute.
108 (z196prop): New insn attribute.
109 (cpu, cpu_facility): Add z196.
110 (ATOMIC_Z196): New code iterator.
111 (noxa): New code attribute.
112 (gk): New mode attribute.
113 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
114 Support load zero for fp constants.
115 (fixuns_truncdddi2, fixuns_trunctddi2)
116 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
117 for z196.
118 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
119 (popcounthi2, popcountqi2): New expander.
120 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
121 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
122 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
123 insn definition.
124 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
125 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
126 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc, *sub<mode>3)
127 (*sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly, *sub<mode>3_cc)
128 (*sub<mode>3_cc2, *sub<mode>3_cconly, *sub<mode>3_cconly2)
129 (*anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc, *andsi3_cconly)
130 (*andsi3_zarch, *andsi3_esa, *andhi3_zarch, *andqi3_zarch, *iordi3_cc)
131 (*iordi3_cconly, *iordi3, *iorsi3_cc, *iorsi3_cconly, *iorsi3_zarch)
132 (*iorhi3_zarch, *iorqi3_zarch, *xordi3_cc, *xordi3_cconly, *xordi3)
133 (*xorsi3_cc, *xorsi3_cconly, *xorsi3, *xorhi3, *xorqi3, *<shift><mode>3)
134 (*<shift><mode>3_and, *ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
135 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
136 Support new z196 instructions.
137
138 2010-10-05 Richard Guenther <rguenther@suse.de>
139
140 PR middle-end/45877
141 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
142 case where gimplification optimizes away the stmt.
143
144 2010-10-04 Jakub Jelinek <jakub@redhat.com>
145
146 PR debug/45849
147 * var-tracking.c (strip_pointer_flags): New function.
148 (emit_note_insn_var_location): If rtx_equal_p check failed,
149 retry on locations simplified with simplify_replace_fn_rtx
150 and strip_pointer_flags as its callback.
151
152 2010-10-04 Jan Hubicka <jh@suse.cz>
153
154 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
155 (can_refer_decl_in_current_unit_p): ... this one; reverse return
156 value; handle comdats too.
157 (canonicalize_constructor_val): Use it; handle function_decls
158 correctly.
159 (gimple_fold_obj_type_ref_known_binfo): Likewise.
160 * gimple.c (get_base_address): Accept all kinds of decls.
161
162 2010-10-04 Joseph Myers <joseph@codesourcery.com>
163
164 * flags.h (g_switch_value, g_switch_set): Remove.
165 * opts.c (g_switch_value, g_switch_set): Remove.
166 * config/g.opt (G): Add Var(g_switch_value).
167 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G
168 here.
169 (alpha_option_override): Check global_options_set.x_g_switch_value
170 instead of g_switch_set.
171 (alpha_in_small_data_p): Remove cast in comparison with
172 g_switch_value.
173 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
174 g_switch_value to unsigned HOST_WIDE_INT.
175 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
176 with g_switch_value.
177 (frv_handle_option): Don't handle -G here.
178 (frv_option_override): Check global_options_set.x_g_switch_value
179 instead of g_switch_set. Don't modify g_switch_set.
180 (frv_in_small_data_p): Remove cast in comparison with
181 g_switch_value.
182 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
183 g_switch_value to unsigned HOST_WIDE_INT.
184 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
185 (ia64_option_override): Check global_options_set.x_g_switch_value
186 instead of g_switch_set.
187 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
188 Remove.
189 (lm32_in_small_data_p): Remove cast in comparison with
190 g_switch_value.
191 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
192 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
193 HOST_WIDE_INT.
194 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
195 (m32r_init): Check global_options_set.x_g_switch_value instead of
196 g_switch_set.
197 (m32r_in_small_data_p): Remove cast in comparison with
198 g_switch_value.
199 (m32r_file_start): Format g_switch_value with %d.
200 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
201 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned
202 HOST_WIDE_INT.
203 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
204 handle -G here.
205 (microblaze_option_override): Check
206 global_options_set.x_g_switch_value instead of g_switch_set.
207 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
208 (mips_option_override): Check global_options_set.x_g_switch_value
209 instead of g_switch_set.
210 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G
211 here.
212 (rs6000_file_start): Format g_switch_value with %d.
213 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
214 comparisons with g_switch_value.
215 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
216 global_options_set.x_g_switch_value instead of g_switch_set.
217 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
218 global_options_set.x_g_switch_value instead of g_switch_set.
219 * config/score/score.c (score_handle_option): Don't handle -G
220 here.
221 * config/score/score3.c (score3_option_override): Check
222 global_options_set.x_g_switch_value instead of g_switch_set.
223 * config/score/score7.c (score7_option_override): Check
224 global_options_set.x_g_switch_value instead of g_switch_set.
225
226 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
227
228 * common.opt (fira-coalesce): Remove.
229
230 * doc/invoke.texi (flag_ira_coalesce): Remove.
231
232 * ira-color.c (allocno_coalesced_p): Move before
233 copy_freq_compare_func.
234 processed_coalesced_allocno_bitmap): Ditto.
235 (update_conflict_hard_regno_costs): Don't use
236 ALLOCNO_FIRST_COALESCED_ALLOCNO.
237 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
238 (assign_hard_reg): Assume no coalesced allocnos.
239 (get_coalesced_allocnos_attributes): Remove.
240 (bucket_allocno_compare_func): Assume no coalesced allocnos.
241 (push_allocno_to_stack): Ditto.
242 (remove_allocno_from_bucket_and_push): Use
243 ira_print_expanded_allocno instead of print_coalesced_allocno.
244 (push_allocnos_to_stack): Assume uncoalesced allocnos.
245 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
246 all_conflicting_hard_regs.
247 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
248 (setup_allocno_left_conflicts_size): Ditto.
249 (put_allocno_into_bucket): Ditto.
250 (copy_freq_compare_func): Remove.
251 (copy_freq_compare_func, merge_allocnos): Move before
252 coalesced_pseudo_reg_freq_compare.
253 coalesced_allocno_conflict_p): Ditto.
254 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
255 parameter. Assume it true.
256 (color_allocnos): Assume uncoalesced allocnos. Use
257 ira_print_expanded_allocno instead of print_coalesced_allocno.
258 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
259 parameter.
260
261 * ira.c: Remove comment about coalescing.
262
263 2010-10-04 Joseph Myers <joseph@codesourcery.com>
264
265 * config/mips/mips.h (target_flags_explicit): Declare for
266 GENERATOR_FILE.
267
268 2010-10-04 Andi Kleen <ak@linux.intel.com>
269
270 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
271 gcov-dump, cc1-dummy, genprog, build/gcov-iov):
272 Add + to build rule.
273
274 2010-10-04 Matthias Klose <doko@ubuntu.com>
275
276 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
277 multilib osdirname if it exists.
278 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
279
280 2010-10-04 Jakub Jelinek <jakub@redhat.com>
281
282 PR middle-end/45876
283 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
284 arg0's type or its unsigned counterpart as utype. Convert
285 arg1 to utype unconditionally.
286
287 2010-10-04 Julian Brown <julian@codesourcery.com>
288
289 * expr.c (expand_assignment): Add assertion to prevent emitting
290 null rtx for movmisalign pattern.
291 (expand_expr_real_1): Likewise.
292 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
293 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
294 (arm_vector_alignment_reachable): New.
295 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
296 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
297 (arm_print_operand): Include alignment qualifier in %A.
298 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
299 (movmisalign<mode>): New expander.
300 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
301 insn patterns.
302
303 2010-10-04 Joseph Myers <joseph@codesourcery.com>
304
305 * optc-gen.awk: Define global_options_set. Don't define
306 target_flags_explicit.
307 * opth-gen.awk: Declare global_options_set. Define
308 target_flags_explicit as macro.
309 * opts-common.c (handle_option): Take opts_set and generated_p
310 parameters.
311 (handle_generated_option, read_cmdline_option, set_option): Take
312 opts_set parameter.
313 (set_option): Use opts_set instead of hardcoding target_flags and
314 target_flags_explicit.
315 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
316 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
317 flag_value_profile_transformations_set, flag_peel_loops_set,
318 flag_branch_probabilities_set, flag_inline_functions_set,
319 flag_ipa_cp_set, flag_ipa_cp_clone_set,
320 flag_predictive_commoning_set, flag_unswitch_loops_set,
321 flag_gcse_after_reload_set): Remove.
322 (common_handle_option, lang_handle_option, target_handle_option):
323 Take opts_set parameter. Assert that it is &global_options_set.
324 (common_handle_option): Don't set _set variables. Check opts_set
325 instead of such variables.
326 (enable_warning_as_error): Pass &global_options_set to
327 handle_generated_option.
328 * opts.h (cl_option_handler_func.handler, set_option,
329 handle_option, handle_generated_option, read_cmdline_option): Add
330 opts_set parameters.
331 (handle_option): Add generated_p parameter.
332 * config/i386/i386.c (ix86_function_specific_save,
333 ix86_function_specific_restore): Updat for renaming of
334 target_flags_explicit field.
335 * config/i386/i386.opt (target_flags_explicit): Rename to
336 ix86_target_flags_explicit.
337 * config/ia64/ia64.c (ia64_override_options_after_change): Check
338 global_options_set.x_flag_selective_scheduling and
339 global_options_set.x_flag_selective_scheduling2, not
340 sel_sched_switch_set.
341 * flags.h (sel_sched_switch_set,
342 flag_speculative_prefetching_set): Remove.
343 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
344 that it is &global_options_set.
345 (process_command): Pass &global_options_set to
346 read_cmdline_option.
347 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
348 set_option.
349 * toplev.c (target_flags_explicit): Remove.
350
351 2010-10-04 Jan Hubicka <jh@suse.cz>
352
353 PR middle-end/45871
354 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
355 use get_ref_base_and_offset to handle references.
356 (fold_const_aggregate_ref): Update.
357
358 2010-10-04 Martin Jambor <mjambor@suse.cz>
359
360 PR tree-optimization/45572
361 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
362 ipa_check_create_node_params.
363 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
364
365 2010-10-04 Yao Qi <yao@codesourcery.com>
366
367 * doc/passes.texi: Clean up.
368
369 2010-10-03 Ian Lance Taylor <iant@google.com>
370
371 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
372 referring to a field using a typedef name.
373 (find_anonymous_field_with_type): New static function.
374 (convert_to_anonymous_field): New static function.
375 (convert_for_assignment): If -fplan9-extensions, permit converting
376 pointer to struct to pointer to anonymous field.
377 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous
378 fields.
379 (is_duplicate_field): New static function.
380 (detect_field_duplicates_hash): If -fplan9-extensions, check for
381 typedef names duplicating field names.
382 (detect_field_duplicates): Likewise.
383 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
384 (C Dialect Options): Document -fplan9-extensions.
385 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
386
387 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
388
389 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
390 revision 164914.
391 (vect_create_data_ref_ptr): Likewise.
392 * tree-vect-stmts.c (vectorizable_store): Likewise.
393 (perm_mask_for_reverse): Likewise.
394 (reverse_vec_elements): Likewise.
395 (vectorizable_load): Likewise.
396
397 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
398
399 * cppbuiltin.c: New file.
400 * cppbuiltin.h: New file.
401 * Makefile.in: Take into account cppbuiltin.{h,c}.
402
403 2010-10-03 Andi Kleen <ak@linux.intel.com>
404
405 * lto-cgraph.c (input_cgraph): Check for missing sections.
406
407 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
408
409 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 preticate
410 to nonimmediate_operand. Force operand 2 to register when allowed.
411 (*<shiftrt_insn><mode>3_mask): Ditto.
412 (*<rotate_insn><mode>3_mask): Ditto.
413
414 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
415
416 PR tree-optimization/45720
417 PR tree-optimization/45764
418 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
419 Don't accept backwards consecutive accesses.
420 (vect_create_data_ref_ptr): Disallow negative steps.
421
422 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
423 (perm_mask_for_reverse): Removed.
424 (reverse_vec_elements): Likewise.
425 (vectorizable_load): Don't handle negative steps.
426
427 2010-10-02 Jan Hubicka <jh@suse.cz>
428
429 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
430 call destination is known.
431
432 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
433
434 PR target/45820
435 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
436 earlier.
437
438 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
439
440 * doc/install.texi (Configuration): Document build_configargs,
441 host_configargs, target_configargs.
442
443 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
444
445 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
446 (*<shiftrt_insn><mode>3_mask): Ditto.
447 (*<rotate_insn><mode>3_mask): Ditto.
448
449 2010-10-01 Steve Ellcey <sje@cup.hp.com>
450
451 PR tree-optimization/44716
452 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
453 (HOT_TEXT_SECTION_NAME): Define.
454
455 2010-10-01 Nick Clifton <nickc@redhat.com>
456
457 * common.opt: Add -fcombine-stack-adjustments.
458 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
459 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
460 flag_combine_stack_adjustments.
461 * doc/invoke.texi: Document the new option.
462
463 2010-10-01 Richard Guenther <rguenther@suse.de>
464
465 PR tree-optimization/45854
466 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
467
468 2010-10-01 Anthony Green <green@moxielogic.com>
469
470 * config.gcc: Fix moxie-*-rtems* configuration.
471
472 2010-10-01 Richard Guenther <rguenther@suse.de>
473
474 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
475 (gen_decl_die): Likewise.
476
477 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
478
479 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
480 to the function code for SPU MD builtins.
481 (spu_expand_builtin): Update.
482 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
483
484 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
485
486 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
487 sjlj_except_unwind_info.
488
489 2010-10-01 Tristan Gingold <gingold@adacore.com>
490
491 * configure.ac: Define the nop insn for avr*-*-*
492 * configure: Regenerate.
493
494 2010-10-01 Alan Modra <amodra@gmail.com>
495
496 PR target/45807
497 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
498 extend toc_restore_insn.
499
500 2010-09-30 Richard Guenther <rguenther@suse.de>
501
502 PR tree-optimization/43959
503 * function.c (gimplify_parameters): Use create_tmp_reg instead of
504 create_tmp_var.
505
506 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
507
508 * config/sh/sh.c (sh_expand_prologue): Set
509 current_function_static_stack_size.
510
511 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
512
513 * configure.ac: Check for Solaris 8 ld with .hidden support.
514 * configure: Regenerate.
515
516 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
517
518 PR middle-end/45758
519 * graphite.c (graphite_initialize): Call scev_reset.
520
521 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
522
523 * sese.h (scev_analyzable_p): Return false for real or floating
524 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
525
526 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
527
528 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
529 and ps.
530 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
531 domain.
532 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
533 Do not allocate ub_expr, it is passed in initialized.
534
535 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
536
537 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
538 (build_cloog_prog): Dump CLooG input file when
539 flag_graphite_dump_cloog is set. This is disabled on trunk.
540 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
541
542 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
543
544 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
545 verify_dominators for CDI_POST_DOMINATORS.
546 * sese.h: Remove comment about CDI_POST_DOMINATORS.
547 (recompute_all_dominators): Remove call to free_dominance_info
548 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
549 for CDI_POST_DOMINATORS.
550
551 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
552
553 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
554 over pbb_dim_iter_domain.
555
556 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
557
558 * graphite-flattening.c: Fix comments.
559
560 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
561
562 * Makefile.in (OBJS-common): Add graphite-flattening.o.
563 (graphite-flattening.o): New rule.
564 * common.opt (floop-flatten): New flag.
565 * doc/invoke.texi (-floop-flatten): Documented.
566 * graphite-flattening.c: New.
567 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
568 * graphite-poly.h (flatten_all_loops): Declared.
569 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
570 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
571 is set, also set flag_graphite.
572
573 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
574
575 * graphite-poly.c (cloog_checksum): New.
576 * graphite-poly.h (cloog_checksum): Declared.
577
578 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
579
580 * graphite-poly.c (pbb_number_of_iterations): Removed.
581 (pbb_number_of_iterations_at_time): Correctly compute the number
582 of iterations in the transformed loop.
583 * graphite-poly.h (pbb_number_of_iterations): Removed.
584
585 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
586
587 * graphite-poly.h (lst_update_scattering_seq): Removed.
588 (lst_update_scattering): Correctly handle outermost loop dewey
589 renumbering.
590
591 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
592
593 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
594 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
595 * graphite-poly.h (lst_niter_for_loop): New.
596
597 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
598
599 * graphite-poly.c (apply_poly_transforms): Do not abort when the
600 transform read from disk is not legal. Call fatal_error instead.
601
602 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
603
604 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
605 (print_scop_header): Removed. Inlined in the only call place...
606 (print_scop): ... here.
607
608 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
609
610 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
611
612 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
613
614 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
615
616 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
617
618 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
619 (dot_deps_stmt): Same.
620 * graphite-poly.c (dot_lst): Same.
621
622 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
623
624 * graphite-blocking.c (scop_do_strip_mine): Do not call
625 graphite_legal_transform.
626 (scop_do_block): Same.
627
628 2010-09-30 Vladimir Kargov <kargov@gmail.com>
629
630 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
631 description.
632
633 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
634
635 * tree-scalar-evolution.c (instantiate_array_ref): New.
636 (instantiate_scev_r): Also handle ARRAY_REFs.
637
638 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
639
640 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
641 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
642 RESULT_DECL, and FIELD_DECL. Return false for an
643 SSA_NAME_IS_DEFAULT_DEF.
644 (compute_scalar_evolution_in_loop): Do not further analyze the
645 scalar evolution when no_evolution_in_loop_p returns true.
646
647 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
648
649 * tree-chrec.h (evolution_function_is_affine_p): Do not check
650 whether CHREC_LEFT is invariant. A function is affine when
651 CHREC_RIGHT is invariant.
652
653 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
654
655 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
656 is_gimple_reg.
657 (rewrite_degenerate_phi): Same.
658 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
659
660 2010-09-30 Vladimir Kargov <kargov@gmail.com>
661
662 * graphite-scop-detection.c (graphite_can_represent_scev,
663 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
664 graphite_can_represent_loop): Remove outermost_loop.
665
666 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
667
668 PR middle-end/45229
669 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
670 handle GIMPLE_CALLs with no LHS.
671
672 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
673
674 * graphite-poly.c (init_graphite_out_file): New.
675 (init_graphite_in_file): New.
676 (apply_poly_transforms): Updated to enable reading and writing of
677 multiple scop files.
678
679 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
680
681 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
682 redundant checks.
683
684 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
685
686 * graphite-clast-to-gimple.c (precision_for_value): Adjust
687 computation of precision by 1.
688
689 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
690
691 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
692 (openscop_read_polyhedron_matrix): New.
693 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
694 (openscop_read_N_int): Same.
695 * graphite-poly.c (openscop_read_N_int): New.
696 (openscop_read_one_int): New.
697 (openscop_read_N_string): New.
698 (openscop_read_one_string): New.
699 (openscop_read_powerset_matrix): New.
700 (graphite_read_transforms): Remove.
701 (graphite_read_scatt): New.
702 (graphite_read_scop_file): New.
703 (apply_poly_transforms): Updated to call graphite_read_scop_file.
704
705 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
706
707 * graphite-poly.c: Change include order.
708
709 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
710
711 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
712 (cloog_matrix_nrows): New.
713
714 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
715
716 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
717 from matrix lines.
718 * graphite-poly.c (openscop_print_scattering_function_1): Same.
719 (print_scattering_function_1): Same.
720 (openscop_print_pbb_domain): Same.
721 (openscop_print_scop_context): Same.
722 (print_scop_context): Same.
723
724 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
725
726 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
727 (openscop_print_pdr_polyhedron): Print pph.
728
729 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
730
731 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
732 priority signed types.
733
734 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
735
736 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
737 the call to lang_hooks.types.type_for_size. Call
738 build_nonstandard_integer_type.
739
740 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
741
742 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
743 (openscop_print_polyhedron_matrix): New.
744 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
745 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
746 (openscop_print_pdr_powerset): New.
747 (openscop_print_powerset_matrix): New.
748 (openscop_print_scattering_function_1): New.
749 (print_scattering_function): Add support for scattering names and
750 OpenScop format.
751 (graphite_write_transforms): Remove.
752 (print_pdr_access_layout): Updated to support OpenScop format.
753 (print_pdr): Same.
754 (openscop_print_pbb_domain): New.
755 (print_pbb_body): Added a parameter to allow indicating that pbb_body
756 is not provided.
757 (print_pbb): Updated to call the new print_pbb_body.
758 (openscop_print_scop_context): New.
759 (print_scop_header): New.
760 (print_scop): Updated to call print_scop_header.
761 * graphite-poly.h: Document OpenScop format.
762
763 2010-09-30 Anatoly Sokolov <aesok@post.ru>
764
765 * config/cris/m32c.c (cris_memory_move_cost): New.
766 (cris_register_move_cost): Make static. Change arguments type from
767 enum reg_class to reg_class_t.
768 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
769 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
770 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
771
772 2010-09-30 Jakub Jelinek <jakub@redhat.com>
773
774 PR target/45843
775 * config/i386/i386.c (ix86_gimplify_va_arg): Use
776 INTVAL (XEXP (slot, 1)) as prev_size.
777
778 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
779
780 PR target/45837
781 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
782 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
783 defined.
784 * config/rs6000/option-defaults.h (toplevel): Change #if
785 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
786 global option changes.
787
788 2010-09-30 Jakub Jelinek <jakub@redhat.com>
789
790 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
791
792 PR tree-optimization/31261
793 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
794 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
795
796 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
797
798 PR bootstrap/45796
799 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
800 special-casing for generators and turn into ...
801 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
802 rule, for better error messages in case of toplevel dependency errors.
803 (genprog): Add hooks, rename to ...
804 (genprogerr): ... this, and let genprog also contain check,
805 checksum, condmd.
806 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
807 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
808 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
809
810 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
811 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
812
813 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
814 for GMP, MPFR and MPC.
815
816 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
817
818 * config/sparc/sparc.opt (mimpure-text): Move ...
819 * config/sol2.opt: ... here. Correct description.
820 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
821 * doc/invoke.texi (Option Summary, SPARC Options): Move
822 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
823 (Option Summary, Solaris 2 Options): ... here.
824 (Submodel Options, Solaris 2 Options): New menu entry.
825 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
826 (Solaris 2 Options): ... here.
827
828 2010-09-30 Michael Eager <eager@eagercon.com>
829
830 * extend.texi (interrupt_handler): Add MicroBlaze to list.
831 (save_volatiles): Describe option for MicroBlaze.
832 * invoke.texi: Add MicroBlaze Options.
833 * contrib.texi: Add acknowledgment.
834 * md.texi: Add MicroBlaze d and z constraints.
835 * install.texi: Add microblaze-*-elf.
836 * configure.ac: Add microblaze-*-* to target list.
837 * configure: Regenerate.
838 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
839 * config/microblaze/microblaze-protos.h: New.
840 * config/microblaze/crti.s: New.
841 * config/microblaze/predicates.md: New.
842 * config/microblaze/linux.h: New.
843 * config/microblaze/microblaze.md: New.
844 * config/microblaze/constraints.md: New.
845 * config/microblaze/crtn.s: New.
846 * config/microblaze/microblaze.opt: New.
847 * config/microblaze/microblaze-c.c: New.
848 * config/microblaze/t-microblaze: New.
849 * config/microblaze/microblaze.c: New.
850 * config/microblaze/microblaze.h: New.
851
852 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
853
854 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
855 parse @optional/@required and set the flags as appropriate.
856
857 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
858
859 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
860
861 2010-09-30 Joseph Myers <joseph@codesourcery.com>
862
863 * opt-functions.awk (static_var): Update comment.
864 (var_ref): Return offsetof expression or -1, not variable address.
865 * optc-gen.awk: Generate structure field initializers instead of
866 static variables. Expect -1 for missing variables instead of null
867 pointer. Add gcc_options parameters to generated functions.
868 * opth-gen.awk: Generate structure fields for static variables.
869 Add gcc_options parameters to generated functions.
870 * common.opt (optimize, optimize_size): Add variables.
871 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
872 &global_options to cl_target_option_restore.
873 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
874 &global_options to cl_optimization_restore, cl_target_option_save
875 and cl_target_option_restore.
876 (ix86_set_current_function): Pass &global_options to
877 cl_target_option_restore.
878 * config/pdp11/pdp11.h (optimize): Remove.
879 * config/rs6000/rs6000.h (optimize): Remove.
880 * config/sh/sh.h (optimize): Remove.
881 * config/xtensa/xtensa.h (optimize): Remove.
882 * coretypes.h (struct gcc_options): Declare.
883 * diagnostic.c (diagnostic_initialize): Initialize
884 context->option_state.
885 (diagnostic_report_diagnostic): Pass option_state to
886 option_enabled hook.
887 * diagnostic.h (diagnostic_context.option_enabled): Add void *
888 parameter.
889 (diagnostic_context.option_state): New field.
890 * final.c (final_start_function, final, final_scan_insn): Rename
891 optimize parameter to optimize_p.
892 * flags.h (optimize, optimize_size): Remove.
893 * function.c (invoke_set_current_function_hook): Pass
894 &global_options to cl_optimization_restore.
895 * gcc.c (driver_handle_option): Take gcc_options parameter.
896 Assert that it is &global_options.
897 (process_command): Pass &global_options to read_cmdline_option.
898 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
899 option_enabled.
900 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
901 &global_options to set_option.
902 * opts-common.c (handle_option, handle_generated_option,
903 read_cmdline_option, set_option): Take explicit gcc_options
904 parameters. Use option_flag_var.
905 (option_flag_var): New.
906 * opts.c (common_handle_option, lang_handle_option,
907 target_handle_option): Take gcc_options parameter. Assert that it
908 is &global_options.
909 (read_cmdline_options): Pass &global_options to read_cmdline_option.
910 (print_filtered_help): Use option_flag_var. Pass &global_options
911 to option_enabled.
912 (common_handle_option): Use option_flag_var.
913 (option_enabled): Take opts parameter. Use option_flag_var.
914 (get_option_state): Take gcc_options parameter. Use
915 option_flag_var. Pass gcc_options parameter to option_enabled.
916 (enable_warning_as_error): Pass &global_options to
917 handle_generated_option.
918 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
919 (cl_option_handler_func.handler): Take gcc_options parameter.
920 (option_enabled, get_option_state, set_option, handle_option,
921 handle_generated_option, read_cmdline_option): Take gcc_options
922 parameters.
923 * toplev.c (optimize, optimize_size): Remove.
924 (print_switch_values): Pass &global_options to option_enabled.
925 (option_affects_pch_p): Use option_flag_var. Pass &global_options
926 to get_option_state.
927 (general_init): Initialize global_dc->option_state.
928 * tree.c (build_optimization_node): Pass &global_options to
929 cl_optimization_save.
930 (build_target_option_node): Pass &global_options to
931 cl_target_option_save.
932
933 2010-09-30 Martin Jambor <mjambor@suse.cz>
934
935 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
936 zero sized bit-fields.
937
938 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
939
940 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
941 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
942 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
943 (c_parser_objc_class_declaration): Same change.
944 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
945 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
946 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
947 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
948 and RID_AT_PUBLIC instead of RID_PUBLIC.
949 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
950 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
951
952 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
953
954 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
955 Add links to current providers of packages for Solaris and IRIX.
956
957 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
958
959 Merge from 'apple/trunk' branch on FSF servers.
960 * c-parser.c: Applied change originally in c-parse.in.
961
962 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
963
964 Radar 4281748
965 * c-decl.c (start_decl): Check for redeclaration of class name.
966 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
967
968 2010-09-29 Steve Ellcey <sje@cup.hp.com>
969
970 * config/ia64/ia64.c (ia64_builtin_decl): New.
971 (TARGET_BUILTIN_DECL): Define.
972 (ia64_builtins): New.
973 (ia64_init_builtins): Save decls in ia64_builtins.
974
975 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
976
977 PR target/40457
978 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
979 (move2add_use_add3_insn): Likewise.
980 (reload_cse_move2add): Likewise.
981 * rtlanal.c (get_full_rtx_cost): New function.
982 * rtl.h (struct full_rtx_costs): New.
983 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
984 costs_add_n_insns): New inline functions.
985 (get_full_rtx_cost): Declare.
986
987 PR c/45054
988 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
989 invariants. Check for reg_equiv_invariant.
990 (reload): Assert that spilled_pseudos is empty when returning.
991
992 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
993
994 * config/i386/mingw32.h (TARGET_64BIT): replaced by
995 TARGET_64BIT_DEFAULT in #if check.
996
997 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
998
999 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
1000
1001 2010-09-29 Mike Stump <mikestump@comcast.net>
1002
1003 * config/darwin.h (flag_mkernel): Remove.
1004 (flag_apple_kext): Likewise.
1005
1006 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1007 Jack Howarth <howarth@bromo.med.uc.edu>
1008
1009 * config/darwin.opt (undefined): Add.
1010
1011 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
1012
1013 PR testsuite/45664
1014 * configure.ac: Add --enable-indirect-function option.
1015 * config.gcc: Add default_gnu_indirect_function.
1016 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
1017 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
1018 * varasm.c (do_assemble_alias): Adjust for macro name change.
1019 * configure: Rebuilt.
1020 * doc/install.texi: Document --enable-indirect-function.
1021
1022 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1023
1024 * doc/options.texi (Variable, Var, Init): Update documentation
1025 without reference to VarExists.
1026 (VarExists): Remove.
1027 * common.opt, config/i386/i386.opt, config/linux.opt,
1028 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
1029 Don't use VarExists.
1030
1031 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1032
1033 * optc-gen.awk: Generate global_options initializer instead of
1034 individual variables. Add x_ prefix to names of structure members.
1035 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
1036 names of structure members.
1037 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1038 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
1039 * doc/tm.texi: Regenerate.
1040 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1041 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
1042 * c-parser.c (disable_extension_diagnostics,
1043 restore_extension_diagnostics): Update names of cpp_options members.
1044 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1045 * common.opt (fcompare-debug-second): Don't use Var.
1046 * config/alpha/alpha.h (target_flags): Remove.
1047 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1048 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
1049 * config/bfin/bfin.h (target_flags): Remove.
1050 * config/cris/cris.h (target_flags): Remove.
1051 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
1052 cl_target_option members.
1053 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
1054 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
1055 ix86_can_inline_p): Update names of cl_target_option members.
1056 * config/i386/i386.h (ix86_isa_flags): Remove.
1057 * config/lm32/lm32.h (target_flags): Remove.
1058 * config/mcore/mcore.h (mcore_stack_increment): Remove.
1059 * config/mcore/mcore.md (addsi3): Remove extern declaration of
1060 flag_omit_frame_pointer.
1061 * config/mep/mep.h (target_flags): Remove.
1062 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1063 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
1064 * config/mmix/mmix.h (target_flags): Remove.
1065 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
1066 flag_expensive_optimizations): Remove.
1067 * config/s390/s390.h (flag_pic): Remove.
1068 * config/score/score-conv.h (target_flags): Remove.
1069 * config/sh/sh.h (sh_fixed_range_str): Remove.
1070 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
1071 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
1072 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1073 * diagnostic.c (diagnostic_initialize): Update names of
1074 diagnostic_context members.
1075 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
1076 warn_system_headers.
1077 (diagnostic_report_warnings_p): Update for new names.
1078 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
1079 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
1080 HARD_FRAME_POINTER_IS_ARG_POINTER.
1081 * flags.h (flag_compare_debug): Declare.
1082 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1083 * opts.c (flag_compare_debug): Define.
1084 (common_handle_option): Update names of diagnostic_context
1085 members. Handle -fcompare-debug-second.
1086 (fast_math_flags_struct_set_p): Update names of cl_optimization
1087 members.
1088 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1089 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1090 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1091 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1092 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1093 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1094 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
1095 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1096 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
1097
1098 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
1099
1100 * config/picochip/picochip.c (picochip_output_internal_label):
1101 This function can now be called for debug CFI labels, which can come
1102 in the middle of a vliw instruction. Postpone until end of vliw.
1103
1104 2010-09-29 Richard Guenther <rguenther@suse.de>
1105
1106 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
1107 (DECL_FILE_SCOPE_P): Use it.
1108 (TYPE_FILE_SCOPE_P): New macro.
1109
1110 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1111
1112 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
1113 a CPP_NAME which is a reserved word, clearly separate cases for
1114 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
1115
1116 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1117
1118 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
1119 token->value with the canonical spelling. Do exactly like C and
1120 C++ and leave it as it is.
1121
1122 2010-09-28 Richard Henderson <rth@redhat.com>
1123
1124 * config/alpha/alpha.c (alpha_builtins): New.
1125 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
1126 (alpha_builtin_function): New.
1127 (alpha_add_builtins, alpha_init_builtins): Use it.
1128
1129 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
1130
1131 * doc/standards.texi (Standards): Expanded the section on
1132 Objective-C and Objective-C++.
1133
1134 2010-09-28 DJ Delorie <dj@redhat.com>
1135
1136 PR target/45800
1137 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
1138 volatile MEMs.
1139
1140 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1141
1142 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
1143 attributes on methods.
1144 (c_parser_objc_method_definition): Handle attributes.
1145 (c_parser_objc_methodproto): Likewise.
1146 (c_parser_objc_maybe_method_attributes): New.
1147 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
1148 missing definition, similar to that in ObjC++.
1149
1150 2010-09-28 Richard Henderson <rth@redhat.com>
1151
1152 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
1153 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1154 (CONFIG_SJLJ_EXCEPTIONS): Remove.
1155 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
1156 (STACK_CHECK_PROTECT): Likewise.
1157 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
1158 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
1159 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
1160 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
1161 (dwarf2out_assembly_start): Likewise.
1162 * except.c (init_eh): Use targetm.except_unwind_info.
1163 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
1164 (output_one_function_exception_table): Likewise.
1165 * final.c: Unconditionally include dwarf2out.h.
1166 (final_start_function): Unconditionally call dwarf2out routines.
1167 (final_end_function, final_scan_insn): Likewise.
1168 * function.c (expand_function_end): Use targetm.except_unwind_info.
1169 * opts.c (decode_options): Use targetm.except_unwind_info.
1170 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
1171 * target.def (debug_unwind_info, except_unwind_info): New.
1172 * target.h (enum unwind_info_type): New.
1173 * targhooks.c (default_debug_unwind_info): New.
1174 (default_except_unwind_info): New.
1175 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
1176 * targhooks.h: Declare them.
1177 * tree-tailcall.c: Include "target.h"
1178 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
1179 * Makefile.in (tree-tailcall.o): Update.
1180 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
1181 (lhd_gcc_personality): Likewise.
1182
1183 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
1184 (TARGET_EXCEPT_UNWIND_INFO): New.
1185 (DWARF2_UNWIND_INFO): Update.
1186 (TARGET_DEBUG_UNWIND_INFO): New.
1187 * doc/tm.texi: Rebuild.
1188
1189 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
1190 targetm.except_unwind_info.
1191
1192 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
1193 (arm_except_unwind_info): New.
1194 (arm_compute_func_type): Use it.
1195 (arm_expand_prologue, thumb_pushpop): Likewise.
1196 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
1197 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
1198 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
1199 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
1200 (DWARF2_UNWIND_INFO): Remove.
1201 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1202 (ARM_EABI_UNWIND_TABLES): Remove.
1203
1204 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
1205 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
1206 (ia64_except_unwind_info): New.
1207 (ia64_output_function_prologue): Use it.
1208 (ia64_add_bundle_selector_before): Likewise.
1209 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
1210 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
1211 (TARGET_UNWIND_INFO): Remove.
1212
1213 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
1214
1215 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1216
1217 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
1218 (c_parser_objc_protocol_definition): Likewise.
1219 (c_parser_external_declaration): Provide dummy attribute arguments.
1220 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
1221 (c_parser_objc_class_definition): Handle attributes.
1222 (c_parser_objc_protocol_definition): Likewise.
1223
1224 2010-09-28 Tobias Burnus <burnus@net-b.de>
1225
1226 PR fortran/40569
1227 PR fortran/40568
1228 * toplev.h (save_decoded_options, save_decoded_options_count):
1229 New global variables.
1230 * toplev.c (save_decoded_options, save_decoded_options_count):
1231 Export variables.
1232
1233 2010-09-28 Ian Lance Taylor <iant@google.com>
1234
1235 * config/i386/i386.c (ix86_supports_split_stack): Test
1236 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
1237
1238 2010-09-28 Ian Lance Taylor <iant@google.com>
1239
1240 PR target/45815
1241 * opts.c (decode_options): Don't test whether the target supports
1242 split stack if flag_split_stack == 0.
1243
1244 2010-09-28 Jan Hubicka <jh@suse.cz>
1245
1246 * builtin-attrs.def (ATTR_LEAF): New attribute.
1247 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
1248 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
1249 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
1250 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
1251 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
1252 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
1253 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
1254 * sync-builtins.def: Annotate all builtins by leaf.
1255 * omp-builtins.def: Annotate all builtins by leaf.
1256 * builtins.def: Annotate relevant builtins with leaf attribute.
1257 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1258 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
1259 leaf.
1260
1261 2010-09-28 Jan Hubicka <jh@suse.cz>
1262
1263 * tree-ssa-ccp.c (fold_ctor_reference): New function.
1264 (fold_const_aggregate_ref): Use it.
1265 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
1266 into external static.
1267
1268 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1269
1270 PR target/44452
1271 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
1272 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
1273 (ix86_solaris_return_in_memory): Remove.
1274 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
1275 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1276 (TARGET_SUBTARGET_DEFAULT): Redefine.
1277 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
1278 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1279 (TARGET_SUBTARGET_DEFAULT): Redefine.
1280 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
1281 -mvect8-ret-in-mem.
1282 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
1283
1284 2010-09-29 Alan Modra <amodra@gmail.com>
1285
1286 PR target/45807
1287 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
1288 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
1289 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
1290 Delete.
1291 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
1292 (rs6000_emit_prologue): Don't just create frame save info for r2,
1293 actually save r2.
1294
1295 2010-09-28 Richard Henderson <rth@redhat.com>
1296
1297 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
1298 when 8 bytes are requested.
1299
1300 2010-09-28 Tristan Gingold <gingold@adacore.com>
1301
1302 * config/avr/avr.c (expand_prologue): Set
1303 current_function_static_stack_size.
1304
1305 2010-09-28 Tristan Gingold <gingold@adacore.com>
1306
1307 * config/alpha/alpha.md: Change the initial condition of the
1308 probing loop.
1309
1310 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
1311
1312 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
1313 Split from *avx_<maxmin:code><mode>3.
1314 (*avx_<smaxmin:code><mode>3): Ditto.
1315 * config/i386/i386.md (maxmin): Remove code iterator.
1316
1317 2010-09-27 Ian Lance Taylor <iant@google.com>
1318
1319 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
1320 requires assembler support for CFI directives.
1321
1322 2010-09-27 Richard Henderson <rth@redhat.com>
1323
1324 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
1325
1326 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
1327
1328 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
1329 that AFTER is not in the range FROM..TO, inclusive.
1330
1331 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
1332 Bernd Schmidt <bernds@codesourcery.com>
1333
1334 PR rtl-optimization/45792
1335 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
1336 If not all insns are to be merged, for each edge, stash the
1337 next candidate after the to-be-merged insns before doing the
1338 merge, and use them for the retry at the new insertion point.
1339 Handle CC0 targets when retrying.
1340
1341 2010-09-27 Ian Lance Taylor <iant@google.com>
1342
1343 * common.opt (fsplit-stack): New option.
1344 * opts.c (decode_options): Set flag_split_stack to final value.
1345 * target.def (supports_split_stack): New hook.
1346 * gcc.c (STACK_SPLIT_SPEC): Define.
1347 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
1348 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
1349 (Code Gen Options): Document -fsplit-stack.
1350 * doc/extend.texi (Function Attributes): Mention no_split_stack.
1351 (Function Attributes): Document no_split_stack.
1352 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
1353 TARGET_SUPPORTS_SPLIT_STACK.
1354 * doc/tm.texi: Rebuild.
1355 * function.c (thread_prologue_and_epilogue_insns): If
1356 flag_split_stack, add split stack prologue.
1357 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
1358 * varasm.c (saw_no_split_stack): New static variable.
1359 (assemble_start_function): Set saw_no_split_stack if the function
1360 has the no_split_stack attribute.
1361 (file_end_indicate_split_stack): New function.
1362 * output.h (file_end_indicate_split_stack): Declare.
1363 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
1364 and function.
1365 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
1366 routines.
1367 * config/i386/i386.c (ix86_option_override_internal): Don't set
1368 expand_builtin_va_start to NULL if -fsplit-stack.
1369 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
1370 -fsplit-stack.
1371 (ix86_va_start): If -fsplit-stack, get overflow pointer from
1372 scratch register set by prologue.
1373 (ix86_code_end): If -fsplit-stack, call
1374 file_end_indicate_split_stack.
1375 (ix86_supports_split_stack): New static function.
1376 (SPLIT_STACK_AVAILABLE): Define.
1377 (split_stack_prologue_scratch_regno): New static function.
1378 (split_stack_fn): New static variable.
1379 (ix86_expand_split_stack_prologue): New function.
1380 (ix86_live_on_entry): New static function.
1381 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
1382 (output_pic_addr_const): Likewise.
1383 (i386_asm_output_addr_const_extra): Likewise.
1384 (ix86_expand_call): Change return type to rtx. Return the new
1385 call instruction.
1386 (TARGET_SUPPORTS_SPLIT_STACK): Define.
1387 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1388 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
1389 (split_stack_prologue, split_stack_return): New insns.
1390 (split_stack_space_check): New insn.
1391 * config/i386/i386.h (struct machine_function): Add
1392 split_stack_varargs_pointer field.
1393 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
1394 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1395 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1396 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1397 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
1398 Declare.
1399 (ix86_expand_call): Update declaration.
1400
1401 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1402
1403 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
1404 code. Added byref, which was missing in the list of codes.
1405 Explain that enumeration values are encoded as the integer type
1406 that the compiler uses to store them. Explain and make examples
1407 of how 'const' interacts with pointers, and the complication of
1408 the encoding of 'const char *'.
1409 (Legacy type encoding): New subsection, explaining that GCC emits
1410 incorrect type encodings for the NeXT runtime for compatibility
1411 reasons.
1412 (@@encode): New subsection, explaining @encode and particularly
1413 that protocol qualifiers are not recognized inside an @encode()
1414 expression.
1415 (Method signatures): New subsection, explaining how method
1416 signatures are encoded.
1417
1418 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1419
1420 Merge from 'apple/trunk' branch on FSF servers. Removed small
1421 change in build_conditional_expr that had been added when fixing
1422 PR objc/27377 and which did the same check in a less complete way.
1423
1424 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1425
1426 Radar 4229905
1427 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
1428 looking for objective-c common pointer types.
1429
1430 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1431
1432 Radar 4154928
1433 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
1434 use their ObjC common type.
1435
1436 2010-09-27 Richard Guenther <rguenther@suse.de>
1437
1438 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
1439
1440 2010-09-27 Jie Zhang <jie@codesourcery.com>
1441
1442 * print-tree.c (print_node): Print in-constant-pool.
1443
1444 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
1445
1446 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
1447 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
1448 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
1449 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
1450
1451 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
1452
1453 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
1454 from pro_epilogue_adjust_stack_<mode>_{1,2}.
1455 (pro_epilogue_adjust_stack_<mode>_add): Rename from
1456 pro_epilogue_adjust_stack_<mode>_3.
1457 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
1458 renamed pro_epilogue_adjust_stack_{si,di}_add.
1459 (ix86_expand_prologue): Use indirect functions. Update for renamed
1460 pro_epilogue_adjust_stack_{si,di}_sub.
1461
1462 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
1463
1464 * config/i386/i386.md (movmsk_df): New insn.
1465 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
1466 sequence for TARGET_SSE_MATH.
1467
1468 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
1469
1470 * config/mips/mips.c (mips_builtin_decls): Declare.
1471 (mips_init_builtins): Store function declarations in
1472 mips_builtin_decls.
1473 (mips_builtin_decl): New function.
1474 (TARGET_BUILTIN_DECL): Define.
1475
1476 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
1477 Richard Henderson <rth@redhat.com>
1478
1479 * config/i386/cygwin.asm: Include auto-host.h.
1480 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
1481 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
1482 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
1483 alignment code from the 64-bit path. Use gas local labels.
1484 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
1485 from _di_2. Remove the useless constant integer argument.
1486 (pro_epilogue_adjust_stack_<mode>_3): New.
1487 (allocate_stack_worker_probe_<mode>): Macroize from
1488 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
1489 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
1490 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
1491 (__chkstk_ms): New function.
1492 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
1493 * gcc/config/i386/t-interix: Likewise.
1494 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
1495 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
1496 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
1497 * configure, config.in: Rebuild.
1498
1499 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
1500
1501 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
1502 statements because of the return slot optimization.
1503
1504 2010-09-25 Anatoly Sokolov <aesok@post.ru>
1505
1506 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
1507 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
1508 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1509 (class_likely_spilled_p): Rename to...
1510 (avr_class_likely_spilled_p): ...this. Make static. Change argument
1511 type to reg_class_t.
1512
1513 2010-09-24 Jan Hubicka <jh@suse.cz>
1514
1515 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
1516 (lto_symtab_resolve_symbols): Set it.
1517 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
1518 store resolution field in cgraph/varpool.
1519 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
1520 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
1521 (cgraph_dump_node): Drop used_from_object_file.
1522 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
1523 (cgraph_function_body_availability): Use decl_replaceable_p.
1524 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
1525 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
1526 cgraph_used_from_object_file_p.
1527 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
1528 cgraph_used_from_object_file_p.
1529 (resolution_used_from_other_file_p): New functoin.
1530 (cgraph_used_from_object_file_p): New predicate.
1531 * cgraph.h: Include plugin-api.h
1532 (struct cgraph_local_info): Remove used_from_object_file.
1533 (struct cgraph_node): Add resolution field.
1534 (struct varpool_node): Likewise; remove used_from_object_file;
1535 reove const_value_known.
1536 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
1537 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
1538 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1539 varpool_used_from_object_file_p): Declare.
1540 (varpool_get_node, varpool_extra_name_alias): Update prototype.
1541 * tree.h (DECL_REPLACEABLE_P): Remove.
1542 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
1543 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
1544 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1545 input_overwrite_node, input_node, input_varpool_node): Stream
1546 resolution.
1547 * expr.c (expand_expr_real_1): Use const_value_known_p
1548 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
1549 const_value_known.
1550 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
1551 (function_and_variable_visibility): Set resolution for local vars
1552 and functions; use varpool_used_from_object_file_p.
1553 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
1554 static functions.
1555 (default_binds_local_p_1): Use resolutoin info.
1556 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
1557 * varpool.c (varpool_get_node): Constify.
1558 (const_value_known_p): Do not use vnode->const_value_known;
1559 use decl_replaceable_p.
1560 (varpool_finalize_decl): Do not set const_value_known.
1561 (cgraph_variable_initializer_availability): Use decl_replaceable_p
1562 (varpool_extra_name_alias): Return new node.
1563 (varpool_used_from_object_file_p): New function.
1564
1565 2010-09-24 Richard Henderson <rth@redhat.com>
1566
1567 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
1568 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
1569 (do_spill): Use REG_CFA_OFFSET.
1570 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
1571 as appropriate.
1572 (ia64_expand_epilogue): Likewise.
1573 (process_set): Split into ...
1574 (process_cfa_adjust_cfa): this,
1575 (process_cfa_register): this,
1576 (process_cfa_offset): and this new function.
1577 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
1578 instead of REG_FRAME_RELATED_EXPR.
1579
1580 2010-09-24 Olivier Hainque <hainque@adacore.com>
1581
1582 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
1583
1584 2010-09-24 Jan Hubicka <jh@suse.cz>
1585
1586 * doc/extend.texi: (attribute leaf): Document.
1587 * tree.c (local_define_builtin): Handle ECF_LEAF.
1588 (build_common_builtin_nodes): Set ECF_LEAF where needed.
1589 * tree.h (ECF_LEAF): New.
1590 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
1591 overwrittable and unavailable functions.
1592 (ipa_init): Put all_module_statics into optimization_summary_obstack.
1593 (copy_global_bitmap): Do not copy all_module_statics.
1594 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
1595 (propagate): Handle overwritable and unavailable leaf functions;
1596 initialize global info for overwritable and unavailable leaf functions;
1597 do not free all module statics.
1598 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
1599 local statics.
1600 * calls.c (flags_from_decl_or_type): Handle leaf.
1601 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
1602 abnormal gotos.
1603
1604 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
1605
1606 * gengtype.c: Reindented.
1607 * gengtype.h: Reindented.
1608 * gengtype-parse.c: Reindented.
1609
1610 2010-09-24 Jan Hubicka <jh@suse.cz>
1611
1612 PR tree-optimization/45738
1613 PR tree-optimization/45741
1614 * expr.c (string_constant): Allow CONST_DECL too;
1615 check that DECL_INITIAL is set.
1616 * varpool.c (const_value_known_p): Only look into VAR_DECL
1617 and CONST_DECL.
1618
1619 2010-09-24 Joseph Myers <joseph@codesourcery.com>
1620
1621 * common.opt (undef): New.
1622
1623 2010-09-24 Jakub Jelinek <jakub@redhat.com>
1624
1625 PR middle-end/45234
1626 * rtl.h (enum global_rtl_index): Add
1627 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
1628 (LAST_VIRTUAL_POINTER_REGISTER): Define.
1629 (virtual_preferred_stack_boundary_rtx,
1630 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
1631 (LAST_VIRTUAL_REGISTER): Increase by one.
1632 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
1633 instead of LAST_VIRTUAL_REGISTER.
1634 * function.c (instantiate_new_reg): Handle
1635 virtual_preferred_stack_boundary_rtx.
1636 * emit-rtl.c (init_virtual_regs): Handle
1637 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1638 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
1639 * explow.c (round_push): If crtl->preferred_stack_boundary
1640 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
1641 virtual_preferred_stack_boundary_rtx alignment instead of
1642 crtl->preferred_stack_boundary alignment.
1643 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
1644 macros. Never decrease crtl->preferred_stack_boundary,
1645 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
1646 instead of PREFERRED_STACK_BOUNDARY. Don't modify
1647 stack_pointer_delta in dynamic allocation, even when size
1648 is constant.
1649 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
1650 macro.
1651 * print-rtl.c (print_rtx): Handle
1652 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1653 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
1654 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
1655 * config/frv/frv.c (frv_emit_movsi): Likewise.
1656 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
1657 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
1658 Likewise.
1659
1660 Revert:
1661 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
1662
1663 PR middle-end/45234
1664 * calls.c (expand_call): Make sure that all variable sized
1665 adjustments are multiple of preferred stack boundary after
1666 stack alignment.
1667
1668 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
1669 Dominique Dhumieres <dominiq@lps.ens.fr>
1670
1671 PR bootstrap/45751
1672 * gcc/config/darwin-driver.c (darwin_default_min_version):
1673 Adjust size passed to memcpy in two places.
1674
1675 2010-09-24 Richard Guenther <rguenther@suse.de>
1676
1677 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1678 Make sure to not call set_type_context with error_mark_node.
1679 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1680
1681 2010-09-24 Richard Guenther <rguenther@suse.de>
1682
1683 * Makefile.in (OBJS-onestep): Remove.
1684 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1685 (libbackend.a): Remove onestep support.
1686 (libbackend.o): Remove.
1687 * configure.ac (--enable-intermodule): Remove.
1688 * configure: Regenerate.
1689
1690 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
1691
1692 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1693 reaching the end of a block if it occurs at a DEBUG_INSN.
1694
1695 2010-09-09 Tristan Gingold <gingold@adacore.com>
1696
1697 PR target/44242
1698 * config/vms/vms-crt0-64.c: Removed.
1699 * config/vms/vms-crt0.c: Removed.
1700 * config/vms/vms-psxcrt0-64.c: Removed.
1701 * config/vms/vms-psxcrt0.c: Removed.
1702 * config/vms/vms-ucrt0.c: New file.
1703 * config/vms/t-vms64: Removed.
1704 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
1705 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1706 * config.gcc (alpha-dec-vms): Use t-vms.
1707
1708 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
1709
1710 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1711 underfull hbox in DVI output.
1712 (-fobjc-class-cxx-cdtors): Same change.
1713 (-fobjc-exceptions): Tidied up documentation. Explain what the
1714 option does, but moved the (lenghty) description of the exception
1715 syntax into objc.texi.
1716 (-fobjc-gc): Explain that the option is not useful with the GNU
1717 runtime.
1718 (-fzero-link): Explain that the GNU runtime always works in
1719 "zero-link" mode.
1720 * doc/objc.texi: All sections: simplified @node declarations
1721 removing specification of next, previous, up node.
1722 (Objective-C): Updated introduction.
1723 (Garbage Collection): Updated. The bohem-gc library is now
1724 included in gcc itself. Mention that this section only applies to
1725 the GNU Objective-C runtime.
1726 (compatibility_alias): Small tidy up.
1727 (Exceptions): New section mostly containing text previously in the
1728 description of the -fobjc-exception command-line option.
1729 (Synchronization): Same.
1730
1731 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
1732
1733 * config/i386/i386.md (ix86_code_end): Move the initialization of
1734 xops array near the consumer. Use AX_REG and SP_REG instead of
1735 numerical constants.
1736
1737 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
1738
1739 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1740 method [methodname]' for an Objective-C method instead of the less
1741 satisfactory 'too many arguments to function' (with no method name).
1742
1743 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
1744
1745 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1746 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1747 (execute_update_addresses_taken): Remove parameter. Execute the
1748 optimization unconditionally.
1749 * passes.c (execute_function_todo): Call execute_update_addresses_taken
1750 unconditionally if TODO_rebuild_alias is set, else only when optimizing
1751 if TODO_update_address_taken is set.
1752
1753 >>>>>>> .r164755
1754 2010-09-23 Anatoly Sokolov <aesok@post.ru>
1755
1756 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1757 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1758 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1759 (arm_output_addr_const_extra): Make static.
1760
1761 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
1762
1763 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1764 define as unspec_volatile.
1765 ("nops"): Define as unspec_volatile. Use fputs to write to
1766 asm_out_file directly. Output NOPs on separate lines using while loop.
1767 * config/i386/i386.c (ix86_code_end): Use fputs to write to
1768 asm_out_file directly. Output NOPs on separate lines using while loop.
1769
1770 2010-09-23 Richard Guenther <rguenther@suse.de>
1771
1772 PR tree-optimization/45565
1773 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1774 Make sure to adjust the fndecl before replacing the stmt.
1775
1776 2010-09-23 Richard Guenther <rguenther@suse.de>
1777
1778 PR middle-end/45750
1779 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1780 gimplifying MEM_REF.
1781
1782 2010-09-23 Alan Modra <amodra@gmail.com>
1783
1784 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1785 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1786
1787 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
1788
1789 PR rtl-optimization/44374
1790 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1791 * df-core.c (df_set_bb_dirty): Set it.
1792 * ifcvt.c (find_memory): Remove function.
1793 (dead_or_predicable): Use can_move_insns_across.
1794 * df.h (can_move_insns_across): Declare function.
1795 * cfgcleanup.c (block_was_dirty): New static variable.
1796 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1797 than df_get_bb_dirty.
1798 (try_head_merge_bb): New static function.
1799 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
1800 is set.
1801 * df-problems.c: Include "target.h"
1802 (df_simulate_find_uses): New static function.
1803 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1804 (find_memory, find_memory_store): New static functions.
1805 (can_move_insns_across): New function.
1806 * Makefile.in (df-problems.o): Update dependencies.
1807
1808 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
1809
1810 PR java/44095
1811 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1812 is specified and the suffix of the file isn't ".c".
1813 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1814
1815 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1816
1817 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1818 * doc/cppopts.texi: Fix markup of index entry.
1819 * doc/extend.texi (Constructing Calls): Fix markup of
1820 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1821 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1822 (Vague Linkage, C++ Attributes): Fix markup of index entries and
1823 keywords.
1824 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
1825 avoid long lines.
1826 (C Dialect Options, C++ Dialect Options, Warning Options)
1827 (Debugging Options, Spec Files, Darwin Options)
1828 (i386 and x86-64 Options, MIPS Options)
1829 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1830 index entries, avoid abbreviations, allow URLs to wrap, avoid
1831 long lines, avoid overlong pages from long @itemx lists.
1832 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1833 * doc/standards.texi (Standards): Likewise.
1834 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
1835
1836 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1837
1838 * opts-common.c (prune_options): Make static. Work with decoded
1839 options.
1840 (decode_cmdline_options_to_array): Call prune_options. Don't
1841 resize option array here.
1842 * opts.h (prune_options): Remove prototype.
1843 * gcc.c (process_command): Take decoded options; don't call
1844 decode_cmdline_options_to_array here. Use decoded options for argv[0].
1845 (main): Call decode_cmdline_options_to_array here instead of
1846 prune_options. Update call to process_command.
1847 * config/darwin-driver.c: Include opts.h.
1848 (darwin_default_min_version): Work with decoded options. Don't
1849 handle -b or -V here.
1850 * config/darwin.h (darwin_default_min_version): Update prototype.
1851 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
1852 darwin_default_min_version.
1853 * config/i386/cygwin.h (mingw_scan): Update prototype.
1854 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
1855 * config/i386/cygwin1.c: Include opts.h.
1856 (mingw_scan): Work with decoded options.
1857 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
1858 * config/t-darwin (darwin-driver.o): Update dependencies.
1859
1860 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1861
1862 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
1863 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
1864 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
1865 -force-link, -force-link=, -language, -language=,
1866 -library-directory, -library-directory=, -no-canonical-prefixes,
1867 -no-standard-libraries, -no-warnings, -optimize, -output,
1868 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
1869 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
1870 -print-file-name=, -print-libgcc-file-name,
1871 -print-multi-directory, -print-multi-lib,
1872 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
1873 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
1874 -profile, -save-temps, -shared, -specs, -specs=, -static,
1875 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
1876 symbolic): New.
1877 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
1878 * gcc.c (A Short Introduction to Adding a Command-Line Option):
1879 Remove comment.
1880 (cc1_options): Correct specs for passing down --help,
1881 --target-help and --help=*. Add spec for passing down --version.
1882 (struct option_map, option_map, target_option_translations,
1883 translate_options): Remove.
1884 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
1885 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
1886 OPT_fhelp_ and OPT_ftarget_help.
1887 (process_command): Don't call translate_options. Call
1888 decode_cmdline_options_to_array before checking for
1889 -no-canonical-prefixes using decoded options.
1890 * opts-common.c (tm.h): Update comment on #include.
1891 (find_opt): Allow abbreviations of long options.
1892 (struct option_map, option_map): New.
1893 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
1894 and -mno handling.
1895 (target_option_translations): New.
1896 (decode_cmdline_options_to_array): Handle
1897 TARGET_OPTION_TRANSLATE_TABLE in driver.
1898 * opts.c (common_handle_option): Don't handle OPT_fhelp,
1899 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
1900
1901 2010-09-22 Richard Guenther <rguenther@suse.de>
1902
1903 * tree-inline.c (optimize_inline_calls): Schedule cleanups
1904 only if we inlined something. Block compaction and conditional
1905 folding are done by cfg cleanup. Schedule update-address-taken.
1906 (tree_function_versioning): Remove redundant call to number_blocks.
1907 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
1908 folding is done by cfg cleanup.
1909 * passes.c (init_optimization_passes): Remove update-address-taken
1910 pass after IPA inlining.
1911
1912 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1913
1914 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
1915 to update conditions. Fix reg_mode[] check.
1916
1917 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
1918
1919 * config/picochip/picochip.md (movhicc): Use expand to check whether
1920 movhicc is available and split it after reload.
1921
1922 2010-09-22 Richard Guenther <rguenther@suse.de>
1923
1924 * tree-ssanames.c (release_dead_ssa_names): Do not remove
1925 callee edges here.
1926 * passes.c (init_optimization_passes): Remove early CFG cleanup.
1927 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
1928 (pass_cleanup_cfg): Likewise.
1929 (execute_fixup_cfg): Cleanup.
1930 * tree-pass.h (pass_cleanup_cfg): Remove.
1931
1932 2010-09-22 Martin Jambor <mjambor@suse.cz>
1933
1934 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
1935 builtins if it is true.
1936 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
1937 parameter.
1938
1939 2010-09-22 Martin Jambor <mjambor@suse.cz>
1940
1941 * tree-sra.c (struct access): New field grp_no_warning.
1942 (create_access_replacement): Set TREE_NO_WARNING according to
1943 grp_no_warning.
1944 (create_artificial_child_access): Use build_ref_for_model and set
1945 grp_no_warning if build_user_friendly_ref_for_offset fails.
1946 (propagate_subaccesses_across_link): Likewise.
1947
1948 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
1949
1950 PR target/35664
1951 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
1952 ('f'): Likewise.
1953
1954 2010-09-22 Tristan Gingold <gingold@adacore.com>
1955
1956 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
1957
1958 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
1959
1960 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
1961 * config/i386/i386.c (decide_alg): Update for rename.
1962
1963 2010-09-22 Jakub Jelinek <jakub@redhat.com>
1964
1965 PR rtl-optimization/45739
1966 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
1967 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
1968
1969 2010-09-21 Anatoly Sokolov <aesok@post.ru>
1970
1971 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
1972 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
1973 Remove.
1974 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
1975 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1976
1977 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1978
1979 PR objc/23710
1980 * c-parser.c (c_parser_objc_method_definition): Check the return
1981 value of objc_start_method_definition and if false is returned,
1982 parse the method definition but emit no code.
1983
1984 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1985
1986 PR objc/25965
1987 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
1988 call objc_get_interface_ivars ().
1989
1990 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
1991
1992 PR target/45694
1993 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
1994 static chain-register is used for 64-bit.
1995
1996 2010-09-21 Richard Guenther <rguenther@suse.de>
1997
1998 * dwarf2out.c (is_cu_die): New function.
1999 (add_pubtype): Use it.
2000 (gen_subprogram_die): Likewise.
2001 (gen_struct_or_union_type_die): Likewise.
2002 (dwarf2out_finish): Likewise.
2003 (comp_unit_die): Rename to ...
2004 (single_comp_unit_die): ... this.
2005 (comp_unit_die): New function lazily constructing and
2006 returning single_comp_unit_die.
2007 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
2008 base_type_die, subrange_type_die, modified_type_die,
2009 lower_bound_default, add_bound_info, add_prototyped_attribute,
2010 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
2011 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
2012 force_decl_die, gen_namespace_die, dwarf2out_decl,
2013 dwarf2out_start_source_file, dwarf2out_end_source_file,
2014 prune_unused_types, dwarf2out_finish): Use it.
2015 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
2016 the global list of translation-unit decls.
2017 (dwarf2out_init): Do not create single_comp_unit_die here.
2018 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
2019
2020 2010-09-21 Richard Guenther <rguenther@suse.de>
2021
2022 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
2023 for bool for C++.
2024
2025 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
2026
2027 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
2028 (qhs_extenddi_cstr): Likewise.
2029 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
2030 them for the source operand.
2031
2032 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
2033
2034 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
2035 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
2036 (ix86_split_ashr): Ditto.
2037 (ix86_split_lshr): Ditto.
2038
2039 2010-09-21 Richard Guenther <rguenther@suse.de>
2040
2041 PR tree-optimization/45580
2042 * tree-ssa-propagate.c (substitute_and_fold): Always replace
2043 regular uses.
2044 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
2045 virtuals fold the call into a regular indirect one.
2046
2047 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
2048
2049 PR rtl-optimization/42775
2050 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
2051 scheduling is enabled.
2052
2053 2010-09-20 Jakub Jelinek <jakub@redhat.com>
2054
2055 PR rtl-optimization/45728
2056 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
2057 gen_lowpart_common first and if that fails, force_reg first
2058 before calling gen_lowpart.
2059
2060 PR middle-end/45678
2061 * cfgexpand.c (expand_one_stack_var_at): Use
2062 crtl->max_used_stack_slot_alignment as max_align, instead
2063 of maximum of that and PREFERRED_STACK_BOUNDARY.
2064 Don't call update_stack_alignment.
2065
2066 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
2067
2068 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
2069 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
2070 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
2071 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
2072 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
2073 (build_nonstandard_integer_type): Likewise.
2074 (build_range_type_1): New function, built from...
2075 (build_range_type): ...this. Call build_range_type_1.
2076 (build_nonshared_range_type): New function.
2077 (build_array_type_1): New function, built from...
2078 (build_array_type: ...this. Call build_array_type_1.
2079 (build_nonshared_array_type): New function.
2080 * tree.h (build_nonshared_range_type): Declare.
2081 (build_nonshared_array_type): Likewise.
2082
2083 2010-09-20 Anatoly Sokolov <aesok@post.ru>
2084
2085 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
2086 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2087 (arm_class_likely_spilled_p): New function.
2088
2089 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
2090
2091 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
2092 indirect functions.
2093 (ix86_split_ashl): Ditto.
2094 (ix86_split_ashr): Ditto.
2095 (ix86_split_lshr): Ditto.
2096 (ix86_adjust_counter): Ditto.
2097
2098 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
2099
2100 * c-family/c-common.h (constant_string_class): Documented with
2101 comment identical to the one already in c-common.c.
2102
2103 2010-09-20 Jakub Jelinek <jakub@redhat.com>
2104
2105 * dwarf2out.c (any_cfis_emitted): New static variable.
2106 (add_fde_cfi): Set it.
2107 (dwarf2out_frame_debug): Clear it before processing,
2108 if it is set afterwards, flush any queued reg saves.
2109
2110 PR debug/45124
2111 * dwarf2out.c (add_accessibility_attribute): Assume
2112 DW_ACCESS_private as the default for dwarf_version > 2
2113 and DW_TAG_class_type parent.
2114 (gen_inheritance_die): Assume DW_ACCESS_public as the default
2115 for dwarf_version > 2 and parent other than DW_TAG_class_type.
2116
2117 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
2118
2119 PR target/45726
2120 * arm.md (arm_movt): Only enable on machines with MOVT.
2121
2122 2010-09-20 Jie Zhang <jie@codesourcery.com>
2123
2124 * config/arm/arm.c (arm_address_offset_is_imm): New.
2125 (arm_early_store_addr_dep): New.
2126 (arm_early_load_addr_dep): New.
2127 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
2128 (arm_early_load_addr_dep): Declare.
2129 (arm_address_offset_is_imm): Declare.
2130 * config/arm/cortex-m4.md: New file.
2131 * config/arm/cortex-m4-fpu.md: New file.
2132 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
2133 (attr generic_sched): Exclude cortexm4.
2134 (attr generic_vfp): Exclude cortexm4.
2135
2136 2010-09-20 Richard Guenther <rguenther@suse.de>
2137
2138 PR middle-end/45704
2139 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
2140
2141 2010-09-20 Jan Hubicka <jh@suse.cz>
2142
2143 PR tree-optimize/45605
2144 * cgraph.h (const_value_known_p): Declare.
2145 (varpool_decide_const_value_known): Remove.
2146 * tree-ssa-ccp.c (get_base_constructor): Use it.
2147 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
2148 * expr.c (string_constant): Likewise.
2149 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2150 * ipa.c (ipa_discover_readonly_nonaddressable_var,
2151 function_and_variable_visibility): Likewise.
2152 * gimplify.c (gimplify_call_expr): Likewise.
2153 * gimple-fold.c (get_symbol_constant_value): Likewise.
2154 * varpool.c (varpool_decide_const_value_known): Replace by...
2155 (const_value_known_p): ... this one; handle other kinds of DECLs
2156 too and work for automatic vars.
2157 (varpool_finalize_decl): Use const_value_known_p.
2158
2159 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
2160
2161 PR target/45726
2162 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
2163
2164 2010-09-20 Richard Guenther <rguenther@suse.de>
2165
2166 PR tree-optimization/45705
2167 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
2168
2169 2010-09-20 Jakub Jelinek <jakub@redhat.com>
2170
2171 PR rtl-optimization/45695
2172 * combine.c (try_combine): When splitting a two set pattern,
2173 make sure the pattern which will be put into i2 doesn't use REGs
2174 or MEMs set by insns in between i2 and i3.
2175
2176 2010-09-19 Jan Hubicka <jh@suse.cz>
2177
2178 PR lto/44246
2179 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
2180 processing same node twice.
2181
2182 2010-09-19 Anatoly Sokolov <aesok@post.ru>
2183
2184 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
2185 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2186 (bfin_class_likely_spilled_p): New function
2187
2188 2010-09-19 Ira Rosen <irar@il.ibm.com>
2189
2190 PR tree-optimization/45714
2191 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
2192 created in vectorizable_call instead of the original statement in
2193 def stmt updates.
2194
2195 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
2196
2197 * config/i386/i386-protos.h (split_double_mode): New prototype.
2198 (split_di, split_ti): Remove prototypes.
2199 * config/i386/i386.c (split_double_mode): New function.
2200 (split_di, split_ti): Remove.
2201 (ix86_expand_branch): Use split_double_mode.
2202 (ix86_split_to_parts): Ditto.
2203 (ix86_split_ashl): Ditto.
2204 (ix86_split_ashr): Ditto.
2205 (ix86_split_lshr): Ditto.
2206 (ix86_force_to_memory): Ditto.
2207 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
2208
2209 2010-09-18 Jan Hubicka <jh@suse.cz>
2210
2211 PR tree-optimization/45453
2212 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
2213 virtual functions are reachable.
2214 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
2215 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2216 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
2217 when modifying function.
2218
2219 2010-09-18 Jan Hubicka <jh@suse.cz>
2220
2221 PR tree-optimization/45605
2222 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
2223 * gimple-fold.c (static_object_in_other_unit_p): New function.
2224 (canonicalize_constructor_val): Use it.
2225 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
2226 returning NULL.
2227 (gimple_fold_obj_type_ref_known_binfo): Use
2228 static_object_in_other_unit_p.
2229
2230 2010-09-18 Richard Guenther <rguenther@suse.de>
2231
2232 PR tree-optimization/45709
2233 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
2234 insertions until after all PHI nodes of the block are processed.
2235
2236 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
2237
2238 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
2239
2240 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
2241
2242 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
2243
2244 2010-09-18 Richard Guenther <rguenther@suse.de>
2245
2246 PR tree-optimization/45709
2247 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
2248
2249 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
2250
2251 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
2252 (dot_deps_stmt): Same.
2253 * graphite-poly.c (dot_lst): Same.
2254 * graphite-scop-detection.c (dot_all_scops): Same.
2255 (dot_scop): Same.
2256
2257 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
2258
2259 Revert:
2260 2009-12-16 Ben Elliston <bje@au.ibm.com>
2261
2262 * tree-data-ref.c (dot_rdg_1): Added back.
2263 (dot_rdg): Same. Added "#if 0" around system call.
2264
2265 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
2266 Richard Henderson <rth@redhat.com>
2267
2268 * config/i386/i386.c (initial_ix86_tune_features): Add
2269 X86_TUNE_PAD_SHORT_FUNCTION.
2270 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
2271 (ix86_count_insn): New.
2272 (ix86_pad_short_function): Likewise.
2273 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
2274
2275 * config/i386/i386.h (ix86_tune_indices): Add
2276 X86_TUNE_PAD_SHORT_FUNCTION.
2277 (TARGET_PAD_SHORT_FUNCTION): New.
2278
2279 * config/i386/i386.md (UNSPEC_NOPS): New.
2280 (nops): Likewise.
2281
2282 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
2283
2284 PR middle-end/45234
2285 * calls.c (expand_call): Make sure that all variable sized
2286 adjustments are multiple of preferred stack boundary after
2287 stack alignment.
2288
2289 2010-09-17 DJ Delorie <dj@redhat.com>
2290
2291 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
2292 passed an invalid value, print an error instead of ICEing.
2293 (valid_psw_flag): New.
2294 (rx_expand_builtin): Call it for setpsw/clrpsw.
2295 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
2296
2297 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
2298 (bitclr_in_memory): Likewise.
2299 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
2300
2301 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
2302
2303 PR middle-end/45678
2304 * cfgexpand.c (update_stack_alignment): New.
2305 (get_decl_align_unit): Use it.
2306 (expand_one_stack_var_at): Call update_stack_alignment.
2307
2308 2010-09-17 Richard Guenther <rguenther@suse.de>
2309
2310 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
2311 Properly copy the read string.
2312
2313 2010-09-17 Joseph Myers <joseph@codesourcery.com>
2314
2315 * doc/options.texi (Variable): Document.
2316 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
2317 generate target_flags declarations explicitly. Don't define
2318 VarExists variables for the driver.
2319 * common.opt (target_flags): New Variable record.
2320 (flag_dump_unnumbered, flag_dump_unnumbered_links,
2321 flag_var_tracking, flag_var_tracking_assignments,
2322 flag_var_tracking_assignments_toggle): Don't mark variables with
2323 VarExists.
2324 * config/i386/i386.c (ix86_isa_flags): Don't define here.
2325 * config/i386/i386.opt (ix86_isa_flags): Define here.
2326 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
2327 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
2328 VarExists.
2329 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
2330 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
2331 Only define for generator programs.
2332 * rtlanal.c (target_flags): Remove.
2333 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
2334 flag_var_tracking_assignments_toggle): Remove.
2335
2336 2010-09-17 Michael Matz <matz@suse.de>
2337
2338 PR tree-optimization/43432
2339 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2340 Accept backwards consecutive accesses.
2341 (vect_create_data_ref_ptr): If step is negative generate
2342 decreasing IVs.
2343 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
2344 (perm_mask_for_reverse, reverse_vec_elements): New functions.
2345 (vectorizable_load): Handle loads with negative steps when easily
2346 possible.
2347
2348 2010-09-03 Jan Hubicka <jh@suse.cz>
2349
2350 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
2351
2352 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
2353
2354 * config/v850/v850.c (v850_function_value_regno_p): Make static.
2355 Adjust comments. Declare.
2356 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2357 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
2358
2359 2010-09-17 Richard Guenther <rguenther@suse.de>
2360
2361 * common.opt (combine): Remove.
2362 * gcc.c (default_compilers): Remove specs testing combine.
2363 The C compilers no longer can combine.
2364 (option_map): Remove -combine.
2365 (display_help): Remove -combine.
2366 (driver_handle_option): Remove OPT_combine handling.
2367 (compile_input_file_p): Remove.
2368 (do_spec): Remove code concerning combine.
2369 (main): Likewise.
2370 * doc/invoke.texi: Remove traces of -combine.
2371 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
2372
2373 2010-09-17 Richard Guenther <rguenther@suse.de>
2374
2375 PR middle-end/45678
2376 * builtins.c (fold_builtin_memory_op): Always properly adjust
2377 alignment of memory accesses.
2378
2379 2010-09-16 Jan Hubicka <jh@suse.cz>
2380
2381 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
2382 processing clone.
2383
2384 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
2385
2386 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
2387
2388 * config/i386/i386.c (predict_jump): Add prototype.
2389 (flag_opts): Add -m8bit-idiv.
2390 (ix86_split_idivmod): New.
2391
2392 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
2393 Add 2 splitters for SI/DI mode divide.
2394 (divmod<mode>4_1): New pattern.
2395 (udivmod<mode>4_1): Likewise.
2396 (testdi_ccno_1): Likewise.
2397
2398 * config/i386/i386.opt (m8bit-idiv): New.
2399
2400 * doc/invoke.texi: Document -m8bit-idiv.
2401
2402 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
2403
2404 PR bootstrap/45680
2405 * config/i386/i386.c (min_insn_size): Moved out of the
2406 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
2407
2408 2010-09-16 Jan Hubicka <jh@suse.cz>
2409
2410 * lto-cgraph.c (lto_output_node): Fix handling of clones.
2411 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
2412 unreachable clones with reachable clones.
2413 * tree-inline.c (copy_bb): Fix sanity checking when producing
2414 unreachable clone.
2415
2416 2010-09-16 Anatoly Sokolov <aesok@post.ru>
2417
2418 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
2419 (TARGET_MEMORY_MOVE_COST): Define.
2420 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
2421
2422 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
2423
2424 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
2425 maybe_tidy_empty_bb.
2426
2427 Revert:
2428 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
2429 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
2430
2431 2010-09-16 Joseph Myers <joseph@codesourcery.com>
2432
2433 * target.def (target_option.optimization): New hook.
2434 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
2435 TARGET_OPTION_OPTIMIZATION hook.
2436 * doc/tm.texi: Regenerate.
2437 * hooks.c (hook_void_int_int): New.
2438 * hooks.h (hook_void_int_int): Declare.
2439 * opts.c: Don't include tm_p.h.
2440 (decode_options): Use targetm.target_option.optimization instead
2441 of OPTIMIZATION_OPTIONS.
2442 * system.h (OPTIMIZATION_OPTIONS): Poison.
2443 * config/arm/arm-protos.h (arm_optimization_options): Remove.
2444 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
2445 (arm_optimization_options): Rename to arm_option_optimization.
2446 Make static.
2447 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
2448 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
2449 (cris_option_optimization): New.
2450 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
2451 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
2452 (crx_option_optimization): New.
2453 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
2454 * config/frv/frv-protos.h (frv_optimization_options): Remove.
2455 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
2456 (frv_optimization_options): Rename to frv_option_optimization.
2457 Make static.
2458 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
2459 * config/h8300/h8300.c (h8300_option_optimization): New.
2460 (TARGET_OPTION_OPTIMIZATION): Define.
2461 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
2462 * config/i386/i386-protos.h (optimization_options): Remove.
2463 * config/i386/i386.c (optimization_options): Rename to
2464 ix86_option_optimization. Make static.
2465 (TARGET_OPTION_OPTIMIZATION): Define.
2466 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
2467 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
2468 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
2469 (ia64_optimization_options): Rename to ia64_option_optimization.
2470 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
2471 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
2472 commented-out definition.
2473 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2474 instead of OPTIMIZATION_OPTIONS.
2475 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
2476 (m32r_option_optimization): New.
2477 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
2478 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2479 Remove.
2480 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
2481 (mcore_option_optimization): New.
2482 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
2483 * config/mep/mep-protos.h (mep_optimization_options): Remove.
2484 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
2485 (mep_optimization_options): Rename to mep_option_optimization.
2486 Make static. Take unused level and size parameters.
2487 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
2488 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
2489 (mmix_option_optimization): New.
2490 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
2491 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
2492 (pdp11_option_optimization): New.
2493 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
2494 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
2495 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
2496 (optimization_options): Rename to rs6000_option_optimization.
2497 Make static.
2498 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
2499 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
2500 * config/rx/rx.c (rx_set_optimization_options): Rename to
2501 rx_option_optimization. Make static. Take unused level and size
2502 parameters.
2503 (TARGET_OPTION_OPTIMIZATION): Define.
2504 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
2505 * config/s390/s390-protos.h (optimization_options): Remove.
2506 * config/s390/s390.c (optimization_options): Rename to
2507 s390_option_optimization. Make static. Don't mark size parameter
2508 unused.
2509 (TARGET_OPTION_OPTIMIZATION): Define.
2510 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
2511 * config/sh/sh-protos.h (sh_optimization_options): Remove.
2512 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
2513 (sh_optimization_options): Rename to sh_option_optimization. Make
2514 static. Don't mark parameters unused.
2515 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
2516 * config/spu/spu-protos.h (spu_optimization_options): Remove.
2517 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
2518 (spu_optimization_options): Rename to spu_option_optimization.
2519 Make static.
2520 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
2521 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
2522 (v850_option_optimization): New.
2523 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
2524 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
2525 (xtensa_option_optimization): New.
2526 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
2527
2528 2010-09-16 Joseph Myers <joseph@codesourcery.com>
2529
2530 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
2531 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
2532 * doc/tm.texi: Regenerate.
2533 * system.h (OVERRIDE_OPTIONS): Poison.
2534 * target.def (override): Default to hook_void_void.
2535 * targhooks.c (default_target_option_override): Remove.
2536 * genmodes.c, machmode.def: Update comments mentioning
2537 OVERRIDE_OPTIONS.
2538 * config/alpha/alpha-modes.def: Update comment mentioning
2539 alpha_override_options.
2540 * config/alpha/alpha-protos.h (override_options): Remove.
2541 * config/alpha/alpha.c (override_options): Rename to
2542 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
2543 (TARGET_OPTION_OVERRIDE): Define.
2544 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
2545 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
2546 of OVERRIDE_OPTIONS.
2547 * config/arc/arc-protos.h (arc_init): Remove.
2548 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
2549 (arc_init): Rename to arc_option_override. Make static.
2550 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
2551 (OVERRIDE_OPTIONS): Remove.
2552 * config/arm/arm-protos.h (arm_override_options): Remove.
2553 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
2554 (arm_override_options): Rename to arm_option_override. Make
2555 static. Call SUBTARGET_OVERRIDE_OPTIONS.
2556 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
2557 * config/arm/arm.md: Update comment referring to arm_override_options.
2558 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2559 instead of OVERRIDE_OPTIONS.
2560 * config/avr/avr-protos.h (avr_override_options): Remove.
2561 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
2562 (avr_override_options): Rename to avr_option_override. Make static.
2563 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
2564 * config/bfin/bfin-protos.h (override_options): Remove (twice).
2565 * config/bfin/bfin.c (override_options): Rename to
2566 bfin_option_override. Make static.
2567 (TARGET_OPTION_OVERRIDE): Define.
2568 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
2569 * config/cris/cris-protos.h (cris_override_options): Remove.
2570 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
2571 (cris_override_options): Rename to cris_option_override. Make static.
2572 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
2573 * config/frv/frv-protos.h (frv_override_options): Remove.
2574 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
2575 (frv_override_options): Rename to frv_option_override. Make static.
2576 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
2577 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
2578 * config/h8300/h8300.c (h8300_init_once): Rename to
2579 h8300_option_override. Make static.
2580 (TARGET_OPTION_OVERRIDE): Define.
2581 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
2582 * config/i386/i386-protos.h (override_options): Remove.
2583 * config/i386/i386.c (override_options): Rename to
2584 ix86_option_override_internal. Make static. Comments referring
2585 to this function and callers changed.
2586 (ix86_option_override): New.
2587 (TARGET_OPTION_OVERRIDE): Define.
2588 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
2589 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
2590 * config/ia64/ia64.c (ia64_file_start): Update comment referring
2591 to ia64_override_options.
2592 * config/iq2000/iq2000-protos.h (override_options): Remove.
2593 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
2594 (override_options): Rename to iq2000_option_override. Make static.
2595 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
2596 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
2597 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
2598 (lm32_override_options): Rename to lm32_option_override. Make static.
2599 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
2600 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
2601 (m32r_option_override): New.
2602 (m32r_init): Update comment.
2603 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
2604 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
2605 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
2606 (m68hc11_override_options): Rename to m68hc11_option_override.
2607 Make static. Return void.
2608 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
2609 * config/m68k/m68k-protos.h (override_options): Remove.
2610 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
2611 (override_options): Rename to m68k_option_override. Make static.
2612 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
2613 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
2614 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
2615 (mcore_override_options): Rename to mcore_option_override. Make
2616 static.
2617 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
2618 * config/mep/mep-protos.h (mep_override_options): Remove.
2619 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
2620 (mep_override_options): Rename to mep_option_override. Make static.
2621 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
2622 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
2623 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
2624 (mmix_override_options): Rename to mmix_option_override. Make static.
2625 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
2626 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
2627 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
2628 (mn10300_override_options): Rename to mn10300_option_override.
2629 Make static.
2630 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
2631 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
2632 * config/moxie/moxie.c (moxie_override_options): Rename to
2633 moxie_option_override. Make static.
2634 (TARGET_OPTION_OVERRIDE): Define.
2635 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
2636 * config/picochip/picochip-protos.h (picochip_override_options):
2637 Remove. Update comment referring to picochip_override_options.
2638 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
2639 (picochip_override_options): Rename to picochip_option_override.
2640 Make static. Update comment and definition of
2641 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
2642 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
2643 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2644 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2645 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2646 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2647 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2648 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
2649 instead of OVERRIDE_OPTIONS.
2650 * config/rs6000/rs6000-modes.def: Update comment referring to
2651 rs6000_override_options.
2652 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
2653 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
2654 (rs6000_override_options): Rename to
2655 rs6000_option_override_internal. Make static. Commented
2656 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
2657 (rs6000_option_override): New.
2658 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
2659 instead of OVERRIDE_OPTIONS.
2660 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2661 * config/s390/s390-protos.h (override_options): Remove.
2662 * config/s390/s390.c (override_options): Rename to
2663 s390_option_override. Make static.
2664 (TARGET_OPTION_OVERRIDE): Define.
2665 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
2666 * config/score/score-protos.h (score_override_options): Remove.
2667 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
2668 (score_override_options): Rename to score_option_override. Make
2669 static.
2670 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
2671 Update comment referring to override_options.
2672 * config/score/score3.c (score3_override_options): Rename to
2673 score3_option_override.
2674 * config/score/score3.h (score3_override_options): Rename to
2675 score3_option_override.
2676 * config/score/score7.c (score7_override_options): Rename to
2677 score7_option_override.
2678 * config/score/score7.h (score7_override_options): Rename to
2679 score7_option_override.
2680 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2681 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2682 (sparc_override_options): Rename to sparc_option_override. Make
2683 static. Call SUBTARGET_OVERRIDE_OPTIONS.
2684 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2685 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2686 instead of OVERRIDE_OPTIONS.
2687 * config/spu/spu-protos.h (spu_override_options): Remove.
2688 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2689 (spu_override_options): Rename to spu_option_override. Make
2690 static.
2691 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2692 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2693 OVERRIDE_OPTIONS.
2694 * config/vax/vax-protos.h (override_options): Remove.
2695 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2696 (override_options): Rename to vax_option_override. Make static.
2697 Call SUBTARGET_OVERRIDE_OPTIONS.
2698 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2699 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2700 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2701 * config/xtensa/xtensa-protos.h (override_options): Remove.
2702 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2703 (override_options): Rename to xtensa_option_override. Make static.
2704 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2705
2706 2010-09-16 Richard Guenther <rguenther@suse.de>
2707
2708 PR tree-optimization/45623
2709 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2710 (get_constraint_for_component_ref): If computing a constraint
2711 for the rhs handle type punning through unions.
2712 (get_constraint_for_address_of): Adjust.
2713 (get_constraint_for_1): Likewise.
2714 (get_constraint_for): Likewise.
2715 (get_constraint_for_rhs): New function.
2716 (do_structure_copy): Adjust.
2717 (make_constraint_to): Likewise.
2718 (handle_const_call): Likewise.
2719 (find_func_aliases): Likewise.
2720 (process_ipa_clobber): Likewise.
2721 (create_variable_info_for): Likewise.
2722
2723 2010-09-16 Ira Rosen <irar@il.ibm.com>
2724
2725 * tree-vectorizer.c: Fix documentation.
2726 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2727 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2728 is_pattern_stmt_p, is_loop_header_bb_p,
2729 stmt_vinfo_set_inside_of_loop_cost,
2730 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2731 known_alignment_for_access_p): Likewise.
2732 * tree-vect-loop.c: Fix documentation.
2733 (vect_get_cost): Start function name from new line.
2734 * tree-vect-data-refs.c: Fix documentation.
2735 * tree-vect_stmts.c: Likewise.
2736 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2737 (vectorizable_store): Free vec_oprnds if allocated.
2738 (vectorizable_condition): Initialize several variables to avoid
2739 warnings.
2740 * tree-vect-slp.c: Fix documentation.
2741
2742 2010-09-16 Richard Guenther <rguenther@suse.de>
2743
2744 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2745 is TS_TRANSLATION_UNIT_DECL.
2746 (initialize_tree_contains_struct): Adjust.
2747 (all_translation_units): New global vector.
2748 (build_translation_unit_decl): New function.
2749 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2750 (struct tree_translation_unit_decl): New.
2751 (all_translation_units): Declare.
2752 (union tree_node): Add translation_unit_decl member.
2753 (build_translation_unit_decl): Declare.
2754 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2755 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2756 New function.
2757 (pack_value_fields): Call it.
2758 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2759 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2760 (lto_output_tree_pointers): Call it.
2761 * lto-streamer-in.c (lto_input_tree_ref): Handle references
2762 to TRANSLATION_UNIT_DECL.
2763 (unpack_ts_translation_unit_decl_value_fields): New function.
2764 (unpack_value_fields): Call it.
2765 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2766 (lto_input_tree_pointers): Call it.
2767 * lto-streamer.c (check_handled_ts_structures): Adjust.
2768 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2769 * c-decl.c (all_translation_units): Remove.
2770 (pop_scope): Use build_translation_unit_decl.
2771 (collect_all_refs): Adjust.
2772 (for_each_global_decl): Likewise.
2773 (c_write_global_declarations): Likewise.
2774
2775 2010-09-16 Jakub Jelinek <jakub@redhat.com>
2776
2777 PR bootstrap/45686
2778 * fold-const.c (fold_checksum_tree): Change slot from const void **
2779 to void **, use CONST_CAST_TREE to store into *slot.
2780
2781 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
2782
2783 * config/i386/i386.md: Remove unneeded empty conditions and
2784 preparation statements from expanders.
2785 * config/i386/mmx.md: Ditto.
2786 * config/i386/sse.md: Ditto.
2787
2788 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
2789
2790 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2791
2792 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
2793
2794 PR rtl-optimization/45593
2795 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2796 insns that were in delay slots as stand-alone insns.
2797
2798 2010-09-15 Ian Lance Taylor <iant@google.com>
2799
2800 * incpath.c (remove_duplicates): If name is not a directory, issue
2801 a warning rather than an error.
2802
2803 2010-09-15 Martin Jambor <mjambor@suse.cz>
2804
2805 PR middle-end/45644
2806 * tree-sra.c (create_access): Check for bit-fields directly.
2807
2808 2010-09-15 Jakub Jelinek <jakub@redhat.com>
2809
2810 PR tree-optimization/45633
2811 * tree-cfg.c (verify_gimple_assign_binary): Allow
2812 MINUS_EXPR with lhs and rhs1 pointer vector and
2813 rhs2 sizetype vector.
2814 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2815 or vector pointer use TER to optimize pointer subtraction.
2816
2817 2010-09-15 Jie Zhang <jie@codesourcery.com>
2818
2819 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2820 fcmpd to fcmps.
2821
2822 2010-09-15 Ian Lance Taylor <iant@google.com>
2823
2824 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2825
2826 2010-09-15 Ian Lance Taylor <iant@google.com>
2827
2828 * function.c (get_arg_pointer_save_area): Set
2829 arg_pointer_save_area_init to true.
2830
2831 2010-09-15 Martin Jambor <mjambor@suse.cz>
2832
2833 * tree-sra.c (generate_subtree_copies): Updated comment.
2834 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
2835 obtained from the statement iterator instead.
2836 (load_assign_lhs_subreplacements): Removed parameters lhs and
2837 right_offset, which is obtained from top_racc instead. Parameter lacc
2838 is now expected to be the root of the processed tree rather than root's
2839 first child. Updated all callers.
2840
2841 2010-09-15 Joseph Myers <joseph@codesourcery.com>
2842
2843 * config/pdp11/pdp11.c (register_move_cost): Rename to
2844 pdp11_register_move_cost.
2845 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
2846 pdp11_register_move_cost.
2847 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
2848 pdp11_register_move_cost instead of register_move_cost.
2849
2850 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
2851
2852 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
2853 pattern for vmovn. Expansion in case of non
2854 -mvectorize-with-neon-quad.
2855 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
2856 non- -mvectorize-with-neon-quad case.
2857 (move_lo_quad_<mode>): New expansion to vmov into low part.
2858 (move_hi_quad_<mode>): New expansion to vmov into high part.
2859 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
2860 (move_lo_quad_v4sf): Likewise.
2861 (move_lo_quad_v8hi): Likewise.
2862 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
2863 low part.
2864 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
2865 high part.
2866 * config/arm/iterators.md (ANY128): New mode iterator.
2867 (V_narrow_pack): New mode attribute.
2868 (V_HALF): Add attribute.
2869 (V_DOUBLE): Add attribute.
2870 (V_mode_nunits): Add attribute.
2871
2872 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
2873
2874 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
2875 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
2876
2877 2010-09-15 Olivier Hainque <hainque@adacore.com>
2878 Jose Ruiz <ruiz@adacore.com>
2879
2880 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
2881 * config/alpha/osf5-unwind.h: New file.
2882
2883 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2884
2885 PR bootstrap/45672
2886 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
2887 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2888 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2889
2890 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2891
2892 * c-lang.h (struct lang_type): Add variable_size GTY option.
2893
2894 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2895
2896 PR bootstrap/45672
2897 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2898
2899 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2900
2901 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
2902 result isn't used in memory address.
2903
2904 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2905
2906 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
2907 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
2908 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2909 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2910 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2911 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2912
2913 * target.def: Add units_per_simd_word to vectorize.
2914
2915 * targhooks.c (default_units_per_simd_word): New.
2916 * targhooks.h (default_units_per_simd_word): Likewise.
2917 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
2918 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2919 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
2920 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2921 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2922 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2923 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2924 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2925
2926 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
2927 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
2928
2929 * tree-vect-stmts.c: Don't include "tm_p.h".
2930 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
2931 with targetm.vectorize.units_per_simd_word.
2932
2933 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
2934
2935 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
2936
2937 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
2938 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2939
2940 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
2941 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
2942
2943 * doc/tm.texi: Regenerated.
2944
2945 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
2946
2947 * tree-vect-stmts.c: Include "tm_p.h".
2948
2949 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
2950 out of RTX_CODE.
2951
2952 2010-09-14 Martin Jambor <mjambor@suse.cz>
2953
2954 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
2955 location of generated statement. Changed all callers.
2956 (build_ref_for_model): New parameter loc which used to set location of
2957 all generated expressions. Changed all callers.
2958 (generate_subtree_copies): Likewise.
2959 (init_subtree_with_zero): Likewise.
2960 (sra_modify_expr): Set locations of all generated statements and
2961 expressions to the location the original statement.
2962 (handle_unscalarized_data_in_subtree): Likewise.
2963 (load_assign_lhs_subreplacements): Likewise.
2964 (sra_modify_constructor_assign): Likewise.
2965 (sra_modify_assign): Likewise.
2966
2967 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
2968
2969 PR target/45277
2970 PR target/45363
2971 PR target/45407
2972 * doc/install.texi (sparc*-*-*): New section.
2973 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
2974
2975 2010-09-14 Jakub Jelinek <jakub@redhat.com>
2976
2977 PR middle-end/45567
2978 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
2979 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
2980 (expand_builtin): Adjust caller.
2981 (expand_builtin_unop): Only use subtarget if it has the right mode.
2982
2983 2010-09-14 Tristan Gingold <gingold@adacore.com>
2984
2985 * configure.ac (plugins): Fix typos.
2986 * configure: Regenerate.
2987
2988 2010-09-14 Jakub Jelinek <jakub@redhat.com>
2989
2990 PR debug/45660
2991 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
2992 gen_type_die for function/method return type.
2993
2994 2010-09-14 Ira Rosen <irar@il.ibm.com>
2995
2996 PR tree-optimization/45470
2997 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2998 can throw an exception.
2999 * tree-vect-stmts.c (vectorizable_call): Likewise.
3000
3001 2010-09-14 DJ Delorie <dj@redhat.com>
3002
3003 PR target/44749
3004 * config/mep/mep-protos.h (mep_save_register_info,
3005 mep_reinit_regs, mep_init_regs): Declare.
3006
3007 * config/mep/mep.c: Move all target definitions to the end of the
3008 file to avoid the need for duplicate declarations.
3009 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
3010 (mep_reorg_erepeat): Remove unused variables.
3011 (mep_expand_builtin): Likewise.
3012
3013 * config/mep/mep-pragma.c: Don't include rtl.h.
3014 (INVALID_REGNUM): New.
3015 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
3016 functions.
3017 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
3018 Avoid enum/integer math.
3019
3020 2010-09-13 Joseph Myers <joseph@codesourcery.com>
3021
3022 PR target/44749
3023 * config/mep/t-mep (GTM_H): Add insn-constants.h.
3024 * config/mep/mep.c (mep_conditional_register_usage): Take no
3025 parameters.
3026 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
3027 prototype.
3028 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
3029 call to mep_conditional_register_usage.
3030
3031 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
3032
3033 PR debug/43937
3034 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
3035 the DECL as well.
3036
3037 2010-09-13 Jakub Jelinek <jakub@redhat.com>
3038
3039 PR rtl-optimization/45617
3040 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
3041 even if low N bits of X aren't known to be zero.
3042
3043 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
3044
3045 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
3046
3047 * config/i386/i386.c (initial_ix86_tune_features): Add
3048 X86_TUNE_VECTORIZE_DOUBLE.
3049 (ix86_units_per_simd_word): New.
3050
3051 * config/i386/i386.h (ix86_tune_indices): Add
3052 X86_TUNE_VECTORIZE_DOUBLE.
3053 (TARGET_VECTORIZE_DOUBLE): New.
3054 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
3055
3056 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
3057
3058 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
3059 (new_temp_expr_table): Allocate call_cnt vector.
3060 (free_temp_expr_table): Free it.
3061 (process_replaceable): Add call_cnt parm and set in vector.
3062 (find_replaceable_in_bb): Skip replacement if def/use span a call.
3063 (debug_ter): Dump call_cnt value, remove stderr uses.
3064
3065 2010-09-13 Jan Hubicka <jh@suse.cz>
3066
3067 * tree.c (build_zero_cst): New.
3068 * tree.h (build_zero_cst): Declare.
3069 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
3070 (get_base_constructor): Break out from ...
3071 (fold_const_aggregate_ref): Here; handle empty constructors.
3072
3073 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3074
3075 * config/arm/arm.md: (define_attr "conds"): Update comment.
3076 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
3077 conds attribute to clob.
3078 (arm_sync_compare_and_swapsi): Likewise.
3079 (arm_sync_compare_and_swap<mode>): Likewise.
3080 (arm_sync_lock_test_and_setsi): Likewise.
3081 (arm_sync_lock_test_and_set<mode>): Likewise.
3082 (arm_sync_new_<sync_optab>si): Likewise.
3083 (arm_sync_new_nandsi): Likewise.
3084 (arm_sync_new_<sync_optab><mode>): Likewise.
3085 (arm_sync_new_nand<mode>): Likewise.
3086 (arm_sync_old_<sync_optab>si): Likewise.
3087 (arm_sync_old_nandsi): Likewise.
3088 (arm_sync_old_<sync_optab><mode>): Likewise.
3089 (arm_sync_old_nand<mode>): Likewise.
3090
3091 2010-09-13 Olivier Hainque <hainque@adacore.com>
3092
3093 * fwprop.c (forward_propagate_and_simplify): Only attach a
3094 REG_EQUAL note to an insn if the destination is a register.
3095 * gcse.c (try_replace_reg): Likewise.
3096
3097 2010-09-13 Richard Guenther <rguenther@suse.de>
3098
3099 PR tree-optimization/45611
3100 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
3101 (copy_ref_info): Likewise.
3102
3103 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
3104
3105 PR debug/45604
3106 PR debug/45419
3107 PR debug/45408
3108 * tree-pretty-print.c (dump_generic_node): Disregard top-level
3109 types of MEM_REF pointer types to the same type.
3110
3111 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
3112
3113 PR rtl-optimization/41087
3114 * ifcvt.c (noce_get_condition): Don't allow conditions with
3115 side-effects.
3116
3117 2010-09-12 Anatoly Sokolov <aesok@post.ru>
3118
3119 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3120 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
3121 * config/frv/frv.c (frv_register_move_cost): Make static. Change
3122 arguments type to reg_class_t. Add mode argument.
3123 (frv_memory_move_cost): New.
3124 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
3125
3126 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
3127
3128 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
3129 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
3130
3131 2010-09-10 Jan Hubicka <jh@suse.cz>
3132
3133 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
3134
3135 2010-09-10 Richard Guenther <rguenther@suse.de>
3136
3137 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
3138 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
3139 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
3140 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
3141 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
3142
3143 2010-09-10 Richard Guenther <rguenther@suse.de>
3144
3145 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
3146 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
3147 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
3148 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
3149
3150 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
3151
3152 PR middle-end/45634
3153 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
3154 of string folding is of integral type.
3155
3156 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
3157
3158 * doc/invoke.texi (-x): Fix typo.
3159
3160 2010-09-10 Richard Guenther <rguenther@suse.de>
3161
3162 PR debug/44115
3163 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
3164 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3165 Output DECL_DEBUG_EXPR.
3166 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3167 Input DECL_DEBUG_EXPR.
3168
3169 2010-09-10 Richard Guenther <rguenther@suse.de>
3170
3171 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
3172 (build_index_type): Implement in terms of build_range_type.
3173 (build_range_type): Do not allow NULL_TREE type, improve
3174 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
3175 if we didn't hash.
3176 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
3177 create a distinct copy of the type.
3178
3179 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
3180
3181 * configure: Regenerated.
3182 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
3183
3184 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3185
3186 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
3187 * config/arm/cortex-a9-neon.md: New and partially generated.
3188 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
3189
3190 2010-09-10 Richard Guenther <rguenther@suse.de>
3191
3192 * tree.h (build_index_2_type): Remove.
3193 * tree.c (build_index_2_type): Remove.
3194
3195 2010-09-10 Jakub Jelinek <jakub@redhat.com>
3196
3197 PR bootstrap/45630
3198 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
3199 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
3200 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
3201
3202 2010-09-10 Martin Jambor <mjambor@suse.cz>
3203
3204 PR tree-optimization/44972
3205 * tree-sra.c: Include toplev.h.
3206 (build_ref_for_offset): Entirely reimplemented.
3207 (build_ref_for_model): New function.
3208 (build_user_friendly_ref_for_offset): New function.
3209 (analyze_access_subtree): Removed build_ref_for_offset check.
3210 (propagate_subaccesses_across_link): Likewise.
3211 (create_artificial_child_access): Use
3212 build_user_friendly_ref_for_offset.
3213 (propagate_subaccesses_across_link): Likewise.
3214 (ref_expr_for_all_replacements_p): Removed.
3215 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
3216 (sra_modify_expr): Use build_ref_for_model.
3217 (load_assign_lhs_subreplacements): Likewise.
3218 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
3219 checks for return values of build_ref_for_offset.
3220 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
3221 build_ref_for_offset.
3222 * ipa-prop.h: Include gimple.h
3223 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
3224 (ipa_analyze_indirect_call_uses): Update comment.
3225 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
3226 (IPA_PROP_H): Likewise.
3227
3228 2010-09-10 Martin Jambor <mjambor@suse.cz>
3229
3230 PR tree-optimization/44972
3231 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
3232 calling build_ref_for_offset.
3233
3234 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3235
3236 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
3237 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
3238 * config/arm/arm-tune.md: Regenerate.
3239 * doc/invoke.texi (ARM Options): Document it.
3240
3241 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
3242
3243 * config/i386/i386.c: Include sched-int.h.
3244 (TARGET_SCHED_DISPATCH): Defined.
3245 (TARGET_SCHED_DISPATCH_DO): Defined.
3246 (DISPATCH_WINDOW_SIZE): Defined.
3247 (MAX_DISPATCH_WINDOWS): Defined.
3248 (MAX_INSN): Defined.
3249 (MAX_IMM): Defined.
3250 (MAX_IMM_SIZE): Defined.
3251 (MAX_IMM_32): Defined.
3252 (MAX_IMM_64): Defined.
3253 (MAX_LOAD): Defined.
3254 (MAX_STORE): Defined.
3255 (BIG): Defined.
3256 (dispatch_group): New.
3257 (num_allowable_groups): New.
3258 (group_name): New.
3259 (sched_insn_info_s): New.
3260 (dispatch_windows_s): New.
3261 (imm_info_s): New.
3262 (dispatch_window_list): New.
3263 (dispatch_window_list1): New.
3264 (get_mem_group): New.
3265 (is_cmp): New.
3266 (dispatch_violation): New.
3267 (is_branch): New.
3268 (is_prefetch): New.
3269 (init_window): New.
3270 (allocate_window): New.
3271 (init_dispatch_sched): New.
3272 (is_end_basic_block): New.
3273 (process_end_window): New.
3274 (allocate_next_window): New.
3275 (find_constant_1): New.
3276 (find_constant): New.
3277 (get_num_immediates): New.
3278 (has_immediate): New.
3279 (get_insn_path): New.
3280 (get_insn_group): New.
3281 (count_num_restricted): New.
3282 (fits_dispatch_window): New.
3283 (add_insn_window): New.
3284 (add_to_dispatch_window): New.
3285 (debug_dispatch_window_file): New.
3286 (debug_dispatch_window): New.
3287 (debug_insn_dispatch_info_file): New.
3288 (debug_ready_dispatch): New.
3289 (do_dispatch): New.
3290 (has_dispatch): New.
3291 * config/i386/i386.h (debug_ready_dispatch): Declared.
3292 (debug_dispatch_window): Declared.
3293 * config/i386/i386.opt (mdispatch-scheduler): New flag.
3294 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
3295 (TARGET_SCHED_DISPATCH_DO): New.
3296 * doc/tm.texi: Regererated.
3297 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
3298 ready_remove_first_dispatch
3299 (schedule_block): Call targetm.sched.dispatch and
3300 targetm.sched.dispatch_do.
3301 (sched_init): Call targetm.sched.dispatch and
3302 targetm.sched.dispatch_do.
3303 (ready_remove_first_dispatch): New.
3304 (number_in_ready): New.
3305 (get_ready_element): New.
3306 * hooks.c (hook_bool_rtx_int_false): New.
3307 (hook_void_rtx_int): New.
3308 * hooks.h (hook_bool_rtx_int_false): Declared.
3309 (hook_void_rtx_int): Declared.
3310 * sched-int.h (IS_DISPATCH_ON): Defined.
3311 (IS_CMP): Defined.
3312 (DISPATCH_VIOLATION): Defined.
3313 (FITS_DISPATCH_WINDOW): Defined.
3314 (DISPATCH_INIT): Defined.
3315 (ADD_TO_DISPATCH_WINDOW): Defined.
3316 (get_ready_element): Declared.
3317 (number_in_ready): Declared.
3318 * target.def (dispatch): Defined.
3319 (dispatch_do): Defined.
3320
3321 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
3322
3323 PR middle-end/45312
3324 * reload1.c (merge_assigned_reloads): Remove.
3325 (reload_as_needed): Don't call it.
3326
3327 2010-09-09 Anatoly Sokolov <aesok@post.ru>
3328
3329 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
3330 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3331 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3332
3333 2010-09-09 Matthias Klose <doko@ubuntu.com>
3334
3335 PR bootstrap/43847
3336 * configure.ac (--enable-plugin): Enhance for cross builds.
3337 * configure: Regenerate.
3338
3339 2010-09-09 Jan Hubicka <jh@suse.cz>
3340
3341 PR tree-optimization/45598
3342 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
3343 string folding is of integral type.
3344
3345 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3346
3347 * configure.ac (gnu_indirect_function): New test.
3348 * configure: Rebuilt.
3349 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
3350 * defaults.h (IFUNC_ASM_TYPE): Provide default.
3351
3352 * doc/extend.texi (Function Attributes): Document ifunc.
3353 * varasm.c (do_assemble_alias): Deal with ifuncs too.
3354
3355 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
3356
3357 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
3358 epilogue instruction move.
3359
3360 2010-09-09 Jan Hubicka <jh@suse.cz>
3361
3362 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
3363 command line to allow more partitions than input files.
3364
3365 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
3366
3367 PR middle-end/44554
3368 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
3369
3370 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
3371
3372 PR middle-end/40386
3373 * ira.c (pseudo_for_reload_consideration_p): Don't use
3374 flag_ira_share_spill_slots.
3375
3376 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3377
3378 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
3379 point zero operands that fit into a single GPR.
3380 (s390_preferred_reload_class): Ensure we only return general-purpose
3381 register classes.
3382 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
3383 floating-point zero operands into GPRs.
3384 ("*mov<mode>_64"): Likewise.
3385 ("mov<mode>"): Likewise using lhi.
3386
3387 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3388
3389 * config/s390/s390.c (s390_symref_operand_p): Return false for
3390 literal pool references.
3391 (s390_check_qrst_address): Update caller.
3392
3393 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
3394
3395 * config/i386/predicates.md (ext_register_operand): Check that
3396 SUBREG_REG is really a register before looking for REGNO.
3397 (reg_not_xmm0_operand): Handle SUBREGs correctly.
3398 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
3399
3400 2010-09-09 Jakub Jelinek <jakub@redhat.com>
3401
3402 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
3403 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
3404 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
3405 * print-rtl.c (print_rtx): Likewise.
3406 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3407 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
3408 for ADDR_EXPR with non-addressable object.
3409 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
3410 (struct dw_val_struct): Add v.val_decl_ref.
3411 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
3412 Handle DW_OP_GNU_implicit_pointer.
3413 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
3414 (get_ref_die_offset_label): New function.
3415 (implicit_ptr_descriptor): New function.
3416 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
3417 (loc_descriptor): Likewise.
3418 (gen_variable_die): Put even definitions into decl_die_table.
3419 (resolve_addr_in_expr): Resolve still unresolved
3420 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
3421 return false.
3422 (dwarf2out_finish): Call output_location_lists after outputting
3423 .debug_info and .debug_abbrev instead of before.
3424
3425 2010-09-09 Roland McGrath <roland@redhat.com>
3426
3427 * dwarf2out.c (DWARF_REF_SIZE): Define.
3428 (size_of_loc_descr): Use it for DW_OP_call_ref.
3429
3430 2010-09-09 Alan Modra <amodra@gmail.com>
3431
3432 * doc/invoke.text: Reinstate mcmodel=medium.
3433 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3434 CMODEL_MEDIUM as default.
3435 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
3436 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
3437 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
3438 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
3439
3440 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3441
3442 PR target/45250
3443 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
3444 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
3445 (builtin_longjmp): Likewise.
3446 (allocate_stack): Use hard_frame_pointer_rtx instead of
3447 frame_pointer_rtx.
3448 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
3449 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
3450 (pa_can_eliminate): Likewise.
3451 (TARGET_INTERNAL_ARG_POINTER): Define.
3452 (TARGET_CAN_ELIMINATE): Define.
3453 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
3454 pointer.
3455 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
3456 (pa_internal_arg_pointer, pa_can_eliminate,
3457 pa_initial_elimination_offset): New.
3458 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
3459 (HARD_FRAME_POINTER_REGNUM): Set to register three.
3460 (INITIAL_FRAME_POINTER_OFFSET): Delete.
3461 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
3462 Define.
3463 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
3464 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
3465 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
3466 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3467 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
3468 new soft frame pointer.
3469 * config/pa/pa64-regs.h: Likewise.
3470
3471 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
3472
3473 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
3474 numerical constant.
3475 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
3476
3477 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
3478
3479 PR debug/45531
3480 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
3481
3482 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
3483
3484 PR debug/45419
3485 PR debug/45408
3486 * tree-pretty-print.c (dump_generic_node): Disregard top-level
3487 qualifiers in otherwise equal MEM_REF pointer types.
3488 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
3489 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
3490
3491 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3492
3493 PR target/44392
3494 * config/arm/arm.md (bswapsi2): Handle condition correctly
3495 for armv6 and optimize_size.
3496
3497 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3498
3499 PR other/18555
3500 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
3501
3502 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
3503
3504 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
3505 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
3506 ix86_expand_strlen, legitimate_pic_address_disp_p,
3507 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
3508 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
3509 ix86_check_movabs, ix86_secondary_memory_needed): Change function
3510 prototype to bool.
3511 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
3512 return_in_memory_ms_64, ix86_check_movabs,
3513 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
3514 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
3515 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
3516 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
3517 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
3518 ix86_secondary_memory_needed): Change to bool. Return
3519 "true" and "false" values.
3520 * config/i386/i386.md: Return "true" and "false" values.
3521
3522 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3523
3524 * doc/sourcebuild.texi (Effective-Target Keywords): Document
3525 run_expensive_tests.
3526
3527 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3528
3529 * toplev.c (output_stack_usage): Use lbasename instead of basename.
3530
3531 2010-09-08 Martin Jambor <mjambor@suse.cz>
3532
3533 PR other/45443
3534 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
3535 at -O3.
3536
3537 2010-09-08 Richard Guenther <rguenther@suse.de>
3538
3539 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
3540 (visit): Adjust.
3541 (iterative_hash_gimple_type): Likewise.
3542 (gimple_type_hash): Likewise.
3543 (gimple_register_type): Likewise.
3544 (print_gimple_types_stats): Likewise.
3545 (free_gimple_type_tables): Likewise.
3546
3547 2010-09-08 Michael Matz <matz@suse.de>
3548
3549 PR tree-optimization/43430
3550 * tree-vect-stmts.c (vectorizable_condition): Support multiple
3551 copies for conditional statements if it's not part of a reduction.
3552
3553 2010-09-08 Michael Matz <matz@suse.de>
3554
3555 PR tree-optimization/33244
3556 * tree-ssa-sink.c (statement_sink_location): Don't sink into
3557 empty loop latches.
3558
3559 2010-09-08 Richard Guenther <rguenther@suse.de>
3560
3561 PR tree-optimization/45578
3562 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
3563 Be more careful when transfering alignment information to
3564 the new induction variable.
3565 (copy_ref_info): Likewise.
3566
3567 2010-09-08 Richard Guenther <rguenther@suse.de>
3568
3569 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
3570 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
3571
3572 2010-09-08 Arnaud Charlet <charlet@adacore.com>
3573
3574 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
3575 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
3576
3577 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
3578
3579 PR doc/45587
3580 * doc/md.texi: Fixed modes on several standard pattern names.
3581
3582 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
3583
3584 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
3585 (ashl<mode>3): ...this.
3586 (loongson_psra<V_suffix>): Rename to...
3587 (ashr<mode>3): ...this.
3588 (loongson_psrl<V_suffix>): Rename to...
3589 (lshr<mode>3): ...this.
3590 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
3591 (CODE_FOR_loongson_psllw): Define.
3592 (CODE_FOR_loongson_psrlh): Define.
3593 (CODE_FOR_loongson_psrlw): Define.
3594 (CODE_FOR_loongson_psrah): Define.
3595 (CODE_FOR_loongson_psraw): Define.
3596
3597 2010-09-07 Richard Henderson <rth@redhat.com>
3598
3599 * tree-vect-data-refs.c: Include tm_p.h.
3600 * Makefile.in (tree-vect-data-refs.o): Update deps.
3601 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
3602 Move delarations outside #ifdef RTX_CODE.
3603
3604 2010-09-07 Richard Henderson <rth@redhat.com>
3605
3606 * final.c (rest_of_handle_final): Unconditionally do
3607 output_function_exception_table before assemble_end_function.
3608
3609 2010-09-07 Jan Hubicka <jh@suse.cz>
3610
3611 * tree-inline.c (tree_inlinable_function_p): Do not test
3612 DECL_REPLACEABLE_P.
3613 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
3614 update_callee_keys, cgraph_decide_inlining): Test function availability.
3615 * cif-code.def (OVERWRITABLE): New code.
3616
3617 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
3618 Jack Howarth <howarth@bromo.med.uc.edu>
3619
3620 PR target/36502
3621 PR target/42313
3622 PR target/44651
3623 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
3624 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
3625 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
3626 MAX macro.
3627
3628 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
3629
3630 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
3631 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
3632
3633 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
3634
3635 * config.gcc: Don't append t-android for Android targets.
3636
3637 * config/t-android: Removed.
3638
3639 2010-09-07 Richard Henderson <rth@redhat.com>
3640
3641 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
3642 * doc/tm.texi.in: Add doc marker.
3643 * doc/tm.texi: Rebuild.
3644 * except.c (switch_to_exception_section): Always build.
3645 (output_one_function_exception_table): Move section switch,
3646 personality output, and label output ...
3647 (output_function_exception_table): ... here. Use the new
3648 personality hook.
3649
3650 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
3651 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
3652 TARGET_ASM_INIT_SECTIONS): New.
3653 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
3654 make static.
3655 (TARGET_ASM_UNWIND_EMIT): Update to match.
3656 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
3657
3658 * config/arm/arm.c (arm_asm_emit_except_personality): New.
3659 (arm_asm_init_sections): New.
3660 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
3661
3662 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3663
3664 * config/arm/arm.md: Remove unused variable.
3665
3666 2010-09-07 Anatoly Sokolov <aesok@post.ru>
3667
3668 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3669 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
3670 (m32r_memory_move_cost): New function.
3671
3672 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
3673
3674 * config.gcc: Append t-android for Android targets.
3675
3676 * config/t-android: New.
3677
3678 2010-09-07 Richard Henderson <rth@redhat.com>
3679
3680 * target.def (unwind_emit_before_insn): New hook.
3681 * doc/tm.texi.in: Add @hook marker for it.
3682 * doc/tm.texi: Rebuild.
3683 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3684
3685 2010-09-07 Martin Jambor <mjambor@suse.cz>
3686
3687 PR fortran/43665
3688 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3689 are any type attributes.
3690
3691 2010-09-07 Jan Hubicka <jh@suse.cz>
3692
3693 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3694 array_ref_low_bound in string access folding.
3695
3696 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
3697
3698 PR target/45206
3699 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3700 eh_return fixup sequence.
3701
3702 2010-09-07 Jan Hubicka <jh@suse.cz>
3703
3704 * gimple-fold.c (maybe_fold_reference): Verify that operand is
3705 gimple_min_invariant.
3706
3707 2010-09-07 Richard Guenther <rguenther@suse.de>
3708
3709 PR middle-end/45569
3710 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3711 nor CONSTRUCTOR can trap.
3712 * tree-complex.c (update_complex_assignment): Update EH info.
3713
3714 2010-09-07 Richard Guenther <rguenther@suse.de>
3715
3716 PR middle-end/45569
3717 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3718 * passes.c (execute_function_todo): Do not verify anything if
3719 we saw errors.
3720
3721 2010-09-07 Richard Guenther <rguenther@suse.de>
3722
3723 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3724
3725 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
3726
3727 PR target/43137
3728 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3729 New define_mode_attrs.
3730 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3731 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3732 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3733 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3734 Remove pool_range attribute.
3735 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3736 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3737 pool_range and neg_pool_range attributes.
3738 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3739 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3740 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3741
3742 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
3743
3744 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3745 check glibc.
3746
3747 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
3748
3749 PR target/22152
3750 * config/i386/mmx.md (*mov<mode>_internal_rex64,
3751 *mov<mode>_internal_avx, *mov<mode>_internal,
3752 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3753 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3754
3755 2010-09-06 Mark Mitchell <mark@codesourcery.com>
3756
3757 * c-typeck.c (do_warn_double_promotion): Remove.
3758 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3759 Objective-C++ too.
3760
3761 2010-09-06 Anatoly Sokolov <aesok@post.ru>
3762
3763 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3764 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3765 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3766 argument type to reg_class_t. Change result type to bool.
3767 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3768
3769 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
3770
3771 PR libobjc/19850
3772 * gthr-posix.h (__gthread_objc_thread_detach): Use
3773 _objc_thread_attribs when detaching a thread.
3774 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3775
3776 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
3777
3778 PR target/45524
3779 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3780 * configure: Regenerated.
3781
3782 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3783
3784 * combine.c (try_combine): Set subst_low_luid to i0.
3785
3786 2010-09-06 Richard Guenther <rguenther@suse.de>
3787
3788 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3789 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3790 (build_aligned_type): Declare.
3791 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3792 (check_aligned_type): New function.
3793 (build_aligned_type): Likewise.
3794 * expr.c (expand_assignment): Handle misaligned stores via
3795 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3796 (expand_expr_real_1): Likewise.
3797 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3798 * tree-vect-stmts.c (vectorizable_store): Do not build
3799 MISALIGNED_INDIRECT_REF but initialize alignment information.
3800 (vectorizable_load): Likewise.
3801 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3802 handling.
3803 * cfgexpand.c (expand_debug_expr): Likewise.
3804 * dwarf2out.c (loc_list_from_tree): Likewise.
3805 * fold-const.c (maybe_lvalue_p): Likewise.
3806 (operand_equal_p): Likewise.
3807 (build_fold_addr_expr_with_type_loc): Likewise.
3808 * gimplify.c (gimplify_addr_expr): Likewise.
3809 (gimplify_expr): Likewise.
3810 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3811 (verify_gimple_assign_single): Likewise.
3812 * tree-dump.c (dequeue_and_dump): Likewise.
3813 (tree_could_trap_p): Likewise.
3814 * tree-predcom.c (ref_at_iteration): Likewise.
3815 * tree-pretty-print.c (dump_generic_node): Likewise.
3816 (op_code_prio): Likewise.
3817 (op_symbol_code): Likewise.
3818 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3819 * tree-ssa-loop-im.c (for_each_index): Likewise.
3820 (gen_lsm_tmp_name): Likewise.
3821 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3822 (find_interesting_uses_address): Likewise.
3823 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3824 * tree-ssa-operands.c (get_expr_operands): Likewise.
3825 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3826 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3827 (ao_ref_init_from_vn_reference): Likewise.
3828 * tree.c (staticp): Likewise.
3829 (build1_stat): Likewise.
3830 (reference_alias_ptr_type): Likewise.
3831 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3832 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3833 MISALIGNED_INDIRECT_REF handling.
3834
3835 2010-09-06 Richard Guenther <rguenther@suse.de>
3836
3837 PR tree-optimization/45534
3838 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
3839 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
3840 on the target.
3841 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
3842 valid on the target.
3843
3844 2010-09-06 Andreas Schwab <schwab@redhat.com>
3845
3846 * configure.ac: Quote argument of AC_MSG_WARN.
3847 * configure: Regenerate.
3848
3849 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
3850
3851 * sel-sched.c (move_cond_jump): Correct arguments to
3852 maybe_tidy_empty_bb.
3853 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
3854
3855 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
3856
3857 PR rtl-optimization/44919
3858 * sel-sched.c (move_cond_jump): Remove assert, check that
3859 the several blocks case can only happen with mutually exclusive
3860 insns instead. Rewrite the movement code to support moving through
3861 several basic blocks.
3862
3863 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
3864
3865 * config/i386/i386.md (iptrsize): New mode attribute.
3866 (tp_seg): Ditto.
3867 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
3868 mode iterator.
3869 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
3870 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
3871 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
3872 (stack_tls_protect_set_<mode>): Ditto from
3873 stack_tls_protect_set_{si,di}. Use %@ to output segment register
3874 of thread base pointer load.
3875 (stack_tls_protect_test_<mode>): Ditto from
3876 stack_tls_protect_test_{si,di}. Use %@ to output segment register
3877 of thread base pointer load.
3878 (stack_protect_set): Rewrite using indirect functions.
3879 (stack_protect_test): Ditto.
3880 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
3881 (ix86_print_operand): Handle '@'.
3882
3883 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
3884
3885 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
3886 MINUS_EXPR.
3887
3888 2010-09-05 Mark Mitchell <mark@codesourcery.com>
3889
3890 * doc/invoke.texi: Document -Wdouble-promotion.
3891 * c-typeck.c (convert_arguments): Check for implicit conversions
3892 from float to double.
3893 (do_warn_double_promotion): New function.
3894 (build_conditional_expr): Use it.
3895 (build_binary_op): Likewise.
3896
3897 2010-09-05 Richard Guenther <rguenther@suse.de>
3898
3899 PR tree-optimization/45535
3900 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3901 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
3902 dereferencing it.
3903 (indirect_refs_may_alias_p): Likewise.
3904
3905 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
3906
3907 * config/sh/sh.c (sh_option_override): Make static.
3908 Adjust comments. Declare.
3909 (sh_function_value_regno_p): Likewise.
3910 (sh_register_move_cost): Modify the arguments, make static.
3911 Adjust comments. Declare.
3912 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
3913 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3914 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
3915 REGISTER_MOVE_COST): Delete.
3916 * config/sh/sh-protos.h (sh_override_options): Delete.
3917 (sh_register_move_cost): Delete.
3918 (sh_function_value_regno_p): Delete.
3919
3920 2010-09-04 Anatoly Sokolov <aesok@post.ru>
3921
3922 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
3923 m32r_function_value_regno_p): New functions.
3924 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3925 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
3926 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
3927 FUNCTION_VALUE_REGNO_P): Remove.
3928
3929 2010-09-04 Jan Hubicka <jh@suse.cz>
3930
3931 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
3932 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
3933 fold_read_from_constant_string.
3934
3935 * gimple.h (canonicalize_constructor_val): Declare.
3936 * gimple-fold.c (canonicalize_constructor_val): New function.
3937 (get_symbol_constant_value):Use it.
3938 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3939
3940 2010-09-04 Jan Hubicka <jh@suse.cz>
3941
3942 * tree-switch-conversion.c (build_one_array): Set constructor to be
3943 static.
3944 * varpool.c (varpool_finalize_decl): Compute const_value_known.
3945
3946 2010-09-04 Richard Guenther <rguenther@suse.de>
3947
3948 PR bootstrap/45519
3949 * tree-flow.h (force_gimple_operand_1): Declare.
3950 (force_gimple_operand_gsi_1): Likewise.
3951 * gimplify.c (force_gimple_operand_1): New worker taking a
3952 gimple predicate for ...
3953 (force_gimple_operand): ... which now wraps it.
3954 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
3955 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
3956 last change.
3957 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
3958 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
3959 (create_mem_ref): Likewise.
3960
3961 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
3962
3963 * config/i386/predicates.md (sse_reg_operand): New predicate.
3964 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
3965 predicate for operand 1.
3966 (XFmode push splitter): Use fp_register_operand predicate
3967 for operand 1.
3968 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
3969 (SF-DF float_extend push splitter): Add reload_completed insn
3970 predicate.
3971 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
3972 MODEF mode macro. Add reload_completed insn predicate.
3973
3974 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
3975
3976 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
3977 (struct df_extract_ref): Remove.
3978 (union df_ref_d): Remove extract_ref member.
3979 (df_ref_create): Remove last three arguments.
3980 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
3981 * df-scan.c (df_ref_record): Remove last three arguments, do not
3982 pass them to df_ref_create_structure.
3983 (df_uses_record): Remove first and last three arguments. Replace
3984 first argument with DF_REF_REGULAR, adjust calls to remove the
3985 width, offset and mode. Always call recursively on the second
3986 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
3987 (df_ref_create_structure): Remove first argument.
3988 (struct df_scan_problem_data): Remove ref_extract_pool.
3989 (df_scan_free_internal): Do not free it.
3990 (df_scan_alloc): Do not allocate it.
3991 (df_ref_create): Remove last three arguments, do not pass them to
3992 df_ref_create_structure.
3993 (df_free_ref): Remove DF_REF_EXTRACT case.
3994 (df_notes_rescan): Adjust call to df_uses_record.
3995 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
3996 Remove DF_REF_EXTRACT case.
3997 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
3998 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
3999 and SUBREG definitions.
4000 (df_get_conditional_uses): Remove references to width/offset/mode,
4001 adjust call to df_ref_create_structure.
4002 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
4003 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
4004 calls to df_uses_record and df_ref_record.
4005 * fwprop.c (update_df): Remove references to width/offset/mode,
4006 adjust call to df_ref_create.
4007
4008 2010-09-03 Jan Hubicka <jh@suse.cz>
4009
4010 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
4011 (build_cdtor_fns): Update use of build_cdtor.
4012
4013 2010-09-03 Joseph Myers <joseph@codesourcery.com>
4014
4015 * doc/options.texi (SeparateAlias): Document.
4016 * opt-functions.awk (switch_flags): Handle SeparateAlias.
4017 * opth-gen.awk: Generate enumeration names for options marked
4018 SeparateAlias, but not for those marked Ignore.
4019 * opts-common.c (generate_canonical_option): Don't output separate
4020 argument for options marked CL_SEPARATE_ALIAS.
4021 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
4022 * opts.h (CL_SEPARATE_ALIAS): New.
4023 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
4024 CL_COMMON): Adjust definitions.
4025 * config/i386/darwin.opt, config/mips/sde.opt: New.
4026 * common.opt (fdump-final-insns): New.
4027 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4028 i386/darwin.opt.
4029 (mips*-sde-elf*): Add mips/sde.opt.
4030 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
4031 -mno-data-in-code and -mcode-xonly here.
4032 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
4033 * gcc.c (option_map): Add "j" to --dump entry.
4034 (translate_options): Don't translate -d to -foutput-class-dir= here.
4035
4036 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
4037
4038 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
4039 DR_IS_WRITE.
4040 (compute_all_dependences): Same.
4041 (create_rdg_edge_for_ddr): Same.
4042 * tree-data-ref.h (DR_IS_WRITE): New.
4043 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
4044 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
4045 (write_memrefs_written_at_least_once): Same.
4046 * tree-predcom.c (suitable_component_p): Same.
4047 (determine_roots_comp): Same.
4048 (execute_load_motion): Same.
4049 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
4050 (vect_enhance_data_refs_alignment): Same.
4051 (vect_analyze_group_access): Same.
4052
4053 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
4054
4055 PR testsuite/42843
4056 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
4057 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
4058
4059 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
4060
4061 * dwarf2out.c (file scope): Remove #if0'd code.
4062 (gen_subprogram_die): Same.
4063
4064 2010-09-03 Jakub Jelinek <jakub@redhat.com>
4065
4066 PR middle-end/45484
4067 * dwarf2out.c (flush_queued_reg_saves): Rename to...
4068 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
4069 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
4070 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
4071 * config/i386/i386.c (output_set_got): Call it.
4072
4073 2010-09-03 Michael Matz <matz@suse.de>
4074
4075 PR middle-end/45415
4076 * tree-sra.c (sra_modify_assign): If we modify the statement,
4077 say so.
4078
4079 * tree-ssa.c (verify_ssa): Check number of operands and links
4080 per statement to agree.
4081
4082 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
4083 Iain Sandoe <iains@gcc.gnu.org>
4084
4085 PR target/45476
4086 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
4087 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
4088 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4089
4090 2010-09-03 Richard Guenther <rguenther@suse.de>
4091
4092 * lto-streamer-out.c (output_function): Output function
4093 start and end loci.
4094 * lto-streamer-in.c (input_function): Input function start
4095 and end loci.
4096
4097 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4098
4099 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
4100 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
4101 * configure: Regenerate.
4102 * aclocal.m4: Regenerate.
4103
4104 2010-09-03 Jan Hubicka <jh@suse.cz>
4105
4106 PR lto/44812
4107 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
4108 on functions/variables in other partition.
4109
4110 2010-09-03 Jan Hubicka <jh@suse.cz>
4111
4112 * cgraph.h (struct varpool_node): Add const_value_known.
4113 (varpool_decide_const_value_known): Declare.
4114 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
4115 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
4116 (input_varpool_node): Restore const_value_known.
4117 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
4118 initializer folding.
4119 * ipa.c (ipa_discover_readonly_nonaddressable_var,
4120 function_and_variable_visibility): Compute const_value_known.
4121 * gimple-fold.c (get_symbol_constant_value): Use varpool for
4122 initializer folding.
4123 * varpool.c (varpool_decide_const_value_known): New function.
4124
4125 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
4126
4127 * config/i386/i386.md: Remove empty preparation statements
4128 from splitters.
4129
4130 2010-09-03 Jan Hubicka <jh@suse.cz>
4131
4132 * passes.c (rest_of_decl_compilation): Do not add local vars into
4133 varpool.
4134 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
4135 static or extern vars are in varpool.
4136 (varpool_finalize_decl): Sanity check that only static vars are
4137 finalized.
4138
4139 2010-09-03 Jakub Jelinek <jakub@redhat.com>
4140
4141 PR debug/45500
4142 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
4143 not just generic vectors with BLKmode.
4144
4145 2010-09-03 Richard Guenther <rguenther@suse.de>
4146
4147 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
4148 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
4149 * tree.h (TMR_SYMBOL): Remove.
4150 (TMR_BASE, TMR_OFFSET): Adjust.
4151 (TMR_INDEX2): New.
4152 * alias.c (ao_ref_from_mem): Use TMR_BASE.
4153 * builtins.c (get_object_alignment): Merge TMR_BASE and
4154 TMR_SYMBOL handling.
4155 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
4156 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
4157 handling. Also allow TARGET_MEM_REF as base address.
4158 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
4159 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
4160 base. Gimplify TMR_INDEX2.
4161 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
4162 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4163 (get_addr_base_and_unit_offset): Likewise.
4164 * tree-eh.c (tree_could_trap_p): Likewise.
4165 * tree-pretty-print.c (dump_generic_node): Likewise.
4166 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
4167 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
4168 base to index2.
4169 (get_address_description): Reconstruct addres description
4170 from merged TMR_BASE and TMR_INDEX2.
4171 (maybe_fold_tmr): Fold propagated addresses.
4172 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
4173 MEM_REF and TARGET_MEM_REF paths.
4174 (indirect_refs_may_alias_p): Likewise.
4175 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
4176 instead of TMR_SYMBOL.
4177 * tree-ssa-operands.c (get_tmr_operands): Simplify.
4178 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
4179 according to changes ...
4180 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
4181 Split TARGET_MEM_REF into two fields plus the base.
4182 * tree.c (mem_ref_offset): Simplify.
4183 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
4184 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
4185 Strip NOPs when folding MEM_REF addresses.
4186 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
4187 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
4188 (fold_gimple_assign): ... not here.
4189
4190 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
4191
4192 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
4193 * config/mips/mips.c (mips_shift_truncation_mask): New function.
4194 (TARGET_SHIFT_TRUNCATION_MASK): Define.
4195
4196 2010-09-02 Richard Henderson <rth@redhat.com>
4197
4198 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
4199 instead of readelf in the test.
4200 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
4201 in the .debug_frame section for coff targets.
4202 * configure: Rebuild.
4203
4204 2010-09-02 Anatoly Sokolov <aesok@post.ru>
4205
4206 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
4207 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
4208 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4209 (m32c_class_likely_spilled_p): Make static. Change argument type to
4210 reg_class_t. Change result type to bool.
4211
4212 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4213
4214 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
4215 to convert (double)(long) into a single FRIZ instruction or not
4216 when -ffast-math is used.
4217
4218 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
4219 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
4220 or FRIZ instruction if -ffast-math.
4221 * config/rs6000/rs6000.md (friz): Ditto.
4222
4223 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
4224
4225 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4226
4227 * opth-gen.awk (quote, comma): Remove unused variables.
4228
4229 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
4230
4231 * arm.c (arm_override_options): Correct fall-back code to use
4232 SUBTARGET_CPU_DEFAULT.
4233
4234 2010-09-02 Julian Brown <julian@codesourcery.com>
4235
4236 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
4237 unspecs.
4238 (vcond<mode>, vcondu<mode>): New expanders.
4239 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
4240 comparisons with zero.
4241 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
4242 * config/arm/constraints.md (Dz): New constraint.
4243
4244 2010-09-02 Anatoly Sokolov <aesok@post.ru>
4245
4246 * target.def (class_likely_spilled_p): New hook.
4247 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
4248 * doc/tm.texi: Regenerate.
4249 * targhooks.c (default_class_likely_spilled_p): New function.
4250 * targhooks.h (default_class_likely_spilled_p): Declare.
4251 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
4252 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
4253 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
4254 Use fixed_reg_set instead of fixed_regs.
4255 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4256 * calls.c (avoid_likely_spilled_reg): Ditto.
4257 * ira-conflicts.c (ira_build_conflicts): Ditto.
4258 * ira.c (update_equiv_regs): Ditto.
4259 * mode-switching.c (create_pre_exit): Ditto.
4260 * regmove.c (find_matches): Ditto.
4261 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4262 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
4263 (small_register_class_p): New inline function.
4264 (push_secondary_reload, find_reusable_reload, find_reloads): Use
4265 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
4266
4267 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
4268 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
4269 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4270
4271 2010-09-02 Richard Guenther <rguenther@suse.de>
4272
4273 PR tree-optimization/44937
4274 PR tree-optimization/45412
4275 * ipa-split.c (split_function): Properly remove PHI nodes.
4276
4277 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4278
4279 * opts.h (struct cl_option): Add warn_message field.
4280 (struct cl_decoded_option): Add warn_message field.
4281 * doc/options.texi (Ignore, Warn): Document.
4282 * opt-functions.awk (needs_state_p): Don't consider aliases or
4283 ignored options to need state saved.
4284 * optc-gen.awk: Handle Warn and Ignore.
4285 * opth-gen.awk: Output OPT_SPECIAL_ignore.
4286 * opts-common.c (decode_cmdline_option): Set warn_message field.
4287 Handle ignored options.
4288 (decode_cmdline_options_to_array, generate_option,
4289 generate_option_input_file): Set warn_message field.
4290 (read_cmdline_option): Generate warnings from warn_message field.
4291 Handle ignored options.
4292 * common.opt (Wunreachable-code, fargument-alias,
4293 fargument-noalias, fargument-noalias-global,
4294 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
4295 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
4296 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
4297 ftree-salias): Mark Ignore.
4298 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
4299 -mintel-syntax and -mno-intel-syntax here.
4300 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
4301 using Warn.
4302 * opts.c (common_handle_option): Don't handle options marked as
4303 ignored.
4304 (enable_warning_as_error): Handle ignored options.
4305
4306 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4307
4308 PR driver/44076
4309 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
4310 alias_target fields.
4311 * opt-functions.awk (opt_sanitized_name): Don't handle
4312 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
4313 * optc-gen.awk: Generate alias fields.
4314 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
4315 Don't generate such constants for aliases.
4316 * opts-common.c (generate_canonical_option): New.
4317 (decode_cmdline_option): Handle aliases. Use
4318 generate_canonical_option for known options instead of copying the
4319 input option text.
4320 * doc/options.texi (Alias): Document.
4321 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
4322 fstack-check, specs): Mark as aliases.
4323 * gcc.c (driver_handle_option): Canonicalize -L options to joined
4324 arguments.
4325 (driver_handle_option): Don't handle OPT_specs.
4326 * opts.c (common_handle_option): Don't handle options marked as
4327 aliases.
4328 (enable_warning_as_error): Handle aliases.
4329 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
4330 OPT_Wlarger_than_eq.
4331 * tree-optimize.c (tree_rest_of_compilation): Use
4332 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
4333
4334 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
4335
4336 * config/i386/i386.md (nonmemory_operand): New mode attribute.
4337 (push memory peephole2): Macroize peepholes using SWI mode iterator.
4338 (move immediate to memory peephole2): Macroize peepholes using
4339 SWI124 mode iterator.
4340 (non-pairable NOT peephole2): Macroize peepholes using SWI124
4341 mode iterator.
4342 (simple lea add peephole2): Macroize peepholes using SWI48
4343 mode iterator.
4344 (simple lea mult peephole2): Ditto.
4345 (imul by 3,5,9 to lea peephole2): Ditto.
4346 (mov $-1, reg peephole2): Macroize peepholes using SWI248
4347 mode iterator.
4348 (imul $32bit_imm,mem,reg peephole2): Ditto.
4349 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
4350
4351 2010-09-02 Ian Bolton <ian.bolton@arm.com>
4352
4353 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
4354
4355 2010-09-02 Olivier Hainque <hainque@adacore.com>
4356
4357 PR middle-end/44763
4358 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
4359 (allocno_priority_compare_func): Use it instead of a straight
4360 difference computation over priorities.
4361
4362 2010-09-02 Andi Kleen <ak@linux.intel.com>
4363
4364 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
4365
4366 2010-09-02 Ira Rosen <irar@il.ibm.com>
4367
4368 * tree-vectorizer.h (get_later_stmt): New function.
4369 (vect_analyze_data_ref_dependences): Add argument.
4370 * tree-vect-loop.c (vect_analyze_loop): Update call to
4371 vect_analyze_data_ref_dependences.
4372 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
4373 New function.
4374 (vect_analyze_data_ref_dependence): Add argument for basic block
4375 dependencies. Check dependencies in basic block vectorization.
4376 (vect_analyze_data_ref_dependences): Add argument and update call to
4377 vect_analyze_data_ref_dependences.
4378 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
4379 (vect_bb_vectorizable_with_dependencies): New.
4380 (vect_slp_analyze_bb): Check dependencies in basic block.
4381 (vect_schedule_slp_instance): Insert stores before the last store in
4382 SLP instance.
4383
4384 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
4385
4386 PR target/45476
4387 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
4388 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4389
4390 2010-09-01 Jakub Jelinek <jakub@redhat.com>
4391
4392 PR middle-end/45458
4393 * bb-reorder.c (add_labels_and_missing_jumps): Treat
4394 bbs ending with throwing insns like blocks ending with a call.
4395 (fix_up_fall_thru_edges): Likewise.
4396
4397 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
4398
4399 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
4400 (m32c_function_arg_advance): Delete.
4401 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4402 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
4403 comments. Take a const_tree and a bool. Declare.
4404 (m32c_function_arg_advance): Likewise.
4405 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4406
4407 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
4408
4409 PR target/45476
4410 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
4411 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
4412 * config/i386/mingw32.h: ... here.
4413
4414 2010-09-01 Andi Kleen <ak@linux.intel.com>
4415
4416 PR lto/45475
4417 * lto-streamer-in.c (lto_input_ts_target_option): Add.
4418 (lto_input_tree_pointers): Call lto_input_ts_target_option.
4419 * lto-streamer-out (lto_output_ts_target_option): Add.
4420 (lto_output_tree_pointers): Call lto_output_ts_target_option.
4421
4422 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
4423
4424 PR/target 45452
4425 * config/i386/cygwin.h: Change order of specified import libraries.
4426 * config/i386/mingw32.h: Likewise.
4427 * config/i386/t-cygwin: Likewise.
4428 * config/i386/t-mingw32: Likewise.
4429 * config/i386/t-mingw-w32: Likewise.
4430 * config/i386/t-mingw-w64: Likewise.
4431
4432 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4433
4434 * config/arm/neon-schedgen.ml (core): New type.
4435 (allCores): List of supported cores.
4436 (availability_table): Add supported cores.
4437 (collate_bypasses): Accept core as a parameter.
4438 (worst_case_latencies_and_bypasses): Accept core as a parameter.
4439 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
4440 and coreStr to get tune attribute and prefix for functional units.
4441 (emit_bypasses): Accept core name and use it.
4442 (calculate_per_core_availability_table): New.
4443 (filter_core): New.
4444 (calculate_core_availability_table): New.
4445 (main): Use calculate_core_availablity_table.
4446 * config/arm/cortex-a8-neon.md: Update copyright year.
4447 Regenerated from ml file and merged in.
4448 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
4449 cortex_a8_neon_mrc.
4450
4451 2010-09-01 Ian Bolton <ian.bolton@arm.com>
4452
4453 * Makefile.in (tree-switch-conversion.o): Update dependencies.
4454
4455 2010-09-01 Richard Guenther <rguenther@suse.de>
4456
4457 * alias.c (ao_ref_from_mem): Adjust.
4458 * builtins.c (get_object_alignment): Likewise.
4459 * cfgexpand.c (expand_debug_expr): Likewise.
4460 * gimple.c (get_base_address): Likewise.
4461 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4462 (get_addr_base_and_unit_offset): Likewise. Fix for
4463 both TMR_SYMBOL and TMR_BASE being set.
4464 * tree-eh.c (tree_could_trap_p): Likewise.
4465 * gimplify.c (gimplify_expr): Do not attempt to gimplify
4466 TMR_SYMBOL. Always gimplify TMR_BASE.
4467 * tree-cfg.c (verify_types_in_gimple_reference): Verify
4468 TMR_BASE if there is a TMR_SYMBOL.
4469 * tree-pretty-print.c (dump_generic_node): Adjust.
4470 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
4471 (tree_mem_ref_addr): Likewise.
4472 (create_mem_ref_raw): Likewise.
4473 (move_fixed_address_to_symbol): Likewise.
4474 (create_mem_ref): Likewise.
4475 (dump_mem_address): Likewise.
4476 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
4477 Fix for both TMR_SYMBOL and TMR_BASE being set.
4478 (indirect_refs_may_alias_p): Likewise.
4479 * tree-ssa-operands.c (get_tmr_operands): Adjust.
4480 * tree.def (TARGET_MEM_REF): Adjust documentation.
4481
4482 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
4483
4484 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
4485 Rename from X86_TUNE_ADD_ESP_4.
4486 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
4487 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
4488 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
4489 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
4490 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
4491 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
4492 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
4493 * config/i386/i386.c (initial_ix86_tune_features)
4494 <X86_TUNE_SINGLE_POP>: Invert members.
4495 <X86_TUNE_DOUBLE_POP>: Ditto.
4496 <X86_TUNE_SINGLE_PUSH>: Ditto.
4497 <X86_TUNE_DOUBLE_PUSH>: Ditto.
4498 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
4499 No longer exported.
4500 (push peephole2 patterns): Macroize peepholes using P mode iterator.
4501 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
4502 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
4503 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
4504
4505 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
4506
4507 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
4508 a volatile LHS if the constructor has only one element.
4509
4510 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
4511
4512 PR bootstrap/45321
4513 * tree.c (stdarg_p): Make fntype parameter const.
4514 * tree.h (stdarg_p): Likewise.
4515 (function_args_iterator): Remove unused fntype field.
4516 (function_args_iter_init): Do not initialize fntype
4517 field. Make fntype parameter const.
4518
4519 2010-09-01 Richard Guenther <rguenther@suse.de>
4520
4521 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
4522 estimate.
4523 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
4524 (execute_vrp): Compute number of iteration estimates.
4525 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
4526 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
4527 * tree-data-ref.c (estimated_loop_iterations): Adjust.
4528 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4529 Infer loop bounds from undefined behavior based on a new parameter.
4530 (estimate_numbers_of_iterations): Likewise.
4531 (scev_probably_wraps_p): Adjust.
4532 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
4533
4534 2010-09-01 Nick Clifton <nickc@redhat.com>
4535
4536 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
4537 where appropriate.
4538 (xstormy16_legitimate_address_p): Use true and false instead of 1
4539 and 0.
4540 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
4541 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
4542 magic constant 2.
4543 (xstormy16_expand_call): Fix comment at start of function.
4544
4545 2010-09-01 Nick Clifton <nickc@redhat.com>
4546
4547 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
4548 when pushing accumulator register.
4549 (rx_get_stack_layout): Always save call clobbered registers inside
4550 interrupt handlers.
4551 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
4552
4553 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
4554
4555 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
4556 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4557
4558 * libgcc-std.ver (GCC_4.6.0): Define version.
4559
4560 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
4561
4562 * tree-nested.c (convert_all_function_calls): Iterate until after the
4563 sum of static chains in the nest doesn't change.
4564
4565 2010-08-31 Anatoly Sokolov <aesok@post.ru>
4566
4567 * config/m32c/m32c.c (classes_intersect): Remove.
4568 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
4569 reg_classes_intersect_p instead of classes_intersect.
4570 (class_can_hold_mode): Change arguments type from enum reg_class to
4571 reg_class_t. Use reg_class_contents instead of class_contents.
4572 (m32c_register_move_cost): Make static. Change arguments type from
4573 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
4574 classes_intersect. Use reg_class_contents instead of class_contents.
4575 (m32c_memory_move_cost): Make static. Change arguments type from
4576 enum reg_class to reg_class_t.
4577 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4578 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4579 * config/m32c/m32c-protos.h (m32c_register_move_cost,
4580 m32c_memory_move_cost): Remove.
4581
4582 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4583
4584 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
4585 (arm_function_arg): Delete.
4586 (arm_needs_doubleword_align): Take a const_tree.
4587 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4588 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
4589 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
4590 (arm_function_arg): Make static. Take a const_tree and a bool.
4591 (arm_function_arg_advance): Likewise.
4592 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4593
4594 2010-08-31 Andi Kleen <ak@linux.intel.com>
4595
4596 * common.opt (fwhopr=): Update for -fwhopr=jobserver
4597 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
4598 * lto-wrapper.c (run_gcc): Add jobserver mode.
4599 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
4600 argument.
4601
4602 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
4603
4604 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
4605 (popsi1): Ditto.
4606 (*popdi1_epilogue): Ditto.
4607 (*popsi1_epilogue): Ditto.
4608 (popsi, popdi peephole2 patterns): Update peepholes for changed
4609 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
4610
4611 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
4612 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
4613
4614 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
4615 (override_options): Do not initialize removed ix86_gen_pop1.
4616 (gen_pop): New static function.
4617 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
4618 (release_scratch_register_on_entry): Ditto.
4619 (ix86_restore_reg_using_pop): Ditto.
4620 (ix86_expand_epilogue): Ditto.
4621
4622 2010-08-31 Jakub Jelinek <jakub@redhat.com>
4623
4624 PR middle-end/45461
4625 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
4626
4627 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4628
4629 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
4630 semicolons.
4631
4632 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4633
4634 * doc/extend.texi: Fix documentation of the return value of
4635 __builtin_choose_expr.
4636
4637 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4638
4639 * config/v850/v850-protos.h (function_arg): Delete.
4640 * config/v850/v850.h (FUNCTION_ARG): Delete.
4641 (FUNCTION_ARG_ADVANCE): Move code to...
4642 * config/v850/v850.c (v850_function_arg_advance): ...here.
4643 (v850_function_arg): Make static. Take a const_tree and a bool.
4644 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4645
4646 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4647
4648 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
4649 these...
4650 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4651 ...and these...
4652 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
4653 ..to here..
4654 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4655 ...and here.
4656 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4657
4658 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
4659
4660 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
4661 Delete.
4662 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4663 * config/rx/rx.c (rx_function_arg_size): Make static.
4664 (rx_function_arg): Likewise.
4665 (rx_function_arg_advance): New function.
4666 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4667
4668 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
4669
4670 * config/arm/arm.c (arm_override_options): Remove superfluous test.
4671 Fix indentation.
4672
4673 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
4674
4675 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4676 (dwarf2out_decl) <CONST_DECL>: Likewise.
4677
4678 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4679
4680 Stack usage support
4681 * common.opt (-fstack-usage): New option.
4682 * doc/invoke.texi (Debugging options): Document it.
4683 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4684 allocate_dynamic_stack_space.
4685 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4686 and propagate it to allocate_dynamic_stack_space.
4687 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4688 * calls.c (initialize_argument_information): Pass TRUE as 4th
4689 argument to allocate_dynamic_stack_space.
4690 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4691 to 1 when pushing a variable-sized argument onto the stack. Pass
4692 TRUE as 4th argument to allocate_dynamic_stack_space.
4693 Update current_function_pushed_stack_size.
4694 (emit_library_call_value_1): Likewise.
4695 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4696 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
4697 attempt to find an upper bound. Remove redundant code for the
4698 SETJMP_VIA_SAVE_AREA case.
4699 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4700 * function.h (struct stack_usage): New structure.
4701 (current_function_static_stack_size): New macro.
4702 (current_function_dynamic_stack_size): Likewise.
4703 (current_function_pushed_stack_size): Likewise.
4704 (current_function_dynamic_alloc_count): Likewise.
4705 (current_function_has_unbounded_dynamic_stack_size): Likewise.
4706 (current_function_allocates_dynamic_stack_space): Likewise.
4707 (struct function): Add new field 'su'.
4708 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4709 add the value of the dynamic offset to the dynamic stack usage.
4710 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4711 for variable-sized objects.
4712 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4713 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4714 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4715 BUILT_IN_ALLOCA for variable-sized objects.
4716 * output.h (output_stack_usage): Declare.
4717 * toplev.c (stack_usage_file): New file pointer.
4718 (output_stack_usage): New function.
4719 (open_auxiliary_file): Likewise.
4720 (lang_dependent_init): Open file if flag_stack_usage is set.
4721 (finalize): Close file if stack_usage_file is not null.
4722 * tree.h (ALLOCA_FOR_VAR_P): New macro.
4723 * config/alpha/alpha.c (compute_frame_size): New function.
4724 (alpha_expand_prologue): Use it.
4725 (alpha_start_function): Likewise.
4726 (alpha_expand_epilogue): Likewise. Set stack usage info.
4727 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4728 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4729 * config/mips/mips.c (mips_expand_prologue): Likewise.
4730 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4731 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4732 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4733
4734 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
4735
4736 PR tree-optimization/45427
4737 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4738 Handle the case that the exit is never taken correctly.
4739 (number_of_iterations_ne): Pass exit_must_be_taken to
4740 number_of_iterations_ne_max.
4741
4742 2010-08-30 Catherine Moore <clm@codesourcery.com>
4743
4744 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4745 Infer -mdspr2 for the the 74K.
4746
4747 2010-08-30 Jakub Jelinek <jakub@redhat.com>
4748
4749 PR debug/45419
4750 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4751
4752 PR middle-end/45423
4753 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4754 and TRUTH_{AND,OR,XOR}_EXPR.
4755 * c-parser.c (c_parser_omp_atomic): Handle boolean
4756 {PRE,POST}_{INC,DEC}REMENT.
4757
4758 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
4759
4760 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4761 (function_arg): Delete.
4762 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4763 (FUNCTION_INCOMING_ARG): Delete.
4764 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4765 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
4766 and a bool.
4767 (function_arg): Rename to...
4768 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
4769 a bool.
4770 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4771 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4772 (TARGET_FUNCTION_INCOMING_ARG): Define.
4773
4774 2010-08-30 Richard Guenther <rguenther@suse.de>
4775
4776 PR tree-optimization/21602
4777 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4778 using points-to information.
4779
4780 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
4781
4782 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4783
4784 2010-08-30 Richard Guenther <rguenther@suse.de>
4785
4786 PR tree-optimization/45449
4787 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4788 variables.
4789
4790 2010-08-30 Joseph Myers <joseph@codesourcery.com>
4791
4792 * opts.h (CL_ERR_NEGATIVE): Define.
4793 * opts.c (unknown_option_callback): Don't postpone warnings for
4794 options marked with CL_ERR_NEGATIVE.
4795 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4796 for negative versions of CL_REJECT_NEGATIVE options.
4797
4798 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
4799
4800 * config/i386/i386.md (zero_extendsidi2_1): Rename from
4801 zero_extendsidi2_32.
4802 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4803 using SWI12 mode iterator.
4804 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4805 to define_insn_and_split pattern.
4806 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4807 using SWI24 mode iterator.
4808 (*zero_extendqi<mode>2_and): Macroize insn from
4809 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4810 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4811 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4812 SWI24 mode iterator.
4813 (*zero_extendqi<mode>2_movzbl): Ditto from
4814 *zero_extendqi{hi,si}2_movzbl.
4815 (extendsidi2_1): Rename from extendsidi2_32.
4816 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4817 SWI12 mode iterator.
4818
4819 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
4820
4821 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4822 general purpose registers.
4823 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4824 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
4825 with general purpose registers and memory operands. Add associated
4826 CCImode post-reload splitter.
4827 * config/ia64/div.md: Change BImode to CCImode throughout.
4828
4829 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
4830
4831 * config/ia64/ia64.md (cstorebi4): Fix thinko.
4832
4833 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
4834
4835 * config/picochip/picochip.c (reorder_var_tracking_notes): This
4836 function was dropping debug insns which caused PR45299.
4837
4838 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
4839
4840 * config/i386/sse.md (extsuffix): New code attribute.
4841 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
4842 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
4843 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
4844 and sse4_1_zero_extendv4qiv4si2.
4845 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
4846 and sse4_1_zero_extendv2qiv2di2.
4847 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
4848 and sse4_1_zero_extendv4hiv4si2.
4849 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
4850 and sse4_1_zero_extendv2hiv2di2.
4851 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
4852 and sse4_1_zero_extendv2siv2di2
4853
4854 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
4855 using any_extend code iterator.
4856 (*avx_<s>mulv8hi3_highpart): Macroize insn from
4857 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
4858 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
4859
4860 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
4861 gen_sse4_1_sign_extend* functions.
4862 (struct builtin_description bdesc_args): Ditto.
4863
4864 2010-08-27 Xinliang David Li <davidxl@google.com>
4865
4866 PR/45422
4867 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
4868 (iv_ca_set_no_cp): Update used inv expr count.
4869 (iv_ca_set_cp): Ditto.
4870 (iv_ca_new): Initialize new member.
4871 (iv_ca_free): Free memory.
4872
4873 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
4874
4875 * config/sh/sh-protos.h (sh_function_arg): Delete.
4876 (sh_function_arg_advance): Delete.
4877 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4878 (PASS_IN_REG_P): Eliminate cast.
4879 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
4880 const_tree and a bool.
4881 (sh_function_arg): Likewise.
4882 (sh_output_mi_thunk): Call sh_function_arg_advance) and
4883 sh_function_arg.
4884 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4885
4886 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
4887 Kaz Kojima <kkojima@gcc.gnu.org>
4888
4889 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
4890 when possible.
4891 (sh_expand_epilogue): Likewise.
4892 * config/sh/sh.md (movml_push_banked): New insn.
4893 (movml_pop_banked): Likewise.
4894
4895 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
4896
4897 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
4898 gen_regexp_oneof, gen_regexp_sequence): Use the string found
4899 in vector element 0 rather than the original string when there's
4900 only one element.
4901 (gen_regexp): Remove extra semicolon.
4902
4903 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
4904 thumb2_movsf_vfp): Set attribute "insn".
4905 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
4906 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
4907 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
4908 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
4909 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
4910 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
4911 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
4912 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
4913 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
4914 if_not_arith, if_arith_not, cond_move_not): Likewise.
4915
4916 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4917
4918 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
4919 New declaration.
4920 (rs6000_allocate_stack_temp): Ditto.
4921 (rs6000_expand_convert_si_to_sfdf): Ditto.
4922
4923 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
4924 line. Update the options set if power6 or power7 server/embedded
4925 type options are used. If we give a warning for no vsx under
4926 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
4927 (rs6000_allocate_stack_temp): New function to allocate a stack
4928 tempoary and adjust the address so it meets either REG+OFFSET or
4929 REG+REG addressing requirements.
4930 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
4931 that they can be used with the LFIWAX/LFIWZX instrucitons.
4932 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
4933 converting signed/unsigned SImode to either SFmode/DFmode.
4934
4935 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
4936 whether certain instructions can be generated.
4937 (TARGET_FCTIDZ): Ditto.
4938 (TARGET_STFIWX): Ditto.
4939 (TARGET_LFIWAX): Ditto.
4940 (TARGET_LFIWZX): Ditto.
4941 (TARGET_FCFIDS): Ditto.
4942 (TARGET_FCFIDU): Ditto.
4943 (TARGET_FCFIDUS): Ditto.
4944 (TARGET_FCTIDUZ): Ditto.
4945 (TARGET_FCTIWUZ): Ditto.
4946
4947 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
4948 (UNSPEC_FCTID): Ditto.
4949 (UNSPEC_LFIWAX): Ditto.
4950 (UNSPEC_LFIWZX): Ditto.
4951 (UNSPEC_FCTIWUZ): Ditto.
4952 (rreg): Use correct constraints.
4953 (SI_CONVERT_FP): New mode attribute for floating point conversion
4954 tests.
4955 (E500_CONVERT): Ditto.
4956 (lfiwax): New insns for converting from integer to floating point
4957 utilizing newer instructions. Attempt to optimize conversions
4958 that come from memory so that we don't load the value into a GPR,
4959 spill it to the stack and reload it into a FPR.
4960 (floatsi<mode>2_lfiwax): Ditto.
4961 (floatsi<mode>2_lfiwax_mem): Ditto.
4962 (floatsi<mode>2_lfiwax_mem2): Ditto.
4963 (lfiwzx): Ditto.
4964 (floatunssi<mode>2_lfiwzx): Ditto.
4965 (floatunssi<mode>2_lfiwzx_mem): Ditto.
4966 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4967 (floatdidf2_mem): Ditto.
4968 (floatunsdidf2_fcfidu): Ditto.
4969 (floatunsdidf2_mem): Ditto.
4970 (floatunsdisf2): Ditto.
4971 (floatunsdisf2_fcfidus): Ditto.
4972 (floatunsdisf2_mem): Ditto.
4973 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
4974 Use FCFID on 32-bit hosts that support it.
4975 (floatsidf2_internal): Ditto.
4976 (floatunssisf2): Ditto.
4977 (floatunssidf2): Ditto.
4978 (floatunssidf2_internal): Ditto.
4979 (floatsisf2): Ditto.
4980 (floatdidf2): Ditto.
4981 (floatdidf2_fpr): Ditto.
4982 (floatunsdidf2): Ditto.
4983 (floatdisf2): Ditto.
4984 (floatdisf2_fcfids): Ditto.
4985 (floatdisf2_internal1): Ditto.
4986 (fixuns_truncsfsi2): Delete, merge into common pattern for both
4987 SF/DF. Add power7 support.
4988 (fix_truncsfsi2): Ditto.
4989 (fixuns_truncdfsi2): Ditto.
4990 (fixuns_truncdfdi2): Ditto.
4991 (fix_truncdfsi2): Ditto.
4992 (fix_truncdfsi2_internal): Ditto.
4993 (fix_truncdfsi2_internal_gfxopt): Ditto.
4994 (fix_truncdfsi2_mfpgpr): Ditto.
4995 (fctiwz): Ditto.
4996 (btruncdf2): Ditto.
4997 (btruncdf2_fpr): Ditto.
4998 (btructsf2): Ditto.
4999 (ceildf2): Ditto.
5000 (ceildf2_fpr): Ditto.
5001 (ceilsf2): Ditto.
5002 (floordf2): Ditto.
5003 (floordf2_fpr): Ditto.
5004 (floorsf2): Ditto.
5005 (rounddf2): Ditto.
5006 (rounddf2_fpr): Ditto.
5007 (roundsf2): Ditto.
5008 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
5009 (fix_trunc<mode>di2): Ditto.
5010 (fixuns_trunc<mode>si2): Ditto.
5011 (fixuns_trunc<mode>di2): Ditto.
5012 (fctiwz_<mode>): Ditto.
5013 (btrunc<mode>2): Ditto.
5014 (btrunc<mode>2_fpr): Ditto.
5015 (ceil<mode>2): Ditto.
5016 (ceil<mode>2_fpr): Ditto.
5017 (floor<mode>2): Ditto.
5018 (float<mode>2_fpr): Ditto.
5019 (round<mode>2): Ditto.
5020 (round<mode>2_fpr): Ditto.
5021 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
5022 (fixuns_trunc<mode>si2_stfiwx): Ditto.
5023 (fix_truncdfsi2_internal): Ditto.
5024 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
5025 converted value on stack, loaded into GPR, and then stored into
5026 the final destination.
5027 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
5028 FCTIDZ.
5029 (lrint<mode>di2): New insn, provide the lrint builtin functions.
5030 (ftruncdf2): Delete, unused.
5031 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
5032
5033 * config/rs6000/vsx.md (toplevel): Update copyright year.
5034 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
5035 (VSr3): Ditto.
5036
5037 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
5038 Jeremie Salvucci <jeremie.salvucci@free.fr>
5039
5040 * gengtype.c (output_type_enum): Test the right union member.
5041
5042 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
5043
5044 PR target/41484
5045 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
5046 operands for operand 1.
5047 (sse4_1_extendv4qiv4si2): Ditto.
5048 (sse4_1_extendv2qiv2di2): Ditto.
5049 (sse4_1_extendv4hiv4si2): Ditto.
5050 (sse4_1_extendv2hiv2di2): Ditto.
5051 (sse4_1_extendv2siv2di2): Ditto.
5052 (sse4_1_zero_extendv8qiv8hi2): Ditto.
5053 (sse4_1_zero_extendv4qiv4si2): Ditto.
5054 (sse4_1_zero_extendv2qiv2di2): Ditto.
5055 (sse4_1_zero_extendv4hiv4si2): Ditto.
5056 (sse4_1_zero_extendv2hiv2di2): Ditto.
5057 (sse4_1_zero_extendv2siv2di2): Ditto.
5058 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
5059 (*sse4_1_extendv4qiv4si2): Ditto.
5060 (*sse4_1_extendv2qiv2di2): Ditto.
5061 (*sse4_1_extendv4hiv4si2): Ditto.
5062 (*sse4_1_extendv2hiv2di2): Ditto.
5063 (*sse4_1_extendv2siv2di2): Ditto.
5064 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
5065 (*sse4_1_zero_extendv4qiv4si2): Ditto.
5066 (*sse4_1_zero_extendv2qiv2di2): Ditto.
5067 (*sse4_1_zero_extendv4hiv4si2): Ditto.
5068 (*sse4_1_zero_extendv2hiv2di2): Ditto.
5069 (*sse4_1_zero_extendv2siv2di2): Ditto.
5070
5071 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
5072
5073 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
5074 (mips_function_arg): Delete.
5075 (mips_function_arg_boundary): Take a const_tree.
5076 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
5077 (mips_arg_info): Likewise.
5078 (mips_setup_incoming_varargs): Call mips_function_arg_advance
5079 instead of FUNCTION_ARG_ADVANCE.
5080 (mips_function_arg_advance): Adjust prototype. Make static.
5081 (mips_function_arg): Likewise.
5082 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5083 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
5084
5085 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
5086
5087 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5088 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
5089 (function_arg): Delete.
5090 (function_arg_boundary): Take a const_tree.
5091 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
5092 (rs6000_spe_function_arg): Likewise.
5093 (rs6000_parm_start): Likewise.
5094 (rs6000_arg_size): Likewise.
5095 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
5096 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
5097 (rs6000_mixed_function_arg): Likewise.
5098 (function_arg): Rename to...
5099 (rs6000_function_arg): ...this.
5100 (function_arg_advance): Rename to...
5101 (rs6000_function_arg_advance_1): ...this
5102 (rs6000_function_arg_advance): New function. Call it.
5103 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
5104 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
5105 (rs6000_function_value): Likewise.
5106 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5107
5108 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5109
5110 * config/arm/arm.md (enabled): Test the value of arch_enabled
5111 rather than just using it.
5112
5113 2010-08-27 Olivier Hainque <hainque@adacore.com>
5114 Eric Botcazou <ebotcazou@adacore.com>
5115
5116 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
5117 cover all the possible offsets from this base.
5118 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
5119
5120 2010-08-26 Jakub Jelinek <jakub@redhat.com>
5121
5122 PR tree-optimization/44485
5123 * calls.c (flags_from_decl_or_type): For const or pure
5124 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
5125 together with ECF_CONST resp. ECF_PURE.
5126 * builtins.c (expand_builtin): Use flags_from_decl_or_type
5127 instead of querying flags directly.
5128 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
5129 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
5130
5131 2010-08-26 Richard Guenther <rguenther@suse.de>
5132
5133 PR tree-optimization/45255
5134 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
5135 and externals are also invariant.
5136
5137 2010-08-25 Jakub Jelinek <jakub@redhat.com>
5138
5139 PR rtl-optimization/44858
5140 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
5141 newi2pat, make sure they don't affect newpat.
5142
5143 PR rtl-optimization/45400
5144 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
5145 SUBREG_REG if both modes are of MODE_INT class.
5146
5147 2010-08-25 Julian Brown <julian@codesourcery.com>
5148
5149 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
5150 * config/arm/arm.md (generic_sched): No for Cortex-A5.
5151 (generic_vfp): Likewise.
5152 (cortex-a5.md): Include.
5153 * config/arm/cortex-a5.md: New.
5154
5155 2010-08-25 Richard Guenther <rguenther@suse.de>
5156
5157 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
5158 * gimple.c (gimple_get_alias_set): Remove special handling
5159 for pointers.
5160
5161 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
5162
5163 PR middle-end/45355
5164 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
5165 dead_or_set_p when computing i0_feeds_i2_n.
5166
5167 * combine.c (find_split_point): Undo canonicalization of multiply-add
5168 to (minus x (mult)) when it seems likely that this will increase the
5169 chances of a split.
5170
5171 2010-08-25 Richard Guenther <rguenther@suse.de>
5172
5173 PR lto/44562
5174 * lto-streamer.c (lto_record_common_node): Do not mess with
5175 TYPE_CANONICAL when not in lto.
5176 * gimple.c (gimple_register_type): Likewise.
5177
5178 2010-08-25 Richard Guenther <rguenther@suse.de>
5179
5180 PR tree-optimization/45316
5181 * tree-ssa-pre.c (eliminate): Properly clean EH info.
5182
5183 2010-08-25 Richard Guenther <rguenther@suse.de>
5184
5185 PR tree-optimization/45393
5186 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
5187 and clean EH info. Avoid SSA update.
5188 (execute_cse_sincos): Cleanup the CFG if it has changed.
5189
5190 2010-08-25 Richard Guenther <rguenther@suse.de>
5191
5192 PR middle-end/45379
5193 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
5194 TARGET_MEM_REF in alignment computation.
5195
5196 2010-08-25 Jakub Jelinek <jakub@redhat.com>
5197
5198 PR tree-optimization/45059
5199 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
5200 type conversions from newop{1,2}. Assert t is a comparison and
5201 newop{1,2} after the stripping are gimple vals.
5202
5203 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
5204
5205 * config/arm/iterators.md (VU, SE, V_widen_l): New.
5206 (V_unpack, US): New.
5207 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
5208 (vec_unpack<US>_lo_<mode>): Likewise.
5209 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
5210 (neon_vec_unpack<US>_lo_<mode>): Likewise.
5211 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
5212 (vec_widen_<US>mult_hi_<mode>): Likewise.
5213 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
5214 (neon_vec_<US>mult_hi_<mode>"): Likewise.
5215 (neon_unpack<US>_<mode>): Widening move intermediate step for
5216 vectorizing without -mvectorize-with-neon-quad.
5217 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
5218 for vectorizing without -mvectorize-with-neon-quad.
5219 * config/arm/predicates.md (vect_par_constant_high): Check for
5220 high-half lanes of a vector.
5221 (vect_par_constant_low): Check for low-half lanes of a vector.
5222
5223 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
5224
5225 * tree-if-conv.c (struct ifc_dr): New.
5226 (IFC_DR): New.
5227 (DR_WRITTEN_AT_LEAST_ONCE): New.
5228 (DR_RW_UNCONDITIONALLY): New.
5229 (memref_read_or_written_unconditionally): Use the cached values
5230 when possible.
5231 (write_memref_written_at_least_once): Same.
5232 (if_convertible_loop_p): Initialize and free DR->aux fields.
5233
5234 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
5235
5236 * gimple.c (gimple_could_trap_p_1): Not static anymore.
5237 Pass an extra bool parameter include_mem.
5238 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
5239 (gimple_assign_rhs_could_trap_p): Same.
5240 * gimple.h (gimple_could_trap_p_1): Declared.
5241 * tree-data-ref.h (same_data_refs_base_objects): New.
5242 (same_data_refs): New.
5243 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
5244 (write_memrefs_written_at_least_once): New.
5245 (ifcvt_memrefs_wont_trap): New.
5246 (operations_could_trap): New.
5247 (ifcvt_could_trap_p): New.
5248 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
5249 Gets a vector of data refs.
5250 (if_convertible_stmt_p): Same.
5251 (if_convertible_loop_p_1): New.
5252 (if_convertible_loop_p): Call if_convertible_loop_p_1.
5253
5254 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
5255
5256 * common.opt (ftree-loop-if-convert-stores): New flag.
5257 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
5258 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
5259 the created statement before GSI.
5260 (if_convertible_phi_p): Allow virtual phi nodes when
5261 flag_loop_if_convert_stores is set.
5262 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
5263 Do not handle types that do not match is_gimple_reg_type.
5264 Remove loop and bb parameters. Call gimple_could_trap_p instead of
5265 when flag_loop_if_convert_stores is set, as LHS can contain
5266 memory refs.
5267 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
5268 to if_convertible_gimple_assign_stmt_p.
5269 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
5270 (replace_phi_with_cond_gimple_assign_stmt): Renamed
5271 predicate_scalar_phi. Do not handle virtual phi nodes.
5272 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
5273 Call predicate_scalar_phi.
5274 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
5275 just after the labels for flag_loop_if_convert_stores, otherwise
5276 insert the predicate in the end of the BB.
5277 (predicate_mem_writes): New.
5278 (combine_blocks): Call predicate_all_scalar_phis. When
5279 flag_loop_if_convert_stores is set, call predicate_mem_writes.
5280 (tree_if_conversion): Call mark_sym_for_renaming when
5281 flag_loop_if_convert_stores is set.
5282 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
5283 flag_loop_if_convert_stores is set.
5284
5285 2010-08-24 Anatoly Sokolov <aesok@post.ru>
5286
5287 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
5288 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
5289 (pa_function_value): Make static.
5290 (override_options): Rename to...
5291 (pa_option_override): ...this. Make static.
5292 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
5293 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
5294 TARGET_OPTION_OVERRIDE): Define.
5295 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
5296 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
5297 Remove.
5298 * config/pa/pa-protos.h (override_options): Remove.
5299
5300 2010-08-24 Richard Guenther <rguenther@suse.de>
5301
5302 PR middle-end/45379
5303 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
5304 if addr->index is NULL or zero.
5305 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
5306 TARGET_MEM_REF more properly.
5307 (indirect_ref_may_alias_decl_p): Likewise.
5308 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
5309 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
5310
5311 2010-08-23 Anatoly Sokolov <aesok@post.ru>
5312
5313 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
5314 (m32c_override_options): Rename to...
5315 (m32c_option_override): ...this. Make static.
5316 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
5317 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
5318 Remove.
5319 * config/m32c/m32c-protos.h (m32c_override_options,
5320 m32c_function_value_regno_p): Remove.
5321
5322 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
5323
5324 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
5325 Fix a typo in a previous commit.
5326
5327 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
5328
5329 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
5330 Pre-initialize innerloop_iters to one.
5331
5332 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
5333
5334 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
5335 existing static function global.
5336
5337 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
5338 is changed to global.
5339
5340 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
5341 may_be_nonaddressable_p on base, and don't collect this reference
5342 if the address of the base could not be taken.
5343
5344 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5345
5346 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
5347 enable the compiler to autovectorize mathmetical functions for
5348 power7 using the Mathematical Acceleration Subsystem library.
5349
5350 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
5351 handle which vector math library we have.
5352 (rs6000_override_options): Add -mveclibabi=mass support.
5353 (rs6000_builtin_vectorized_libmass): New function to handle auto
5354 vectorizing math functions that are in the MASS library.
5355 (rs6000_builtin_vectorized_function): Call it.
5356
5357 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5358 -mveclibabi=mass.
5359
5360 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5361
5362 PR boehm-gc/34544
5363 * gthr-posix.h (__gthread_active_init): Delete.
5364 (__gthread_active_p): Do activity check here.
5365 Don't include errno.h on hppa-hpux. Update comment.
5366 * gthr-posix95.h (__gthread_active_init): Delete.
5367 (__gthread_active_p): Do activity check here.
5368 Don't include errno.h on hppa-hpux. Update comment.
5369 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
5370 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
5371 add -lpthread when -mt or -pthread is specified.
5372 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
5373 (LINK_GCC_C_SEQUENCE_SPEC): Define.
5374 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
5375 (stublib.c, pthread_default_stacksize_np-stub.o,
5376 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
5377 $(T)libgcc_stub.a): Add methods.
5378 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
5379 (stublib.c, pthread_default_stacksize_np-stub.o,
5380 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
5381 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5382 pthread_mutex_unlock): New stubs.
5383
5384 2010-08-22 Joseph Myers <joseph@codesourcery.com>
5385
5386 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
5387 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
5388 options.
5389 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
5390 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
5391 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
5392 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
5393 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
5394 "-l".
5395 * cppspec.c: Include opts.h.
5396 (lang_specific_driver): Use cl_decoded_option structures.
5397 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
5398 * doc/tm.texi: Regenerate.
5399 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
5400 (driver_handle_option): Allow driver options needing no special
5401 processing.
5402 (process_command): Decode options before call to
5403 lang_specific_driver. Pass decoded options to
5404 lang_specific_driver.
5405 * gcc.h (lang_specific_driver): Update prototype.
5406 * gccspec.c: Include opts.h.
5407 (lang_specific_driver): Use cl_decoded_option structures.
5408 * opts-common.c (option_ok_for_language, generate_option,
5409 generate_option_input_file): New.
5410 (decode_cmdline_option): Use option_ok_for_language.
5411 (decode_cmdline_options_to_array): Use generate_option_input_file.
5412 (handle_generated_option): Use generate_option.
5413 * opts.h (generate_option, generate_option_input_file): Declare.
5414
5415 2010-08-22 Anatoly Sokolov <aesok@post.ru>
5416
5417 * config/mips/mips.c (mips_override_options): Rename to...
5418 (mips_option_override): ...this. Make static.
5419 (TARGET_OPTION_OVERRIDE): Define.
5420 (mips_in_small_data_p): Update comment.
5421 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
5422 (FIXED_REGISTERS): Update comment.
5423 * config/mips/mips-protos.h (mips_override_options): Remove.
5424
5425 2010-08-21 Olivier Hainque <hainque@adacore.com>
5426
5427 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
5428
5429 2010-08-21 Olivier Hainque <hainque@adacore.com>
5430
5431 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
5432 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
5433
5434 2010-08-20 Jan Hubicka <jh@suse.cz>
5435
5436 * tree-pass.h (pass_ipa_cdtor_merge): New function.
5437 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
5438 heap allocated.
5439 (record_cdtor_fn): Move to ipa.c; do not test for
5440 have_ctors_dtors.
5441 (build_cdtor): Move to ipa.c; add code avoiding construction
5442 when target have ctors/dtors and there is only one ctor/dtor at given
5443 priority.
5444 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
5445 sort; reverse order of constructors.
5446 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
5447 (cgraph_finalize_function): Do not call record_cdtor_fn.
5448 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
5449 (cgraph_build_static_cdtor): Move to ipa.c.
5450 * ipa.c: Include target.h and tree-iterator.h.
5451 (cgraph_build_static_cdtor, static_ctors, static_dtors,
5452 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
5453 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
5454 pass_ipa_cdtor_merge): New.
5455 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
5456 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
5457 bounds access.
5458
5459 2010-08-20 Jan Hubicka <jh@suse.cz>
5460
5461 PR c++/45307
5462 PR c++/17736
5463 * cgraph.h (cgraph_only_called_directly_p,
5464 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
5465 static cdtors.
5466 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
5467 are not needed.
5468 (cgraph_finalize_function): Static cdtors are reachable.
5469 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
5470
5471 2010-08-20 Jan Hubicka <jh@suse.cz>
5472
5473 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
5474 flag_wpa.
5475 * lto-streamer-out.c (lto_output): Likewise.
5476 * passes.c (ipa_write_optimization_summaries): Initialize statement
5477 uids.
5478
5479 2010-08-20 Olivier Hainque <hainque@adacore.com>
5480
5481 * tree.h (alias_diag_flags): New enum.
5482 (alias_pair): Add an 'emitted_diags' field.
5483 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
5484 (assemble_alias): Initialize emitted_diags of new pairs.
5485
5486 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
5487
5488 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5489 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5490 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5491 (STACK_CHECK_PROTECT): Define.
5492 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
5493 (output_probe_stack_range): Likewise.
5494 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
5495 builtin stack checking is enabled.
5496 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
5497 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5498 (probe_stack_range): New insn.
5499
5500 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
5501
5502 PR target/45336
5503 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
5504 short first.
5505
5506 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
5507 char first.
5508
5509 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5510
5511 PR target/45336
5512 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
5513 to cover zero extension into 64-bit register.
5514 (*sse2_pextrw): Likewise.
5515 (*sse4_1_pextrd_zext): New insn.
5516
5517 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
5518
5519 revert r163410, partially revert r163267.
5520 * config/rs6000/darwin.h (LIB_SPEC): Remove.
5521 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
5522 Darwin versions.
5523
5524 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5525
5526 PR middle-end/44974
5527 * builtins.c (expand_builtin): Don't optimize away
5528 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
5529
5530 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
5531
5532 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
5533 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
5534 alternative 1 of operand 2.
5535
5536 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5537 Paolo Bonzini <bonzini@gnu.org>
5538
5539 * simplify-rtx.c (simplify_unary_operation_1): Optimize
5540 (sign_extend (zero_extend (...)) and
5541 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
5542
5543 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5544
5545 PR rtl-optimization/45353
5546 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
5547 after bb_note is a BARRIER.
5548
5549 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
5550
5551 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
5552 linking libgcc.a.
5553
5554 2010-08-20 Jakub Jelinek <jakub@redhat.com>
5555 Michael Matz <matz@suse.de>
5556
5557 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
5558
5559 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5560
5561 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
5562 (ggc_mark_roots): ...here.
5563
5564 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5565
5566 * vec.h (FOR_EACH_VEC_ELT): Define.
5567 * c-decl.c: Use it.
5568 * cfgloop.c: Likewise.
5569 * cfgloopmanip.c: Likewise.
5570 * cgraph.c: Likewise.
5571 * cgraphunit.c: Likewise.
5572 * combine.c: Likewise.
5573 * config/bfin/bfin.c: Likewise.
5574 * config/mips/mips.c: Likewise.
5575 * config/rs6000/rs6000.c: Likewise.
5576 * dbxout.c: Likewise.
5577 * df-scan.c: Likewise.
5578 * dominance.c: Likewise.
5579 * dse.c: Likewise.
5580 * dwarf2out.c: Likewise.
5581 * except.c: Likewise.
5582 * expr.c: Likewise.
5583 * function.c: Likewise.
5584 * gcse.c: Likewise.
5585 * genattr.c: Likewise.
5586 * ggc-common.c: Likewise.
5587 * gimplify.c: Likewise.
5588 * graphite-blocking.c: Likewise.
5589 * graphite-clast-to-gimple.c: Likewise.
5590 * graphite-dependences.c: Likewise.
5591 * graphite-interchange.c: Likewise.
5592 * graphite-poly.c: Likewise.
5593 * graphite-scop-detection.c: Likewise.
5594 * graphite-sese-to-poly.c: Likewise.
5595 * graphite.c: Likewise.
5596 * haifa-sched.c: Likewise.
5597 * ifcvt.c: Likewise.
5598 * implicit-zee.c: Likewise.
5599 * ipa-prop.c: Likewise.
5600 * ipa-struct-reorg.c: Likewise.
5601 * ipa.c: Likewise.
5602 * ira-build.c: Likewise.
5603 * ira-color.c: Likewise.
5604 * ira-emit.c: Likewise.
5605 * lambda-code.c: Likewise.
5606 * loop-invariant.c: Likewise.
5607 * loop-unroll.c: Likewise.
5608 * lower-subreg.c: Likewise.
5609 * lto-cgraph.c: Likewise.
5610 * lto-opts.c: Likewise.
5611 * lto-streamer-in.c: Likewise.
5612 * lto-streamer-out.c: Likewise.
5613 * lto-streamer.c: Likewise.
5614 * lto-symtab.c: Likewise.
5615 * matrix-reorg.c: Likewise.
5616 * opts.c: Likewise.
5617 * predict.c: Likewise.
5618 * print-tree.c: Likewise.
5619 * sdbout.c: Likewise.
5620 * sel-sched-dump.c: Likewise.
5621 * sel-sched-ir.c: Likewise.
5622 * sel-sched.c: Likewise.
5623 * sese.c: Likewise.
5624 * stor-layout.c: Likewise.
5625 * tree-cfg.c: Likewise.
5626 * tree-cfgcleanup.c: Likewise.
5627 * tree-chrec.c: Likewise.
5628 * tree-data-ref.c: Likewise.
5629 * tree-emutls.c: Likewise.
5630 * tree-inline.c: Likewise.
5631 * tree-into-ssa.c: Likewise.
5632 * tree-loop-distribution.c: Likewise.
5633 * tree-loop-linear.c: Likewise.
5634 * tree-mudflap.c: Likewise.
5635 * tree-outof-ssa.c: Likewise.
5636 * tree-parloops.c: Likewise.
5637 * tree-predcom.c: Likewise.
5638 * tree-pretty-print.c: Likewise.
5639 * tree-scalar-evolution.c: Likewise.
5640 * tree-ssa-live.c: Likewise.
5641 * tree-ssa-loop-im.c: Likewise.
5642 * tree-ssa-loop-ivcanon.c: Likewise.
5643 * tree-ssa-loop-ivopts.c: Likewise.
5644 * tree-ssa-loop-manip.c: Likewise.
5645 * tree-ssa-loop-niter.c: Likewise.
5646 * tree-ssa-loop-prefetch.c: Likewise.
5647 * tree-ssa-phiprop.c: Likewise.
5648 * tree-ssa-pre.c: Likewise.
5649 * tree-ssa-reassoc.c: Likewise.
5650 * tree-ssa-sccvn.c: Likewise.
5651 * tree-ssa-structalias.c: Likewise.
5652 * tree-ssa.c: Likewise.
5653 * tree-vect-data-refs.c: Likewise.
5654 * tree-vect-loop-manip.c: Likewise.
5655 * tree-vect-loop.c: Likewise.
5656 * tree-vect-patterns.c: Likewise.
5657 * tree-vect-slp.c: Likewise.
5658 * tree-vect-stmts.c: Likewise.
5659 * tree-vrp.c: Likewise.
5660 * tree.c: Likewise.
5661 * value-prof.c: Likewise.
5662 * var-tracking.c: Likewise.
5663 * varasm.c: Likewise.
5664 * vmsdbgout.c: Likewise.
5665
5666 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
5667 Richard Guenther <richard.guenther@gmail.com>
5668
5669 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
5670 copy the src value and return a copy.
5671 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
5672 (C++ Volatiles): Adjust to describe C++ semantics only.
5673
5674 2010-08-20 Joseph Myers <joseph@codesourcery.com>
5675
5676 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5677 be zero or nonzero.
5678 * doc/tm.texi: Regenerate.
5679 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5680 * df-scan.c (df_get_exit_block_use_set), reginfo.c
5681 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5682 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5683 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5684 to 1.
5685
5686 2010-08-20 Olivier Hainque <hainque@adacore.com>
5687
5688 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5689 an extra nop past a sibling call at the very end.
5690
5691 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
5692
5693 PR bootstrap/45350
5694 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
5695 a comment.
5696
5697 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
5698
5699 * target.def (function_arg, function_incoming_arg): Remove const
5700 qualifier on CUMULATIVE_ARGS parameter.
5701 * targhooks.h (default_function_arg, default_function_incoming_arg):
5702 Likewise.
5703 * targhooks.c (default_function_arg, default_function_incoming_arg):
5704 Likewise.
5705 * config/i386/i386.c (ix86_function_arg): Likewise.
5706
5707 2010-08-19 Jakub Jelinek <jakub@redhat.com>
5708
5709 PR target/45336
5710 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5711 SIGN_EXTENDs or ZERO_EXTENDs.
5712
5713 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
5714
5715 PR target/42172
5716 * combine.c (combine_validate_cost): New arg I0. All callers changed.
5717 Take its cost into account if nonnull.
5718 (insn_a_feeds_b): New static function.
5719 (combine_instructions): Look for four-insn combinations.
5720 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
5721 them into account when computing all_adjacent and looking for other
5722 uses.
5723 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
5724 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
5725 (try_combine): New arg I0. Handle four-insn combinations.
5726 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
5727 like ELIM_I1.
5728
5729 2010-08-19 Jason Merrill <jason@redhat.com>
5730
5731 PR c++/45307
5732 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5733 if ctor is empty.
5734 (gimplify_modify_expr_rhs): Adjust.
5735
5736 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
5737
5738 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5739 bitmap_bit_p.
5740 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5741 * dominance.c (iterate_fix_dominators): Likewise.
5742 * dse.c (set_usage_bits): Likewise.
5743 (set_position_unneeded, record_store): Likewise.
5744 * gimple-fold.c (get_maxval_strlen): Likewise.
5745 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5746 * ipa-inline.c (update_caller_keys): Likewise.
5747 * ipa-split.c (verify_non_ssa_vars): Likewise.
5748 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5749 (close_type_exposed_parameter, close_type_full_escape): Likewise.
5750 (close_addressof_down): Likewise.
5751 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5752 (setup_allocno_left_conflicts_size): Likewise.
5753 (ira_reassign_conflict_allocnos): Likewise.
5754 (ira_reassign_pseudos): Likewise.
5755 * ira-emit.c (change_loop): Likewise.
5756 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5757 * lto-streamer-out.c (write_symbol): Likewise.
5758 * predict.c (expr_expected_value_1): Likewise.
5759 * regstat.c (regstat_bb_compute_ri): Likewise.
5760 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5761 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5762 * stmt.c (expand_case): Likewise.
5763 * tree-eh.c (emit_eh_dispatch): Likewise.
5764 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5765 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5766 Likewise.
5767 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5768 (rdg_build_components): Likewise.
5769 * tree-object-size.c (collect_object_sizes_for): Likewise.
5770 * tree-sra.c (convert_callers): Likewise.
5771 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5772 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5773 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5774
5775 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
5776
5777 * config/i386/i386.md (*lea_1): Use P mode iterator.
5778 (lea add splitter): Also handle DImode operands.
5779 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5780 predicate. Do not use ix86_lea_for_add_ok.
5781 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5782 (lea ashift splitter): Also handle DImode operands.
5783 (DImode lea ashift splitter): Remove splitter.
5784
5785 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
5786
5787 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5788 ix86_binary_operator_ok.
5789
5790 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
5791
5792 PR rtl-optimization/44691
5793 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5794 is not a register.
5795
5796 2010-08-19 Ian Bolton <ian.bolton@arm.com>
5797
5798 PR target/45070
5799 * config/arm/arm.c (arm_output_epilogue): Ensure that return
5800 value of size 1-3 is handled correctly.
5801
5802 2010-08-19 Ian Bolton <ian.bolton@arm.com>
5803
5804 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5805 type for the conditional has wide enough range.
5806
5807 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
5808
5809 PR target/45327
5810 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5811 ix86_binary_operator_ok.
5812
5813 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
5814
5815 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5816 <default>: Swap operands 1 and 2 for alternative 2 to use existing
5817 code to output insn mnemonic. Fix comment.
5818 (*addsi_1_zext): Add r-r-0 alternative 1.
5819 <TYPE_LEA>: Split insn to lea.
5820 <default>: Handle alternative 1.
5821 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
5822 multi-level if_then_else RTX to set "type" attribute.
5823 <default>: Handle alternative 2.
5824 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5825 Use cond RTX instead of multi-level if_then_else RTX to set
5826 "type" attribute.
5827 <default>: Handle alternatives 2 and 4.
5828 (lea splitters): Update calls to ix86_lea_for_add_ok.
5829
5830 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5831 argument.
5832 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5833
5834 2010-08-18 Richard Guenther <rguenther@suse.de>
5835
5836 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
5837 use operand helpers.
5838
5839 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
5840
5841 PR middle-end/45292
5842 * optabs.c (expand_bool_compare_and_swap): Expand pending
5843 pops before trying the optab.
5844
5845 2010-08-18 Yao Qi <yao@codesourcery.com>
5846
5847 PR target/45094
5848 * config/arm/arm.c (output_move_double): Fix typo generating
5849 instructions ('ldr'->'str').
5850
5851 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5852
5853 PR rtl-optimization/42575
5854 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
5855 live ranges.
5856
5857 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
5858
5859 * config/arm/arm-protos.h (arm_expand_sync): New.
5860 (arm_output_memory_barrier, arm_output_sync_insn): New.
5861 (arm_sync_loop_insns): New.
5862 * config/arm/arm.c (FL_ARCH7): New.
5863 (FL_FOR_ARCH7): Include FL_ARCH7.
5864 (arm_arch7): New.
5865 (arm_print_operand): Support %C markup.
5866 (arm_legitimize_sync_memory): New.
5867 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
5868 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
5869 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
5870 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
5871 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
5872 (arm_process_output_sync_insn, arm_output_sync_insn): New.
5873 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
5874 * config/arm/arm.h (struct arm_sync_generator): New.
5875 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
5876 (TARGET_HAVE_MEMORY_BARRIER): New.
5877 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
5878 * config/arm/arm.md: Include sync.md.
5879 (UNSPEC_MEMORY_BARRIER): New.
5880 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
5881 (VUNSPEC_SYNC_OP):New.
5882 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
5883 (sync_result, sync_memory, sync_required_value): New attributes.
5884 (sync_new_value, sync_t1, sync_t2): Likewise.
5885 (sync_release_barrier, sync_op): Likewise.
5886 (length): Add logic to length attribute defintion to call
5887 arm_sync_loop_insns when appropriate.
5888 * config/arm/sync.md: New file.
5889
5890 2010-08-17 Jakub Jelinek <jakub@redhat.com>
5891
5892 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
5893 ENABLE_TREE_CHECKING.
5894 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
5895 and GCC >= 4.3.
5896
5897 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
5898
5899 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
5900 or optimizing for size, always avoid lea if possible.
5901
5902 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
5903
5904 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
5905
5906 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
5907 Dunmmy function with NULL return unless the target is
5908 OSX >= 10.6 (Darwin10).
5909
5910 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
5911
5912 * gcc.c (spec_function): Add remove-outfile.
5913 (remove_outfile_spec_function): New function.
5914 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
5915 * invoke.texi (replace-outfile): Document.
5916
5917 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
5918
5919 PR target/45296
5920 * reginfo.c (globalize_reg): Reject stack registers.
5921
5922 2010-08-17 Richard Guenther <rguenther@suse.de>
5923
5924 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
5925 list of conditional equivalences.
5926 (free_all_edge_infos): Adjust.
5927 (record_equivalences_from_incoming_edge): Likewise.
5928 (record_cond): Likewise.
5929 (build_and_record_new_cond): Likewise.
5930 (record_conditions): Likewise.
5931 (dom_opt_leave_block): Likewise.
5932
5933 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
5934
5935 * doc/invoke.texi (ms-extension): Add documentation.
5936
5937 2010-08-17 Richard Guenther <rguenther@suse.de>
5938
5939 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
5940
5941 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
5942
5943 PR c/40563
5944 * c-decl.c (diagnose_uninitialized_cst_member): New function.
5945 (finish_decl): Use it to issue a -Wc++-compat warning about
5946 uninitialized const field in struct or union.
5947
5948 (finish_struct): Use strip_array_types.
5949
5950 2010-08-17 Jakub Jelinek <jakub@redhat.com>
5951
5952 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
5953 functions.
5954 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
5955 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
5956 call block_nreverse here.
5957 (blocks_nreverse): Rename decl temporary to block.
5958
5959 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
5960
5961 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
5962 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
5963 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
5964 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
5965 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
5966 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
5967 thumb2_iorsi3): Delete.
5968 (orsi_notsi_si): No longer a named pattern.
5969 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
5970 * config/arm/predicates.md (shift_amount_operand): New.
5971 (mult_operator): New.
5972 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
5973 attr enabled): New.
5974 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
5975 arch matches t2.
5976 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
5977 (not_shiftsi_compare0): Likewise, renamed from
5978 arm_notsi_shiftsi_compare0.
5979 (not_shiftsi_compare0_scratch): Likweise, renamed from
5980 arm_notsi_shiftsi_compare0_scratch.
5981 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
5982 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
5983 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
5984 so that the register alternative is disabled when the shift_operator
5985 is MULT. Use "M" as the constraint for constants.
5986 (arith_shiftsi splitter): Enable for TARGET_32BIT.
5987 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
5988 constraint for constants.
5989 (arith_shiftsi_compare0_scratch): Likewise.
5990 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
5991 Handle Thumb2 alternative.
5992
5993 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5994
5995 * doc/options.texi (NoDriverArg): Document.
5996 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
5997 -MDX and -MMDX.
5998 * opt-functions.awk (switch_flags): Handle NoDriverArg.
5999 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
6000 marking for CL_NO_DRIVER_ARG options when in the driver.
6001 * opts.h (CL_NO_DRIVER_ARG): Define.
6002 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6003 CL_COMMON): Update values.
6004
6005 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6006
6007 * common.opt: Add driver options.
6008 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
6009 * doc/options.texi (Driver, RejectDriver): Document.
6010 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
6011 print_prog_name, print_multi_directory, print_sysroot,
6012 print_multi_os_directory, print_multi_lib,
6013 print_sysroot_headers_suffix, report_times, combine_flag,
6014 use_pipes, wrapper_string): Remove.
6015 (save_switch, driver_unknown_option_callback,
6016 driver_wrong_lang_callback, driver_post_handling_callback,
6017 driver_handle_option): New.
6018 (spec_lang, last_language_n_infiles): Make file-scope static
6019 instead of local to process_command.
6020 (process_command): Use decode_cmdline_options_to_array and
6021 read_cmdline_option for option processing. Compute have_c in
6022 prescan of decoded options.
6023 * opt-functions.awk (switch_flags): Handle Driver and
6024 RejectDriver.
6025 (var_type, var_type_struct): Handle Separate options as generating
6026 const char * variables.
6027 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
6028 CL_TARGET to be passed by caller if required.
6029 (decode_cmdline_options_to_array): Update comment.
6030 * opts.c (complain_wrong_lang): Handle options only valid for the
6031 driver.
6032 (decode_options): Update call to decode_cmdline_options_to_array.
6033 (print_filtered_help): Ignore driver-only options.
6034 (print_specific_help): Ignore CL_DRIVER.
6035 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
6036 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
6037 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
6038 Update values.
6039
6040 2010-08-16 Richard Guenther <rguenther@suse.de>
6041
6042 * tree-cfg.c (verify_types_in_gimple_reference): Verify
6043 TARGET_MEM_REF a bit.
6044 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
6045 (create_mem_ref_raw): Always create TMR_OFFSET, store the
6046 alias pointer type via it.
6047 (copy_mem_ref_info): Adjust.
6048 (maybe_fold_tmr): Likewise.
6049 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
6050 (reference_alias_ptr_type): Likewise.
6051 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
6052 adjust documentation of TMR_OFFSET operand.
6053 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
6054 use the alias pointer type.
6055 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
6056 initialize mem attrs but the TMR itself.
6057 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
6058 similar to MEM_REF.
6059 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
6060 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
6061 (unshare_and_remove_ssa_names): Likewise.
6062 (copy_ref_info): Adjust.
6063 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
6064 TARGET_MEM_REF case.
6065 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
6066 at TMR_ORIGINAL.
6067 * tree.h (TMR_ORIGINAL): Remove.
6068 * gimple.c (get_base_address): For TARGET_MEM_REF with a
6069 symbol return that.
6070 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
6071 with a symbol.
6072 (get_addr_base_and_unit_offset): Likewise.
6073 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
6074 TARGET_MEM_REFs.
6075 (indirect_ref_may_alias_decl_p): Likewise.
6076 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
6077
6078 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
6079
6080 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
6081 with GCC version 4.6, the default setting (when not optimizing
6082 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
6083 been changed to -fomit-frame-pointer.
6084
6085 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
6086
6087 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
6088 Darwin10. Do not link libgcc.a for Darwin >= 9.
6089
6090 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
6091
6092 * doc/invoke.texi (Warning Options): Fix terminology and markup
6093 in the description of how unknown warning options are handled.
6094
6095 2010-08-15 Ira Rosen <irar@il.ibm.com>
6096
6097 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
6098 in basic blocks.
6099 (vect_supportable_dr_alignment): Check alignment for basic blocks.
6100 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
6101 data references.
6102 (vect_bb_vectorization_profitable_p): New function.
6103 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
6104 check if it's worthwhile to vectorize the basic block.
6105
6106 2010-08-14 Anatoly Sokolov <aesok@post.ru>
6107
6108 * reload.h (register_move_cost, memory_move_secondary_cost,
6109 secondary_reload_class): Adjust prototype.
6110 * rtl.h (reg_class_subset_p): Adjust prototype.
6111 * reload.c (secondary_reload_class): Change arguments type from
6112 enum reg_class to reg_class_t. Change result type to reg_class_t.
6113 * reginfo.c (register_move_cost, reg_class_subset_p): Change
6114 arguments type from enum reg_class to reg_class_t.
6115 (memory_move_secondary_cost): Change arguments type from
6116 enum reg_class to reg_class_t. Change type of saved_flags to
6117 reg_class_t.
6118
6119 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6120 Remove macros.
6121 (mips_cost): Remove.
6122 (struct mips_rtx_cost_data): Moved to mips.c.
6123 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
6124 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
6125 (mips_cost): Make static.
6126 (mips_canonicalize_move_class): Change argument type to reg_class_t.
6127 Change result type to reg_class_t.
6128 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
6129 type from enum reg_class to reg_class_t.
6130 (mips_register_move_cost): Make static. Change arguments
6131 type from enum reg_class to reg_class_t.
6132 (mips_memory_move_cost): New function.
6133 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6134
6135 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
6136
6137 PR rtl-optimization/43358
6138 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
6139 of a single hard register, using simplify_subreg_regno to decide
6140 what that register should be.
6141
6142 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
6143
6144 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
6145 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
6146 (loongson_pmull<V_suffix>): Rename to...
6147 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
6148
6149 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
6150
6151 * configure.ac: Enable -fomit-frame-pointer on darwin
6152 which support dwarf2.
6153 * config/i386/i386.c (override_options): Same.
6154
6155 2010-08-13 Jie Zhang <jie@codesourcery.com>
6156
6157 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
6158
6159 2010-08-12 Joseph Myers <joseph@codesourcery.com>
6160
6161 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
6162 -MMD.
6163
6164 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
6165
6166 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
6167 up dot_prod pattern searching if a stmt is outside the loop.
6168
6169 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
6170 Uros Bizjak <ubizjak@gmail.com>
6171
6172 * config.gcc: Handle --enable-frame-pointer.
6173
6174 * configure.ac: Add --enable-frame-pointer.
6175 * configure: Regenerated.
6176
6177 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
6178 (override_options): If not configured with --enable-frame-pointer,
6179 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
6180 optimizing for size), -fasynchronous-unwind-tables and
6181 -maccumulate-outgoing-args by default.
6182
6183 2010-08-12 Jakub Jelinek <jakub@redhat.com>
6184
6185 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
6186
6187 PR middle-end/45262
6188 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
6189 -a overflows. Normalize the range.
6190
6191 2010-08-12 Richard Guenther <rguenther@suse.de>
6192
6193 PR tree-optimization/45232
6194 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
6195 for types with undefined overflow.
6196 (reassociate_bb): Allow re-associating of bit and min/max
6197 operations for types with undefined overflow.
6198 * tree-ssa-forwprop.c (associate_plusminus): New function.
6199 (tree_ssa_forward_propagate_single_use_vars): Call it.
6200
6201 2010-08-12 Richard Guenther <rguenther@suse.de>
6202
6203 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
6204 * tree-ssa-alias.c (get_ptr_info): Move ...
6205 * tree-ssanames.c (get_ptr_info): ... here. Initialize
6206 align and misalign fields conservatively.
6207 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
6208 derive alignment information.
6209 (evaluate_stmt): Derive alignment information from memory
6210 allocation functions.
6211 * tree.h (get_pointer_alignment): Make unsigned.
6212 * builtins.c (get_object_alignment): Use alignment information we
6213 have computed for pointers.
6214 (get_pointer_alignment): Likewise. Make conservative, return
6215 and unsigned value.
6216 (expand_builtin_strlen): Adjust.
6217 (expand_builtin_memcmp): Likewise.
6218 (expand_builtin_strcmp): Likewise.
6219 (expand_builtin_strncmp): Likewise.
6220 (get_builtin_sync_mem): Use at least mode alignment.
6221 (fold_builtin_memset): Adjust.
6222 (fold_builtin_memory_op): Likewise.
6223 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
6224 information also dump pointer alignment knowledge.
6225 (dump_gimple_stmt): Likewise.
6226
6227 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
6228
6229 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
6230 (EMPTY_FIELD_BOUNDARY): Remove.
6231 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
6232
6233 2010-08-12 Jakub Jelinek <jakub@redhat.com>
6234
6235 PR debug/45259
6236 * caller-save.c (save_call_clobbered_regs): Only swap notes with
6237 DEBUG_INSNs if n_regs_saved.
6238
6239 2010-08-12 Wei Guozhi <carrot@google.com>
6240
6241 PR target/44999
6242 * config/arm/arm.md (andsi3): Change to zero extension if possible.
6243 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
6244
6245 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
6246
6247 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
6248
6249 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
6250
6251 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6252
6253 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
6254 the case removed in the previous patch, when the only phi argument
6255 is defined in the same loop as the phi node itself. Handle it
6256 separately from the invariant case by both propagating it outside
6257 the region and replacing the phi node with an assign.
6258
6259 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6260
6261 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
6262 constant phi nodes with one argument are is_gimple_min_invariant
6263 and SSA_NAME_IS_DEFAULT_DEF.
6264
6265 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6266
6267 * graphite-cloog-util.c (oppose_constraint):
6268 Extend loop counter's value range (CLOOG_ORG).
6269 (cloog_matrix_to_ppl_constraint): Same.
6270 (new_Constraint_System_from_Cloog_matrix): Same.
6271 * graphite-cloog-compat.h (matrix_num_type): New.
6272
6273 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6274
6275 * graphite.c (graphite_initialize): Do not initialize
6276 CLooG and initialize the Parma Polyhedra Library
6277 manually when using CLOOG_ORG.
6278 (graphite_finalize): Do not finalize CLooG and finalize
6279 the Parma Polyhedra Library manually when using CLOOG_ORG.
6280 * graphite-cloog-compat.h (cloog_initialize): Hide function
6281 when using CLOOG_ORG.
6282 (cloog_finalize): Same.
6283
6284 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6285
6286 * graphite-clast-to-gimple.c (free_scattering): Change
6287 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
6288 (CLOOG_ORG).
6289 (build_cloog_prog): Same.
6290 * graphite-cloog-compat.h (cloog_domain): Removed.
6291 (cloog_scattering): New.
6292 (cloog_set_domain): Removed.
6293 (cloog_set_scattering): New.
6294 (cloog_next_domain): Removed.
6295 (cloog_next_scattering): New.
6296 (cloog_set_next_domain): Removed.
6297 (cloog_set_next_scattering): New.
6298 (CloogScatteringList): New.
6299 (CloogScattering): New.
6300 (cloog_scattering_free): New.
6301 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
6302 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
6303 New.
6304
6305 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6306
6307 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
6308 CloogState.
6309 (set_cloog_options): Same.
6310 (print_clast_stmt): Same.
6311 (scop_to_clast): Same.
6312 (print_generated_program): Same.
6313 (gloog): Same.
6314 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
6315 (scop_to_clast): Extend with CloogState.
6316 * graphite-cloog-util.c: Include graphite-cloog-compat.h
6317 (new_Cloog_Domain_from_ppl_Polyhedron):
6318 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
6319 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
6320 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6321 * graphite-cloog-util.h (build_cloog_prog): Same.
6322 * graphite-cloog-copat.h (build_cloog_prog): New.
6323 (CloogState): New.
6324 (cloog_state_malloc): New.
6325 (cloog_state_free): New.
6326 (cloog_loop_malloc): New.
6327 (cloog_options_malloc): New.
6328 (cloog_statement_alloc): New.
6329 (cloog_domain_from_cloog_matrix): New.
6330 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
6331 (new_Cloog_Domain_from_ppl_Polyhedron): New.
6332
6333 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6334
6335 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
6336 type of NAME now depends on used CLooG version.
6337 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
6338 (gcc_type_for_clast_expr): Same.
6339 (print_clast_stmt): Replace pprint with clast_pprint.
6340 * graphite-cloog-compat.h: Provide compatibility macros for
6341 CLooG Legacy.
6342 (clast_name_p): New.
6343 (clast_expr_term): New.
6344 (clast_expr_red): New.
6345 (clast_expr_bin): New.
6346 (clast_pprint): New.
6347
6348 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6349
6350 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
6351 compatible to newer CLooG releases (CLOOG_ORG).
6352 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
6353 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
6354 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
6355 (build_cloog_prog) : New.
6356 (cloog_program_extract_scalars): New.
6357 (cloog_program_scatter): New.
6358
6359 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6360
6361 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
6362 conditionally (CLOOG_ORG).
6363 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
6364 (cloog_statement_usr): New.
6365 (cloog_domain): Same.
6366 (cloog_set_domain): Same.
6367 (cloog_next_domain): Same.
6368 (cloog_set_next_domain): Same.
6369 (cloog_program_nb_scattdims): Same.
6370 (cloog_program_set_nb_scattdims): Same.
6371 (cloog_program_names): Same.
6372 (cloog_program_set_names): Same.
6373 (cloog_program_set_context): Same.
6374 (cloog_program_set_loop): Same.
6375 (cloog_program_blocklist): Same.
6376 (cloog_program_set_blocklist): Same.
6377 (cloog_program_scaldims): Same.
6378 (cloog_program_set_scaldims): Same.
6379 (cloog_names_nb_parameters): Same.
6380 (cloog_names_set_nb_parameters): Same.
6381 (cloog_names_parameters): Same.
6382 (cloog_names_set_parameters): Same.
6383 (cloog_names_set_nb_iterators): Same.
6384 (cloog_names_set_iterators): Same.
6385 (cloog_names_set_nb_scattering): Same.
6386 (cloog_names_set_scattering): Same.
6387 (cloog_statement_set_usr): Same.
6388 (cloog_loop_set_next): Same.
6389 (cloog_loop_set_domain): Same.
6390 (cloog_loop_set_block): Same.
6391 (cloog_block_list_next): Same.
6392 (cloog_block_list_set_next):
6393 (cloog_block_list_set_block): Same.
6394
6395 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6396
6397 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
6398 a bool.
6399 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
6400 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
6401 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
6402 when something has been changed.
6403 (rewrite_commutative_reductions_out_of_ssa): Same.
6404
6405 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6406
6407 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
6408 handle the case when def is in the sese region.
6409 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
6410 for invariant expressions.
6411 (rewrite_cross_bb_phi_deps): Removed.
6412 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
6413 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
6414 rewrite_cross_bb_phi_deps.
6415
6416 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6417
6418 * graphite-sese-to-poly.c
6419 (rewrite_commutative_reductions_out_of_ssa_loop): Call
6420 scev_analyzable_p only on is_gimple_reg
6421
6422 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6423
6424 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
6425 (rewrite_close_phi_out_of_ssa): Propagate constant values or
6426 parametric expressions outside the scop region.
6427 (rewrite_cross_bb_scalar_deps): Same.
6428 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
6429
6430 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6431
6432 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
6433 SSA_NAME_DEF_STMT only on SSA_NAMEs.
6434
6435 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6436
6437 * tree-scalar-evolution.c (instantiate_scev_name): Do not
6438 instantiate default definitions.
6439
6440 2010-08-11 Vladimir Kargov <kargov@gmail.com>
6441 Sebastian Pop <sebastian.pop@amd.com>
6442
6443 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
6444 (loop_exits_from_bb_p): New.
6445 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
6446 (loop_exits_from_bb_p): Declared.
6447 * graphite-scop-detection.c (scopdet_basic_block_info): Call
6448 loop_exits_to_bb_p.
6449
6450 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6451
6452 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
6453 extra parameter for the region. Call scev_analyzable_p.
6454 (rewrite_reductions_out_of_ssa): Update call to
6455 rewrite_close_phi_out_of_ssa.
6456 (rewrite_cross_bb_phi_deps): Same.
6457 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
6458 parameter for the region. Call scev_analyzable_p.
6459 (rewrite_commutative_reductions_out_of_ssa): Update call to
6460 rewrite_commutative_reductions_out_of_ssa_loop.
6461
6462 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6463
6464 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
6465
6466 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6467
6468 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
6469 SSA scalar phi nodes that can be scev_analyzable_p.
6470
6471 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6472
6473 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
6474 handle SSA_NAME_IS_DEFAULT_DEF.
6475
6476 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6477
6478 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
6479
6480 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6481
6482 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
6483 case non close-phi nodes with one argument.
6484
6485 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6486
6487 * sese.h (scev_analyzable_p): Scevs could be expressions without
6488 chrecs and still be scev_analyzable_p.
6489
6490 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6491
6492 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6493
6494 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6495
6496 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
6497 * cfgloop.h (struct loop): Remove single_iv field.
6498 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
6499 (scop_canonicalize_loops): Removed.
6500 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
6501 over all the loop phi nodes in loop->header.
6502 (build_poly_scop): Remove use of scop_canonicalize_loops.
6503
6504 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6505
6506 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
6507 handle GIMPLE_CALL.
6508
6509 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6510
6511 * tree-chrec.c (chrec_apply): Should only apply to the specified
6512 variable. Also handle multivariate chains of recurrences that
6513 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
6514
6515 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6516
6517 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
6518 (debug_clast_name_indexes_1): Removed.
6519 (debug_clast_name_indexes): Removed.
6520 (pbb_to_depth_to_oldiv): Removed.
6521 (build_iv_mapping): Replace the use of rename_map with iv_map.
6522 (translate_clast_user): Remove uses of rename_map. Allocate and
6523 free iv_map.
6524 (translate_clast_for_loop): Remove uses of rename_map.
6525 (translate_clast_for): Same.
6526 (translate_clast_guard): Same.
6527 (translate_clast): Same.
6528 (gloog): Same.
6529 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
6530 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
6531 * sese.c (set_rename): Now static.
6532 (rename_variables_in_stmt): Removed.
6533 (rename_uses): New.
6534 (is_parameter): Removed.
6535 (is_iv): Removed.
6536 (expand_scalar_variables_call): Removed.
6537 (expand_scalar_variables_ssa_name): Removed.
6538 (expand_scalar_variables_expr): Removed.
6539 (expand_scalar_variables_stmt): Removed.
6540 (expand_scalar_variables): Removed.
6541 (rename_variables): Removed.
6542 (remove_condition): Removed.
6543 (get_true_edge_from_guard_bb): Removed.
6544 (get_false_edge_from_guard_bb): Removed.
6545 (struct igp): Removed.
6546 (default_before_guard): Removed.
6547 (convert_for_phi_arg): Removed.
6548 (add_guard_exit_phis): Removed.
6549 (insert_guard_phis): Removed.
6550 (graphite_copy_stmts_from_block): Now also uses iv_map and a
6551 region. Do not copy conditions. Do not copy induction variables.
6552 Call rename_uses.
6553 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
6554 the translated statement. Use the iv_map for the induction
6555 variable renaming.
6556 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6557 (set_rename): Removed declaration.
6558 (scev_analyzable_p): ...here.
6559 * tree-chrec.c (chrec_apply_map): New.
6560 * tree-chrec.h (chrec_apply_map): Declared.
6561
6562 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6563
6564 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
6565 insert_loop_close_phis.
6566 * sese.c (name_defined_in_loop_p): Removed.
6567 (expr_defined_in_loop_p): Removed.
6568 (alive_after_loop): Removed.
6569 (close_phi_not_yet_inserted_p): Removed.
6570 (struct alep): Removed.
6571 (add_loop_exit_phis): Removed.
6572 (insert_loop_close_phis): Removed.
6573
6574 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6575
6576 * graphite-cloog-util.c
6577 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
6578 * graphite-poly.c
6579 (psct_scattering_dim_for_loop_depth): Same.
6580
6581 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6582
6583 * graphite-cloog-util.h: Added cloog.h.
6584 * graphite-blocking.c: Removed cloog.h.
6585 * graphite-dependences.c: Same.
6586 * graphite-interchange.c: Same.
6587 * graphite-poly.c: Same.
6588 * graphite-ppl.c: Same.
6589 * graphite-scop-detection.c: Same.
6590 * graphite-sese-to-poly.c:
6591 Removed cloog.h.
6592 Removed graphite-clast-to-gimple.h.
6593 (check_poly_representation): Removed (unused).
6594 * graphite-sese-to-poly.h
6595 (check_poly_representation): Removed (unused).
6596
6597 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6598
6599 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
6600 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
6601 (graphite-cloog-util.o): New.
6602 (graphite-ppl.o): Added graphite-cloog-util.h.
6603 * graphite-clast-to-gimple.c:
6604 Added graphite-cloog-util.h to include statements.
6605 * graphite-cloog-util.c: New.
6606 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
6607 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6608 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6609 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6610 (insert_constraint_into_matrix): Same.
6611 (ppl_Constrain_System_number_of_constraints): Same.
6612 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6613 (oppose_constraint): Same.
6614 (cloog_matrix_to_ppl_constraint): Same.
6615 (new_Constraint_System_from_Cloog_Matrix): Same.
6616 * graphite-cloog-util.h: New.
6617 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
6618 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6619 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6620 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6621 (insert_constraint_into_matrix): Same.
6622 * graphite-ppl.c:
6623 Added graphite-cloog-util.h to include statements.
6624 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
6625 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6626 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6627 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6628 (insert_constraint_into_matrix): Same.
6629 (ppl_Constrain_System_number_of_constraints): Same.
6630 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6631 (oppose_constraint): Same.
6632 (cloog_matrix_to_ppl_constraint): Same.
6633 (new_Constraint_System_from_Cloog_Matrix): Same.
6634 * graphite-ppl.h:
6635 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
6636 graphite-cloog-util.h.
6637 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6638 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6639 (new_C_Polyhedron_from_Cloog_Matrix): Same.
6640 (insert_constraint_into_matrix): Same.
6641
6642 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
6643
6644 * graphite-clast-to-gimple.c
6645 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
6646 (precision_for_interval): Same.
6647 (gcc_type_for_interval): Same.
6648 (compute_type_for_level): Same.
6649 * graphite-interchange.c
6650 (lst_interchange_profitable_p): Same.
6651 * graphite-poly.c
6652 (psct_scattering_dim_for_loop_depth): Same.
6653 * graphite-ppl.c
6654 (ppl_max_for_le_pointset): Same.
6655 (ppl_min_for_le_pointset): Same.
6656
6657 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6658
6659 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
6660 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
6661
6662 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6663
6664 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
6665 rewrite_close_phi_out_of_ssa.
6666
6667 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6668
6669 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
6670
6671 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6672
6673 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
6674 rename_map.
6675 * sese.c (debug_rename_map): Same.
6676 (get_rename): Same.
6677 (set_rename): Same.
6678 (rename_variables_in_stmt): Same.
6679 (expand_scalar_variables_call): Same.
6680 (expand_scalar_variables_ssa_name): Same.
6681 (expand_scalar_variables_expr): Same.
6682 (expand_scalar_variables_stmt): Same.
6683 (expand_scalar_variables): Same.
6684 (rename_variables): Same.
6685 (graphite_copy_stmts_from_block): Same.
6686 (copy_bb_and_scalar_dependences): Same.
6687
6688 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6689
6690 * graphite-clast-to-gimple.c (copy_renames): Removed.
6691 (translate_clast_for): Do not call copy_renames.
6692 (translate_clast_guard): Same.
6693
6694 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6695
6696 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6697 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6698 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6699 before rewrite_cross_bb_scalar_deps.
6700
6701 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6702
6703 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6704 Early return in when flag_associative_math is not set.
6705
6706 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6707
6708 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6709 of SSA copies on edges except for loop->latch.
6710
6711 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6712
6713 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6714 Split out of rewrite_reductions_out_of_ssa.
6715 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6716 Declared.
6717 * graphite.c (graphite_transform_loops): Call it.
6718
6719 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6720
6721 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6722
6723 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
6724
6725 * dbgcnt.def (graphite_scop): New counter.
6726 * graphite.c: Include dbgcnt.h.
6727 (graphite_transform_loops): Use new counter to limit transformations.
6728 * Makefile.in (graphite.o): Depend on DBGCNT_H.
6729
6730 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6731
6732 * passes.c (init_optimization_passes): Add pass_graphite.
6733 Schedule a pass_copy_prop before pass_graphite_transforms.
6734 * timevar.def (TV_GRAPHITE): Declared.
6735 * tree-pass.h (pass_graphite): Declared.
6736 * tree-ssa-loop.c (pass_graphite): New.
6737
6738 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6739
6740 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6741 Remove calls to rename_nb_iterations and rename_sese_parameters.
6742 * graphite-clast-to-gimple.h (gloog): Update declaration.
6743 * graphite.c (graphite_transform_loops): Update call to gloog.
6744 * sese.c (rename_variables_in_expr): Removed.
6745 (rename_nb_iterations): Removed.
6746 (rename_sese_parameters): Removed.
6747 * sese.h (rename_nb_iterations): Removed.
6748 (rename_sese_parameters): Removed.
6749
6750 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6751
6752 * graphite-clast-to-gimple.c (gloog): Remove call to
6753 sese_adjust_liveout_phis.
6754 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6755 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6756 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6757 rewrite_phi_out_of_ssa.
6758 * sese.c (get_vdef_before_sese): Removed.
6759 (sese_adjust_vphi): Removed.
6760 (sese_adjust_liveout_phis): Removed.
6761 * sese.h (sese_adjust_liveout_phis): Removed.
6762
6763 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6764
6765 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6766 argument for the place after which to insert the out of SSA copy.
6767 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6768 (rewrite_phi_out_of_ssa): Same.
6769 (rewrite_cross_bb_scalar_deps): Same.
6770 (insert_copyout): Removed.
6771 (insert_copyin): Removed.
6772 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6773 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6774 insert_copyin.
6775
6776 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6777
6778 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6779 (rewrite_reductions_out_of_ssa): Same.
6780 (rewrite_commutative_reductions_out_of_ssa): Same.
6781 (build_poly_scop): Do not call these functions.
6782 * graphite-sese-to-poly.h (build_poly_scop): Declared.
6783 (rewrite_reductions_out_of_ssa): Declared.
6784 (rewrite_commutative_reductions_out_of_ssa): Declared.
6785 * graphite.c (graphite_transform_loops): Call on every scop
6786 rewrite_commutative_reductions_out_of_ssa before calling
6787 rewrite_reductions_out_of_ssa and build_scop_bbs.
6788
6789 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6790
6791 * graphite-dependences.c (dot_deps): Make system call to dotty run
6792 in background.
6793 (dot_deps_stmt): Same.
6794 * graphite-poly.c (dot_lst): Same.
6795
6796 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
6797
6798 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6799 phi_arg_in_outermost_loop.
6800 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6801 (remove_invariant_phi): Same.
6802
6803 2010-08-11 Anatoly Sokolov <aesok@post.ru>
6804
6805 * target.def (output_addr_const_extra): New hook.
6806 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6807 * doc/tm.texi: Regenerate.
6808 * targhooks.c (default_asm_output_addr_const_extra): New function.
6809 * targhooks.h (default_asm_output_addr_const_extra): Declare.
6810 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6811 target hook.
6812
6813 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6814 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6815 * config/i386/i386.h (output_addr_const_extra): Rename to...
6816 (i386_asm_output_addr_const_extra): ...this. Make static.
6817 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6818
6819 2010-08-11 Richard Henderson <rth@redhat.com>
6820
6821 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6822
6823 2010-08-11 Nick Clifton <nickc@redhat.com>
6824
6825 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6826 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6827 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6828 stormy16-lib2-cmpsi.c.
6829
6830 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6831 -O2.
6832
6833 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6834
6835 * opts.h (struct cl_option_handler_func): Make handler take
6836 cl_decoded_option structure as parameter, not individual elements.
6837 (struct cl_option_handlers): Make callbacks take cl_decoded_option
6838 structure as parameter, not individual elements.
6839 (handle_option): Take cl_decoded_option structure as parameter,
6840 not individual elements.
6841 (handle_generated_option): Declare.
6842 * opts-common.c (handle_option): Take cl_decoded_option structure
6843 as parameter, not individual elements. Update calls to callback
6844 and handler functions.
6845 (handle_generated_option): New.
6846 (read_cmdline_option): Update calls to callback functions and
6847 handle_option.
6848 * opts.c (common_handle_option, complain_wrong_lang,
6849 unknown_option_callback, post_handling_callback,
6850 lang_handle_option, target_handle_option): Take cl_decoded_option
6851 structure as parameter, not individual elements.
6852 (lang_handle_option, target_handle_option, common_handle_option):
6853 Assert option has at most one argument.
6854 (enable_warning_as_error): Call handle_generated_option instead of
6855 handle_option. Do not pass -Werror argument as argument of
6856 generated option.
6857
6858 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6859
6860 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6861 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6862 (SUBWORD_BOOL_CAS): Likewise.
6863 (SUBWORD_SYNC_OP): Likewise.
6864 (SUBWORD_TEST_AND_SET): Likewise.
6865 (FETCH_AND_OP_WORD): Parenthesise INF_OP
6866 (SUBWORD_SYNC_OP): Likewise.
6867 (OP_AND_FETCH_WORD): Likewise.
6868
6869 2010-08-10 Xinliang David Li <davidxl@google.com>
6870
6871 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
6872 compute max/min offset in address.
6873
6874 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
6875
6876 * ira-live.c: Include sbitmap.h.
6877 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
6878 Compress live ranges even more.
6879
6880 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6881
6882 * coverage.c (ctr_labels): Delete.
6883
6884 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
6885
6886 PR bootstrap/45177
6887 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
6888 test here from arm_gen_load_multiple_1.
6889 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
6890 multiple_operation_profitable_p.
6891
6892 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6893
6894 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
6895 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
6896
6897 2010-08-10 Richard Henderson <rth@redhat.com>
6898
6899 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
6900 after saving registers. Assert that SSE registers are only saved
6901 with a sufficiently aligned frame.
6902 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
6903 remove stack_realign_fp handling.
6904 (ix86_expand_prologue): Save int registers before stack_realign_fp,
6905 and do not mark the stack alignment as frame related.
6906 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
6907
6908 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
6909 saves when re-aligning the stack.
6910
6911 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6912
6913 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
6914 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
6915 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
6916
6917 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
6918
6919 * dwarf2out.c (struct die_struct): Move die_tag to the end.
6920
6921 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
6922
6923 * config/arm/iterators.md: New file.
6924 * config/arm/arm.md: Include iterators.md.
6925 (QHSI): Move to new file.
6926 (LTUGEU, cnb, optab, ior_xor): Likewise.
6927 * config/arm/iwmmxt.md (VMMX): Move to new file.
6928 (VSHFT, MMX_char): Likewise.
6929 * config/arm/neon.md (VD): Move to new file.
6930 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
6931 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
6932 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
6933 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
6934 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
6935 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
6936 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
6937 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
6938 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
6939 (Is_d_reg, V_mode_nunits): Likewise.
6940 * config/arm/vec-common.md (VALL): Move to new file.
6941 (VALLW, VINT, VINTW): Likewise.
6942
6943 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
6944
6945 PR middle-end/45182
6946 * combine.c (make_compound_operation): Don't try to convert
6947 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
6948
6949 2010-08-10 Richard Guenther <rguenther@suse.de>
6950
6951 * tree.h (get_object_alignment): Adjust prototype.
6952 * builtins.c (get_object_alignment): Return unsigned int,
6953 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
6954 and TARGET_MEM_REF properly.
6955 (get_pointer_alignment): Adjust.
6956 * emit-rtl.c (get_mem_align_offset): Adjust comment.
6957 (set_mem_attributes_minus_bitpos): Adjust.
6958 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
6959
6960 2010-08-10 Richard Guenther <rguenther@suse.de>
6961
6962 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
6963 (copy_prop_visit_assignment): Simplify.
6964 (copy_prop_visit_stmt): Also visit assignments from
6965 constants.
6966 (copy_prop_visit_phi_node): Use operand_equal_p.
6967
6968 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
6969
6970 * ipa-split.c (find_split_points): Free stack.
6971
6972 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
6973
6974 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
6975 * tree.c (tree_node_kind): Delete corresponding entries.
6976
6977 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
6978
6979 * alias.c (may_alias_p): Remove unused ret.
6980
6981 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
6982
6983 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
6984 alias_sets_conflict_p.
6985 (walk_mems_1): Moved from alias.c.
6986 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
6987 in alias.c.
6988 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
6989 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
6990 * alias.c (walk_mems_2): Moved to ddg.c.
6991 (walk_mems_1): Ditto.
6992 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
6993 to ddg.c.
6994 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
6995 disambiguation.
6996 *(may_alias_p): New function to check whether two memory expression
6997 may alias or not. Currently used in buidling inter-iteration memory
6998 dependence.
6999 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
7000 (insn_alias_sets_conflict_p): Removed
7001 *rtl.h (may_alias_p): New function prototype.
7002
7003 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
7004
7005 * tree.c (nreverse): Assert that we don't have a BLOCK.
7006
7007 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
7008
7009 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
7010 * config/arm/arm.c (arm_get_pcs_model): Likewise.
7011 * config/avr/avr.c (init_cumulative_args): Likewise.
7012 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7013 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7014 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
7015 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
7016 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7017 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7018 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
7019 * dwarf2out.c (gen_subprogram_die): Likewise.
7020 * function.c (allocate_struct_function): Likewise.
7021 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
7022 (deserves_ellipsis): Delete.
7023
7024 2010-08-09 Richard Guenther <rguenther@suse.de>
7025
7026 * tree-ssa-copy.c (cached_last_copy_of): Remove.
7027 (valueize_val): New function.
7028 (get_last_copy_of): Remove.
7029 (set_copy_of_val): Simplify.
7030 (dump_copy_of): Likewise.
7031 (copy_prop_visit_cond_stmt): Use valueize_val.
7032 (copy_prop_visit_phi_node): Properly handle unvisited names.
7033 Drop code managing copy-of chains.
7034 (init_copy_prop): Adjust.
7035 (fini_copy_prop): Likewise.
7036 (execute_copy_prop): Remove obsolete comment.
7037
7038 2010-08-09 Richard Guenther <rguenther@suse.de>
7039
7040 PR middle-end/44632
7041 * function.c (gimplify_parameters): Do not clear addressable
7042 bit of the original parameter.
7043
7044 2010-08-09 Richard Guenther <rguenther@suse.de>
7045
7046 PR middle-end/45212
7047 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
7048 alignment from MEM_REF offset only if we took it from the
7049 base object.
7050
7051 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
7052
7053 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
7054
7055 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7056
7057 * c-tree.h (build_arg_info): Declare.
7058 * c-decl.c (build_arg_info): Define.
7059 (get_parm_info): Call it. Delete initialization code.
7060 * c-parser.c (c_parser_parms_declarator): Likewise.
7061 (c_parser_parms_list_declaractor): Likewise.
7062
7063 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7064
7065 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
7066 (struct c_arg_info): Change type of tags field.
7067 * c-decl.c (grokdeclarator): Update for changed type of tags field.
7068 (get_parm_info): Likewise.
7069 (store_parm_decls_newstyle): Likewise.
7070
7071 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
7072
7073 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
7074 (branch_island_list): Delete.
7075 (branch_islands): Declare.
7076 (add_compiler_branch_island): Adjust for branch_islands instead of
7077 branch_island_list.
7078 (macho_branch_islands): Likewise.
7079 (no_previous_def): Likewise.
7080 (get_prev_label): Likewise.
7081
7082 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7083
7084 PR boehm-gc/34544
7085 * gthr-posix.h (__gthread_start): Delete.
7086 (__gthread_active_init): Use pthread_default_stacksize_np instead of
7087 pthread_create to determine if hpux pthreads are active.
7088 * gthr-posix95.h (__gthread_start): Delete.
7089 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
7090
7091 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
7092
7093 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
7094 _WIN64 not expanded.
7095
7096 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
7097 H.J. Lu <hongjiu.lu@intel.com>
7098
7099 PR target/45213
7100 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
7101 to output 32bit SFmode immediate as 8 byte sign extended value.
7102
7103 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
7104
7105 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
7106 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
7107 (SUBWORD_BOOL_CAS): Likewise.
7108 (SUBWORD_SYNC_OP): Likewise.
7109 (SUBWORD_TEST_AND_SET): Likewise.
7110 (FETCH_AND_OP_WORD): Parenthesise INF_OP
7111 (SUBWORD_SYNC_OP): Likewise.
7112 (OP_AND_FETCH_WORD): Likewise.
7113
7114 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7115
7116 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
7117 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
7118 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
7119 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
7120 generic part.
7121 (cortex_a9_sched_adjust_cost): New function.
7122 (xscale_sched_adjust_cost): New function.
7123 * config/arm/arm-protos.h (struct tune_params): New field
7124 sched_adjust_cost.
7125 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
7126
7127 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
7128
7129 PR target/44942
7130 * config/sparc/sparc.c (function_arg_advance): Always take into account
7131 the padding, if any.
7132
7133 2010-08-06 Richard Guenther <rguenther@suse.de>
7134
7135 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
7136 (dump_lattice_value): Dump it.
7137 (get_default_value): Adjust.
7138 (get_constant_value): Likewise.
7139 (set_value_varying): Likewise.
7140 (set_lattice_value): Make sure to not go up the lattice
7141 with bitwise constant values.
7142 (get_value_for_expr): Handle ADDR_EXPRs.
7143 (value_to_double_int): New function.
7144 (get_value_from_alignment): Likewise.
7145 (do_dbg_cnt): Adjust.
7146 (ccp_lattice_meet): Handle partially constant values.
7147 (bit_value_unop_1): New function.
7148 (bit_value_binop_1): Likewise.
7149 (bit_value_unop): Likewise.
7150 (bit_value_binop): Likewise.
7151 (evaluate_stmt): Track partially constant values if
7152 flag_tree_bit_ccp is set.
7153 (ccp_fold_stmt): Dump if we folded a predicate.
7154 (ccp_visit_stmt): Adjust.
7155 * common.opt (ftree-bit-ccp): New flag.
7156 * doc/invoke.texi (ftree-bit-ccp): Document.
7157 * opts.c (decode_options): Enable bit-CCP at -O1.
7158
7159 2010-08-06 Alan Modra <amodra@gmail.com>
7160
7161 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
7162 and -mrelocatable-lib description.
7163
7164 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
7165
7166 From Martin Thuresson <martint@google.com>
7167 * postreload.c (reload_cse_simplify_operands): Use
7168 SET_REGNO_RAW instead of SET_REGNO.
7169 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
7170 SET_REGNO.
7171 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
7172 instead of SET_REGNO.
7173 * rtl.h (SET_REGNO_RAW): New macro.
7174
7175 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
7176
7177 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
7178 computations. Fix formatting issues.
7179 (num_sign_bit_copies1): Likewise.
7180 (canonicalize_condition): Likewise.
7181
7182 2010-08-05 Richard Henderson <rth@redhat.com>
7183
7184 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
7185 (floor_log2): Use clz_hwi.
7186 (exact_log2): Use ctz_hwi.
7187 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
7188 * builtins.c (fold_builtin_bitop): Use them.
7189 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7190 * combine.c (get_pos_from_mask): Use ctz_hwi.
7191 * double-int.c (double_int_ctz): Likewise.
7192 * explow.c (force_reg): Likewise.
7193 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
7194
7195 2010-08-05 Richard Henderson <rth@redhat.com>
7196
7197 PR target/45189
7198 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
7199 the alignment constant is properly sign-extended.
7200
7201 2010-08-05 Richard Guenther <rguenther@suse.de>
7202
7203 * expr.c (store_expr): Use emit_block_move only if both
7204 source and target are MEMs. Use store_bit_field if only
7205 the target is a MEM.
7206
7207 2010-08-05 Richard Henderson <rth@redhat.com>
7208
7209 PR debug/45188
7210 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
7211 (INCOMING_RETURN_ADDR_RTX): Likewise.
7212 (dwarf2out_do_frame): Remove conditional compilation.
7213 (dwarf2out_frame_init): Likewise.
7214
7215 2010-08-05 Nicolas Setton <setton@adacore.com>
7216
7217 * gcov.c (flag_display_progress): New static variable.
7218 (main): Display progress info on standard output if requested.
7219 (options): Add -d/--display-progress.
7220 (print_usage): Print them.
7221 (process_args): Handle them.
7222 * doc/gcov.texi: Document them.
7223
7224 2010-08-05 Martin Jambor <mjambor@suse.cz>
7225
7226 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
7227 (ipcp_insert_stage): Redirect only edges not flagged with
7228 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
7229 discovered constants.
7230
7231 2010-08-05 Martin Jambor <mjambor@suse.cz>
7232
7233 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
7234 (struct ipa_param_descriptor): New fields types and
7235 cannot_devirtualize.
7236 (ipa_param_cannot_devirtualize_p): New function.
7237 (ipa_param_types_vec_empty): Likewise.
7238 (ipa_make_edge_direct_to_target): Declare.
7239 * ipa-cp.c: Fixed first stage driver name in initial comment,
7240 described devirtualization there too.
7241 (ipcp_analyze_node): Call ipa_analyze_params_uses.
7242 (ipcp_print_all_lattices): Print devirtualization info.
7243 (ipa_set_param_cannot_devirtualize): New function.
7244 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
7245 lattice to BOTTOM.
7246 (ipcp_init_stage): Merged into...
7247 (ipcp_generate_summary): ...its caller.
7248 (ipcp_change_tops_to_bottom): Also process type lists.
7249 (ipcp_add_param_type): New function.
7250 (ipcp_copy_types): Likewise.
7251 (ipcp_propagate_types): Likewise.
7252 (ipcp_propagate_stage): Also propagate types.
7253 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
7254 Also return true if propagated types require it.
7255 (ipcp_update_callgraph): Dump redirection info.
7256 (ipcp_process_devirtualization_opportunities): New function.
7257 (ipcp_const_param_count): Include known type information.
7258 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
7259 on new node. Fixed formatting.
7260 * ipa-prop.c (make_edge_direct_to_target): Renamed to
7261 ipa_make_edge_direct_to_target and changed all callers. Made
7262 externally visible.
7263 (ipa_node_duplication_hook): Duplicate types vector.
7264 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
7265 redirect outgoing calls for which we can't get a decl from the
7266 statement. Check that we can get a decl from the call statement.
7267 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7268 ipa_analyze_params_uses only when ipa-cp is disabled.
7269 * tree-inline.c (get_indirect_callee_fndecl): Removed.
7270 (expand_call_inline): Do not call get_indirect_callee_fndecl.
7271 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
7272 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
7273
7274 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
7275
7276 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
7277 temporary. Emit move from temporary to accum, so REG_EQUAL note will
7278 be attached to this insn in correct mode.
7279
7280 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
7281
7282 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
7283 using REGNO of base_reg directly.
7284
7285 2010-08-05 Jie Zhang <jie@codesourcery.com>
7286
7287 PR tree-optimization/45144
7288 * tree-sra.c (type_consists_of_records_p): Return false
7289 if the record contains bit-field.
7290
7291 2010-08-04 Richard Henderson <rth@redhat.com>
7292
7293 * config/i386/i386.c (struct ix86_frame): Remove padding and
7294 to_allocate members.
7295 (ix86_compute_frame_layout): Don't store them.
7296 (ix86_can_use_return_insn_p): Use a more direct and more obviously
7297 correct condition for the position of the stack pointer.
7298 (ix86_expand_prologue): Compute remaining stack allocation based
7299 on the ultimate stack pointer offset.
7300 (ix86_expand_epilogue): Use more obvious expressions testing for
7301 the stack pointer already pointing to the saved registers.
7302
7303 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
7304 duplication deconstructing the frame pointer. Simplify
7305 deallocation of the local stack frame.
7306
7307 * reg-notes.def (CFA_EXPRESSION): New.
7308 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7309 (dwarf2out_frame_debug_cfa_expression): New.
7310 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
7311
7312 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
7313 * config/i386/i386.c (ix86_expand_prologue): Set it.
7314 (ix86_expand_epilogue): Clear it.
7315 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
7316 context, add REG_CFA_EXPRESSION notes.
7317
7318 * config/i386/i386.h (struct machine_frame_state): Rename from
7319 machine_cfa_state. Add members tracking SP and FP regardless
7320 of the current CFA register.
7321 (ix86_cfa_state): Remove.
7322 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
7323 and sse_reg_save_offset members.
7324 (ix86_compute_frame_layout): Set them.
7325 (gen_push): Increment sp_offset too.
7326 (choose_baseaddr_len, choose_baseaddr): New.
7327 (ix86_emit_save_reg_using_mov): New.
7328 (ix86_emit_save_regs_using_mov): Use it.
7329 (ix86_emit_save_sse_regs_using_mov): Likewise.
7330 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
7331 compare vs the saved red_zone_offset.
7332 (pro_epilogue_adjust_stack): Adjust sp_offset.
7333 (ix86_adjust_stack_and_probe): Likewise.
7334 (ix86_expand_prologue): Set up, use, and validate the new
7335 frame_state_info members. Use gen_frame_mem.
7336 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
7337 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
7338 new frame_state_info members.
7339 (ix86_emit_leave): Likewise.
7340 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
7341 out-of-range stack pointer offsets here.
7342 (ix86_emit_restore_sse_regs_using_mov): Likewise.
7343 (ix86_expand_epilogue): Use and validate the new frame_state_info
7344 members. Break up and simplify the logic selecting the
7345 restore_regs_via_mov code path. Ensure that there will be no
7346 out-of-range stack pointer offsets.
7347
7348 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
7349
7350 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
7351 argument name to reflect the expected tree; fix indentation.
7352 (ix86_asm_output_function_label): Output the entire 32-bit
7353 ms_hook here as bytes ...
7354 (ix86_expand_prologue): ... not here as insns. Attach the
7355 unwind info for the ms_hook to a blockage insn.
7356 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
7357 (ix86_ms_bitfield_layout_p): Fix indentation.
7358 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
7359
7360 * config/i386/i386.c (ix86_using_red_zone): New.
7361 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
7362 ix86_expand_prologue, ix86_force_to_memory): Use it.
7363
7364 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
7365 saving the int registers.
7366
7367 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
7368 and DWARF2_UNWIND_INFO conditional compilation.
7369
7370 2010-08-04 Richard Henderson <rth@redhat.com>
7371
7372 PR debug/45171
7373 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
7374 an is_naming_typedef_decl.
7375
7376 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
7377
7378 PR rtl-optimization/45162
7379 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
7380 * dce.c (word_dce_process_block): Likewise.
7381
7382 2010-08-04 Steve Ellcey <sje@cup.hp.com>
7383
7384 PR target/44583
7385 * config/ia64/constraints.md (Z): New.
7386 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
7387 (xfreg_or_signed_fp01_operand): New.
7388 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
7389 with fr_reg_or_signed_fp01_operand and constraint G with Z.
7390 (subsf3): Ditto.
7391 (*maddsf4): Ditto.
7392 (*msubsf4): Ditto.
7393 (adddf3): Ditto.
7394 (adddf3_trunc): Ditto.
7395 (subdf3): Ditto.
7396 (*subdf3_trunc): Ditto.
7397 (*madddf4): Ditto.
7398 (*madddf4_trunc): Ditto.
7399 (*msubdf4): Ditto.
7400 (*msubdf4_trunc): Ditto.
7401 (addxf3): Replace xfreg_or_fp01_operand with
7402 xfreg_or_signed_fp01_operand and constraint G with Z.
7403 (*addxf3_truncsf): Ditto.
7404 (*addxf3_truncdf): Ditto.
7405 (subxf3): Ditto.
7406 (*subxf3_truncsf): Ditto.
7407 (*subxf3_truncdf): Ditto.
7408 (*maddxf4): Ditto.
7409 (*maddxf4_truncsf): Ditto.
7410 (*maddxf4_truncdf): Ditto.
7411 (*msubxf4): Ditto.
7412 (*msubxf4_truncsf): Ditto.
7413 (*msubxf4_truncdf): Ditto.
7414
7415 2010-08-04 Richard Guenther <rguenther@suse.de>
7416
7417 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
7418 if either alias-set is zero.
7419
7420 2010-08-04 Richard Guenther <rguenther@suse.de>
7421
7422 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
7423 * tree-ssa-ccp.c: ... here.
7424 * tree-ssa-copy.c: ... and here.
7425 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
7426 value_range_t): Move ...
7427 * tree-vrp.c: ... here.
7428 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
7429 (substitute_and_fold): Adjust prototype.
7430 * tree-ssa-propagate.c (replace_uses_in): Adjust.
7431 (replace_phi_args_in): Likewise.
7432 (substitute_and_fold): Take callback to query lattice instead
7433 of pointer to lattice. Replace SSA name defs with lattice
7434 values first.
7435 * tree-ssa-ccp.c (ccp_finalize): Adjust.
7436 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
7437 (get_value): New function.
7438 (fini_copy_prop): Adjust.
7439 * tree-vrp.c (vrp_finalize): Adjust.
7440
7441 2010-08-04 Richard Guenther <rguenther@suse.de>
7442
7443 PR middle-end/45176
7444 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
7445 points-to set for original MEM_REF.
7446
7447 2010-08-04 Richard Guenther <rguenther@suse.de>
7448
7449 * tree-ssa-ccp.c (get_constant_value): New function.
7450 (get_rhs_assign_op_for_ccp): Remove.
7451 (valueize_op): New function.
7452 (ccp_fold): Use get_constant_value and valueize_op.
7453 (fold_const_aggregate_ref): Likewise.
7454 (ccp_fold_stmt): Likewise.
7455 (visit_assignment): Simplify.
7456
7457 2010-08-04 Richard Guenther <rguenther@suse.de>
7458
7459 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
7460 * double-int.h (double_int_ctz): Declare.
7461 * double-int.c (double_int_ctz): New function.
7462
7463 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
7464
7465 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
7466 Define.
7467 picochip_expand_movmemhi : Expand movmem pattern.
7468 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
7469 Declare.
7470 * config/picochip/picochip.md (movmemhi) : New pattern.
7471
7472 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
7473
7474 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
7475
7476 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
7477
7478 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
7479 NEG as operand of a MULT by merging it with the other operand.
7480 * combine.c (make_compound_operation): Use trunc_int_for_mode when
7481 generating a MULT with constant. Canonicalize PLUS and MINUS involving
7482 MULT.
7483 * config/arm/constraints.md (M): Examine only 32 bits of a
7484 HOST_WIDE_INT.
7485 * config/arm/predicates.md (power_of_two_operand): Likewise.
7486
7487 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7488
7489 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
7490 non-NOTE insns.
7491
7492 2010-08-03 Jan Hubicka <jh@suse.cz>
7493
7494 * ipa-split.c (struct split_point): Add split_part_set_retval.
7495 (find_retval): Forward declare.
7496 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
7497 (consider_split): Compute current->split_part_set_retval.
7498 (visit_bb): Do not look into return value.
7499 (split_function): Handle !split_part_set_retval
7500
7501 2010-08-03 Martin Jambor <mjambor@suse.cz>
7502
7503 * tree-sra.c (completely_scalarize_record): New parameter REF, create
7504 its own access->expr intead of using build_ref_for_offset.
7505
7506 2010-08-03 Joseph Myers <joseph@codesourcery.com>
7507
7508 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
7509 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
7510 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
7511 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
7512 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
7513 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
7514 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
7515 DEFAULT_SWITCH_TAKES_ARG.
7516 * config/rx/rx.opt (-patch=): Remove option.
7517 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
7518 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
7519 * doc/invoke.texi (RX Options): Remove -patch=.
7520 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
7521 (option_map): Remove --profile-blocks, --quiet and --silent.
7522
7523 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
7524
7525 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
7526 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
7527 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
7528 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7529 Update calls to ix86_expand_compare and ix86_expand_branch.
7530 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
7531 ix86_expand_compare.
7532 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
7533 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7534 Make static.
7535 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
7536 and ix86_compare_op1. Update calls to ix86_expand_compare.
7537 (ix86_expand_int_movcc): Ditto.
7538 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
7539 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
7540 (ix86_expand_setcc): Ditto.
7541 (ix86_expand_compare): Remove prototype.
7542 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
7543 ix86_compare_op0 and ix86_compare_op1. Update calls
7544 to ix86_expand_branch to directly pass operands[1] and operands[2].
7545 (cbranchxf4): Ditto.
7546 (cbranch<MODEF:mode>4): Ditto.
7547 (cbranchcc4): Ditto.
7548 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
7549 Update calls to ix86_expand_setcc to directly pass operands[2] and
7550 operands[3].
7551 (cstorexf4): Ditto.
7552 (cstore<MODEF:mode>4): Ditto.
7553 (cstorecc4): Ditto.
7554
7555 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
7556
7557 PR target/45063
7558 * caller-save.c (save_call_clobbered_regs): Remove regs from
7559 hard_regs_saved when they are set.
7560
7561 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
7562
7563 PR target/41089
7564 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7565 as volatile.
7566
7567 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
7568
7569 * common.opt (ftree-loop-distribute-patterns): New.
7570 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
7571 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
7572 at -O3.
7573 * tree-data-ref.c (stores_zero_from_loop): New.
7574 * tree-data-ref.h (stores_zero_from_loop): Declared.
7575 * tree-loop-distribution.c (tree_loop_distribution): Call
7576 stores_zero_from_loop.
7577 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
7578
7579 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
7580
7581 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
7582 into account.
7583
7584 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
7585 * config/arm/arm.c (thumb1_code): New variable.
7586 (arm_override_options): Set it.
7587 (thumb1_final_prescan_insn): Keep track of condition code status.
7588 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
7589 jumps that depend on them.
7590 * config/arm/arm.h (thumb1_code): Declare variable.
7591 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
7592 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
7593 thumb1_cc_mode.
7594 (CC_STATUS_INIT): New macro.
7595 * config/arm/constraints.md (Pd): New constraint.
7596 * config/arm/predicates.md (noov_comparison_operator): New predicate.
7597 * config/arm/arm.md (is_thumb1): New define_attr.
7598 (conds): Set default to "clob" when generating Thumb1 code.
7599 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
7600 code are set. Use two-operand assembly syntax.
7601 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
7602 pattern.
7603 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
7604 codes are set. Use two-operand assembly syntax.
7605 (zero_extendhisi splitter): Remove constraints.
7606 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
7607 thumb1_movsf_insn): Set conds attribute as appropriate.
7608 (cbranchsi4_insn): Use condition code status from struct
7609 machine_function to determine whether the comparison can be eliminated.
7610 Discourage the alternative using high registers.
7611 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
7612 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
7613 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
7614 subsi3_cbranch): Delete.
7615 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
7616 one subtract and one cbranch insn.
7617
7618 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
7619 thumb2_movdf_soft_insn): Delete patterns.
7620 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
7621 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
7622 (pool_range, neg_pool_range): Use them to define defaults.
7623 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
7624 and allow for TARGET_32BIT.
7625
7626 PR target/40457
7627 * config/arm/arm.h (arm_regs_in_sequence): Declare.
7628 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
7629 load_multiple_sequence, store_multiple_sequence): Delete
7630 declarations.
7631 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
7632 declarations.
7633 * config/arm/ldmstm.md: New file.
7634 * config/arm/arm.c (arm_regs_in_sequence): New array.
7635 (load_multiple_sequence): Now static. New args SAVED_ORDER,
7636 CHECK_REGS. All callers changed.
7637 If SAVED_ORDER is nonnull, copy the computed order into it.
7638 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
7639 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
7640 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
7641 If SAVED_ORDER is nonnull, copy the computed order into it.
7642 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
7643 like REGS. Handle Thumb mode.
7644 (arm_gen_load_multiple_1): New function, broken out of
7645 arm_gen_load_multiple.
7646 (arm_gen_store_multiple_1): New function, broken out of
7647 arm_gen_store_multiple.
7648 (arm_gen_multiple_op): New function, with code from
7649 arm_gen_load_multiple and arm_gen_store_multiple moved here.
7650 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
7651 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
7652 changed.
7653 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
7654 * config/arm/predicates.md (commutative_binary_operator): New.
7655 (load_multiple_operation, store_multiple_operation): Handle more
7656 variants of these patterns with different starting offsets. Handle
7657 Thumb-1.
7658 * config/arm/arm.md: Include "ldmstm.md".
7659 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
7660 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
7661 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
7662 peepholes): Delete.
7663 * config/arm/ldmstm.md: New file.
7664 * config/arm/arm-ldmstm.ml: New file.
7665
7666 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
7667 if statement which adds extra costs to frame-related expressions.
7668
7669 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7670
7671 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
7672
7673 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
7674
7675 PR target/45142
7676 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7677 alternative 2.
7678 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7679 split V4SI operands.
7680
7681 2010-08-01 Anatoly Sokolov <aesok@post.ru>
7682
7683 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7684 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7685 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7686 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7687
7688 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
7689
7690 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7691 LOCAL_INCLUDE_DIR.
7692
7693 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7694
7695 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7696 used in the call to optab_for_tree_code. Fix the second
7697 is_widening_mult_p call. Check that both unwidened operands
7698 have the same sign.
7699
7700 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
7701
7702 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7703
7704 2010-07-31 Anatoly Sokolov <aesok@post.ru>
7705
7706 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7707
7708 2010-07-30 DJ Delorie <dj@redhat.com>
7709
7710 * config/rx/predicates.md (rx_constshift_operand): New.
7711 * config/rx/rx.md (zs_cond): New.
7712 (cbranchsi4): Remove mode.
7713 (*cbranchsi4_<code>): Likewise.
7714 (*tstbranchsi4_<code>): New.
7715 (*tstbranchsi4r_<code>): New.
7716 (*tstbranchsi4m_eq): New.
7717 (*tstbranchsi4m_ne): New.
7718 (cbranchsf4): Remove mode.
7719 (*cbranchsf4_<code>): Likewise.
7720
7721 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
7722
7723 * rtlanal.c (simplify_subreg_regno): Don't treat
7724 HARD_FRAME_POINTER_REGNUM specially.
7725
7726 2010-07-30 Joseph Myers <joseph@codesourcery.com>
7727
7728 * common.opt (-G): Don't define option here.
7729 * config/g.opt: New.
7730 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7731 rs6000/powerpc and score targets.
7732 * opts.c (common_handle_option): Don't handle -G here.
7733 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7734 * config/frv/frv.c (frv_handle_option): Handle -G.
7735 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7736 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7737 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7738 * config/mips/mips.c (mips_handle_option): Handle -G.
7739 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7740 * config/score/score.c (score_handle_option): Handle -G.
7741
7742 2010-07-30 Anatoly Sokolov <aesok@post.ru>
7743
7744 * config/mmix/mmix.c: Include basic-block.h.
7745
7746 2010-07-30 Jakub Jelinek <jakub@redhat.com>
7747
7748 PR debug/45055
7749 PR rtl-optimization/45137
7750 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7751 prototypes.
7752 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7753 New functions.
7754 * combine.c (next_nonnote_nondebug_insn): Removed.
7755 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7756 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7757 * sched-deps.c (sched_analyze_insn): Likewise.
7758 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7759 * rtlanal.c (canonicalize_condition): Likewise.
7760 * postreload.c (reload_combine_recognize_pattern): Likewise.
7761 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7762
7763 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
7764
7765 * config/i386/i386.md (int_cond): Remove code iterator.
7766 (fp_cond): Ditto.
7767 (cbranch<mode>4): Use ordered_comparison_operator predicate
7768 for operator0.
7769 (cstore<mode>4): Ditto for operator1.
7770 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7771 (add<mode>cc): ditto.
7772
7773 2010-07-30 Richard Guenther <rguenther@suse.de>
7774
7775 PR middle-end/45141
7776 * expr.c (expand_expr_real_1): Check for not handled base address.
7777
7778 2010-07-30 Richard Guenther <rguenther@suse.de>
7779
7780 * ipa-prop.c (ipa_modify_formal_parameters): Use
7781 build_distinct_type_copy.
7782
7783 2010-07-30 Anthony Green <green@moxielogic.com>
7784
7785 * config/moxie/rtems.h: New file.
7786 * config.gcc: Add moxie-rtems support.
7787
7788 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
7789
7790 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
7791 df flags as in run_fast_df_dce.
7792
7793 2010-07-29 Jakub Jelinek <jakub@redhat.com>
7794
7795 Revert:
7796 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
7797
7798 * rtl.def (NOTE): Swap operands 4 and 5.
7799 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7800 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7801 Adjust accordingly.
7802 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7803
7804 2010-07-29 Jakub Jelinek <jakub@redhat.com>
7805
7806 PR debug/45110
7807 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7808 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7809 (gen_subprogram_die): Likewise. Remove it when removing declaration's
7810 formal parameters.
7811 (gen_decl_die): Change return type to dw_die_ref, return what
7812 gen_formal_parameter_die returned.
7813
7814 2010-07-29 Martin Jambor <mjambor@suse.cz>
7815
7816 * dbgcnt.def (eipa_sra): New counter.
7817 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7818
7819 2010-07-29 Xinliang David Li <davidxl@google.com>
7820
7821 PR bootstrap/45119
7822 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7823 in revision 162652.
7824
7825 2010-07-29 Richard Guenther <rguenther@suse.de>
7826
7827 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7828 (TV_TREE_STORE_CCP): Likewise.
7829 (TV_TREE_REDPHI): Likewise.
7830
7831 2010-07-29 Richard Guenther <rguenther@suse.de>
7832
7833 * double-int.h (double_int_and_not): New function.
7834 * combine.c (try_combine): Use it.
7835 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
7836
7837 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
7838
7839 PR rtl-optimization/42575
7840 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
7841 Argument AU removed. All callers changed. Ignore artificial refs.
7842 Use return value of df_word_lr_simulate_defs to decide whether an insn
7843 is necessary.
7844 (fast_dce): Rename arg to WORD_LEVEL.
7845 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
7846 static.
7847 (pass_fast_rtl_byte_dce): Delete.
7848 * dce.h (run_word_dce): Declare.
7849 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
7850 All callers changed. Simplify code to only deal with two-word regs.
7851 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
7852 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
7853 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
7854 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
7855 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
7856 (df_word_lr_mark_ref): Declare.
7857 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
7858 df_word_lr_simulate_uses): Declare or rename from byte variants.
7859 (df_byte_lr_simulate_artificial_refs_at_top,
7860 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7861 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
7862 declarations.
7863 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
7864 (enum df_mm): Delete.
7865 * df-byte-scan.c: Delete file.
7866 * df-problems.c (df_word_lr_problem_data): Renamed from
7867 df_byte_lr_problem_data, all members deleted except for
7868 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
7869 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
7870 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7871 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
7872 df_byte_lr_confluence_0): Delete functions.
7873 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
7874 callers changed.
7875 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
7876 Don't initialize members that were deleted, don't try to discover data
7877 about registers. Ignore hard regs.
7878 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
7879 (df_word_lr_mark_ref): New function.
7880 (df_word_lr_bb_local_compute): Renamed from
7881 df_byte_bb_lr_local_compute; all callers changed. Use
7882 df_word_lr_mark_ref. Assert that artificial refs don't include
7883 pseudos. Ignore hard registers.
7884 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
7885 Assert that exit block uses don't contain pseudos.
7886 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
7887 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
7888 callers changed. Ignore hard regs.
7889 (df_word_lr_transfer_function): Renamed from
7890 df_byte_lr_transfer_function; all callers changed.
7891 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
7892 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
7893 changed.
7894 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
7895 callers changed.
7896 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
7897 confluence operator 0 set to NULL.
7898 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
7899 callers changed.
7900 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
7901 Return bool, true if bitmap changed or insn otherwise necessary.
7902 All callers changed. Simplify using df_word_lr_mark_ref.
7903 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
7904 all callers changed. Simplify using df_word_lr_mark_ref.
7905 * lower-subreg.c: Include "dce.h"
7906 (decompose_multiword_subregs): Call run_word_dce if df available.
7907 * Makefile.in (lower-subreg.o): Adjust dependencies.
7908 (df-byte-scan.o): Delete.
7909 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
7910
7911 2010-07-29 Richard Guenther <rguenther@suse.de>
7912
7913 * tree.c (build_vector): Assert that the vector constant
7914 has enough elements.
7915 (build_vector_from_ctor): Pad with trailing zeros.
7916
7917 2010-07-29 Richard Guenther <rguenther@suse.de>
7918
7919 PR tree-optimization/45120
7920 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7921 Handle offset in DEREFs properly.
7922 (get_constraint_for_1): Handle MEM_REF offset properly.
7923
7924 2010-07-29 Richard Guenther <rguenther@suse.de>
7925
7926 PR middle-end/45034
7927 * convert.c (convert_to_integer): Always use an unsigned
7928 type for narrowed negate and bitwise not.
7929
7930 2010-07-29 Ira Rosen <irar@il.ibm.com>
7931
7932 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
7933 to outer loop when creating reduction epilogue for double reduction,
7934 and switch back to the inner loop when updating the phi nodes.
7935 Update uses of outer loop exit phi nodes in double reduction (instead
7936 of uses of reduction).
7937
7938 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7939
7940 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
7941 popcount on power7 and parity on power6 systems.
7942 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
7943 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
7944 instructions.
7945
7946 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
7947 (UNSPEC_PARITY): Ditto.
7948 (SFDF): New iterator for SF/DF.
7949 (rreg2): New mode attribute for floating register constraint.
7950 (TARGET_FLOAT): New mode attribute for whether single/double float
7951 is supported.
7952 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
7953 pattern.
7954 (parity<mode>2_cmpb): New insn for parity on power6 and newer
7955 machines.
7956 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
7957 pattern. Add support for fcpsgn instruction added in power6.
7958 (copysignsf3): Delete.
7959 (copysigndf3): Delete.
7960 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
7961 instead of if_then_else in RTL to avoid problems with -0.
7962
7963 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
7964 of if_then_else to mirror scalar code.
7965 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
7966 rs6000.md.
7967
7968 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
7969 instead of if_then_else.
7970
7971 2010-07-28 Xinliang David Li <davidxl@google.com>
7972
7973 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
7974 (dump_cand): Dump var_before/after.
7975 (htab_inv_expr_eq): New function.
7976 (htab_inv_expr_hash): New function.
7977 (tree_ssa_iv_optimize_init): Support pseudo invariants.
7978 (add_candidate_1): consider base type precision.
7979 (set_use_iv_cost): New parameter.
7980 (adjust_setup_cost): Use profile information.
7981 (get_address_cost): Do not hard code width in computing address
7982 offset limits.
7983 (compare_aff_trees): New function.
7984 (get_loop_invariant_expr_id): New function.
7985 (get_computation_cost_at): New parameter and use profile information.
7986 (get_computation_cost): New parameter.
7987 (determine_use_iv_cost_generic): Pass new parameter.
7988 (determine_use_iv_cost_address): Ditto.
7989 (determine_use_iv_cost_condition): Ditto.
7990 (autoinc_possible_for_pair): Ditto.
7991 (determine_use_iv_costs): More dumps.
7992 (iv_ca_get_num_inv_exprs): New function.
7993 (iv_ca_recount_cost): Consider loop invariants in register pressure
7994 cost.
7995 (iv_ca_add_use): New parameter.
7996 (iv_ca_dump): Better dumping.
7997 (iv_ca_extend): New parameter.
7998 (try_add_cand_for): Attempt to get better partial solution.
7999 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
8000 (create_new-ivs): More dumps.
8001 (rewrite_use_compare): Ditto.
8002 (free_loop_data): More cleanup.
8003 (treee_ssa_iv_optimize_finalize): Ditto.
8004
8005 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
8006
8007 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
8008 * config/i386/i386.c (ix86_profile_before_prologue): New.
8009 (override_options): Add special handling for -mfentry.
8010 (ix86_function_regparm): Likewise.
8011 (ix86_function_sseregparm): Likewise.
8012 (ix86_frame_pointer_required): Likewise.
8013 (ix86_expand_prologue): Check for ms_hook_prologue.
8014 (x86_function_profiler): Adjust mcount output.
8015 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
8016 * config/i386/i386.opt (mfentry): New.
8017 * doc/invoke.texi (mfentry): Add documentation.
8018 * doc/tm.texi: Regenerated..
8019 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
8020 * final.c (final_start_function): Replace macro
8021 PROFILE_BEFORE_PROLOGUE by target hook.
8022 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8023 * target.def (profile_before_prologue): New hook.
8024 * targhooks.c (default_profile_before_prologue): New.
8025 * targhooks.h (default_profile_before_prologue): New.
8026
8027 2010-07-28 Jakub Jelinek <jakub@redhat.com>
8028
8029 PR debug/45105
8030 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
8031
8032 PR debug/45103
8033 * dwarf2out.c (dwarf2out_var_location): Always consider
8034 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
8035
8036 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
8037
8038 PR rtl-optimization/45107
8039 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
8040
8041 2010-07-28 Richard Guenther <rguenther@suse.de>
8042
8043 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
8044 (set_lattice_value): Do not query an old default value.
8045 (get_value_for_expr): New function. Properly canonicalize
8046 float values.
8047 (ccp_visit_phi_node): Use it.
8048
8049 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
8050
8051 * config/arm/arm.c (arm_pcs_default): Remove static.
8052 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
8053 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
8054 (arm_pcs_default): Declare.
8055
8056 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
8057
8058 * config/rs6000/rs6000.c (rs6000_override_options):
8059 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
8060 ... to darwin_rs6000_override_options.
8061 (rs6000_return_in_memory): Update preceding comment for darwin
8062 64 bit ABI. Use TARGET_MACHO inline.
8063 (rs6000_darwin64_struct_check_p): New.
8064 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
8065 (function_arg): Likewise.
8066 (rs6000_arg_partial_bytes): Likewise.
8067 (rs6000_function_value): Likewise.
8068
8069 2010-07-28 Andi Kleen <ak@linux.intel.com>
8070
8071 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
8072
8073 2010-07-28 Richard Guenther <rguenther@suse.de>
8074
8075 PR middle-end/44903
8076 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
8077 targets try harder to not generate unaligned accesses.
8078
8079 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
8080
8081 PR rtl-optimization/45101
8082 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
8083 for gcse-las.
8084
8085 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
8086
8087 PR tree-optimization/44885
8088 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
8089 with non-aliased component.
8090
8091 2010-07-28 Joseph Myers <joseph@codesourcery.com>
8092
8093 * config/darwin-driver.c (SWITCH_TAKES_ARG,
8094 WORD_SWITCH_TAKES_ARG): Remove.
8095 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
8096 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
8097 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
8098 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
8099 definitions from gcc.c.
8100 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
8101 defaults.h.
8102 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
8103 Move to defaults.h.
8104 * opts-common.c: Include tm.h.
8105 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
8106 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
8107 Handle more than one argument. Set canonical_option_num_elements.
8108 (decode_cmdline_options_to_array): Set
8109 canonical_option_num_elements and trailing elements of
8110 canonical_option.
8111 * opts.h (struct cl_decoded_option): Allow four elements in
8112 canonical_option. Add field canonical_option_num_elements.
8113 * Makefile.in (opts-common.o): Update dependencies.
8114
8115 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
8116
8117 PR middle-end/44790
8118 PR middle-end/44993
8119 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
8120 sure the base has address_mode before adding the offset.
8121
8122 2010-07-27 Xinliang David Li <davidxl@google.com>
8123
8124 * tree-flow.h (create_mem_ref): Add one new parameter.
8125 * tree-ssa-address.c (create_mem_ref): New parameter.
8126 (addr_to_parts): Ditto.
8127 (move_variant_to_index): New function.
8128 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
8129
8130 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
8131
8132 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
8133 4 and 5.
8134 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
8135 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
8136 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
8137 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
8138 CODE_LABELs and NOTEs.
8139 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
8140 * combine.c (try_combine): Likewise.
8141 * ira.c (setup_prohibited_mode_move_regs): Likewise.
8142 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
8143
8144 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8145
8146 * coretypes.h (struct cl_option_handlers): Declare.
8147 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
8148 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
8149 * langhooks-def.h (lhd_handle_option): Declare.
8150 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
8151 * langhooks.c (lhd_handle_option): New.
8152 * langhooks.h (struct lang_hooks): Update prototype and return
8153 value type of handle_option hook.
8154 * optc-gen.awk: Generate target_flags_explicit definition for the
8155 driver.
8156 * opts-common.c: Include diagnostic.h.
8157 (handle_option): Move from opts.c. Update prototype and return
8158 value type. Use handlers structure.
8159 (read_cmdline_option): Move from opts.c. Update prototype. Use
8160 handlers structure.
8161 (set_option): Move from opts.c.
8162 * opts.c (common_handle_option): Update prototype and return value
8163 type. Update calls to handle_option and enable_warning_as_error.
8164 (unknown_option_callback, post_handling_callback,
8165 lang_handle_option, target_handle_option): New.
8166 (handle_option, read_cmdline_option): Move to opts-common.c.
8167 (read_cmdline_options): Update prototype. Update call to
8168 read_cmdline_option.
8169 (decode_options): Initialize and use handlers structure.
8170 (set_option): Move to opts-common.c.
8171 (enable_warning_as_error): Update prototype. Update call to
8172 handle_option.
8173 * opts.h (struct cl_option_handler_func, struct
8174 cl_option_handlers): New.
8175 (handle_option, enable_warning_as_error): Update prototypes.
8176 (read_cmdline_option): Declare.
8177 * Makefile.in (opts-common.o): Update dependencies.
8178
8179 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8180
8181 * config/arm/arm.c (params.h): Include.
8182 (arm_override_options): Tune gcse-unrestricted-cost.
8183 * config/arm/t-arm (arm.o): Define dependencies.
8184
8185 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8186
8187 PR target/42495
8188 PR middle-end/42574
8189 * basic-block.h (get_dominated_to_depth): Declare.
8190 * dominance.c (get_dominated_to_depth): New function, use
8191 get_all_dominated_blocks as a base.
8192 (get_all_dominated_blocks): Use get_dominated_to_depth.
8193
8194 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
8195 (hoist_exprs): Remove.
8196 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
8197 (compute_code_hoist_vbeinout): Add debug print outs.
8198 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
8199
8200 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
8201 quadratic behavior.
8202 * params.h (MAX_HOIST_DEPTH): New macro.
8203 * doc/invoke.texi (max-hoist-depth): Document.
8204
8205 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8206
8207 PR rtl-optimization/40956
8208 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
8209 constants.
8210
8211 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8212
8213 PR target/42495
8214 PR middle-end/42574
8215 * config/arm/arm.c (legitimize_pic_address): Use
8216 gen_calculate_pic_address pattern to emit calculation of PIC address.
8217 (will_be_in_index_register): New function.
8218 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
8219 (thumb1_legitimate_address_p): Use it provided !strict_p.
8220 * config/arm/arm.md (calculate_pic_address): New expand and split.
8221
8222 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8223
8224 PR target/42495
8225 PR middle-end/42574
8226 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
8227 * config/arm/arm.md (define_split "J", define_split "K"): Make
8228 IRA/reload friendly.
8229
8230 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8231
8232 * gcse.c (insert_insn_end_basic_block): Update signature, remove
8233 unused checks.
8234 (pre_edge_insert, hoist_code): Update.
8235
8236 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8237
8238 PR target/42495
8239 PR middle-end/42574
8240 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
8241
8242 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8243
8244 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
8245
8246 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8247
8248 PR rtl-optimization/40956
8249 PR target/42495
8250 PR middle-end/42574
8251 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
8252 for hoisting.
8253 (hoist_code): Count occurences in current block too.
8254
8255 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8256
8257 * gcse.c (struct expr:max_distance): New field.
8258 (doing_code_hoisting_p): New static variable.
8259 (want_to_gcse_p): Change signature. Allow constrained hoisting of
8260 simple expressions, don't change behavior for PRE. Set max_distance.
8261 (insert_expr_in_table): Set new max_distance field.
8262 (hash_scan_set): Update.
8263 (hoist_expr_reaches_here_p): Stop search after max_distance
8264 instructions.
8265 (find_occr_in_bb): New static function. Use it in ...
8266 (hoist_code): Calculate sizes of basic block before any changes are
8267 done. Pass max_distance to hoist_expr_reaches_here_p.
8268 (one_code_hoisting_pass): Set doing_code_hoisting_p.
8269
8270 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
8271 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
8272 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
8273 macros.
8274 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
8275 Document.
8276
8277 2010-07-27 Jeff Law <law@redhat.com>
8278 Maxim Kuvyrkov <maxim@codesourcery.com>
8279
8280 * gcse.c (compute_transpout, transpout): Remove, move logic
8281 to prune_expressions.
8282 (compute_pre_data): Move pruning of trapping expressions ...
8283 (prune_expressions): ... here. New static function.
8284 (compute_code_hoist_data): Use it.
8285 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
8286
8287 2010-07-27 Xinliang David Li <davidxl@google.com>
8288
8289 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
8290 (rewrite_use_address): Adjust iv update position when needed.
8291
8292 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8293
8294 * dbgcnt.def (hoist_insn): New debug counter.
8295 * gcse.c (hoist_code): Use it.
8296
8297 2010-07-27 Xinliang David Li <davidxl@google.com>
8298
8299 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
8300 (niter_for_single_dom_exit): Passes additional parameter.
8301 (iv_period): Fix comments.
8302 (may_eliminate_iv): Handles multiple exit loops properly.
8303 (free_tree_niter_desc): New function.
8304 (free_loop_data): Frees up loop iteration descriptors.
8305
8306 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8307
8308 PR target/44542
8309 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
8310 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
8311 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
8312 (expand_one_var): Don't consider DECL_ALIGN for variables for
8313 which expand_one_stack_var_at has been already called.
8314
8315 PR testsuite/44701
8316 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
8317 constraints on IA-64.
8318
8319 2010-07-27 Jie Zhang <jie@codesourcery.com>
8320
8321 PR target/44290
8322 Revert:
8323 2010-07-23 Jie Zhang <jie@codesourcery.com>
8324
8325 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8326 false if ! tree_versionable_function_p.
8327
8328 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8329
8330 * dwarf2out.c (add_data_member_location_attribute): Use
8331 add_AT_unsigned instead of add_AT_int if offset is non-negative.
8332
8333 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
8334
8335 * postreload.c (try_replace_in_use): New static function.
8336 (reload_combine_recognize_const_pattern): Use it here. Allow
8337 substituting into a final add insn, and substituting into a memory
8338 reference in an insn that sets the reg.
8339
8340 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8341
8342 * common.opt (o): Add MissingArgError.
8343 * doc/options.texi (MissingArgError): Document.
8344 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
8345 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
8346 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8347 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
8348 * langhooks.h (struct lang_hooks): Remove missing_argument.
8349 * optc-gen.awk: Handle MissingArgError and output new structure
8350 field initializers.
8351 * opts.c (read_cmdline_option): Use missing_argument_error field
8352 instead of missing_argument langhook.
8353 * opts.h (struct cl_option): Add missing_argument_error field.
8354 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
8355
8356 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
8357
8358 PR target/29090
8359 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
8360 Darwin64 ABI, for zero-sized objects.
8361
8362 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
8363
8364 PR target/35491
8365 PR target/29090
8366
8367 Merge from Apple local 4.2.1.
8368 2005-05-11 Stan Shebs <shebs@apple.com>
8369 Fix 64-bit varargs for Darwin (Radar 4028089).
8370 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
8371 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8372 Add argument, add case for 8-byte register half-filled with a float.
8373 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
8374 single-precision floats specially.
8375
8376 2010-07-27 Ira Rosen <irar@il.ibm.com>
8377
8378 PR tree-optimization/44152
8379 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
8380 complex numbers for further check.
8381 (vect_supported_load_permutation_p): Check nodes with
8382 complex numbers.
8383
8384 2010-07-27 Joseph Myers <joseph@codesourcery.com>
8385
8386 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
8387 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
8388 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
8389 (LANG_HOOKS_INITIALIZER): Add new hooks.
8390 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
8391 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
8392 and complain_wrong_lang_p. Update init_options prototype.
8393 * c-objc-common.c (c_initialize_diagnostics): First call
8394 c_common_initialize_diagnostics.
8395 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
8396 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
8397 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
8398 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
8399 (hook_uint_void_0): New.
8400 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
8401 (hook_uint_void_0): New.
8402 * opts-common.c (decode_cmdline_option,
8403 decode_cmdline_options_to_array): Also fill in canonical_option field.
8404 * opts.c (complain_wrong_lang): Use langhook to determine whether
8405 to complain instead of special-casing LTO.
8406 (decode_options): Separate lang_mask determination with
8407 option_lang_mask hook from call of init_options hook.
8408 * opts.h (struct cl_decoded_option): Add canonical_option.
8409
8410 2010-07-27 Jakub Jelinek <jakub@redhat.com>
8411
8412 PR tree-optimization/45083
8413 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
8414
8415 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
8416
8417 * postreload.c (reload_combine_recognize_const_pattern): Move test
8418 for limiting the insn movement to the right scope.
8419
8420 PR rtl-optimization/45051
8421 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
8422 than reg_mentioned_p.
8423
8424 2010-07-26 Richard Henderson <rth@redhat.com>
8425
8426 PR target/44132
8427 * tree-emutls.c: New file.
8428 * Makefile.in (OBJS-common): Add it.
8429 * tree-pass.h (pass_ipa_lower_emutls): Declare.
8430 * passes.c (init_optimization_passes): Add it.
8431
8432 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
8433 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
8434 * expr.c (emutls_var_address): Delete.
8435 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
8436 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
8437 (emutls_finish): Delete.
8438 * toplev.c (compile_file): Don't call it.
8439 * tree.h (emutls_decl): Delete.
8440 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
8441 (emutls_finish, emutls_finalize_control_var): Delete.
8442 (emutls_object_type): Move to tree-emutls.c.
8443 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
8444 default_emutls_var_fields, get_emutls_object_type,
8445 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
8446 default_emutls_var_init): Likewise.
8447 (get_variable_section): Don't special case emutls.
8448 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
8449 default_elf_select_section, default_unique_section,
8450 default_encode_section_info): Likewise.
8451 * varpool.c (decide_is_variable_needed): Likewise.
8452 * gimple-iterator.c (update_call_edge_frequencies): New
8453 (gsi_insert_on_edge_immediate): Use it.
8454 (gsi_insert_seq_on_edge_immediate): Likewise.
8455 (gsi_commit_one_edge_insert): Likewise.
8456
8457 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
8458 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
8459 (x86_64_elf_unique_section): Likewise.
8460
8461 2010-07-26 Jan Hubicka <jh@suse.cz>
8462
8463 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
8464 GTY((skip)).
8465
8466 2010-07-26 Anatoly Sokolov <aesok@post.ru>
8467
8468 * target.def (output_source_filename): New hook.
8469 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
8470 * doc/tm.texi: Regenerate.
8471 * toplev.c (output_file_directive) Remove function.
8472 * toplev.h (output_file_directive) Remove.
8473 * output.h (default_asm_output_source_filename,
8474 output_file_directive): Declare.
8475 * varasm.h (default_asm_output_source_filename,
8476 output_file_directive): New functions.
8477
8478 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
8479 * config/mips/mips-protos.h (mips_output_filename): Remove.
8480 * config/mips/mips.c (mips_output_filename): Make Static.
8481 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
8482
8483 2010-07-26 Richard Guenther <rguenther@suse.de>
8484
8485 PR tree-optimization/43784
8486 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
8487 if the destination is used by the call.
8488
8489 2010-07-26 Richard Guenther <rguenther@suse.de>
8490
8491 PR middle-end/45073
8492 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
8493 SSA updating on being in SSA form.
8494
8495 2010-07-26 Richard Guenther <rguenther@suse.de>
8496
8497 PR middle-end/45056
8498 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
8499
8500 2010-07-26 Richard Guenther <rguenther@suse.de>
8501
8502 PR tree-optimization/45071
8503 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
8504 adjust op->opcode.
8505
8506 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
8507
8508 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
8509 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
8510 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
8511 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
8512 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
8513 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
8514 save_r31, return_r31, save_interrupt, return_interrupt,
8515 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
8516 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
8517 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
8518 new ABI requirements.
8519 (save_r6_r9, L_callt_save_r6_r9): Remove.
8520 * config/v850/predicates.md (even_reg_operand, disp23_operand,
8521 const_float_1_operand const_float_0_operand): New Predicates.
8522 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
8523 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
8524 * config/v850/t-v850: Update multilibs for new target variants.
8525 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
8526 * config/v850/t-v850e: Likewise.
8527 * config/v850/v850.c (v850_issue_rate): New.
8528 (v850_strict_argument_naming): New.
8529 (function_arg): Modify to generate a different ABI.
8530 (print_operand): Update case 'z' to support float modes.
8531 (output_move_single): Modify to generate appropriate and better
8532 assembly.
8533 (v850_float_z_comparison_operator, v850_select_cc_mode,
8534 v850_float_nz_comparison_operator, v850_gen_float_compare,
8535 v850_gen_compare): New functions to support comparison of float values.
8536 (ep_memory_offset): Add support for V850E2 targets.
8537 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
8538 (INTERRUPT_REGPARM_NUM): Remove.
8539 (compute_register_save_size): Add extra case to save/restore long call.
8540 (use_prolog_function): New function to support prologue.
8541 (expand_prologue): Add support for V850E2 targets and modified
8542 as per the current ABI requirements.
8543 (expand_epilogue): Likewise.
8544 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
8545 (construct_save_jarl): Likewise.
8546 (construct_dispose_instruction): Update as per the current ABI
8547 requirements.
8548 (construct_prepare_instruction): Likewise.
8549 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
8550 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
8551 (CPP_SPEC): Updated to support v850e2 targets.
8552 (STRICT_ALIGNMENT): Modified.
8553 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
8554 (FIXED_REGISTERS): Likewise.
8555 (CALL_USED_REGISTERS): Likewise.
8556 (CONDITIONAL_REGISTER_USAGE): Updated.
8557 (HARD_REGNO_MODE_OK): Updated.
8558 (reg_class): Updated to add even registers.
8559 (REG_CLASS_NAMES): Likewise.
8560 (REG_CLASS_CONTENTS): Likewise.
8561 (REGNO_REG_CLASS): Updated for CC registers.
8562 (REG_CLASS_FROM_LETTER): Added support for even registers.
8563 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
8564 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
8565 ARG_POINTER_REGNUM): Updated.
8566 (FUNCTION_ARG_ADVANCE): Define.
8567 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
8568 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
8569 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
8570 (GO_IF_LEGITIMATE_ADDRESS): Updated.
8571 (SELECT_CC_MODE): Define.
8572 (REGISTER_NAMES): Updated to add psw and fcc registers.
8573 (ADDITIONAL_REGISTER_NAMES): Updated.
8574 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
8575 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
8576 * config/v850/v850.md (define_constants): Define new constants.
8577 (type): Update store,bit1,macc,div,fpu and single attributes.
8578 (cpu): New attribute.
8579 (cc): Add set_z attribute.
8580 (unsign23byte_load, sign23byte_load, unsign23hword_load,
8581 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
8582 23word_store): New instructions for 23-bit displacement load and store.
8583 (movqi_internal, movhi_internal): Update the attributes.
8584 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
8585 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
8586 the attributes.
8587 (v850_tst1): Modified using CC_REGNUM.
8588 (tstsi): Remove.
8589 (cmpsi): Modified as define_expand from define_insn.
8590 (cmpsi_insn, cmpsf, cmpdf): New instructions.
8591 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
8592 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
8593 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
8594 one_cmplsi2): Clobber the CC_REGNUM register.
8595 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
8596 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
8597 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
8598 (setf_insn, set_z_insn, set_nz_insn): New instructions for
8599 v850e2v3 target.
8600 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
8601 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
8602 targets.
8603 (sasf_1, sasf_2): Remove.
8604 (sasf): New instruction.
8605 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
8606 targets. CC_REGNUM register is clobbered and attributes are
8607 updated.
8608 (branch_z_normal, branch_z_invert, branch_nz_normal,
8609 branch_nz_invert): New branch related instructions.
8610 (jump): Updated the attributes.
8611 (switch): Update to support new targets. CC_REGNUM register is
8612 clobbered and attributes are updated.
8613 (call_internal_short, call_internal_long, call_value_internal_short,
8614 call_value_internal_long): Updated the attributes.
8615 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
8616 clobbered and attributes are updated.
8617 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
8618 Update to support new targets. CC_REGNUM register is clobbered.
8619 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
8620 instructions.
8621 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
8622 are updated.
8623 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
8624 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
8625 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
8626 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
8627 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
8628 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
8629 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
8630 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
8631 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
8632 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
8633 point instructions defined for V850e2v3 target.
8634 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
8635 Add support for V850E2 targets and CC_REGNUM register is clobbered.
8636 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
8637 support for new targets.
8638 * config/v850/v850-modes.def: New file.
8639 * config/v850/v850.opt(mstrict-align): Remove.
8640 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
8641 mv850e2v3): New command line options for V850.
8642 * config.gcc: Update the newly added files.
8643 * doc/invoke.texi: Update the newly added command line options for
8644 V850 target.
8645
8646 2010-07-26 Richard Guenther <rguenther@suse.de>
8647
8648 PR tree-optimization/45052
8649 * ipa-pure-const.c (check_stmt): Check volatileness.
8650
8651 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
8652
8653 PR target/44707
8654 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
8655 * config/sparc/sparc.c: Include reload.h.
8656 (legitimize_tls_address): Rename into...
8657 (sparc_legitimize_tls_address): ...this.
8658 (legitimize_pic_address): Rename into...
8659 (sparc_legitimize_pic_address): ...this.
8660 (sparc_expand_move): Adjust to above renaming.
8661 (sparc_tls_referenced_p): Likewise.
8662 (sparc_legitimize_tls_address): Likewise.
8663 (sparc_legitimize_pic_address): Likewise.
8664 (sparc_legitimize_address): Likewise.
8665 (sparc_output_mi_thunk): Likewise.
8666 (sparc_legitimize_reload_address): New global function. Recognize
8667 (lo_sum (high ...) ...) patterns generated by earlier passes.
8668 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
8669
8670 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
8671
8672 PR target/44484
8673 * config/sparc/predicates.md (memory_reg_operand): Delete.
8674 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
8675 (*sync_compare_and_swap): Encode the address form in the pattern.
8676 (*sync_compare_and_swapdi_v8plus): Likewise.
8677
8678 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
8679
8680 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8681 Streamline paragraph on compatibility with the system compiler.
8682
8683 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
8684
8685 PR middle-end/45035
8686 * alias.c (true_dependence_1): Fix thinko in merge of old
8687 true_dependence and canon_true_dependence.
8688
8689 2010-07-23 Jan Hubicka <jh@suse.cz>
8690
8691 * lto-streamer-out.c (write_symbol): Fix visibilities of external
8692 references.
8693
8694 2010-07-23 Le-Chun Wu <lcwu@google.com>
8695
8696 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8697 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8698 and an unnecessary assignment.
8699 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8700 self-assign warning.
8701 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8702 unnecessary self-init.
8703
8704 2010-07-23 Richard Guenther <rguenther@suse.de>
8705
8706 PR lto/43071
8707 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8708 for -flto and -fwhopr.
8709
8710 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
8711
8712 PR target/41943
8713 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8714 (stmp-int-hdrs): Prefix/postfix headers by include_next.
8715 * config.gcc (user_headers_inc_next_pre): New.
8716 (user_headers_inc_next_post): Likewise.
8717 (*-w64-mingw*): Use for float.h post-fixing, and for
8718 stddef.h/stdarg.h pre-fixing by include_next.
8719 * configure.ac (user_headers_inc_next_post): New.
8720 (user_headers_inc_next_pre): New.
8721 * configure: Regenerated.
8722
8723 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8724
8725 * configure.ac: Don't disable TLS on Solaris 8/9 by default
8726 Set tga_func for Solaris 2/x86 resp. SPARC.
8727 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8728 (LIB_THREAD_LDFLAGS_SPEC): Define.
8729 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
8730 * configure: Regenerate.
8731 * config.in: Regenerate.
8732 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8733 -pthread, -threads, LIB_TLS_SPEC with -pthread.
8734 * doc/install.texi (Specific, *-*-solaris2*): Document use of
8735 alternate thread libraries on Solaris 8.
8736 Document TLS patch requirements.
8737 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8738 Document tls.
8739
8740 PR target/18788
8741 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8742 -shared.
8743
8744 2010-07-23 Jakub Jelinek <jakub@redhat.com>
8745
8746 * tree.h (struct tree_base): Add nameless_flag bitfield.
8747 (TYPE_NAMELESS, DECL_NAMELESS): Define.
8748 * omp-low.c (create_omp_child_function, scan_omp_parallel,
8749 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8750 DECL_ARTIFICIAL where needed.
8751 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8752 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8753 has DECL_NAMELESS set.
8754
8755 2010-07-23 Martin Jambor <mjambor@suse.cz>
8756
8757 PR tree-optimization/44915
8758 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8759 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8760 (analyze_function): Likewise.
8761
8762 2010-07-23 Martin Jambor <mjambor@suse.cz>
8763
8764 PR tree-optimization/44914
8765 * tree-sra.c (sra_modify_function_body): Return true if CFG was
8766 changed, add purging dead eh edges.
8767 (ipa_sra_modify_function_body): Return true if CFG was changed,
8768 simplify purging dead eh edges.
8769 (modify_function): Return true if CFG was changed.
8770 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8771 was changed.
8772 (ipa_early_sra): Likewise.
8773
8774 2010-07-23 Jie Zhang <jie@codesourcery.com>
8775
8776 PR target/44290
8777 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8778 if "naked".
8779 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8780 false if ! tree_versionable_function_p.
8781
8782 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
8783
8784 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8785 * ipa-pure-const.c (special_builtlin_state): Remove
8786 BUILT_IN_ARGS_INFO case.
8787 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8788 * builtins.c (expand_builtin): Likewise.
8789 (expand_builtin_args_info): Remove.
8790 * doc/tm.texi (__builtin_args_info): Remove.
8791 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8792 * doc/tm.text.in: Likewise.
8793
8794 2010-07-23 Richard Guenther <rguenther@suse.de>
8795
8796 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8797 (lto_symtab_merge_decls_2): Likewise.
8798 * tree-ssa.c (useless_type_conversion_p): Likewise.
8799 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8800 * gimple.c (gtc_visited2, gtc_ob2): Remove.
8801 (struct type_pair_d): Make same_p an array indexed by mode.
8802 Update comment.
8803 (lookup_type_pair): Update initialization.
8804 (struct sccs): Adjust same_p type.
8805 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8806 Adjust.
8807 (print_gimple_types_stats): Likewise.
8808 * gimple.h (enum gtc_mode): New.
8809 (gimple_types_compatible_p): Adjust prototype.
8810
8811 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
8812
8813 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8814 again after processing insn.
8815
8816 2010-07-23 Jie Zhang <jie@codesourcery.com>
8817
8818 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8819 proper words when !tree_versionable_function_p.
8820
8821 2010-07-23 Richard Guenther <rguenther@suse.de>
8822
8823 PR tree-optimization/45037
8824 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8825
8826 2010-07-23 Jie Zhang <jie@codesourcery.com>
8827
8828 * doc/extend.texi: Remove IP2K from the description of naked attribute.
8829 Add MCORE instead.
8830
8831 2010-07-10 Andi Kleen <ak@linux.intel.com>
8832
8833 PR lto/44992
8834 * lto-opts.c (lto_write_options): Add NULL file_data argument to
8835 lto_get_section_name.
8836 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8837 * lto-streamer-out.c (produce_asm): Likewise.
8838 (copy_function): Likewise.
8839 (produce_symtab): Likewise.
8840 (produce_asm_for_decls): Likewise.
8841 * lto-streamer.c (lto_get_section_name): Add file_data argument.
8842 Rewrite to add random postfix to LTO sections.
8843 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
8844 (lto_get_section_name): Add file_data argument to prototype.
8845
8846 2010-07-10 Andi Kleen <ak@linux.intel.com>
8847
8848 * lto-section-in.c (lto_section_name): Synchronize names
8849 with lto_get_section_name.
8850
8851 2010-07-10 Andi Kleen <ak@linux.intel.com>
8852
8853 * lto-opts.c (lto_read_file_options): Check for missing section.
8854
8855 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
8856
8857 * ira.c (check_allocation): Correctly handle the case where an allocno
8858 with two objects was allocated to a single reg.
8859
8860 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
8861
8862 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
8863 (is_widening_mult_p): Likewise.
8864 (convert_to_widen): Use them.
8865 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
8866 well as integer ones.
8867
8868 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
8869
8870 * alias.c (true_dependence_1): New function, merged version of
8871 true_dependence and canon_true_dependence.
8872 (true_dependence): Simplify.
8873 (canon_true_dependence): Simplify.
8874
8875 2010-07-22 Richard Henderson <rth@redhat.com>
8876
8877 PR target/45027
8878 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
8879 of V4SFmode for the SSE saves; increase stack alignment if needed.
8880 (ix86_gimplify_va_arg): Don't increase stack alignment here.
8881
8882 2010-07-22 Jakub Jelinek <jakub@redhat.com>
8883
8884 PR bootstrap/45028
8885 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
8886 call cprop_find_used_regs again via note_uses.
8887
8888 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
8889
8890 * alias.c (get_alias_set): Fix formatting issues.
8891
8892 2010-07-22 Steve Ellcey <sje@cup.hp.com>
8893
8894 PR middle-end/44878
8895 * stmt.c (expand_value_return): Call promote_function_mode with
8896 a for_return argument of 2 when returning by reference.
8897
8898 2010-07-22 Dodji Seketeli <dodji@redhat.com>
8899
8900 PR debug/45024
8901 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
8902 unit DIE if we can find the scope DIE.
8903
8904 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
8905
8906 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
8907 changed. Initialize OBJECT_SUBWORD.
8908 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
8909 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
8910 all callers changed.
8911 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
8912 (finish_allocno): Likewise.
8913 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
8914 (remove_low_level_allocnos): Likewise.
8915 (update_bad_spill_attribute): Likewise.
8916 (setup_min_max_allocno_live_range_point): Likewise.
8917 (sort_conflict_id_map): Likewise.
8918 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
8919 (ior_hard_reg_conflicts): New function.
8920 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
8921 (compress_conflict_vecs): Iterate over objects, not allocnos.
8922 (ira_add_live_range_to_object): New function.
8923 (object_range_compare_func): Renamed from allocno_range_compare_func.
8924 All callers changed.
8925 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
8926 subobjects, widen the min/max range of the lowest-order object to
8927 potentially include all other such low-order objects.
8928 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
8929 (check_allocation): Likewise. Use more fine-grained tests for register
8930 conflicts.
8931 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
8932 allocno subobjects.
8933 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
8934 choices about which bits to set in each set. Don't use
8935 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
8936 using the multiple sets we computed.
8937 (push_allocno_to_stack): Iterate over allocno subobjects.
8938 (all_conflicting_hard_regs_coalesced): New static function.
8939 (setup_allocno_available_regs_num): Use it.
8940 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
8941 subobjects.
8942 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
8943 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8944 by ALLOCNO_NUM_OBJECTS.
8945 (calculate_spill_cost): Likewise.
8946 (color_pass): Express if statement in a more normal way.
8947 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
8948 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
8949 (setup_slot_coalesced_allocno_live_ranges): Likewise.
8950 (allocno_reload_assign): Likewise.
8951 (ira_reassign_pseudos): Likewise.
8952 (fast_allocation): Likewise.
8953 * ira-conflicts.c (build_conflict_bit_table): Likewise.
8954 (print_allocno_conflicts): Likewise.
8955 (ira_build_conflicts): Likewise.
8956 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
8957 callers changed. Test subword 0 of each allocno for conflicts.
8958 (build_object_conflicts): Renamed from build_allocno_conflicts. All
8959 callers changed. Iterate over allocno subobjects.
8960 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
8961 * ira-int.h (struct ira_allocno): New member: num_objects.
8962 Rename object to objects and change it into an array.
8963 (ALLOCNO_OBJECT): Add new argument N.
8964 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
8965 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
8966 (ior_hard_reg_conflicts): Declare.
8967 (ira_add_live_range_to_object): Declare.
8968 (ira_allocno_object_iterator): New.
8969 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
8970 (FOR_EACH_ALLOCNO_OBJECT): New macro.
8971 * ira-lives.c (objects_live): Renamed from allocnos_live; all
8972 uses changed.
8973 (allocnos_processed): New sparseset.
8974 (make_object_born): Renamed from make_allocno_born; take an
8975 ira_object_t argument. All callers changed.
8976 (make_object_dead): Renamed from make_allocno_dead; take an
8977 ira_object_t argument. All callers changed.
8978 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
8979 All callers changed.
8980 (mark_pseudo_regno_live): Iterate over allocno subobjects.
8981 (mark_pseudo_regno_dead): Likewise.
8982 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
8983 functions.
8984 (mark_ref_live): Detect subword accesses and call
8985 mark_pseudo_regno_subword_live as appropriate.
8986 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
8987 (process_bb_nodes_live): Deal with object-related updates first; set
8988 and test bits in allocnos_processed to avoid computing allocno
8989 statistics more than once.
8990 (create_start_finish_chains): Iterate over objects, not allocnos.
8991 (print_object_live_ranges): New function.
8992 (print_allocno_live_ranges): Use it.
8993 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
8994 and objects_live.
8995
8996 2010-07-22 Richard Guenther <rguenther@suse.de>
8997
8998 PR lto/42451
8999 * gimple.c (gtc_next_dfs_num): New global.
9000 (struct sccs): Make value a union, add integer same_p member.
9001 (gtc_visit): New function.
9002 (gimple_types_compatible_p_1): New function, split out from ...
9003 (gimple_types_compatible_p): ... here. Start a DFS walk here.
9004 (iterative_hash_gimple_type): Adjust for sccs change.
9005
9006 2010-07-22 Martin Jambor <mjambor@suse.cz>
9007
9008 PR tree-optimization/44891
9009 * tree-sra.c: Include gimple-pretty-print.h.
9010 (replace_uses_with_default_def_ssa_name): Renamed to
9011 get_repl_default_def_ssa_name, return the new SSA name instead of
9012 replacing the old one.
9013 (sra_modify_assign): Dump a message when removing a load, if the LHS
9014 is an SSA_NAME, do not do any propagation, just set the RHS to a
9015 default definition SSA NAME, type convert if necessary.
9016 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
9017
9018 2010-07-22 Richard Guenther <rguenther@suse.de>
9019
9020 PR tree-optimization/45017
9021 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
9022 TYPE_PRECISION of integral types in addition to size.
9023
9024 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9025
9026 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
9027 when no C library is specified.
9028
9029 2010-07-22 Martin Jambor <mjambor@suse.cz>
9030
9031 * ipa-prop.h (struct ipa_node_params): Updated comment.
9032 (struct ipa_edge_args): Likewise.
9033 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
9034
9035 2010-07-22 Martin Jambor <mjambor@suse.cz>
9036
9037 * cgraphunit.c (verify_edge_count_and_frequency): New function.
9038 (verify_cgraph_node): Verify frequencies of indirect edges.
9039 * tree-inline.c (tree_function_versioning): Update frequencies of
9040 indirect edges.
9041
9042 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9043
9044 PR target/43698
9045 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
9046 Set *arm_rev to be predicable.
9047
9048 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
9049
9050 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
9051 (LINK_COMMAND_SPEC_A): New.
9052 (DSYMUTIL): New.
9053 (DSYMUTIL_SPEC): New.
9054 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
9055 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
9056
9057 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
9058
9059 * calls.c (load_register_parameters): Move check for zero
9060 sized items so that only the call to
9061 mem_overlaps_already_clobbered_arg_p () is protected.
9062
9063 2010-07-22 Jan Hubicka <jh@suse.cz>
9064
9065 * ipa-pure-const.c (varying_state): Break out from ...
9066 (get_function_state): ... here; always return varying_state
9067 when state would be NULL otherwise.
9068 (remove_node_data): Do not free varying state.
9069
9070 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
9071
9072 PR bootstrap/44970
9073 PR middle-end/45009
9074 * postreload.c: Include "target.h".
9075 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
9076 into account.
9077 (fixup_debug_insns): Don't copy the rtx.
9078 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
9079 Don't copy when replacing. Call fixup_debug_insns in the case where
9080 we merged one add with another.
9081 (reload_combine_recognize_pattern): Fail if there aren't any uses.
9082 Try harder to determine whether we're picking a valid index register.
9083 Don't set store_ruid for an insn we're going to scan in the
9084 next iteration.
9085 (reload_combine): Remove unused code.
9086 (reload_combine_note_use): When updating use information for
9087 an old insn, ignore a use that occurs after store_ruid.
9088 * Makefile.in (postreload.o): Update dependencies.
9089
9090 * function.c (record_hard_reg_sets): Restrict the previous change
9091 to cases where the incoming nominal mode is the same as the
9092 incoming promoted mode and everything happens in MODE_INT.
9093
9094 2010-07-21 Jakub Jelinek <jakub@redhat.com>
9095
9096 PR debug/45015
9097 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
9098 ASM_OPERANDS_OUTPUT_IDX.
9099 (adjust_insn): For inline asm with multiple sets ensure first
9100 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
9101 the insn.
9102
9103 2010-07-21 Richard Henderson <rth@redhat.com>
9104
9105 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
9106 comparison for avoiding xmm register saves. Emit the xmm register
9107 saves explicitly.
9108 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
9109 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
9110 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
9111 Remove patterns and the associated splitters.
9112
9113 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
9114
9115 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
9116 and imagine parts of a complex, so that they can have the same
9117 base and fall into the same group.
9118
9119 2010-07-21 Richard Guenther <rguenther@suse.de>
9120
9121 PR lto/45018
9122 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
9123 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
9124 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
9125
9126 2010-07-21 Martin Jambor <mjambor@suse.cz>
9127
9128 PR tree-optimization/44900
9129 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
9130 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
9131
9132 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
9133
9134 PR middle-end/44738
9135 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
9136
9137 2010-07-21 Richard Guenther <rguenther@suse.de>
9138
9139 PR middle-end/45013
9140 * tree-ssa.c (useless_type_conversion_p): Dispatch to
9141 gimple_types_compatible_p only when in lto.
9142 * gimple.c (gimple_types_compatible_p): Use canonical types
9143 to speed up comparison.
9144
9145 2010-07-21 Richard Guenther <rguenther@suse.de>
9146
9147 * tree-flow.h (referenced_var): Move define ...
9148 * tree-flow-inline.h (referenced_var): ... here as an inline
9149 function. Assert here ...
9150 * tree-dfa.c (referenced_var_lookup): ... instead of here.
9151 * tree-ssa.c (maybe_optimize_var): Check if the variable
9152 is in referenced vars.
9153 (execute_update_addresses_taken): Remove old broken check.
9154 * gimple-pretty-print.c (pp_points_to_solution): Use
9155 referenced_var_lookup.
9156 * tree-into-ssa.c (dump_decl_set): Likewise.
9157
9158 2010-07-21 Jakub Jelinek <jakub@redhat.com>
9159
9160 PR debug/45003
9161 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
9162 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
9163 ZERO_EXTEND here.
9164
9165 2010-07-20 Richard Henderson <rth@redhat.com>
9166
9167 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
9168
9169 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
9170
9171 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
9172 computing the sum of the stack pointer and a large constant.
9173 * config/arm/constraints.md (M): Remove superfluous parentheses.
9174 (Pc): New constraint.
9175
9176 2010-07-20 Jakub Jelinek <jakub@redhat.com>
9177
9178 PR debug/45006
9179 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
9180 operand's type if exp is tcc_unary class tree.
9181
9182 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
9183
9184 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
9185 Reverse sense of if_then_else condition.
9186
9187 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
9188
9189 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
9190 * config/rs6000/rs6000.c (rs6000_override_options): Set
9191 rs6000_block_move_inline_limit appropriately.
9192 (expand_block_move): Use rs6000_block_move_inline_limit.
9193 * doc/invoke.texi (mblock-move-inline-limit): Document.
9194
9195 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
9196
9197 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
9198 FROM and TO. All callers changed. Don't look for tracked uses,
9199 just scan the RTL for DEBUG_INSNs and substitute.
9200 (reload_combine_recognize_pattern): Call fixup_debug_insns.
9201 (reload_combine): Ignore DEBUG_INSNs.
9202
9203 2010-07-20 Jakub Jelinek <jakub@redhat.com>
9204
9205 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
9206 depth to 8 from 5.
9207
9208 PR debug/45003
9209 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
9210 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
9211 instead of the result's type.
9212
9213 2010-07-20 Richard Guenther <rguenther@suse.de>
9214
9215 PR tree-optimization/44977
9216 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
9217 SSA form.
9218
9219 2010-07-20 Richard Guenther <rguenther@suse.de>
9220
9221 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
9222 (lto_symtab_merge_decls_2): Likewise.
9223 * gimple.h (gimple_types_compatible_p): Declare.
9224 * gimple.c (gimple_queue_type_fixup): Remove.
9225 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
9226 (gimple_compatible_complete_and_incomplete_type_p): New function.
9227 (gimple_types_compatible_p): Adjust.
9228 (gimple_register_type): Remove type fixup code.
9229 (print_gimple_types_stats): Adjust.
9230 (free_gimple_type_tables): Likewise.
9231 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
9232 * tree-ssa.c (useless_type_conversion_p): Likewise.
9233
9234 2010-07-20 Richard Guenther <rguenther@suse.de>
9235
9236 PR middle-end/44971
9237 PR middle-end/44988
9238 * tree-ssa.c (maybe_optimize_var): New function split out from ...
9239 (execute_update_addresses_taken): ... here.
9240 (non_rewritable_mem_ref_base): Likewise.
9241 (execute_update_addresses_taken): Do not iterate over all referenced
9242 vars but just all local decls and parms.
9243 Properly check call and asm arguments and rewrite call arguments.
9244
9245 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
9246
9247 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
9248 to top level.
9249 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
9250 definitions ...
9251 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
9252 New macro.
9253 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
9254
9255 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
9256
9257 * gengtype.c (start_root_entry): New function, split out from
9258 write_root. Check whether V is null and raise an error if so.
9259 (write_field_root): Check for V being null. Don't raise an error here;
9260 set V to null instead.
9261 (write_root): Update comment above function. Use start_root_entry.
9262
9263 2010-07-19 Xinliang David Li <davidxl@google.com>
9264
9265 PR testsuite/44932
9266 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
9267 def edges.
9268 (find_uninit_use): Add dump.
9269 (is_use_properly_guarded): Ditto.
9270 (warn_uninitialized_phi): Ditto.
9271 (execute_late_warn_uninitialized): Ditto.
9272
9273 2010-07-19 Richard Guenther <rguenther@suse.de>
9274
9275 PR middle-end/44941
9276 * expr.c (emit_block_move_hints): Move zero size check first.
9277 Move asserts to more useful places.
9278 * calls.c (load_register_parameters): Check for zero size.
9279
9280 2010-07-19 Richard Henderson <rth@redhat.com>
9281
9282 * tree-optimize.c (execute_all_early_local_passes): New. Change
9283 cgraph_state here ...
9284 (execute_early_local_optimizations): ... not here. Remove.
9285 (pass_early_local_passes, pass_all_early_optimizations): Update.
9286
9287 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
9288
9289 * postreload.c (reload_combine_closest_single_use): Ignore the
9290 number of uses for DEBUG_INSNs.
9291 (fixup_debug_insns): New static function.
9292 (reload_combine_recognize_const_pattern): Use it. Don't let the
9293 main loop be affected by DEBUG_INSNs.
9294 Really disallow moving adds past a jump insn.
9295 (reload_combine_recognize_pattern): Don't update use_ruid here.
9296 (reload_combine_note_use): Do it here.
9297 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
9298
9299 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
9300
9301 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
9302 of a loop.
9303 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
9304
9305 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
9306
9307 * config/i386/darwin.h: Define darwin_emit_branch_islands.
9308 (TARGET_MACHO_BRANCH_ISLANDS): New.
9309 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
9310 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
9311 default value.
9312 * config/i386/i386.c (output_pic_addr_const): Do not emit
9313 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
9314 (x86_output_mi_thunk): Adjust symbol creation.
9315 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
9316 Remove out of date comment.
9317 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
9318 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9319 (DARWIN_GENERATE_ISLANDS): Ditto.
9320 (output_call): Do not emit branch islands unless
9321 darwin_emit_branch_islands is set.
9322 * config/darwin.c: Declare darwin_emit_branch_islands.
9323 (machopic_indirect_data_reference): Do not emit unless
9324 darwin_emit_branch_islands is set.
9325 (darwin_override_options): Set darwin_emit_branch_islands
9326 where it is needed.
9327 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9328
9329 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9330
9331 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9332 sse_runtime, sse2_runtime.
9333
9334 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
9335
9336 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
9337 low half of a single-register SCmode return value before ORing
9338 it with the high half.
9339 * config/mips/mips16.S (MERGE_GPRf): Likewise.
9340
9341 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9342
9343 PR target/44805
9344 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
9345 on all targets.
9346
9347 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
9348
9349 PR target/42235
9350 * postreload.c (reload_cse_move2add): Return bool, true if anything.
9351 changed. All callers changed.
9352 (move2add_use_add2_insn): Likewise.
9353 (move2add_use_add3_insn): Likewise.
9354 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
9355 reload_combine.
9356 (RELOAD_COMBINE_MAX_USES): Bump to 16.
9357 (last_jump_ruid): New static variable.
9358 (struct reg_use): New members CONTAINING_MEM and RUID.
9359 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
9360 (reload_combine_split_one_ruid, reload_combine_split_ruids,
9361 reload_combine_purge_insn_uses, reload_combine_closest_single_use
9362 reload_combine_purge_reg_uses_after_ruid,
9363 reload_combine_recognize_const_pattern): New static functions.
9364 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
9365 is true for our reg and that we have available index regs.
9366 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
9367 callers changed. Use them to initialize fields in struct reg_use.
9368 (reload_combine): Initialize last_jump_ruid. Be careful when to
9369 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
9370 Call reload_combine_recognize_const_pattern.
9371 (reload_combine_note_store): Update REAL_STORE_RUID field.
9372
9373 2010-07-16 Jason Merrill <jason@redhat.com>
9374
9375 * Makefile.in (opts-common.o): Depend on options.h.
9376
9377 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
9378
9379 * tree.c (build_common_builtin_nodes): Use build_function_type_list
9380 instead of build_function_type.
9381 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
9382 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9383
9384 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
9385
9386 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
9387 do all the work.
9388 (rs6000_emit_int_cmove): Use function pointers for insn generation.
9389 Don't force values into registers unnecessarily.
9390 (output_isel): Assert that we're not given conditions we can't handle.
9391 Delete corresponding code.
9392 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
9393 scc_comparison_operator constraint. Permit 0 for the consequent
9394 operand. Permit any GPR for the alternative operand.
9395 (isel_unsigned_<mode>): Likewise.
9396
9397 2010-07-16 Jakub Jelinek <jakub@redhat.com>
9398
9399 PR target/44942
9400 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
9401 argument to const_tree.
9402 * config/i386/i386.c (function_arg_advance): If padding needs to be
9403 inserted before argument, increment cum->words by number of padding
9404 words as well.
9405 (contains_aligned_value_p): Change argument to const_tree.
9406 (ix86_function_arg_boundary): Change second argument to const_tree.
9407
9408 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
9409
9410 PR target/42235
9411 * function.c (record_hard_reg_sets): New static function.
9412 (assign_parm_setup_reg): If an optab for extending exists and the
9413 generated code clobbbers no hard regs, emit the insn directly and
9414 create a REG_EQUIV note.
9415
9416 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
9417
9418 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
9419 TREE_CHAIN.
9420 * c-typeck.c (push_init_level): Likewise.
9421 (process_init_element): Likewise.
9422
9423 2010-07-15 Anatoly Sokolov <aesok@post.ru>
9424
9425 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
9426 (integer_three_node): Add.
9427 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
9428 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
9429 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
9430 of call build_int_cst.
9431 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
9432 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
9433 (find_interesting_uses_address): Ditto.
9434 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
9435 * tree-eh.c (lower_eh_constructs_2): Ditto.
9436 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
9437 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
9438 * expmed.c (expand_divmod): Ditto.
9439 * tree-mudflap.c (mx_register_decls): Ditto.
9440 * varasm.c (array_size_for_constructor): Ditto.
9441 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
9442 * c-parser.c (c_parser_postfix_expression): Ditto.
9443
9444 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
9445
9446 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
9447 New static variables.
9448 (reload_combine_recognize_pattern): New static function, broken out
9449 of reload_combine.
9450 (reload_combine): Use it. Only initialize first_index_reg and
9451 last_index_reg once.
9452
9453 2010-07-15 Richard Henderson <rth@redhat.com>
9454
9455 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
9456 when done.
9457
9458 2010-07-15 Jan Hubicka <jh@suse.cz>
9459
9460 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
9461 comdats for broken gold.
9462 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
9463
9464 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
9465
9466 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
9467
9468 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
9469
9470 * tree.h (DECL_CHAIN): Define.
9471 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9472 * c-decl.c: Likewise.
9473 * c-parser.c: Likewise.
9474 * c-typeck.c: Likewise.
9475 * cfgexpand.c: Likewise.
9476 * cgraph.c: Likewise.
9477 * cgraphunit.c: Likewise.
9478 * combine.c: Likewise.
9479 * config/alpha/alpha.c: Likewise.
9480 * config/arm/arm.c: Likewise.
9481 * config/frv/frv.c: Likewise.
9482 * config/i386/i386.c: Likewise.
9483 * config/i386/winnt-cxx.c: Likewise.
9484 * config/ia64/ia64.c: Likewise.
9485 * config/iq2000/iq2000.c: Likewise.
9486 * config/mep/mep.c: Likewise.
9487 * config/mips/mips.c: Likewise.
9488 * config/pa/som.h: Likewise.
9489 * config/rs6000/rs6000.c: Likewise.
9490 * config/s390/s390.c: Likewise.
9491 * config/sh/sh.c: Likewise.
9492 * config/sh/symbian-cxx.c: Likewise.
9493 * config/sparc/sparc.c: Likewise.
9494 * config/spu/spu.c: Likewise.
9495 * config/stormy16/stormy16.c: Likewise.
9496 * config/vxworks.c: Likewise.
9497 * config/xtensa/xtensa.c: Likewise.
9498 * coverage.c: Likewise.
9499 * dbxout.c: Likewise.
9500 * dwarf2out.c: Likewise.
9501 * emit-rtl.c: Likewise.
9502 * expr.c: Likewise.
9503 * function.c: Likewise.
9504 * gimple-low.c: Likewise.
9505 * gimple-pretty-print.c: Likewise.
9506 * gimplify.c: Likewise.
9507 * integrate.c: Likewise.
9508 * ipa-inline.c: Likewise.
9509 * ipa-prop.c: Likewise.
9510 * ipa-split.c: Likewise.
9511 * ipa-struct-reorg.c: Likewise.
9512 * ipa-type-escape.c: Likewise.
9513 * langhooks.c: Likewise.
9514 * lto-cgraph.c: Likewise.
9515 * omp-low.c: Likewise.
9516 * stor-layout.c: Likewise.
9517 * tree-cfg.c: Likewise.
9518 * tree-complex.c: Likewise.
9519 * tree-dfa.c: Likewise.
9520 * tree-dump.c: Likewise.
9521 * tree-inline.c: Likewise.
9522 * tree-mudflap.c: Likewise.
9523 * tree-nested.c: Likewise.
9524 * tree-object-size.c: Likewise.
9525 * tree-pretty-print.c: Likewise.
9526 * tree-sra.c: Likewise.
9527 * tree-ssa-live.c: Likewise.
9528 * tree-ssa-loop-niter.c: Likewise.
9529 * tree-ssa-math-opts.c: Likewise.
9530 * tree-ssa-reassoc.c: Likewise.
9531 * tree-ssa-sccvn.c: Likewise.
9532 * tree-ssa-structalias.c: Likewise.
9533 * tree-tailcall.c: Likewise.
9534 * tree-vrp.c: Likewise.
9535 * tree.c: Likewise.
9536 * var-tracking.c: Likewise.
9537 * varasm.c: Likewise.
9538
9539 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9540
9541 PR target/44877
9542 * config/spu/spu.c (spu_expand_builtin_1): Allow references
9543 (as well as pointers) as argument to mask_for_load builtins.
9544
9545 2010-07-15 Richard Guenther <rguenther@suse.de>
9546
9547 PR tree-optimization/44946
9548 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
9549 with accessing only padding properly.
9550
9551 2010-07-15 Jan Hubicka <jh@suse.cz>
9552
9553 * ipa.c (function_and_variable_visibility): Variables marked as used
9554 should not be localized.
9555
9556 2010-07-15 Jan Hubicka <jh@suse.cz>
9557
9558 * cgraph.c: Include lto-streamer.h
9559 (change_decl_assembler_name): Work when assembler name hash is at place.
9560 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
9561 be sure to rename it to avoid name clash.
9562 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
9563 Localize hidden symbols only when locally defined.
9564
9565 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
9566
9567 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
9568
9569 2010-07-15 Magnus Granberg <zorry@gentoo.org>
9570 Kevin F. Quinn <kevquinn@gentoo.org>
9571
9572 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
9573 * common.opt: Add -Wtrampolines.
9574 * doc/invoke.texi: Add -Wtrampolines.
9575
9576 2010-07-15 Jie Zhang <jie@codesourcery.com>
9577
9578 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
9579 cortex_a8_issue_ls.
9580
9581 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
9582
9583 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
9584 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
9585
9586 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9587
9588 * config/spu/spu.c (reg_names): Remove prototype.
9589 (call_used_regs): Likewise.
9590
9591 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
9592
9593 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
9594 "unused" with attribute "used".
9595 (__JCR_END__): Likewise.
9596 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
9597 "used" attribute.
9598 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
9599
9600 2010-07-14 Richard Guenther <rguenther@suse.de>
9601
9602 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
9603 (maybe_fixup_decls): Likewise.
9604 (input_gimple_stmt): Do not fixup anything.
9605 * lto-streamer-out.c (output_gimple_stmt): Make sure all
9606 non-automatic variable uses are wrapped inside a MEM_REF.
9607
9608 2010-07-14 Richard Henderson <rth@redhat.com>
9609
9610 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
9611 for functions.
9612 * varasm.c (assemble_variable): Remove early exit for functions;
9613 assert that we're given a variable.
9614
9615 2010-07-14 Jie Zhang <jie@codesourcery.com>
9616
9617 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
9618 cortex_a8_default when neon_type is not none.
9619
9620 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
9621
9622 * lower-subreg.c (subreg_context): New static bitmap.
9623 (decompose_multiword_subregs): Allocate and free it.
9624 (find_decomposable_subregs): Set a bit in it for a register that
9625 occurs in a subreg that changes mode but not size.
9626 (can_decompose_p): Test it instead of non_decomposable_context.
9627
9628 2010-07-14 Richard Guenther <rguenther@suse.de>
9629
9630 PR tree-optimization/44824
9631 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
9632 is_gimple_mem_ref_addr.
9633 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
9634 non-decl_address_invariant_p addresses.
9635
9636 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
9637
9638 * reload.c (find_reloads): Revert code to penalize small register
9639 classes that was brought in with the IRA merge.
9640
9641 2010-07-14 Richard Guenther <rguenther@suse.de>
9642
9643 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
9644 as base of ARRAY_REFs.
9645
9646 2010-07-14 Richard Guenther <rguenther@suse.de>
9647
9648 PR middle-end/44930
9649 * tree-pretty-print.c (do_niy): Do not print a newline.
9650
9651 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
9652
9653 * ira-int.h (struct ira_object): New.
9654 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
9655 (struct ira_allocno): Remove members min, max,
9656 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
9657 conflict_allocnos_num and conflict_vec_p. Add new member object.
9658 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
9659 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
9660 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
9661 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
9662 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
9663 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
9664 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
9665 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
9666 an ira_object_t rather than ira_allocno_t. All uses changed.
9667 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9668 contains a vector of ira_object_t; all uses changed.
9669 (ira_objects_num): Declare variable.
9670 (ira_create_allocno_object): Declare function.
9671 (ira_conflict_vector_profitable_p): Adjust prototype.
9672 (ira_allocate_conflict_vec): Renamed from
9673 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
9674 (ira_allocate_object_conflicts): Renamed from
9675 ira_allocate_allocno_conflicts; first arg now ira_object_t.
9676 (struct ira_object_iterator): New.
9677 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9678 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9679 to conflict_vec_p. All uses changed.
9680 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9681 Changed to take into account that conflicts are now tracked for
9682 objects.
9683 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9684 Args changed to accept ira_object_t. All uses changed.
9685 (allocnos_conflict_p): New static function.
9686 (collected_conflict_objects): Renamed from collected_allocno_objects;
9687 now a vector of ira_object_t. All uses changed.
9688 (build_conflict_bit_table): Changed to take into account that
9689 conflicts are now tracked for objects.
9690 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9691 (print_allocno_conflicts, ira_build_conflicts): Likewise.
9692 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9693 setup_allocno_left_conflicts_size, allocno_reload_assign,
9694 fast_allocation): Likewise.
9695 * ira-lives.c (make_hard_regno_born, make_allocno_born)
9696 process_single_reg_class_operands, process_bb_node_lives): Likewise.
9697 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9698 Likewise.
9699 * ira-build.c (ira_objects_num): New variable.
9700 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9701 contains a vector of ira_object_t; all uses changed.
9702 (ira_object_id_map_vec): Corresponding change.
9703 (object_pool): New static variable.
9704 (initiate_allocnos): Initialize it.
9705 (finish_allocnos): Free it.
9706 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9707 New functions.
9708 (ira_create_allocno): Don't set members that were removed.
9709 (ira_set_allocno_cover_class): Don't change conflict hard regs.
9710 (merge_hard_reg_conflicts): Changed to take into account that
9711 conflicts are now tracked for objects.
9712 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9713 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9714 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9715 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9716 setup_min_max_conflict_allocno_ids, ): Likewise.
9717 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9718 to ira_object_t; all callers changed.
9719 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9720 to ira_object_t, all callers changed.
9721 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9722 to ira_object_t, all callers changed.
9723 (conflict_check, curr_conflict_check_tick): Renamed from
9724 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9725 changed.
9726 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9727 arg changed to ira_object_t, all callers changed.
9728 (create_cap_allocno): Call ira_create_allocno_object.
9729 (finish_allocno): Free the corresponding object.
9730 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9731 callers changed. Adjusted for dealing with objects.
9732 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
9733 dealing with objects.
9734 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9735
9736 * ira-int.h (struct live_range): Rename allocno member to object
9737 and change type to ira_object_t.
9738 (struct ira_object): New member live_ranges.
9739 (struct ira_allocno): Remove member live_ranges.
9740 (ALLOCNO_LIVE_RANGES): Remove.
9741 (OBJECT_LIVE_RANGES): New macro.
9742 (ira_create_live_range, ira_copy_live_range_list,
9743 ira_merge_live_range_list, ira_live_ranges_intersect_p,
9744 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9745 * ira-build.c (ira_create_object): Initialize live ranges here.
9746 (ira_create_allocno): Not here.
9747 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9748 changed to ira_object_t, all callers changed.
9749 (copy_live_range): Rename from copy_allocno_live_range, all callers
9750 changed.
9751 (ira_copy_live_range_list): Rename from
9752 ira_copy_allocno_live_range_list, all callers changed.
9753 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9754 all callers changed.
9755 (ira_live_ranges_intersect_p): Rename from
9756 ira_allocno_live_ranges_intersect_p, all callers changed.
9757 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9758 callers changed.
9759 (ira_finish_live_range_list): Rename from
9760 ira_finish_allocno_live_range_list, all callers changed.
9761 (change_object_in_range_list): Rename from change_allocno_in_range_list,
9762 last arg changed to ira_object_t, all callers changed.
9763 (finish_allocno): Changed to expect live ranges in the allocno's object.
9764 (move_allocno_live_ranges, copy_allocno_live_ranges,
9765 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9766 ira_flattening, ira_build): Likewise.
9767 * ira-color.c (allocnos_have_intersected_live_ranges_p,
9768 slot_coalesced_allocno_live_ranges_intersect,
9769 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9770 * ira-conflicts.c (build_conflict_bit_table): Likewise.
9771 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9772 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9773 make_allocno_dead, create_start_finish_chains,
9774 remove_some_program_points_and_update_live_ranges,
9775 ira_debug_live_range_list): Likewise.
9776
9777 * ira-int.h (ira_object_conflict_iterator): Rename from
9778 ira_allocno_conflict_iterator.
9779 (ira_object_conflict_iter_init): Rename from
9780 ira_allocno_conflict_iter_init, second arg changed to
9781 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9782 FOR_EACH_ALLOCNO_CONFLICT.
9783 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9784 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9785 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9786 * ira-conflicts.c (print_allocno_conflicts): Likewise.
9787
9788 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
9789
9790 PR other/44874
9791 * tree-dump.c (dump_options): Add enumerate_locals entry.
9792 Add TDF_NOID exclusion to all entry.
9793 * tree-dump.h (dump_enumerated_decls): Declare.
9794 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9795 Don't display type uid.
9796 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9797 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9798 * tree-ssa-live.c: Include gimple.h.
9799 (numbered_tree_d): New struct.
9800 (numbered_tree): New typedef.
9801 (DEF_VEC_O (numbered_tree): New.
9802 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9803 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9804 (dump_enumerated_decls): Likewise.
9805 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9806 debug info and flag_dump_final_insns, call dump_enumerated_decls.
9807 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9808 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9809
9810 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
9811
9812 * expmed.h (MAX_BITS_PER_WORD): Move to...
9813 * defaults.h (MAX_BITS_PER_WORD): ...here.
9814
9815 2010-07-13 DJ Delorie <dj@redhat.com>
9816
9817 * config/h8300/h8300.c (h8300_init_once): Default to
9818 -fstrict_volatile_bitfields.
9819
9820 * config/sh/sh.c (sh_override_options): Default to
9821 -fstrict_volatile_bitfields.
9822
9823 * config/rx/rx.c (rx_option_override): New.
9824
9825 * config/m32c/m32c.c (m32c_override_options): Default to
9826 -fstrict_volatile_bitfields.
9827
9828 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
9829
9830 * tree.h (build_function_call_expr): Delete.
9831 (build_call_expr_loc_array): New function.
9832 (build_call_expr_loc_vec): New function.
9833 * tree-flow.h (struct omp_region): Change type of ws_args field
9834 to a VEC.
9835 * builtins.c (build_function_call_expr): Delete.
9836 (build_call_expr_loc_array): New function.
9837 (build_call_expr_loc): Call it. Use XALLOCAVEC.
9838 (build_call_expr): Likewise.
9839 (build_call_expr_loc_vec): New function.
9840 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
9841 build_function_call_expr.
9842 * expr.c (emutls_var_address): Likewise.
9843 * varasm.c (emutls_common_1): Likewise.
9844 * omp-low.c (expand_omp_atomic_mutex): Likewise.
9845 (expand_omp_taskreg): Adjust for new type of region->ws_args.
9846 (get_ws_args_for): Return a VEC instead of a tree.
9847 (expand_parallel_call): Call build_call_expr_loc_vec instead of
9848 build_function_call_expr.
9849 * stor-layout.c (self_referential_size): Likewise.
9850
9851 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9852
9853 PR testsuite/44701
9854 * recog.c (constrain_operands): Allow side-effects in memory
9855 operands if either < or > constraint is used, rather than if
9856 both < and > is used.
9857
9858 2010-07-13 Richard Guenther <rguenther@suse.de>
9859
9860 PR middle-end/44911
9861 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
9862 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
9863 without name.
9864
9865 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
9866
9867 PR target/44761
9868 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
9869 to variable emited.
9870 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
9871 * config/sh/sh.md (symGOT_load): Likewise.
9872 (symDTPOFF2reg): Likewise.
9873 (symTPOFF2reg): Likewise.
9874
9875 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9876
9877 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
9878 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
9879
9880 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9881
9882 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
9883 explanation.
9884 Find ucontext_t * on Solaris 11.
9885 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
9886 Handle new Solaris 11 __sighndlr patterns.
9887
9888 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9889
9890 PR debug/44901
9891 * vec.h (VEC_block_remove): Fix comment.
9892 * tree-ssa-live.c (remove_unused_locals): Don't use
9893 VEC_unordered_remove on local_decls, instead replace a single
9894 vector element in each iteration if at least one element had
9895 to be removed and VEC_truncate at the end.
9896 * omp-low.c (expand_omp_taskreg): Likewise.
9897
9898 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9899
9900 * c-decl.c (finish_function): Fix typo in comment.
9901
9902 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
9903
9904 PR bootstrap/44921
9905 * postreload.c (move2add_use_add3_insn): Silence gcc warning
9906 on min_regno.
9907
9908 2010-07-12 Jakub Jelinek <jakub@redhat.com>
9909
9910 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
9911 (simplify_stmt_using_ranges): Use it.
9912
9913 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9914
9915 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
9916 member. Do not mark as GTY(()).
9917 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
9918 (spu_builtin_decls): New static variable.
9919 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
9920 (spu_init_builtins): Likewise.
9921 (spu_builtin_mul_widen_even): Likewise.
9922 (spu_builtin_mul_widen_odd): Likewise.
9923 (spu_builtin_mask_for_load): Likewise.
9924 (spu_builtin_vec_perm): Likewise.
9925 * config/spu/spu-c.c: Include "target.h".
9926 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
9927 of using spu_builtins[].fndecl.
9928
9929 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9930
9931 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
9932 imply -minterlink-mips16.
9933
9934 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9935
9936 * config/mips/mips.h (mips16_globals): Declare.
9937 (SWITCHABLE_TARGET): Define.
9938 * config/mips/mips.c: Include target-globals.h.
9939 (mips16_globals): New variable.
9940 (mips_set_mips16_mode): Use save_target_globals and
9941 restore_target_globals instead of target_reinit.
9942
9943 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9944
9945 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
9946 to say that the function can be called more than once.
9947 * target-globals.c (save_target_globals): Call init_reg_sets.
9948
9949 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9950
9951 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
9952 * bb-reorder.h: New file.
9953 * bb-reorder.c (default_target_bb_reorder): New variable.
9954 (this_target_bb_reorder): New conditional variable.
9955 (uncond_jump_length): Redefine as a macro.
9956 * target-globals.h (this_target_bb_reorder): Declare.
9957 (target_globals): Add a bb_reorder field.
9958 (restore_target_globals): Copy the bb_reorder field to
9959 this_target_bb-reorder.
9960 * target-globals.c: Include bb-reorder.h.
9961 (default_target_globals): Initialize the bb_reorder field.
9962 (save_target_globals): Likewise.
9963
9964 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9965
9966 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
9967 * gcse.h: New file.
9968 * gcse.c: Include gcse.h.
9969 (default_target_gcse): New variable.
9970 (this_target_gcse): New conditional variable.
9971 (can_copy): Redefine as a macro.
9972 (can_copy_init_p): New macro.
9973 (can_copy_p): Remove can_copy_init_p.
9974 * target-globals.h (this_target_gcse): Declare.
9975 (target_globals): Add a gcse field.
9976 (restore_target_globals): Copy the gcse field to this_target_gcse.
9977 * target-globals.c: Include gcse.h.
9978 (default_target_globals): Initialize the gcse field.
9979 (save_target_globals): Likewise.
9980
9981 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9982
9983 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
9984 and x_ira_prohibited_mode_move_regs_initialized_p.
9985 (ira_prohibited_mode_move_regs): Redefine as a macro.
9986 * ira.c (ira_prohibited_mode_move_regs): Delete.
9987 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
9988
9989 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9990
9991 * reload.h (target_reload): Add x_cached_reg_save_code and
9992 x_cached_reg_restore_code.
9993 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
9994 Redefine as macros.
9995
9996 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9997
9998 * Makefile.in (target-globals.o): Depend on builtins.h.
9999 * builtins.h: New file.
10000 * builtins.c: Include builtins.h.
10001 (default_target_builtins): New variable.
10002 (this_target_builtins): New conditional variable.
10003 (apply_args_mode, apply_result_mode): Redefine as macros.
10004 * target-globals.h (this_target_builtins): Declare.
10005 (target_globals): Add a builtins field.
10006 (restore_target_globals): Copy the builtins field to
10007 this_target_builtins.
10008 * target-globals.c: Include builtins.h.
10009 (default_target_globals): Initialize the builtins field.
10010 (save_target_globals): Likewise.
10011
10012 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10013
10014 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
10015 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
10016 from expmed.c.
10017 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
10018 (alg_hash, alg_hash_used_p): New macros.
10019 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
10020 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
10021 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
10022
10023 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10024
10025 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
10026 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
10027 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
10028 (this_op_costs, costs_classes): Redefine as macros.
10029 (record_reg_classes): Don't take op_costs as a parameter.
10030 (record_operand_costs): Likewise. Update calls to record_reg_classes.
10031 (scan_one_insn): Update call to record_operand_costs.
10032
10033 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10034
10035 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
10036 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
10037 (target_ira_int): New structure.
10038 (default_target_ira_int): Declare.
10039 (this_target_ira_int): Declare as a variable or define as a macro.
10040 (ira_reg_mode_hard_regset, ira_register_move_cost)
10041 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
10042 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
10043 (prohibited_class_mode_regs, ira_important_classes_num)
10044 (ira_important_classes, ira_reg_class_intersect)
10045 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
10046 (ira_reg_class_union): Redefine as macros.
10047 * ira.h (target_ira): New structure.
10048 (default_target_ira): Declare.
10049 (this_target_ira): Declare as a variable or define as a macro.
10050 (ira_available_class_regs, ira_hard_regno_cover_class)
10051 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
10052 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
10053 (ira_class_hard_regs_num): Redefine as macros.
10054 * ira.c (default_target_ira, default_target_ira_int): New variables.
10055 (this_target_ira, this_target_ira_int): New conditional variables.
10056 (ira_reg_mode_hard_regset, ira_memory_move_cost)
10057 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
10058 (ira_class_subset_p): Delete.
10059 (no_unit_alloc_regs): Redefine as a macro.
10060 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
10061 (ira_class_hard_regs_num, ira_class_hard_reg_index)
10062 (ira_available_class_regs): Delete.
10063 (alloc_reg_class_subclasses): Redefine as a macro.
10064 (ira_reg_class_cover_size, ira_reg_class_cover)
10065 (ira_important_classes_num, ira_important_classes)
10066 (ira_important_class_nums, ira_class_translate): Delete.
10067 (cover_class_order): Document the variable's lifetime.
10068 (reorder_important_classes): Don't set ira_important_class_nums.
10069 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
10070 (ira_reg_class_super_classes, ira_reg_class_union)
10071 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
10072 Delete.
10073 (setup_reg_class_nregs): Don't set ira_max_regs.
10074 (prohibited_class_mode_regs): Delete.
10075 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
10076 (target_globals): Add ira and ira_int fields.
10077 (restore_target_globals): Copy the ira field to this_target_ira
10078 and the ira_int field to this_target_ira_int.
10079 * target-globals.c: Include ira-int.h.
10080 (default_target_globals): Initialize the ira and ira_int fields.
10081 (save_target_globals): Likewise.
10082
10083 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10084
10085 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
10086 * cfgloop.h (target_cfgloop): New structure.
10087 (default_target_cfgloop): Declare.
10088 (this_target_cfgloop): Declare as a variable or define as a macro.
10089 (target_avail_regs, target_clobbered_regs, target_res_regs)
10090 (target_reg_cost, target_spill_cost): Redefine as macros.
10091 * cfgloopanal.c (default_target_cfgloop): New variable.
10092 (this_target_cfgloop): New conditional variable.
10093 (target_avail_regs, target_clobbered_regs, target_res_regs)
10094 (target_reg_cost, target_spill_cost): Delete.
10095 * target-globals.h (this_target_cfgloop): Declare.
10096 (target_globals): Add a cfgloop field.
10097 (restore_target_globals): Copy the cfgloop field to
10098 this_target_cfgloop.
10099 * target-globals.c: Include cfgloop.h.
10100 (default_target_globals): Initialize the cfgloop field.
10101 (save_target_globals): Likewise.
10102
10103 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10104
10105 * regs.h (target_regs): Add x_direct_load, x_direct_store and
10106 x_float_extend_from_mem.
10107 (direct_load, direct_store, float_extend_from_mem): New macros.
10108 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
10109
10110 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10111
10112 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
10113 (target-globals.o): Depend on $(LIBFUNCS_H).
10114 * libfuncs.h: Include hashtab.h.
10115 (libfunc_entry): Moved from optabs.c.
10116 (target_libfuncs): New structure.
10117 (default_target_libfuncs): Declare.
10118 (this_target_libfuncs): Declare as a variable or define as a macro.
10119 (libfunc_table): Redefine as a macro.
10120 * optabs.c (default_target_libfuncs): New variable.
10121 (this_target_libfuncs): New conditional variable.
10122 (libfunc_table): Delete.
10123 (libfunc_entry): Moved to optabs.h.
10124 (libfunc_hash): Redefine as a macro.
10125 (hash_libfunc, eq_libfunc): Fix comments.
10126 (init_optabs): Use libfunc_hash to detect cases where the function
10127 has already been called. Clear the hash table instead of
10128 recreating it.
10129 * target-globals.h (this_target_libfuncs): Declare.
10130 (target_globals): Add a libfuncs field.
10131 (restore_target_globals): Copy the libfuncs field to
10132 this_target_libfuncs.
10133 * target-globals.c: Include libfuncs.h.
10134 (default_target_globals): Initialize the libfuncs field.
10135 (save_target_globals): Likewise.
10136
10137 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10138
10139 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
10140 in all dependency lists.
10141
10142 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10143
10144 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
10145 * optabs.h (target_optabs): New structure.
10146 (default_target_optabs): Declare.
10147 (this_target_optabs): Declare as a variable or define as a macro.
10148 (optab_table, convert_optab_table, direct_optab_table): Redefine
10149 as macros.
10150 * optabs.c (default_target_optabs): New variable.
10151 (this_target_optabs): New conditional variable.
10152 (optab_table, convert_optab_table, direct_optab_table): Delete.
10153 * target-globals.h (this_target_optabs): Declare.
10154 (target_globals): Add a optabs field.
10155 (restore_target_globals): Copy the optabs field to
10156 this_target_optabs.
10157 * target-globals.c: Include expr.h and optabs.h.
10158 (default_target_globals): Initialize the optabs field.
10159 (save_target_globals): Likewise.
10160
10161 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10162
10163 * flags.h (target_flagstate): Add x_flag_excess_precision.
10164 (flag_excess_precision): Redefine as a macro.
10165 * toplev.c (flag_excess_precision): Delete.
10166
10167 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10168
10169 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
10170 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
10171 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
10172 (no_caller_save_reg_set): Redefine as a macro.
10173 * reload.h (target_reload): Add x_caller_save_initialized_p and
10174 x_regno_save_mode.
10175 (caller_save_initialized_p): Redefine as a macro.
10176 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
10177 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
10178 (regno_save_mode): Redefine as a macro.
10179
10180 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10181
10182 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
10183 * expmed.h: New file.
10184 * expmed.c (default_target_costs): New variable.
10185 (this_target_costs): New conditional variable.
10186 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
10187 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
10188 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
10189 * target-globals.h (this_target_expmed): Declare.
10190 (target_globals): Add a expmed field.
10191 (restore_target_globals): Copy the expmed field to
10192 this_target_expmed.
10193 * target-globals.c: Include expmed.h.
10194 (default_target_globals): Initialize the expmed field.
10195 (save_target_globals): Likewise.
10196
10197 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10198
10199 * Makefile.in (target-globals.o): Depend on reload.h.
10200 * reload.h (target_reload): New structure.
10201 (default_target_reload): Declare.
10202 (this_target_reload): Declare as a variable or define as a macro.
10203 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
10204 * reload1.c (default_target_reload): New variable
10205 (this_target_reload): New conditional variable.
10206 (indirect_symref_ok, double_reg_address_ok): Delete.
10207 (spill_indirect_levels): Redefine as a macro.
10208 * target-globals.h (this_target_reload): Declare.
10209 (target_globals): Add a reload field.
10210 (restore_target_globals): Copy the reload field to
10211 this_target_reload.
10212 * target-globals.c: Include hard-reg-set.h.
10213 (default_target_globals): Initialize the reload field.
10214 (save_target_globals): Likewise.
10215
10216 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10217
10218 * rtl.h (target_rtl): Add x_static_reg_base_value.
10219 * alias.c (static_reg_base_value): Redefine as a macro.
10220
10221 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10222
10223 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
10224 (GTFILES): Remove reginfo.c.
10225 * rtl.h (target_rtl): Add x_top_of_stack.
10226 (top_of_stack): New macro.
10227 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
10228 (top_of_stack): Delete.
10229
10230 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10231
10232 * regs.h (target_regs): Add x_hard_regs_of_mode,
10233 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
10234 x_may_move_out_cost and x_last_mode_for_init_move_cost.
10235 (have_regs_of_mode, contains_reg_of_mode, move_cost)
10236 (may_move_in_cost, may_move_out_cost): Redefine as macros.
10237 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
10238 (may_move_in_cost, may_move_out_cost): Delete.
10239 (last_mode_for_init_move_cost): Redefine as a macro.
10240
10241 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10242
10243 * hard-reg-set.h (target_hard_regs): New structure.
10244 (default_target_hard_regs): Declare.
10245 (this_target_hard_regs): Declare as a variable or define as a macro.
10246 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
10247 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
10248 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
10249 (reg_class_size, reg_class_subclasses, reg_class_subunion)
10250 (reg_class_superunion, reg_names): Redefine as macros.
10251 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
10252 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
10253 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
10254 (reg_class_contents, reg_class_size, reg_class_subclasses)
10255 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
10256 (default_target_hard_regs): New variable
10257 (this_target_hard_regs, initial_call_really_used_regs)
10258 (initial_reg_alloc_order): New conditional variables.
10259 (initial_reg_names): New variable.
10260 (init_reg_sets): Assert that initial_call_really_used_regs,
10261 initial_reg_alloc_order and initial_reg_names
10262 are all the same size as their variable counterparts. Use them to
10263 initialize those counterparts.
10264 * target-globals.h (this_target_hard_regs): Declare.
10265 (target_globals): Add a hard_regs field.
10266 (restore_target_globals): Copy the hard_regs field to
10267 this_target_hard_regs.
10268 * target-globals.c: Include hard-reg-set.h.
10269 (default_target_globals): Initialize the hard_regs field.
10270 (save_target_globals): Likewise.
10271
10272 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10273
10274 * Makefile.in (target-globals.o): Depend on $(RTL_H).
10275 * rtl.h (target_rtl): New structure.
10276 (default_target_rtl): Declare.
10277 (this_target_rtl): Declare as a variable or define as a macro.
10278 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
10279 Redefine as macros.
10280 * emit-rtl.c (default_target_rtl): New variable.
10281 (this_target_rtl): New conditional variable.
10282 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
10283 (return_address_pointer_rtx): Delete.
10284 (initial_regno_reg_rtx): New macro.
10285 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
10286 (init_emit_regs): Likewise.
10287 * target-globals.h (this_target_rtl): Declare.
10288 (target_globals): Add a rtl field.
10289 (restore_target_globals): Copy the rtl field to this_target_rtl.
10290 * target-globals.c: Include rtl.h.
10291 (default_target_globals): Initialize the rtl field.
10292 (save_target_globals): Likewise.
10293
10294 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10295
10296 * Makefile.in (target-globals.o): Depend on $(REGS_H).
10297 * regs.h (target_reg_modes): New structure.
10298 (default_target_reg_modes): Declare.
10299 (this_target_reg_modes): Declare as a variable or define as a macro.
10300 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
10301 * reginfo.c (default_target_reg_modes): New variable.
10302 (this_target_reg_modes): New conditional variable.
10303 (hard_regno_nregs, reg_raw_mode): Delete.
10304 * target-globals.h (this_target_regs): Declare.
10305 (target_globals): Add a regs field.
10306 (restore_target_globals): Copy the regs field to this_target_regs.
10307 * target-globals.c: Include regs.h.
10308 (default_target_globals): Initialize the regs field.
10309 (save_target_globals): Likewise.
10310
10311 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
10312
10313 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
10314 * doc/tm.texi: Regenerate.
10315 * Makefile.in (OBJS-common): Add target-globals.o.
10316 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
10317 and target-globals.h.
10318 (target-globals.o): New rule.
10319 (GTFILES): Include $(srcdir)/target-globals.h.
10320 * defaults.h (SWITCHABLE_TARGET): Define.
10321 * gengtype.c (open_base_files): Add target-globals.h to the
10322 list of includes.
10323 * target-globals.h: New file.
10324 * target-globals.c: Likewise.
10325
10326 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
10327 * flags.h (target_flag_state): New structure.
10328 (default_target_flag_state): Declare.
10329 (this_target_flag_state): Declare as a variable or define as a macro.
10330 (align_loops_log): Redefine as a macro.
10331 (align_loops_max_skip, align_jumps_log): Likewise.
10332 (align_jumps_max_skip, align_labels_log): Likewise.
10333 (align_labels_max_skip, align_functions_log): Likewise.
10334 * toplev.c (default_target_flag_state): New variable.
10335 (this_target_flag_state): New conditional variable.
10336 (align_loops_log): Delete.
10337 (align_loops_max_skip, align_jumps_log): Likewise.
10338 (align_jumps_max_skip, align_labels_log): Likewise.
10339 (align_labels_max_skip, align_functions_log): Likewise.
10340 * target-globals.h (this_target_flag_state): Declare.
10341 (target_globals): Add a flag_state field.
10342 (restore_target_globals): Copy the flag_state field to
10343 this_target_flag_state.
10344 * target-globals.c: Include flags.h.
10345 (default_target_globals): Initialize the flag_state field.
10346 (save_target_globals): Likewise.
10347
10348 2010-07-12 Jie Zhang <jie@codesourcery.com>
10349
10350 * postreload.c (reg_symbol_ref[]): New.
10351 (move2add_use_add2_insn): New.
10352 (move2add_use_add3_insn): New.
10353 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
10354 (move2add_note_store): Likewise.
10355
10356 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
10357
10358 PR rtl-optimization/44752
10359 * genautomata.c (main): Don't emit an empty file even if there
10360 is no automaton.
10361
10362 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10363
10364 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
10365 ix86_solaris_return_in_memory.
10366 * config/i386-protos.h: Reflect this.
10367 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10368 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10369 Move ...
10370 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
10371
10372 2010-07-12 Jie Zhang <jie@codesourcery.com>
10373
10374 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
10375 align the stack when it's going to be saved.
10376
10377 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10378
10379 PR pch/14940
10380 * config/host-solaris.c (mmap_fixed): New function.
10381 (sol_gt_pch_get_address): Use it.
10382 (sol_gt_pch_use_address): Likewise.
10383
10384 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10385
10386 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10387 pentiumpro on Solaris 8 and 9/x86.
10388 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
10389 Document SSE/SSE2 support.
10390 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
10391
10392 2010-07-12 Andi Kleen <ak@linux.intel.com>
10393
10394 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
10395 instead of gcc_assert to print better error message for multiple
10396 prevailing defs.
10397
10398 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
10399
10400 * config/i386/i386.c (ix86_asm_output_function_label): Change format
10401 string placeholder from 0x%x to %#x.
10402 (ix86_code_end): Use putc to output '\n'.
10403 (ix86_print_operand) <case ';'>: Use putc to output ';'.
10404
10405 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
10406
10407 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
10408 in directive -export.
10409
10410 2010-07-10 Anatoly Sokolov <aesok@post.ru>
10411
10412 * reginfo.h (reg_classes_intersect_p): Change arguments type to
10413 reg_class_t.
10414 * rtl.h (reg_classes_intersect_p): Adjust prototype.
10415
10416 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10417 Remove macros.
10418 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
10419 rs6000_memory_move_cost): Remove
10420 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
10421 TARGET_MEMORY_MOVE_COST): Define.
10422 (rs6000_register_move_cost): Make static. Change arguments type from
10423 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
10424 (rs6000_memory_move_cost): Make static. Change arguments type from
10425 'enum reg_class' to reg_class_t.
10426
10427 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
10428
10429 PR middle-end/42505
10430 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
10431 lookup code into....
10432 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
10433 new functions.
10434 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
10435 * cfgloopanal.c (target_clobbered_regs): Define.
10436 (init_set_costs): Initialize target_clobbered_regs.
10437 (estimate_reg_pressure_cost): Add call_p argument. When true,
10438 adjust the number of available registers to exclude the
10439 call-clobbered registers.
10440 * cfgloop.h (target_clobbered_regs): Declare.
10441 (estimate_reg_pressure_cost): Adjust declaration.
10442 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
10443 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
10444 (determine_set_costs): Dump target_clobbered_regs.
10445 (loop_body_includes_call): New function.
10446 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
10447 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
10448 call_p flag through.
10449 (best_gain_for_invariant): Likewise.
10450 (find_invariants_to_move): Likewise.
10451 (move_single_loop_invariants): Likewise, using already-computed
10452 has_call field.
10453
10454 2010-07-10 Richard Guenther <rguenther@suse.de>
10455 Joern Rennecke <joern.rennecke@embecosm.com>
10456
10457 PR debug/44832
10458 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
10459 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
10460 unless they have DECL_IGNORED_P set.
10461
10462 2010-07-10 Richard Guenther <rguenther@suse.de>
10463
10464 PR lto/44889
10465 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
10466 helper function.
10467 (gimple_types_compatible_p): Similar to pointed-to
10468 types allow and merge a mix of complete and incomplete aggregate.
10469 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
10470 (iterative_hash_gimple_type): Adjust for that.
10471
10472 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
10473
10474 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
10475
10476 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
10477
10478 PR objc/44140
10479 * config/darwin.c (output_objc_section_asm_op): Save and restore
10480 section when outputting ObjC section list.
10481
10482 2010-07-09 Jan Hubicka <jh@suse.cz>
10483
10484 * lto-streamer-out.c (produce_symtab): Do not write alias
10485 cgraph/varpool nodes.
10486
10487 2010-07-09 Jan Hubicka <jh@suse.cz>
10488
10489 * tree-inline.c (declare_return_variable): Fix ICE while
10490 inlining DECL_BY_VALUE function not in SSA form
10491
10492 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
10493
10494 PR tree-optimization/44576
10495 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
10496 New. Pull out from is_loop_prefetching_profitable to implement
10497 the trip count to ahead ratio heuristic.
10498 (mem_ref_count_reasonable_p): New. Pull out from
10499 is_loop_prefetching_profitable to implement the instruction to
10500 memory reference ratio heuristic. Also consider not reasonable if
10501 the memory reference count is above a threshold (to avoid
10502 explosive compilation time.
10503 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
10504 is_loop_prefetching_profitable to implement the instruction to
10505 prefetch ratio heuristic.
10506 (is_loop_prefetching_profitable): Removed.
10507 (loop_prefetch_arrays): Distribute the cost analysis across the
10508 function to allow early exit of the prefetch analysis.
10509 is_loop_prefetching_profitable is splitted into three functions,
10510 with each one called as early as possible.
10511 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
10512 number of memory references in a loop is considered too many.
10513
10514 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
10515
10516 * reload.c (find_reloads): Don't clear badop if we have a winreg
10517 alternative, but not win, and the class only has fixed regs.
10518 * hard-reg-set.h (class_only_fixed_regs): Declare.
10519 * reginfo.c (class_only_fixed_regs): New array.
10520 (init_reg_sets_1): Initialize it.
10521 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
10522 discourage alternatives using the stack pointer.
10523
10524 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
10525
10526 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
10527
10528 * config/arm/arm.md (cbranchqi4): Fix array size.
10529 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
10530 calculating length.
10531
10532 2010-07-09 Richard Guenther <rguenther@suse.de>
10533
10534 * gimple.c (struct type_fixup_s): New struct and VEC type.
10535 (gimple_register_type_fixups): New static global.
10536 (gimple_queue_type_fixup): New function.
10537 (gimple_types_compatible_p): Queue type fixups instead of
10538 applying them here.
10539 (gimple_register_type): Apply queued fixups for the
10540 canonical type. Empty the type fixup queue.
10541
10542 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
10543
10544 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
10545 * configure: Regenerate.
10546 * config.in: Ditto.
10547
10548 2010-07-09 Jakub Jelinek <jakub@redhat.com>
10549 Denys Vlasenko <dvlasenk@redhat.com>
10550 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10551
10552 PR tree-optimization/28632
10553 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
10554 (extract_range_from_binary_expr): Further optimize
10555 BIT_AND_EXPR and BIT_IOR_EXPR.
10556
10557 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
10558
10559 * tree-if-conv.c (fold_or_predicates): New.
10560 (add_to_predicate_list): Call it.
10561
10562 2010-07-09 Richard Guenther <rguenther@suse.de>
10563
10564 PR middle-end/44890
10565 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
10566 if base is a pointer.
10567 * tree-cfg.c (verify_expr): Update MEM_REF checking.
10568
10569 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10570
10571 PR target/44877
10572 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
10573 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
10574 builtin mask for load/store builtins.
10575
10576 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
10577
10578 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
10579 for "lock addl".
10580 * configure: Regenerate.
10581 * config/i386/i386.c (ix86_print_operand) <case ';'>:
10582 Remove TARGET_MACHO.
10583
10584 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
10585
10586 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
10587 default ISA flags.
10588 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
10589
10590 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
10591
10592 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
10593
10594 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10595
10596 * config/picochip/picochip.md (commsTestPort): Emit more
10597 efficient sequence for tstport instruction.
10598
10599 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
10600
10601 * config/i386/i386.c (ix86_veclib_handler): Make static.
10602
10603 2010-07-09 Richard Guenther <rguenther@suse.de>
10604
10605 PR tree-optimization/44852
10606 * tree-ssa-alias.c: Include toplev.h for exact_log2.
10607 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
10608 in MEM_REF.
10609 (indirect_refs_may_alias_p): Likewise.
10610 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
10611
10612 2010-07-09 Richard Guenther <rguenther@suse.de>
10613
10614 PR tree-optimization/44882
10615 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
10616 sets do conflict.
10617 (vectorizable_load): Likewise.
10618
10619 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
10620
10621 PR target/40657
10622 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
10623 All callers changed.
10624 Handle the case when we're called for the epilogue.
10625 (thumb_unexpanded_epilogue): Use it.
10626 (thumb1_expand_epilogue): Likewise.
10627
10628 2010-07-09 Jakub Jelinek <jakub@redhat.com>
10629
10630 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
10631 both ranges are range_int_cst_p with non-negative minimum,
10632 try harder to derive smaller range.
10633
10634 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10635
10636 * genrecog.c: Include diagnostic-core.h before toplev.h.
10637 * genoutput.c: Likewise.
10638 * genextract.c: Likewise.
10639 * genautomata.c: Likewise.
10640 * genemit.c: Likewise.
10641 * genpeep.c: Likewise.
10642 * genattrtab.c: Likewise.
10643 * genconditions.c: Likewise.
10644 * genpreds.c: Likewise.
10645
10646 2010-07-08 Andi Kleen <ak@linux.intel.com>
10647
10648 * lto-section-in.c (lto_section_name): Add missing comma.
10649
10650 2010-07-08 Anatoly Sokolov <aesok@post.ru>
10651
10652 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
10653 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
10654 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
10655 (ia64_override_options): Rename to...
10656 (ia64_option_override): ... this one. Make static.
10657
10658 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10659
10660 PR middle-end/44843
10661 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
10662 pointed-to type of the offset in a MEM_REF to compute the alignment.
10663
10664 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
10665
10666 * final.c (final_scan_insn): Replace
10667 TARGET_UNWIND_INFO macro check by unwind_emit
10668 hook NULL check.
10669 * targhooks.c (default_unwind_emit): Removed.
10670 * targhooks.h (default_unwind_emit): Likewise.
10671 * target.def (unwind_emit): Set default value to NULL.
10672
10673 * config/i386/i386-protos.h (ix86_asm_output_function_label):
10674 New prototype.
10675 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10676 for NULL fntype argument and allow 64-bit targets.
10677 (ix86_asm_output_function_label): New function.
10678 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10679 (ix86_handle_fndecl_attribute): Likewise.
10680 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10681 * doc/doc/tm.texi: Regenerated.
10682 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10683 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10684 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10685 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10686 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10687 * config/elfos.h: Likewise.
10688 * config/i386/cygming.h: Likewise.
10689 * config/netbsd-aout.h: Likewise.
10690 * config/openbsd.h: Likewise.
10691 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10692 by ix86_asm_output_function_label function call.
10693 * varasm.c (assemble_start_function): Use
10694 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10695
10696 2010-07-08 Jan Hubicka <jh@suse.cz>
10697
10698 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10699 New function.
10700 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10701 Declare.
10702 * ipa-cp.c (ipcp_estimate_growth): Use it.
10703 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10704 Likewise.
10705
10706 2010-07-08 Jan Hubicka <jh@suse.cz>
10707
10708 * tree-inline.c (declare_return_variable): Allocate annotation for new
10709 temporary.
10710
10711 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
10712
10713 PR tree-optimization/44710
10714 * tree-if-conv.c (parse_predicate): New.
10715 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10716 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10717
10718 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
10719
10720 * common.opt (ftree-loop-if-convert): New flag.
10721 * doc/invoke.texi (ftree-loop-if-convert): Documented.
10722 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10723 when flag_tree_loop_if_convert is set.
10724
10725 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
10726
10727 * config/i386/i386.c: Use short syntax for function calls
10728 through function pointers.
10729 * config/i386/i386.md: Ditto.
10730
10731 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10732
10733 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10734
10735 2010-07-08 Richard Guenther <rguenther@suse.de>
10736
10737 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10738 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10739
10740 2010-07-08 Jakub Jelinek <jakub@redhat.com>
10741
10742 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10743 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10744 (loc_list_from_tree): Likewise.
10745 (output_loc_operands): Handle outputting DW_OP_const[48]u
10746 with loc->dtprel set.
10747 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10748
10749 2010-07-08 Jan Hubicka <jh@suse.cz>
10750
10751 * ipa.c: Include pointer-set.h
10752 (cgraph_externally_visible_p): New attribute ALIASED;
10753 when in LTO, hidden symbols are local unless they are aliased.
10754 (function_and_variable_visibility): Compute aliased nodes;
10755 handle LTO and hidden symbol on functions and vars.
10756 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10757 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10758
10759 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10760
10761 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10762 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10763 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10764 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10765 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10766 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10767 (ix86_gen_probe_stack_range): Likewise.
10768 (override_options): Set them.
10769 (ix86_target_stack_probe): New function.
10770 (ix86_compute_frame_layout): Force use of push instructions to
10771 save registers if stack checking with probes is enabled.
10772 (get_scratch_register_on_entry): New function.
10773 (release_scratch_register_on_entry): Likewise.
10774 (ix86_adjust_stack_and_probe): Likewise.
10775 (output_adjust_stack_and_probe): Likewise.
10776 (ix86_emit_probe_stack_range): Likewise.
10777 (output_probe_stack_range): Likewise.
10778 (ix86_expand_prologue): Emit stack checking code if static built-in
10779 stack checking is enabled.
10780 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10781 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10782 (output_adjust_stack_and_probe): Likewise.
10783 (output_probe_stack_range): Likewise.
10784 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10785 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10786 TARGET_STACK_PROBE.
10787 (allocate_stack_worker_64): Likewise.
10788 (allocate_stack): Likewise.
10789 (adjust_stack_and_probe): New insn.
10790 (probe_stack_range): Likewise.
10791
10792 2010-07-08 Richard Guenther <rguenther@suse.de>
10793
10794 PR tree-optimization/44831
10795 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10796 a MEM_REF preserving TBAA info of the original dereference.
10797 Dereference the original pointer if the address is not invariant.
10798 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
10799 at least one invariant address that we are going to dereference.
10800
10801 2010-07-08 Richard Guenther <rguenther@suse.de>
10802
10803 PR tree-optimization/44861
10804 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10805 information when building MEM_REFs.
10806 (vectorizable_load): Likewise.
10807 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10808
10809 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10810
10811 * config/sol2-c.c: Do not include diagnostic-core.h.
10812
10813 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10814
10815 PR bootstrap/44768
10816 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10817 with respect to current_function_decl. Pass decl of the function.
10818 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10819 * ipa-inline.c (compute_inline_parameters): Pass decl to
10820 estimated_stack_frame_size.
10821
10822 2010-07-08 Richard Guenther <rguenther@suse.de>
10823
10824 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10825 New function.
10826 (valueize_refs): Call it.
10827
10828 2010-07-08 Richard Guenther <rguenther@suse.de>
10829
10830 PR rtl-optimization/44838
10831 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10832 SSA form do not use pointer equivalence.
10833
10834 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
10835
10836 * dwarf2out.c (AT_linkage_name): Delete.
10837 (add_linkage_attr): New function.
10838 (add_linkage_name): Call it to emit the linkage attribute.
10839 (dwarf2out_finish): Likewise.
10840 (move_linkage_attr): Explicitly accept both attribute variants.
10841
10842 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10843
10844 * toplev.h: Do not include diagnostic-core.h.
10845 Include diagnostic-core.h in every file that includes toplev.h.
10846 * c-tree.h: Do not include toplev.h.
10847 * pretty-print.h: Update comment.
10848 * Makefile.in: Update dependencies.
10849 * alias.c: Include diagnostic-core.h in every file that includes
10850 toplev.h.
10851 * attribs.c: Likewise.
10852 * auto-inc-dec.c: Likewise.
10853 * bb-reorder.c: Likewise.
10854 * bt-load.c: Likewise.
10855 * caller-save.c: Likewise.
10856 * calls.c: Likewise.
10857 * cfg.c: Likewise.
10858 * cfganal.c: Likewise.
10859 * cfgbuild.c: Likewise.
10860 * cfgcleanup.c: Likewise.
10861 * cfghooks.c: Likewise.
10862 * cfgloop.c: Likewise.
10863 * combine.c: Likewise.
10864 * config/alpha/alpha.c: Likewise.
10865 * config/arc/arc.c: Likewise.
10866 * config/arm/arm.c: Likewise.
10867 * config/arm/pe.c: Likewise.
10868 * config/avr/avr.c: Likewise.
10869 * config/bfin/bfin.c: Likewise.
10870 * config/cris/cris.c: Likewise.
10871 * config/crx/crx.c: Likewise.
10872 * config/darwin-c.c: Likewise.
10873 * config/darwin.c: Likewise.
10874 * config/fr30/fr30.c: Likewise.
10875 * config/frv/frv.c: Likewise.
10876 * config/h8300/h8300.c: Likewise.
10877 * config/host-darwin.c: Likewise.
10878 * config/i386/i386.c: Likewise.
10879 * config/i386/netware.c: Likewise.
10880 * config/i386/nwld.c: Likewise.
10881 * config/i386/winnt-cxx.c: Likewise.
10882 * config/i386/winnt-stubs.c: Likewise.
10883 * config/i386/winnt.c: Likewise.
10884 * config/ia64/ia64-c.c: Likewise.
10885 * config/ia64/ia64.c: Likewise.
10886 * config/iq2000/iq2000.c: Likewise.
10887 * config/lm32/lm32.c: Likewise.
10888 * config/m32c/m32c-pragma.c: Likewise.
10889 * config/m32c/m32c.c: Likewise.
10890 * config/m32r/m32r.c: Likewise.
10891 * config/m68hc11/m68hc11.c: Likewise.
10892 * config/m68k/m68k.c: Likewise.
10893 * config/mcore/mcore.c: Likewise.
10894 * config/mep/mep-pragma.c: Likewise.
10895 * config/mep/mep.c: Likewise.
10896 * config/mmix/mmix.c: Likewise.
10897 * config/mn10300/mn10300.c: Likewise.
10898 * config/moxie/moxie.c: Likewise.
10899 * config/pa/pa.c: Likewise.
10900 * config/pdp11/pdp11.c: Likewise.
10901 * config/picochip/picochip.c: Likewise.
10902 * config/rs6000/rs6000-c.c: Likewise.
10903 * config/rs6000/rs6000.c: Likewise.
10904 * config/rx/rx.c: Likewise.
10905 * config/s390/s390.c: Likewise.
10906 * config/score/score.c: Likewise.
10907 * config/score/score3.c: Likewise.
10908 * config/score/score7.c: Likewise.
10909 * config/sh/sh.c: Likewise.
10910 * config/sh/symbian-base.c: Likewise.
10911 * config/sh/symbian-c.c: Likewise.
10912 * config/sh/symbian-cxx.c: Likewise.
10913 * config/sol2-c.c: Likewise.
10914 * config/sol2.c: Likewise.
10915 * config/sparc/sparc.c: Likewise.
10916 * config/spu/spu.c: Likewise.
10917 * config/stormy16/stormy16.c: Likewise.
10918 * config/v850/v850-c.c: Likewise.
10919 * config/v850/v850.c: Likewise.
10920 * config/vax/vax.c: Likewise.
10921 * config/vxworks.c: Likewise.
10922 * config/xtensa/xtensa.c: Likewise.
10923 * convert.c: Likewise.
10924 * cse.c: Likewise.
10925 * cselib.c: Likewise.
10926 * dbgcnt.c: Likewise.
10927 * dbxout.c: Likewise.
10928 * ddg.c: Likewise.
10929 * dominance.c: Likewise.
10930 * emit-rtl.c: Likewise.
10931 * explow.c: Likewise.
10932 * expmed.c: Likewise.
10933 * fixed-value.c: Likewise.
10934 * fold-const.c: Likewise.
10935 * fwprop.c: Likewise.
10936 * gcse.c: Likewise.
10937 * ggc-common.c: Likewise.
10938 * ggc-page.c: Likewise.
10939 * ggc-zone.c: Likewise.
10940 * gimple-low.c: Likewise.
10941 * gimplify.c: Likewise.
10942 * graph.c: Likewise.
10943 * haifa-sched.c: Likewise.
10944 * ifcvt.c: Likewise.
10945 * implicit-zee.c: Likewise.
10946 * integrate.c: Likewise.
10947 * ira-build.c: Likewise.
10948 * ira-color.c: Likewise.
10949 * ira-conflicts.c: Likewise.
10950 * ira-costs.c: Likewise.
10951 * ira-lives.c: Likewise.
10952 * ira.c: Likewise.
10953 * lists.c: Likewise.
10954 * loop-doloop.c: Likewise.
10955 * loop-iv.c: Likewise.
10956 * lto-opts.c: Likewise.
10957 * lto-symtab.c: Likewise.
10958 * main.c: Likewise.
10959 * modulo-sched.c: Likewise.
10960 * optabs.c: Likewise.
10961 * params.c: Likewise.
10962 * plugin.c: Likewise.
10963 * postreload-gcse.c: Likewise.
10964 * postreload.c: Likewise.
10965 * predict.c: Likewise.
10966 * profile.c: Likewise.
10967 * real.c: Likewise.
10968 * regcprop.c: Likewise.
10969 * reginfo.c: Likewise.
10970 * regmove.c: Likewise.
10971 * reorg.c: Likewise.
10972 * resource.c: Likewise.
10973 * rtl.c: Likewise.
10974 * rtlanal.c: Likewise.
10975 * sched-deps.c: Likewise.
10976 * sched-ebb.c: Likewise.
10977 * sched-rgn.c: Likewise.
10978 * sdbout.c: Likewise.
10979 * sel-sched-dump.c: Likewise.
10980 * sel-sched-ir.c: Likewise.
10981 * simplify-rtx.c: Likewise.
10982 * stmt.c: Likewise.
10983 * stor-layout.c: Likewise.
10984 * store-motion.c: Likewise.
10985 * targhooks.c: Likewise.
10986 * tree-cfg.c: Likewise.
10987 * tree-cfgcleanup.c: Likewise.
10988 * tree-dump.c: Likewise.
10989 * tree-eh.c: Likewise.
10990 * tree-inline.c: Likewise.
10991 * tree-nomudflap.c: Likewise.
10992 * tree-object-size.c: Likewise.
10993 * tree-optimize.c: Likewise.
10994 * tree-outof-ssa.c: Likewise.
10995 * tree-phinodes.c: Likewise.
10996 * tree-profile.c: Likewise.
10997 * tree-ssa-ccp.c: Likewise.
10998 * tree-ssa-coalesce.c: Likewise.
10999 * tree-ssa-live.c: Likewise.
11000 * tree-ssa-loop-niter.c: Likewise.
11001 * tree-ssa-loop-prefetch.c: Likewise.
11002 * tree-ssa-loop.c: Likewise.
11003 * tree-ssa-structalias.c: Likewise.
11004 * tree-ssa-uninit.c: Likewise.
11005 * tree-ssa.c: Likewise.
11006 * tree-vect-data-refs.c: Likewise.
11007 * tree-vect-loop-manip.c: Likewise.
11008 * tree-vect-loop.c: Likewise.
11009 * tree-vect-patterns.c: Likewise.
11010 * tree-vect-stmts.c: Likewise.
11011 * tree-vrp.c: Likewise.
11012 * varasm.c: Likewise.
11013 * vec.c: Likewise.
11014 * web.c: Likewise.
11015 * xcoffout.c: Likewise.
11016
11017 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
11018
11019 * gengtype.c (write_field_root): New function.
11020 (write_root): Use it.
11021
11022 2010-07-07 Wei Guozhi <carrot@google.com>
11023
11024 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
11025 of lowest bits to lshift/compare): Add a missing line.
11026
11027 2010-07-07 Wei Guozhi <carrot@google.com>
11028
11029 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
11030 of lowest bits to lshift/compare): New.
11031
11032 2010-07-07 Tom Tromey <tromey@redhat.com>
11033
11034 * doc/tm.texi: Update.
11035 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
11036 Add @hook.
11037 * target.def (want_debug_pub_sections): New hook.
11038 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
11039 * dwarf2out.c (add_pubname_string): Check
11040 targetm.want_debug_pub_sections.
11041 (add_pubname): Likewise.
11042 (add_pubtype): Likewise.
11043
11044 2010-07-07 Jie Zhang <jie@codesourcery.com>
11045
11046 * genautomata.c (output_automata_list_min_issue_delay_code):
11047 Correctly decompress min_issue_delay.
11048
11049 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
11050
11051 PR rtl-optimization/44404
11052 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
11053 possible, use reg_overlap_mentioned_p instead.
11054
11055 2010-07-07 Duncan Sands <baldrick@free.fr>
11056
11057 PR middle-end/41355
11058 * tree.c (build_function_type_skip_args): Copy the original type using
11059 build_distinct_type_copy rather than copy_node.
11060
11061 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
11062
11063 PR target/44850
11064 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
11065 revision 161876.
11066 (ix86_expand_prologue): Likewise.
11067 (ix86_handle_fndecl_attribute): Likewise.
11068 (ix86_asm_declare_function_name): Likewise.
11069 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11070 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11071 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
11072 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
11073 * doc/extend.texi: Likewise.
11074
11075 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
11076
11077 PR target/44844
11078 * config/i386/i386.md (rdrand<mode>): Changed to expand to
11079 retry if the carry flag isn't valid.
11080 (rdrand<mode>_1): New.
11081
11082 2010-07-07 Richard Guenther <rguenther@suse.de>
11083
11084 PR middle-end/44790
11085 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
11086 for expanding the constant offset for MEM_REFs.
11087
11088 2010-07-07 Richard Guenther <rguenther@suse.de>
11089
11090 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
11091 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
11092 * gimple.h (is_gimple_operand): Remove.
11093 * gimple.c (is_gimple_operand): Likewise.
11094 (walk_gimple_op): Fix wi->val_only setting for calls.
11095 * tree-cfg.c (verify_gimple_call): Fix argument validation.
11096 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
11097 invalid gimple calls.
11098
11099 2010-07-06 Jan Hubicka <jh@suse.cz>
11100
11101 * lto-cgraph.c (output_cgraph): Add missing declaration.
11102
11103 2010-07-06 Jan Hubicka <jh@suse.cz>
11104
11105 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
11106 partition.
11107
11108 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
11109
11110 * doc/gimple.texi (GIMPLE_DEBUG): Document.
11111 * doc/rtl.texi (Debug Information): New node.
11112 (NOTE_INSN_VAR_LOCATION): Document.
11113 (debug_insn): Likewise.
11114 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
11115
11116 2010-07-07 Jan Hubicka <jh@suse.cz>
11117
11118 With parts by Richard Guenther.
11119
11120 PR middle-end/44813
11121 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
11122 for functions passed by reference.
11123 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
11124 in memory when passed by reference.
11125 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
11126 beggining.
11127 * ipa-split.c (split_function): Cleanup way return value is passed;
11128 handle SSA DECL_BY_REFERENCE retvals.
11129 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
11130 DECL_BY_REFERENCE is set.
11131 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
11132 find_what_p_points_to): Handle RESULT_DECL.
11133 * tree-inline.c (declare_return_variable): Get new entry_block argument;
11134 when passing by reference ensure that RESULT_DECL is gimple_val.
11135 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
11136 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
11137
11138 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
11139
11140 PR rtl-optimization/44787
11141 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
11142 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
11143
11144 2010-07-06 Jan Hubicka <jh@suse.cz>
11145
11146 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
11147 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
11148 with body can prevail.
11149 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
11150 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
11151 * cgraph.c (cgraph_get_node_or_alias): New function.
11152 * cgraph.h (cgraph_get_node_or_alias): Declare.
11153
11154 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
11155
11156 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
11157 support.
11158 (ix86_expand_prologue): Likewise.
11159 (ix86_handle_fndecl_attribute): Likewise.
11160 (ix86_asm_declare_function_name): New function for
11161 ASM_DECLARE_FUNCTION_NAME.
11162 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
11163 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
11164 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
11165 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
11166 * doc/extend.texi: Adjust documentation about ms_hook_prologue
11167 attribute.
11168
11169 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
11170
11171 * config/i386/i386.md (immediate_operand): New mode attribute.
11172
11173 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
11174 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
11175 using P mode iterator.
11176 (pro_epilogue_adjust_stack_di_2): Rename from
11177 pro_epilogue_adjust_stack_rex64_2.
11178
11179 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
11180
11181 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
11182
11183 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
11184 through gen_mov_insv_1 function pointer.
11185 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
11186 gen_truncxf<mode>2 through gen_truncxf function pointer.
11187 (remainder<mode>3): Ditto.
11188 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
11189 (allocate_stack): Call gen_allocate_stack_worker_64 or
11190 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
11191 function pointer.
11192 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
11193 function pointer.
11194
11195 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
11196
11197 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
11198 operand constraint instead of <r><i>m.
11199
11200 2010-07-06 Richard Guenther <rguenther@suse.de>
11201
11202 PR middle-end/44828
11203 * convert.c (convert_to_integer): Watch out for overflowing
11204 MULT_EXPR as well.
11205
11206 2010-07-05 Jan Hubicka <jh@suse.cz>
11207
11208 * lto-streamer.c (write_symbol_vec): Rename to ...
11209 (write_symbol) ... this one; write only symbol given and when
11210 present in cache. Sanity check that what is defined is present
11211 in cgraph/varpool with body/finalized decl.
11212 (write_symbols_of_kind): Remove.
11213 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
11214 pairs to produce symtab.
11215 (produce_asm_for_decls): Update call of produce_symtab; don't do so
11216 when doing WPA streaming.
11217
11218 2010-07-05 Jan Hubicka <jh@suse.cz>
11219
11220 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
11221 function is still available to fold into.
11222
11223 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
11224
11225 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
11226 * function.h (struct_function): Change type of local_decls field
11227 to a VEC.
11228 (add_local_decl): New function.
11229 (FOR_EACH_LOCAL_DECL): New macro.
11230 * cfgexpand.c (init_vars_expansion): Adjust for new type of
11231 cfun->local_decls.
11232 (estimated_stack_frame_size): Likewise.
11233 (expand_used_vars): Likewise.
11234 * cgraphbuild.c (build_cgraph_edges): Likewise.
11235 * function.c (instantiate_decls_1): Likewise.
11236 * ipa-struct-reorg.c (build_data_structure): Likewise.
11237 * ipa-type-escape.c (analyze_function): Likewise.
11238 * lto-streamer-in.c (input_function): Likewise.
11239 * lto-streamer-out.c (output_function): Likewise.
11240 * tree-ssa-live.c (remove_unused_locals): Likewise.
11241 * tree.c (free_lang_data_in_decl): Likewise.
11242 (find_decls_types_in_node): Likewise.
11243 * omp-low.c (remove_exit_barrier): Likewise.
11244 (expand_omp_taskreg): Likewise.
11245 (list2chain): Rename to...
11246 (vec2chain): ...this. Adjust.
11247 * cgraphunit.c (assemble_thunk): Call add_local_decl.
11248 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
11249 * gimple-low.c (record_vars_into): Likewise.
11250 * tree-inline.c (remap_decls): Likewise.
11251 (declare_return_variable): Likewise.
11252 (declare_inline_vars): Likewise.
11253 (copy_forbidden): Adjust for new type of cfun->local_decls.
11254 (add_local_variables): New function.
11255 (expand_call_inline): Call it.
11256 (tree_function_versioning): Likewise.
11257
11258 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
11259
11260 AVX Programming Reference (June, 2010)
11261 * config/i386/cpuid.h (bit_F16C): New.
11262 (bit_RDRND): Likewise.
11263 (bit_FSGSBASE): Likewise.
11264
11265 * config/i386/i386-builtin-types.def: Add
11266 "DEF_FUNCTION_TYPE (UINT16)", function types for
11267 float16 <-> float conversions and
11268 "DEF_FUNCTION_TYPE (VOID, UINT64)".
11269
11270 * config/i386/i386-c.c (ix86_target_macros_internal): Support
11271 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
11272 OPTION_MASK_ISA_F16C.
11273
11274 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
11275 (OPTION_MASK_ISA_RDRND_SET): Likewise.
11276 (OPTION_MASK_ISA_F16C_SET): Likewise.
11277 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
11278 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
11279 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
11280 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
11281 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
11282 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
11283 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
11284 (override_options): Handle them.
11285 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
11286 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
11287 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
11288 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
11289 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
11290 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
11291 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
11292 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
11293 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
11294 (bdesc_args): Likewise.
11295 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
11296 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
11297 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
11298 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
11299 Handle non-memory store.
11300
11301 * config/i386/i386.h (TARGET_FSGSBASE): New.
11302 (TARGET_RDRND): Likewise.
11303 (TARGET_F12C): Likewise.
11304
11305 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
11306 (UNSPEC_VCVTPS2PH): Likewise.
11307 (UNSPECV_RDFSBASE): Likewise.
11308 (UNSPECV_RDGSBASE): Likewise.
11309 (UNSPECV_WRFSBASE): Likewise.
11310 (UNSPECV_WRGSBASE): Likewise.
11311 (UNSPECV_RDRAND): Likewise.
11312 (rdfsbase<mode>): Likewise.
11313 (rdgsbase<mode>): Likewise.
11314 (wrfsbase<mode>): Likewise.
11315 (wrgsbase<mode>): Likewise.
11316 (rdrand<mode>): Likewise.
11317
11318 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
11319
11320 * config/i386/immintrin.h (_rdrand_u16): New.
11321 (_rdrand_u32): Likewise.
11322 (_readfsbase_u32): Likewise.
11323 (_readfsbase_u64): Likewise.
11324 (_readgsbase_u32): Likewise.
11325 (_readgsbase_u64): Likewise.
11326 (_writefsbase_u32): Likewise.
11327 (_writefsbase_u64): Likewise.
11328 (_writegsbase_u32): Likewise.
11329 (_writegsbase_u64): Likewise.
11330 (_rdrand_u64): Likewise.
11331 (_cvtsh_ss): Likewise.
11332 (_mm_cvtph_ps): Likewise.
11333 (_mm256_cvtph_ps): Likewise.
11334 (_cvtss_sh): Likewise.
11335 (_mm_cvtps_ph): Likewise.
11336 (_mm256_cvtps_ph): Likewise.
11337
11338 * config/i386/sse.md (vcvtph2ps): New.
11339 (*vcvtph2ps_load): Likewise.
11340 (vcvtph2ps256): Likewise.
11341 (vcvtps2ph): Likewise.
11342 (*vcvtps2ph): Likewise.
11343 (*vcvtps2ph_store): Likewise.
11344 (vcvtps2ph256): Likewise.
11345
11346 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
11347
11348 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
11349
11350 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
11351
11352 PR bootstrap/44512
11353 * genenums.c (main): Output include of insn-constants.h
11354 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
11355
11356 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
11357
11358 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
11359 (override_options): Initialize it.
11360 (ix86_expand_prologue): Use it.
11361
11362 2010-07-05 Jakub Jelinek <jakub@redhat.com>
11363
11364 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
11365
11366 2010-07-05 Anatoly Sokolov <aesok@post.ru>
11367
11368 * double-int.h (fit_double_type): Remove declaration.
11369 * double-int.c (fit_double_type): Remove function.
11370 * tree.h (int_fits_type_p): Adjust prototype.
11371 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
11372 instead of fit_double_type.
11373 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
11374 instead of fit_double_type and build_int_cst_wide.
11375 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
11376 instead of fit_double_type and build_int_cst_wide.
11377 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
11378 of fit_double_type.
11379
11380 2010-07-05 Jan Hubicka <jh@suse.cz>
11381
11382 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
11383 in_other_partition.
11384 * lto-cgraph.c (referenced_from_other_partition_p,
11385 reachable_from_other_partition_p): Use in_other_partition flags.
11386 (output_node, output_varpool_node): COMDAT nodes always have private
11387 copies and thus are never used from other partition.
11388
11389 2010-07-05 Anatoly Sokolov <aesok@post.ru>
11390
11391 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
11392 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
11393 * config/ia64/ia64.c Include reload.h.
11394 (ia64_memory_move_cost): New function.
11395 (TARGET_MEMORY_MOVE_COST): Define.
11396 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
11397 memory_move_cost.
11398
11399 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
11400
11401 PR middle-end/42505
11402 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
11403 comments about cost model.
11404 (try_add_cand_for): Add second strategy for choosing initial set
11405 based on original IVs, controlled by ORIGINALP argument.
11406 (get_initial_solution): Add ORIGINALP argument.
11407 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
11408 (find_optimal_iv_set): Try two different strategies for choosing
11409 the IV set, and return the one with lower cost.
11410
11411 2010-07-05 Richard Guenther <rguenther@suse.de>
11412
11413 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
11414
11415 2010-07-05 Richard Guenther <rguenther@suse.de>
11416
11417 * tree.c (reference_alias_ptr_type): New function.
11418 * tree.h (reference_alias_ptr_type): Declare.
11419 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
11420 allow non-TARGET_MEM_REF new refs.
11421 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
11422 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
11423 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
11424 (create_mem_ref): Get alias pointer type. Adjust calls to
11425 create_mem_ref_raw.
11426 (maybe_fold_tmr): Likewise.
11427 * tree-flow.h (create_mem_ref): Adjust prototype.
11428
11429 2010-07-05 Jakub Jelinek <jakub@redhat.com>
11430
11431 PR c++/44808
11432 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
11433 *from_p is VAR_DECL.
11434
11435 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
11436
11437 * tree.h (build_call_list): Remove.
11438 * tree.c (build_call_list): Remove.
11439
11440 2010-07-05 Richard Guenther <rguenther@suse.de>
11441
11442 * double-int.h (double_int_sub): Declare.
11443 * double-int.c (double_int_sub): New function.
11444 * dwarf2out.c (field_byte_offset): Use it.
11445 * fixed-value.c (do_fixed_add): Likewise.
11446 (do_fixed_multiply): Likewise.
11447 (do_fixed_divide): Likewise.
11448 * tree-predcom.c (add_ref_to_chain): Likewise.
11449 (determine_roots_comp): Likewise.
11450 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
11451
11452 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
11453
11454 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
11455 implementations.
11456
11457 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
11458
11459 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
11460 * arm-modes.def (CC_NOTB): Don't define.
11461 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
11462 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
11463 (LTUGEU): New code_iterator.
11464 (cnb, optab): New corresponding code_attrs.
11465 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
11466 to canonical form. Operands 1 and 2 are commutative. Parametrize
11467 using LTUGEU.
11468 (addsi3_carryin_shift_<optab>): Likewise.
11469 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
11470 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
11471 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
11472 (subsi3_compare): Renamed from subsi3_compare0_c.
11473 Change CC_NOTB to CC.
11474 (arm_subsi3_insn): Allow constants for operand 0.
11475 (compare_scc peephole for eq case): New.
11476 (compare_scc splitters): Change CC_NOTB to CC.
11477
11478 2010-07-05 Richard Guenther <rguenther@suse.de>
11479
11480 * tree-ssa-loop-im.c (for_each_index): Do not handle
11481 ALIGN_INDIRECT_REF.
11482 (gen_lsm_tmp_name): Likewise.
11483 * tree-dump.c (dequeue_and_dump): Likewise.
11484 * tree-pretty-print.c (dump_generic_node): Likewise.
11485 (op_code_prio): Likewise.
11486 (op_symbol_code): Likewise.
11487 * tree.c (staticp): Likewise.
11488 (build1_stat): Likewise.
11489 * tree.h (INDIRECT_REF_P): Likewise.
11490 * fold-const.c (maybe_lvalue_p): Likewise.
11491 (operand_equal_p): Likewise.
11492 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11493 (ao_ref_init_from_vn_reference): Likewise.
11494 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11495 (find_interesting_uses_address): Likewise.
11496 * dwarf2out.c (loc_list_from_tree): Likewise.
11497 * gimplify.c (gimplify_expr): Likewise.
11498 * tree-eh.c (tree_could_trap_p): Likewise.
11499 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11500 * cfgexpand.c (expand_debug_expr): Likewise.
11501 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11502 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11503 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11504 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
11505 * tree-ssa-operands.c (get_expr_operands): Likewise.
11506 * expr.c (safe_from_p): Likewise.
11507 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
11508 * tree-vect-data-refs.c (vect_setup_realignment): Build
11509 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
11510 * tree-vect-stmts.c (vectorizable_load): Likewise.
11511 * tree.def (ALIGN_INDIRECT_REF): Remove.
11512
11513 2010-07-05 Richard Guenther <rguenther@suse.de>
11514
11515 PR tree-optimization/44784
11516 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
11517 for inserted stmts.
11518 (find_or_generate_expression): Fix SCCVN insertion check.
11519
11520 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
11521
11522 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
11523 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
11524 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
11525 directives.
11526
11527 2010-07-05 Ira Rosen <irar@il.ibm.com>
11528
11529 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
11530 statements that are not vectorized.
11531 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
11532 in INSIDE_COST.
11533
11534 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
11535
11536 PR bootstrap/44820
11537 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
11538
11539 2010-07-05 Richard Guenther <rguenther@suse.de>
11540
11541 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
11542 RESULT_DECLs properly.
11543
11544 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
11545
11546 PR rtl-optimization/44695
11547 * config/i386/i386.md (extract_code): Removed.
11548 (<u>divmodqi4): Likewise.
11549 (divmodqi4): New.
11550 (udivmodqi4): Likewise.
11551 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
11552 (udivmodhiqi3): Likewise.
11553
11554 2010-07-04 Jan Hubicka <jh@suse.cz>
11555
11556 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
11557
11558 2010-07-04 Jan Hubicka <jh@suse.cz>
11559
11560 * cgraphunit.c (init_cgraph): Only initialize dump file if it
11561 is not already initialized.
11562
11563 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
11564
11565 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
11566 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
11567 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
11568 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
11569 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
11570 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
11571 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
11572 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
11573 (sync_new_nand_optab): Redefine as macros.
11574 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
11575 Delete.
11576 (direct_optab_index): New enum.
11577 (direct_optab_d): New structure.
11578 (direct_optab): New typedef.
11579 (direct_optab_table): Declare.
11580 (direct_optab_handler, set_direct_optab_handler): New functions.
11581 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
11582 (sync_lock_release_optab): New macros.
11583 * optabs.c (direct_optab_table): New variable.
11584 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
11585 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
11586 cmpstr_optab and cmpstrn_optab.
11587 (emit_conditional_move): Likewise for movcc_optab.
11588 (can_conditionally_move_p): Likewise for movcc_gen_code.
11589 (init_insn_codes): Clear direct_optab_table.
11590 (init_optabs): Don't initialize the new "direct optabs" here.
11591 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
11592 vcond_gen_code.
11593 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
11594 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
11595 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
11596 (expand_sync_operation): Likewise other sync_*_optabs.
11597 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
11598 to sync_compare_and_swap_optab.
11599 (expand_sync_lock_test_and_set): Use direct_optab_handler for
11600 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
11601 to the names of both.
11602 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
11603 cmpstr_optab and cmpstrn_optab.
11604 (expand_builtin_lock_release): Likewise sync_lock_release.
11605 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
11606 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
11607 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
11608 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
11609 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
11610 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
11611 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
11612 (sync_lock_test_and_set, sync_lock_release): Delete.
11613 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
11614 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
11615 * genopinit.c (optabs): Use set_direct_optab_handler for the new
11616 macro optabs.
11617 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
11618 the "optab" local variable. Use direct_optab_handler for optab and
11619 sync_compare_and_swap_optab.
11620 * reload1.c (reload_in_optab, reload_out_optab): Delete.
11621 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
11622 reload_in_optab and reload_out_optab.
11623 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11624 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
11625 * config/pa/pa.c (pa_secondary_reload): Likewise.
11626 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
11627 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
11628 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
11629 (VMSupportsCS8_builtin): Likewise.
11630
11631 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
11632
11633 * optabs.h (optab_handlers): Change type of insn_code to int.
11634 (optab_handler, set_optab_handler, convert_optab_handler)
11635 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
11636 CODE_FOR_nothing".
11637 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
11638 (init_insn_codes): Zero both the above arrays.
11639 (init_optabs): Never call init_insn_codes first time around.
11640
11641 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
11642
11643 * optabs.h (optab_handler, convert_optab_handler): Turn into
11644 inline functions that return an insn code.
11645 (set_optab_handler, set_convert_optab_handler): New functions.
11646 * builtins.c: Replace optab_handler(X)->insn_code with
11647 optab_handler or set_optab_handler thoughout. Likewise
11648 convert_optab_handler(X)->insn_code with convert_optab_handler
11649 and set_convert_optab_handler.
11650 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
11651 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
11652 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
11653 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
11654 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
11655 config/spu/spu.c: Likewise.
11656
11657 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
11658
11659 PR target/44531
11660 * config.gcc (sh*-*-*): Use regular expressions instead of
11661 the 'i' modifier for sed substitutions.
11662
11663 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
11664
11665 * gimple.c (gimple_body): Comments added.
11666
11667 2010-07-04 Richard Guenther <rguenther@suse.de>
11668
11669 PR middle-end/44809
11670 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
11671 of an INDIRECT_REF.
11672
11673 2010-07-04 Richard Guenther <rguenther@suse.de>
11674
11675 PR tree-optimization/44479
11676 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11677 extra SSA name copy statements which preserves points-to
11678 information.
11679 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11680 Copy points-to information for all pointers. Properly handle
11681 MEM_REFs.
11682 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
11683 copy statements.
11684 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11685 dependency.
11686
11687 2010-07-04 Richard Guenther <rguenther@suse.de>
11688
11689 PR middle-end/44785
11690 * tree-inline.c (initialize_inlined_parameters): Do not
11691 re-use pointer-map slot over remap_type call.
11692
11693 2010-07-04 Richard Guenther <rguenther@suse.de>
11694
11695 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11696
11697 2010-07-04 Richard Guenther <rguenther@suse.de>
11698
11699 PR tree-optimization/44656
11700 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11701 again after value-replacing in the defintions lhs.
11702
11703 2010-07-04 Ira Rosen <irar@il.ibm.com>
11704 Revital Eres <eres@il.ibm.com>
11705
11706 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11707 Document new arguments.
11708 * doc/tm.texi: Regenerate.
11709 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11710 Handle unaligned store.
11711 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11712 * target.def (builtin_vectorization_cost): Add new arguments.
11713 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11714 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11715 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11716 (vect_vfa_segment_size): Fix indentation.
11717 * tree-vectorizer.h (struct _vect_peel_info): New.
11718 (struct _vect_peel_extended_info): New.
11719 (struct _loop_vec_info): Add new field for peeling hash table and a
11720 macro for its access.
11721 (VECT_MAX_COST): Define.
11722 (vect_get_load_cost): Declare.
11723 (vect_get_store_cost, vect_get_known_peeling_cost,
11724 vect_get_single_scalar_iteraion_cost): Likewise.
11725 (vect_supportable_dr_alignment): Add new argument.
11726 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11727 field.
11728 (destroy_loop_vec_info): Free peeling hash table.
11729 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11730 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11731 vect_analyze_slp. Fix indentation.
11732 (vect_get_single_scalar_iteraion_cost): New function.
11733 (vect_get_known_peeling_cost): Likewise.
11734 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11735 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11736 statement. Move outside cost calculation inside unknown peeling case.
11737 Call vect_get_known_peeling_cost for known amount of peeling.
11738 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11739 reference to the print message of forced alignment.
11740 (vect_verify_datarefs_alignment): Update call to
11741 vect_supportable_dr_alignment.
11742 (vect_get_data_access_cost): New function.
11743 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11744 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11745 vect_peeling_hash_choose_best_peeling): Likewise.
11746 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11747 to store all the accesses in the loop and find best possible access to
11748 align using peeling for known alignment case. For unknown alignment
11749 check if stores are preferred or if peeling is worthy.
11750 (vect_find_same_alignment_drs): Analyze pairs of loads too.
11751 (vect_supportable_dr_alignment): Add new argument and check aligned
11752 accesses according to it.
11753 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11754 (cost_for_stmt): Call vect_get_stmt_cost.
11755 (vect_model_simple_cost): Likewise.
11756 (vect_model_store_cost): Call vect_get_stmt_cost. Call
11757 vect_get_store_cost to calculate the cost of the statement.
11758 (vect_get_store_cost): New function.
11759 (vect_model_load_cost): Call vect_get_stmt_cost. Call
11760 vect_get_load_cost to calculate the cost of the statement.
11761 (vect_get_load_cost): New function.
11762 (vectorizable_store): Update call to vect_supportable_dr_alignment.
11763 (vectorizable_load): Likewise.
11764 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11765 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11766 arguments. Handle unaligned store.
11767 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11768 (rs6000_builtin_support_vector_misalignment): Return true for word and
11769 double word alignments for VSX.
11770 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11771 vect_supportable_dr_alignment and builtin_vectorization_cost.
11772
11773 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11774
11775 PR target/44597
11776 * config/pa/predicates.md (prefetch_cc_operand): Remove.
11777 (prefetch_nocc_operand): Likewise.
11778 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11779 (prefetch_20): New insn.
11780 (prefetch_cc): Remove.
11781 (prefetch_nocc): Likewise.
11782
11783 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
11784
11785 * expr.c (vector_mode_valid_p): Move to c-common.c.
11786 * expr.h (vector_mode_valid_p): Do not declare here.
11787 * system.h: Poison GCC_EXPR_H in front-ends.
11788 * Makefile.in: Update dependencies.
11789
11790 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11791
11792 PR target/44705
11793 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11794
11795 2010-07-03 Jan Hubicka <jh@suse.cz>
11796
11797 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11798 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11799 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11800 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11801 Likewise.
11802
11803 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11804 Update timevars.V
11805 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11806 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11807 TV_IPA_LTO_DECL_OUT): New.
11808 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11809
11810 2010-07-03 Jan Hubicka <jh@suse.cz>
11811
11812 * ipa-inline.c (update_edge_key): Break out from ...
11813 update_callers_keys): ... here;
11814 (update_callee_keys): Update only the edges from caller to callee.
11815 (update_all_calle_keys): Do what update_calle_keys did.
11816 (decide_inlining_of_small_functions): Avoid recomputing of all
11817 callees when badness increase.
11818
11819 2010-07-03 Jie Zhang <jie@codesourcery.com>
11820
11821 * config/arm/arm.c (arm_attr_length_move_neon): New.
11822 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11823 * config/arm/neon.md (define_mode_attr V_slen): Remove.
11824 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11825 to compute length attribute.
11826
11827 2010-07-03 Jie Zhang <jie@codesourcery.com>
11828
11829 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11830 as predicate for operand 1 and remove its constraint.
11831 * config/arm/predicates.md (vfp_register_operand): New.
11832 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11833 (*push_fp_multi): Likewise.
11834
11835 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
11836
11837 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
11838
11839 2010-07-03 Jan Hubicka <jh@suse.cz>
11840
11841 * config/i386/i386.c (override_options): Revert accidental commit.
11842
11843 2010-07-02 Le-Chun Wu <lcwu@google.com>
11844
11845 PR c++/44128
11846 * doc/invoke.texi: Update documentation of -Wshadow.
11847
11848 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
11849 Julian Brown <julian@codesourcery.com>
11850 Sandra Loosemore <sandra@codesourcery.com>
11851
11852 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
11853 comparisons. Adjust to take both operands.
11854 (arm_select_cc_mode): Handle DImode comparisons.
11855 (arm_gen_compare_reg): Generate a scratch register for DImode
11856 comparisons which require one. Use xor for Thumb equality checks.
11857 (arm_const_double_by_immediates): New.
11858 (arm_print_operand): Allow 'Q' and 'R' for constants.
11859 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
11860 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
11861 arm_canonicalize_comparison.
11862 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
11863 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
11864 prototype.
11865 (arm_const_double_by_immediates): Declare.
11866 * config/arm/constraints.md (Di): New constraint.
11867 * config/arm/predicates.md (arm_immediate_di_operand)
11868 (arm_di_operand, cmpdi_operand): New.
11869 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
11870 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
11871 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
11872 (cstoredi4): Handle non-Cirrus also.
11873
11874 2010-07-02 Julian Brown <julian@codesourcery.com>
11875 Sandra Loosemore <sandra@codesourcery.com>
11876
11877 PR target/43703
11878 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
11879 (smax<mode>3): Disable for NEON float modes when
11880 flag_unsafe_math_optimizations is false.
11881 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
11882 (*mul<mode>3_neon)
11883 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
11884 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
11885 for NEON float modes when flag_unsafe_math_optimizations is false.
11886 (quad_halves_<code>v4sf): Only enable if
11887 flag_unsafe_math_optimizations is true.
11888 * doc/invoke.texi (ARM Options): Add note about floating point
11889 vectorization requiring -funsafe-math-optimizations.
11890
11891 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11892 Julian Brown <julian@codesourcery.com>
11893
11894 * config/arm/neon.md (UNSPEC_VABA): Delete.
11895 (UNSPEC_VABAL): Delete.
11896 (UNSPEC_VABS): Delete.
11897 (UNSPEC_VMUL_N): Delete.
11898 (adddi3_neon): New.
11899 (subdi3_neon): New.
11900 (mul<mode>3add<mode>_neon): Make the pattern named.
11901 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
11902 (neon_vadd<mode>): Replace with define_expand, and move the remaining
11903 unspec parts...
11904 (neon_vadd<mode>_unspec): ...to this.
11905 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
11906 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
11907 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
11908 (neon_vaba<mode>): Rewrite in terms of vabd.
11909 (neon_vabal<mode>): Rewrite in terms of vabdl.
11910 (neon_vabs<mode>): Rewrite without unspec.
11911 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
11912 (*arm_subdi3): Likewise.
11913 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
11914 No_op attribute to disable assembly output checks.
11915 * config/arm/arm_neon.h: Regenerated.
11916 * doc/arm-neon-intrinsics.texi: Regenerated.
11917
11918 2010-07-02 Jan Hubicka <jh@suse.cz>
11919
11920 * ipa-split.c (split_function): For aggregate values, set the return
11921 slot optimization bit. When passing DECL_BY_REFERENCE, produce
11922 *<retval> = fncall.part ().
11923 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
11924
11925 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
11926
11927 * config/arm/neon.md (UNSPEC_VAND): Delete.
11928 (UNSPEC_VBIC): Delete.
11929 (UNSPEC_VCLZ): Delete.
11930 (UNSPEC_VCNT): Delete.
11931 (UNSPEC_VEOR): Delete.
11932 (UNSPEC_VORN): Delete.
11933 (UNSPEC_VORR): Delete.
11934 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
11935 core registers too.
11936 (anddi3_neon): Likewise.
11937 (orndi3_neon): Likewise.
11938 (bicdi3_neon): Likewise.
11939 (xordi3_neon): Likewise.
11940 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
11941 rid of unspec and handle unused operand.
11942 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
11943 * config/arm/predicates.md (imm_for_neon_logic_operand):
11944 Require TARGET_NEON.
11945 (imm_for_neon_inv_logic_operand): Likewise.
11946 * config/arm/arm.md (define_split for logical_binary_operator):
11947 Disable for NEON registers.
11948 (anddi3): Add new define_expand, and rename the insn. Disable
11949 this insn for NEON, where anddi3_neon now applies.
11950 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
11951 (iordi3): As for anddi3.
11952 (xordi3): Likewise.
11953 * config/arm/neon.ml (Vand): Split DImode variants and mark them
11954 as No_op to disable testing for exact instruction match.
11955 (Vorr): Likewise.
11956 (Veor): Likewise.
11957 (Vbic): Likewise.
11958 (Vorn): Likewise.
11959 * config/arm/arm_neon.h: Regenerated.
11960 * doc/arm-neon-intrinsics.texi: Regenerated.
11961
11962 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
11963
11964 * expr.h (emit_stack_probe): Declare.
11965 * explow.c (emit_stack_probe): Make global.
11966 (anti_adjust_stack_and_probe): Fix comments.
11967 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11968 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11969 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11970 * config/sparc/sparc.c: Include except.h.
11971 (sparc_emit_probe_stack_range): New function.
11972 (output_probe_stack_range): Likewise.
11973 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
11974 built-in stack checking is enabled.
11975 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
11976 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11977 (probe_stack_range): New insn.
11978
11979 2010-07-02 Richard Guenther <rguenther@suse.de>
11980
11981 PR target/43958
11982 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
11983 for argument alignment.
11984
11985 2010-07-02 Jan Hubicka <jh@suse.cz>
11986
11987 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
11988 walk backwards from entry_bb to check only those basic block of header
11989 that might lead to execution of split part.
11990 (consider_split) ... here.
11991 (find_return_bb): Allow assignment in return BB.
11992 (find_retval): New.
11993 (split_function): Fix name of cloned function; take care of updating
11994 return value in return_bb containing move.
11995
11996 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
11997
11998 PR target/44771
11999 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
12000 used variable insn.
12001
12002 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
12003
12004 * implicit-zee.c (combine_reaching_defs): Fix long lines.
12005 (is_set_with_extension_DI): Delete.
12006 (struct zero_extend_info): New structure.
12007 (add_removable_zero_extend): New function.
12008 (find_removable_zero_extends): Use note_stores to find SETs.
12009 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
12010
12011 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
12012
12013 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
12014 is_miss_rate_acceptable. Pull total_positions computation
12015 out of the loops. Early return if miss_positions exceeds
12016 the acceptable threshold.
12017 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
12018 is_miss_rate_acceptable after renaming of compute_miss_rate.
12019
12020 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
12021
12022 PR middle-end/44576
12023 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
12024 of 1000) for miss rate if the address diference is greater than or
12025 equal to the cache line size (the two reference will never hit the
12026 same cache line).
12027
12028 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
12029
12030 PR target/42835
12031 * config/arm/arm-modes.def (CC_NOTB): New mode.
12032 * config/arm/arm.c (get_arm_condition_code): Handle it.
12033 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
12034 * config/arm/arm.md (subsi3_compare0_c): New pattern.
12035 (compare_scc): Now a define_and_split. Add a number of extra
12036 splitters before it.
12037
12038 PR target/42172
12039 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
12040 and ZERO_EXTEND.
12041 (arm_rtx_costs_1): Likewise.
12042 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
12043 * config/arm/arm.md (is_arch6): New attribute.
12044 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
12045 extendqisi2): Tighten the code somewhat, avoiding invalid
12046 RTL to occur in the expander patterns.
12047 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
12048 (thumb1_zero_extendhisi2_v6): Delete.
12049 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
12050 (thumb1_extendhisi2_v6): Delete.
12051 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
12052 (thumb1_extendqisi2_v6): Delete.
12053 (zero_extendhisi2 for register input splitter): New.
12054 (zero_extendqisi2 for register input splitter): New.
12055 (thumb1_extendhisi2 for register input splitter): New.
12056 (extendhisi2 for register input splitter): New.
12057 (extendqisi2 for register input splitter): New.
12058 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
12059 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
12060 and add support for a register alternative requiring a split.
12061 (thumb1_zero_extendqisi2): Likewise.
12062 (arm_zero_extendqisi2): Likewise.
12063 (arm_extendhisi2): Likewise.
12064 (arm_extendqisi2): Likewise.
12065
12066 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
12067
12068 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
12069 instead of an unspec.
12070 (neon_expand_vector_init): Likewise.
12071 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
12072 (UNSPEC_VDUP_LANE): Delete.
12073 (UNSPEC VDUP_N): Delete.
12074 (UNSPEC_VGET_HIGH): Delete.
12075 (UNSPEC_VGET_LANE): Delete.
12076 (UNSPEC_VGET_LOW): Delete.
12077 (UNSPEC_VMVN): Delete.
12078 (UNSPEC_VSET_LANE): Delete.
12079 (V_double_vector_mode): New.
12080 (vec_set<mode>_internal): Make code emitted match that for the
12081 corresponding intrinsics.
12082 (vec_setv2di_internal): Likewise.
12083 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
12084 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
12085 (neon_vset_lane<mode>): Combine double and quad patterns and
12086 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
12087 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
12088 (neon_vdup_n<mode>): Rewrite RTL without unspec.
12089 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
12090 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
12091 with neon_vdup_lanev2di, adjusting the pattern from the latter
12092 to be predicable for consistency.
12093 (neon_vdup_lane<mode>_internal): New.
12094 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
12095 to avoid using an unspec.
12096 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
12097 (neon_vdup_lanev2di): Turn into a define_expand.
12098 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
12099 (neon_vget_high<mode>): Replace with....
12100 (neon_vget_highv16qi): New pattern using canonical RTL.
12101 (neon_vget_highv8hi): Likewise.
12102 (neon_vget_highv4si): Likewise.
12103 (neon_vget_highv4sf): Likewise.
12104 (neon_vget_highv2di): Likewise.
12105 (neon_vget_low<mode>): Replace with....
12106 (neon_vget_lowv16qi): New pattern using canonical RTL.
12107 (neon_vget_lowv8hi): Likewise.
12108 (neon_vget_lowv4si): Likewise.
12109 (neon_vget_lowv4sf): Likewise.
12110 (neon_vget_lowv2di): Likewise.
12111
12112 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
12113 test for this emitting vmov.
12114 (Vset_lane): Likewise.
12115 (Vdup_n): Likewise.
12116 (Vmov_n): Likewise.
12117
12118 * doc/arm-neon-intrinsics.texi: Regenerated.
12119
12120 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
12121
12122 * config/arm/neon.md (vec_extractv2di): Correct error in register
12123 numbering to reconcile with neon_vget_lanev2di.
12124
12125 2010-07-02 Richard Guenther <rguenther@suse.de>
12126
12127 * tree-ssa-structalias.c (pt_solution_set_var): New function.
12128 * tree-ssa-alias.h (pt_solution_set_var): Declare.
12129 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
12130 points-to information.
12131
12132 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
12133
12134 * config/s390/s390.c (override_options): Adopt prefetching
12135 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
12136
12137 2010-07-02 Jan Hubicka <jh@suse.cz>
12138
12139 * df-problems.c (df_kill_notes): Do not collect dead notes.
12140 (df_set_note): Just call add_reg_note.
12141 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
12142 df_create_unused_note): Do not deal with lists of old notes.
12143 (df_note_bb_compute): Likewise.
12144
12145 2010-07-02 Richard Guenther <rguenther@suse.de>
12146
12147 * tree-ssa-structalias.c (find_func_aliases): Handle
12148 pointer alignment via BIT_AND_EXPR.
12149 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
12150
12151 2010-07-02 Richard Guenther <rguenther@suse.de>
12152
12153 * tree-data-ref.c (initialize_data_dependence_relation): Handle
12154 mismatching number of dimensions properly.
12155
12156 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12157
12158 PR target/44707
12159 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
12160 (lo_sum (high ...) ...) patterns generated by earlier passes.
12161
12162 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12163
12164 * doc/install.texi (Prerequisites): Document Perl requirement on
12165 Solaris 2.
12166 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
12167
12168 2010-07-02 Richard Guenther <rguenther@suse.de>
12169
12170 PR middle-end/44777
12171 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
12172
12173 2010-07-02 Jan Hubicka <jh@suse.cz>
12174
12175 PR middle-end/44706
12176 * predict.c (predict_paths_for_bb): Handle case when control dependence
12177 BB has only abnormal edges.
12178
12179 2010-07-02 Richard Guenther <rguenther@suse.de>
12180
12181 PR tree-optimization/44748
12182 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
12183 the embedded conversion in MEM_REFs.
12184
12185 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
12186
12187 * reload.c: Include toplev.h.
12188 * recog.c: Likewise.
12189 * Makefile.in: Adjust dependencies.
12190
12191 2010-07-01 Jakub Jelinek <jakub@redhat.com>
12192
12193 PR debug/44694
12194 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
12195 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
12196
12197 2010-07-01 Richard Guenther <rguenther@suse.de>
12198
12199 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
12200 types for offsets.
12201
12202 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
12203
12204 PR target/44732
12205 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
12206 Fix argument types.
12207
12208 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
12209
12210 PR target/44727
12211 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12212 Make sure operand 0 dies.
12213
12214 2010-07-01 Richard Guenther <rguenther@suse.de>
12215
12216 PR middle-end/42834
12217 PR middle-end/44468
12218 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
12219 * doc/generic.texi (References to storage): Document MEM_REF.
12220 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
12221 (print_call_name): Likewise.
12222 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
12223 (build_simple_mem_ref_loc): New function.
12224 (mem_ref_offset): Likewise.
12225 * tree.h (build_simple_mem_ref_loc): Declare.
12226 (build_simple_mem_ref): Define.
12227 (mem_ref_offset): Declare.
12228 * fold-const.c: Include tree-flow.h.
12229 (operand_equal_p): Handle MEM_REF.
12230 (build_fold_addr_expr_with_type_loc): Likewise.
12231 (fold_comparison): Likewise.
12232 (fold_unary_loc): Fold
12233 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
12234 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
12235 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
12236 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
12237 (ptr_deref_may_alias_ref_p_1): Likewise.
12238 (ao_ref_base_alias_set): Properly differentiate base object for
12239 offset and TBAA.
12240 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
12241 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
12242 (indirect_refs_may_alias_p): Likewise.
12243 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
12244 chasing code.
12245 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
12246 (call_may_clobber_ref_p_1): Likewise.
12247 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
12248 * expr.c (expand_assignment): Handle MEM_REF.
12249 (store_expr): Handle MEM_REFs from STRING_CSTs.
12250 (store_field): If expanding a MEM_REF of a non-addressable
12251 decl use bitfield operations.
12252 (get_inner_reference): Handle MEM_REF.
12253 (expand_expr_addr_expr_1): Likewise.
12254 (expand_expr_real_1): Likewise.
12255 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
12256 * alias.c (ao_ref_from_mem): Handle MEM_REF.
12257 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
12258 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
12259 (dr_analyze_indices): Likewise.
12260 (dr_analyze_alias): Likewise.
12261 (object_address_invariant_in_loop_p): Likewise.
12262 * gimplify.c (mark_addressable): Handle MEM_REF.
12263 (gimplify_cond_expr): Build MEM_REFs.
12264 (gimplify_modify_expr_to_memcpy): Likewise.
12265 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
12266 (gimple_fold_indirect_ref): Adjust.
12267 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
12268 * tree.def (MEM_REF): New tree code.
12269 * tree-dfa.c: Include toplev.h.
12270 (get_ref_base_and_extent): Handle MEM_REF.
12271 (get_addr_base_and_unit_offset): New function.
12272 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
12273 * gimple-fold.c (may_propagate_address_into_dereference): Handle
12274 MEM_REF.
12275 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
12276 accesses if the array has just one dimension. Remove always true
12277 parameter. Do not require type compatibility here.
12278 (maybe_fold_offset_to_component_ref): Remove.
12279 (maybe_fold_stmt_indirect): Remove.
12280 (maybe_fold_reference): Remove INDIRECT_REF handling.
12281 Fold back to non-MEM_REF.
12282 (maybe_fold_offset_to_address): Simplify. Deal with type
12283 mismatches here.
12284 (maybe_fold_reference): Likewise.
12285 (maybe_fold_stmt_addition): Likewise. Also handle
12286 &ARRAY + I in addition to &ARRAY[0] + I.
12287 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
12288 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
12289 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
12290 * tree-ssa.c (useless_type_conversion_p): Make most pointer
12291 conversions useless.
12292 (warn_uninitialized_var): Handle MEM_REF.
12293 (maybe_rewrite_mem_ref_base): New function.
12294 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
12295 to SSA form.
12296 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
12297 INDIRECT_REF handling.
12298 (copy_tree_body_r): Handle MEM_REF.
12299 * gimple.c (is_gimple_addressable): Adjust.
12300 (is_gimple_address): Likewise.
12301 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
12302 invariant base are invariant.
12303 (is_gimple_min_lval): Adjust.
12304 (is_gimple_mem_ref_addr): New function.
12305 (get_base_address): Handle MEM_REF.
12306 (count_ptr_derefs): Likewise.
12307 (get_base_loadstore): Likewise.
12308 * gimple.h (is_gimple_mem_ref_addr): Declare.
12309 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
12310 * tree-cfg.c (verify_address): New function, split out from ...
12311 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
12312 the address operand of MEM_REFs. Verify MEM_REFs. Reject
12313 INDIRECT_REFs.
12314 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
12315 INDIRECT_REF. Allow conversions.
12316 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
12317 a register does not change its size.
12318 (verify_types_in_gimple_reference): Verify MEM_REF.
12319 (verify_gimple_assign_single): Disallow INDIRECT_REF.
12320 Handle MEM_REF.
12321 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
12322 New.
12323 (mark_address_taken): Handle MEM_REF.
12324 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
12325 (get_asm_expr_operands): Pass opf_not_non_addressable.
12326 (get_expr_operands): Handle opf_[not_]non_addressable.
12327 Handle MEM_REF. Remove INDIRECT_REF handling.
12328 * tree-vrp.c (check_array_ref): Handle MEM_REF.
12329 (search_for_addr_array): Likewise.
12330 (check_array_bounds): Likewise.
12331 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
12332 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
12333 (ref_always_accessed_p): Likewise.
12334 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
12335 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
12336 Handle MEM_REF.
12337 * cgraphbuild.c (mark_load): Properly check for NULL result
12338 from get_base_address.
12339 (mark_store): Likewise.
12340 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
12341 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
12342 handling for MEM_REF.
12343 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
12344 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
12345 * builtins.c (stabilize_va_list_loc): Use the function ABI
12346 valist type if we couldn't canonicalize the argument type.
12347 Always dereference with the canonical va-list type.
12348 (maybe_emit_free_warning): Handle MEM_REF.
12349 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
12350 memmove to memcpy.
12351 * builtins.c (fold_builtin_memory_op): Use ref-all types
12352 for all memcpy foldings.
12353 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
12354 (build_outer_var_ref): Likewise.
12355 (scan_omp_1_op): Likewise.
12356 (lower_rec_input_clauses): Likewise.
12357 (lower_lastprivate_clauses): Likewise.
12358 (lower_reduction_clauses): Likewise.
12359 (lower_copyprivate_clauses): Likewise.
12360 (expand_omp_atomic_pipeline): Likewise.
12361 (expand_omp_atomic_mutex): Likewise.
12362 (create_task_copyfn): Likewise.
12363 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
12364 Remove old union trick. Initialize constant offsets.
12365 (ao_ref_init_from_vn_reference): Likewise. Do not handle
12366 INDIRECT_REF. Init base_alias_set properly.
12367 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
12368 (vn_reference_fold_indirect): Adjust for MEM_REFs.
12369 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
12370 for ARRAY_REFs.
12371 (may_insert): Remove.
12372 (visit_reference_op_load): Do not test may_insert.
12373 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
12374 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
12375 a field to store the constant offset this op applies.
12376 (run_scc_vn): Adjust prototype.
12377 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
12378 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
12379 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
12380 bother about volatile qualifiers on pointers.
12381 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
12382 * tree-ssa-loop-ivopts.c
12383 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
12384 (strip_offset_1): Likewise.
12385 (find_interesting_uses_address): Replace INDIRECT_REF handling with
12386 MEM_REF handling.
12387 (get_computation_cost_at): Likewise.
12388 * ipa-pure-const.c (check_op): Handle MEM_REF.
12389 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
12390 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
12391 and constants.
12392 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
12393 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
12394 (eliminate_local_variables_1): Likewise.
12395 (create_call_for_reduction_1): Likewise.
12396 (create_loads_for_reductions): Likewise.
12397 (create_loads_and_stores_for_name): Likewise.
12398 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
12399 (ssa_accessed_in_tree): Handle MEM_REF.
12400 (ssa_accessed_in_assign_rhs): Likewise.
12401 (update_type_size): Likewise.
12402 (analyze_accesses_for_call_stmt): Likewise.
12403 (analyze_accesses_for_assign_stmt): Likewise.
12404 (transform_access_sites): Likewise.
12405 (transform_allocation_sites): Likewise.
12406 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
12407 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12408 not handle INDIRECT_REF.
12409 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
12410 (cond_store_replacement): Likewise.
12411 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
12412 MEM_REF, no not handle INDIRECT_REFs.
12413 (insert_into_preds_of_block): Properly initialize avail.
12414 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
12415 for ARRAY_REFs. Properly handle reference lookups that
12416 require a bit re-interpretation.
12417 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
12418 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
12419 (build_ref_for_offset_1): Remove.
12420 (build_ref_for_offset): Build MEM_REFs.
12421 (gate_intra_sra): Disable for now.
12422 (sra_ipa_modify_expr): Handle MEM_REF.
12423 (ipa_early_sra_gate): Disable for now.
12424 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
12425 MEM_REF handling.
12426 (disqualify_base_of_expr): Likewise.
12427 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
12428 MEM_REF handling.
12429 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
12430 Use mem_ref_offset. Remove bogus folding.
12431 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
12432 (make_fancy_name_1): Add support for MEM_REF.
12433 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
12434 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
12435 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
12436 (compute_complex_ancestor_jump_func): Likewise.
12437 (ipa_analyze_virtual_call_uses): Likewise.
12438 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
12439 INDIRECT_REF folding with more generalized MEM_REF folding.
12440 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
12441 (forward_propagate_addr_into_variable_array_index): Also handle
12442 &ARRAY + I in addition to &ARRAY[0] + I.
12443 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
12444 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
12445 creates assignments with overlap.
12446 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
12447 (get_frame_field): Likewise.
12448 (get_nonlocal_debug_decl): Likewise.
12449 (convert_nonlocal_reference_op): Likewise.
12450 (struct nesting_info): Add mem_refs pointer-set.
12451 (create_nesting_tree): Allocate it.
12452 (convert_local_reference_op): Insert to be folded mem-refs.
12453 (fold_mem_refs): New function.
12454 (finalize_nesting_tree_1): Perform defered folding of mem-refs
12455 (free_nesting_tree): Free the pointer-set.
12456 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
12457 (vectorizable_load): Likewise.
12458 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
12459 (propagate_with_phi): Likewise.
12460 * tree-object-size.c (addr_object_size): Handle MEM_REFs
12461 instead of INDIRECT_REFs.
12462 (compute_object_offset): Handle MEM_REF.
12463 (plus_stmt_object_size): Handle MEM_REF.
12464 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
12465 for &MEM_REF.
12466 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
12467 (symbol_marked_for_renaming): Likewise.
12468 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
12469 (fold-const.o): Add $(TREE_FLOW_H).
12470 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
12471 (find_func_clobbers): Likewise.
12472 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
12473 (decompose_access): Likewise.
12474 (replace_field_acc): Likewise.
12475 (replace_field_access_stmt): Likewise.
12476 (insert_new_var_in_stmt): Likewise.
12477 (get_stmt_accesses): Likewise.
12478 (reorg_structs_drive): Disable.
12479 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
12480 (ix86_canonical_va_list_type): Likewise.
12481
12482 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
12483
12484 PR other/44566
12485 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
12486 * target.def (struct gcc_target): Replace enum reg_class with
12487 reg_class_t in hook argument / return types.
12488 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
12489 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
12490 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12491 * targhooks.h (default_branch_target_register_class): Likewise.
12492 (default_ira_cover_classes, default_secondary_reload): Likewise.
12493 (default_memory_move_cost, default_register_move_cost): Likewise.
12494 * targhooks.c (default_branch_target_register_class): Likewise.
12495 (default_ira_cover_classes, default_secondary_reload): Likewise.
12496 (default_memory_move_cost, default_register_move_cost): Likewise.
12497 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
12498 * bt-load.c (branch_target_load_optimize): Likewise.
12499 * ira.c (setup_cover_and_important_classes): Likewise.
12500 * ira-costs.c (copy_cost): Likewise.
12501 * reload1.c (emit_input_reload_insns): Likewise.
12502 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
12503 * config/frv/frv.c (frv_secondary_reload): Likewise.
12504 * config/s390/s390.c (s390_secondary_reload): Likewise.
12505 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
12506 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
12507 (ix86_register_move_cost): Likewise.
12508 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
12509 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
12510 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
12511 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
12512 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
12513 (rs6000_ira_cover_classes): Likewise.
12514 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
12515 * config/picochip/picochip-protos.h (picochip_secondary_reload):
12516 Likewise.
12517 * config/pa/pa.c (pa_secondary_reload): Likewise.
12518 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
12519 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
12520 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
12521 * doc/tm.texi: Regenerate.
12522
12523 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
12524
12525 PR bootstrrap/44726
12526 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
12527 use.
12528 (build_alias_set_optimal_p): Likewise.
12529 (build_base_obj_set_for_drs): Likewise.
12530
12531 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
12532
12533 * target.def: Remove comment about licensing problems of function
12534 declarations.
12535
12536 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
12537 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
12538 * doc/tm.texi: Regenerate.
12539
12540 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
12541 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
12542
12543 * target.def (enum_va_list_p): Use DEFHOOK.
12544 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
12545 Rename ptype to ptree.
12546 * doc/tm.texi: Regenerate.
12547
12548 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
12549 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
12550 * doc/tm.texi: Regenerate.
12551
12552 * target.def (memory_move_cost): Use DEFHOOK.
12553 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
12554 Rename regclass AKA class to rclass.
12555 * doc/tm.texi: Regenerate.
12556
12557 * target.def (pragma_parse): Use DEFHOOK.
12558 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
12559 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
12560 * doc/tm.texi: Regenerate.
12561
12562 * target.def (pass_by_reference): Use DEFHOOK.
12563 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
12564 * doc/tm.texi: Regenerate.
12565
12566 * target.def (resolve_overloaded_builtin): Rename params to arglist.
12567 Use DEFHOOK.
12568 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
12569 * doc/tm.texi: Regenerate.
12570
12571 * target.def (return_pops_args): Use DEFHOOK.
12572 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
12573 Rename stack-size to size.
12574 * doc/tm.texi: Regenerate.
12575
12576 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
12577 last-sched_cycle to last_clock, cur_cycle to clock.
12578 * doc/tm.texi.in: Use @hook.
12579 * doc/tm.texi: Regenerate.
12580
12581 * target.def (print_operand, print_operand_address): Update comment.
12582 (print_operand_punct_valid_p): Likewise.
12583
12584 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12585
12586 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
12587 to rtl.h.
12588 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
12589 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
12590 * rtl-error.h: New.
12591 * regrename.c: Do not include toplev.h. Include rtl-error.h.
12592 * rtl-error.c: Likewise.
12593 * reload.c: Likewise.
12594 * recog.c: Likewise.
12595 * sel-sched.c: Likewise.
12596 * function.c: Likewise.
12597 * reg-stack.c: Likewise.
12598 * cfgrtl.c: Likewise.
12599 * reload1.c: Likewise.
12600 * final.c: Include rtl-error.
12601 * Makefile.in: Adjust dependencies.
12602
12603 2010-06-30 Jan Hubicka <jh@suse.cz>
12604
12605 PR middle-end/PR44706
12606 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
12607 to return the value.
12608
12609 2010-06-30 Michael Matz <matz@suse.de>
12610
12611 PR bootstrap/44699
12612 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
12613 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
12614 a gimple reg, attach the original VDEF to the last store in the
12615 sequence.
12616
12617 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
12618
12619 PR other/44034
12620 * config/darwin.c (darwin_override_options): Use renamed
12621 targetm.asm_out.emit_unwind_label.
12622
12623 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
12624
12625 PR tree-optimization/39799
12626 * tree-inline.c (remap_ssa_name): Initialize variable only if
12627 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12628
12629 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
12630
12631 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
12632
12633 2010-06-30 Richard Guenther <rguenther@suse.de>
12634
12635 PR target/44722
12636 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
12637 against oscillation with reverse peephole2.
12638
12639 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
12640
12641 PR target/44721
12642 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12643 Fix last commit.
12644
12645 2010-06-30 Nick Clifton <nickc@redhat.com>
12646
12647 * config/rx/rx-modes.def: New file.
12648 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
12649 (CC_REGNUM): Define.
12650 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
12651 register.
12652 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
12653 (SELECT_CC_MODE): Define.
12654 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
12655 (reg:CC CC_REG) instead of (cc0).
12656 (attr "cc"): Delete.
12657 (cbranchsi4): Do not split compare and branch here. Instead move
12658 it to...
12659 (cbranchsi4_<code>): ... here. New patterns.
12660 (cmpsi): Call rx-compare_redundant to find out if it is necessary
12661 to emit the compare instruction.
12662 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
12663 cc_status flags.
12664 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
12665 FIRST_PSEUDO_REGNUM.
12666 (rx_expand_prologue, rx_expand_epilogue): Likewise.
12667 (rx_notice_update_cc): Delete.
12668 (rx_cc_modes_compatible): New function.
12669 (flags_needed_for_conditional): New function.
12670 (flags_from_mode): New function.
12671 (rx_compare_redundant): New function - scans backwards through
12672 insn list to find out if condition flags are already set correctly.
12673 (TARGET_CC_MODES_COMPATIBLE): Define.
12674 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12675
12676 * config/rx/rx.h (BRANCH_COST): Define.
12677 (REGISTER_MOVE_COST): Define.
12678 * config/rx/predicates (rx_source_operand): Allow all constant types.
12679 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12680 (tstsi4): New pattern.
12681 * config/rx/rx.c (rx_memory_move_cost): Define.
12682 (TARGET_MEMORY_MOVE_COST): Define.
12683
12684 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
12685
12686 * tree.h (block_may_fallthru): Declare here.
12687 * tree-flow.h (block_may_fallthru): Do not declare here.
12688 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12689 bitmap.h
12690 * Makefile.in (c-typeck.o): Update dependencies.
12691
12692 2010-06-30 Jakub Jelinek <jakub@redhat.com>
12693
12694 PR debug/44694
12695 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12696 * cselib.c (cfa_base_preserved_regno): New static variable.
12697 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12698 of REGNO (cfa_base_preserved_val->locs->loc).
12699 (cselib_preserve_cfa_base_value): Add regno argument, set
12700 cfa_base_preserved_regno to it.
12701 (cselib_invalidate_regno): Allow removal of registers other than
12702 cfa_base_preserved_regno from cfa_base_preserved_val.
12703 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12704 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12705 of MEM addresses, if not on LHS.
12706 (reverse_op): Don't add reverse ops for cfa_base_rtx.
12707 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12708
12709 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
12710
12711 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12712 static variables.
12713 (peep2_buf_position): New static function.
12714 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12715 peephole2_optimize): Use it.
12716 (peep2_attempt, peep2_update_life): New static functions, broken out
12717 of peephole2_optimize.
12718 (peep2_fill_buffer): New static function.
12719 (peephole2_optimize): Change the main loop to try to fill the buffer
12720 with the maximum number of insns before matching them against
12721 peepholes. Use a forward scan. Remove special case for targets with
12722 conditional execution.
12723 * genrecog.c (change_state): Delete dead code.
12724 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12725 Rewrite so as not to expect the second insn to have had a peephole
12726 applied yet.
12727
12728 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12729
12730 * genhooks.c (emit_findices): Cast field precision to int.
12731 (emit_documentation): Likewise.
12732
12733 2010-06-29 Jakub Jelinek <jakub@redhat.com>
12734
12735 PR tree-optimization/43801
12736 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12737 if old_decl was DECL_ONE_ONLY.
12738
12739 PR debug/44668
12740 * dwarf2out.c (add_accessibility_attribute): New function.
12741 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12742 instead of adding DW_AT_accessibility manually.
12743 (gen_enumeration_type_die, gen_struct_or_union_type_die,
12744 gen_typedef_die): Use it.
12745
12746 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12747
12748 * vmsdbgout.c (full_name): Just output the file name if not native.
12749
12750 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12751
12752 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12753 (funcnam_table): New static table.
12754 (funcnum_table): New static table.
12755 (write_rtnbeg): Write value saved in funcnum_table.
12756 (write_rtnend): Write value saved in funcnum_table.
12757 (vmsdbgout_begin_function): Save current function info in
12758 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12759 (vmsdbgout_finish): Iterate over funcnum_table.
12760
12761 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12762
12763 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12764 (vmsdbgout_type_decl): Declare
12765 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12766 (FUNC_EPILOGUE_LABEL): New macro
12767 (vmsdbgout_begin_epilogue): New function.
12768 (vmsdbgout_type_decl): New function.
12769
12770 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12771
12772 * vmsdbg.h: Update copyright.
12773
12774 2010-06-29 Douglas B Rupp <rupp@gnat.com>
12775
12776 * vmsdbg.h (DST_K_TBG): New DST constant.
12777 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12778 (write_modbeg): Cast module_language to avoid warning.
12779 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12780
12781 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12782
12783 PR other/44034
12784 * target.def, doc/tm.texi.in, genhooks.c: New files.
12785 * target.h: Instead of defining individual hook members,
12786 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12787 include target.def.
12788 * target-def.h: Instead of defining individual hook initializers,
12789 include target-hooks-def.h.
12790 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12791 targetm.live_on_entry -> targetm.extra_live_on_entry
12792 targetm.sched.md_finish ->targetm.sched.finish
12793 targetm.sched.md_init -> targetm.sched.init
12794 targetm.sched.md_init_global -> targetm.sched.init_global
12795 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12796 targetm.asm_out.except_table_label ->
12797 targetm.asm_out.emit_except_table_label
12798 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12799 targetm.target_help -> targetm.help
12800 targetm.vectorize.builtin_support_vector_misalignment ->
12801 targetm.vectorize.support_vector_misalignment
12802 targetm.file_start_app_off -> targetm.asm_file_start_app_off
12803 targetm.file_start_file_directive ->
12804 targetm.asm_file_start_file_directive
12805 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12806 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12807 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12808 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12809 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12810 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12811 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12812 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12813 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12814 * Makefile.in (TARGET_H): Depend on target.def.
12815 (TARGET_DEF_H): Depend on target-hooks-def.h.
12816 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12817 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12818 * doc/tm.texi: Regenerate.
12819
12820 * Makefile.in (s-tm-texi): Remove stray tab / rule.
12821
12822 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12823 (targetm.sched.init): Likewise.
12824
12825 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12826
12827 PR bootstrap/44713
12828 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12829 (function_arg_advance_32): Const-ify TYPE parameter.
12830 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
12831 (ix86_function_arg_advance): Change type of NAMED to bool.
12832 (function_arg_32): Const-ify CUM and TYPE parameters.
12833 (function_arg_64): Likewise. Change type of NAMED to bool.
12834 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
12835 to bool.
12836 (ix86_function_arg): Change type of NAMED to bool.
12837 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
12838 last argument as a bool.
12839
12840 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
12841
12842 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
12843 (OVERRIDE_OPTIONS): Add note of obsolescence.
12844 Replace references with references to TARGET_OPTION_OVERRIDE.
12845 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
12846 the macro).
12847 * targhooks.c (default_target_option_override): New function.
12848 * targhooks.h (default_target_option_override): Declare.
12849 * target.h (struct gcc_target): Add override member to
12850 target_option member.
12851 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
12852 targetm.target_option.override call.
12853 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
12854 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
12855
12856 2010-06-29 Jan Hubicka <jh@suse.cz>
12857
12858 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
12859
12860 2010-06-29 Jan Hubicka <jh@suse.cz>
12861
12862 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
12863 unreachable.
12864 (rebuild_frequencies): New function.
12865 * predict.h (rebuild_frequencies): Declare.
12866 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
12867 entry block and edge reaching new_entry.
12868 (tree_function_versioning): When doing partial cloning, rebuild
12869 frequencies when done.
12870 * passes.c (execute_function_todo): Use rebild_frequencies.
12871
12872 2010-06-29 Richard Guenther <rguenther@suse.de>
12873
12874 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
12875 * tree-flow.h (enum noalias_state): Remove.
12876 (struct var_ann_d): Remove noalias_state member.
12877
12878 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12879
12880 PR target/43902
12881 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
12882 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
12883 (maddhidi4): Likewise.
12884
12885 Revert parts of the change for PR25130.
12886 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12887 MEM_ALIAS_SET.
12888
12889 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12890
12891 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
12892 targetm.calls.function_incoming_arg, and
12893 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
12894 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
12895 * target.h (struct gcc_target): Add function_arg_advance,
12896 function_arg, and function_incoming_arg fields.
12897 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
12898 (TARGET_FUNCTION_INCOMING_ARG): Define.
12899 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
12900 and TARGET_FUNCTION_INCOMING_ARG.
12901 * targhooks.h (default_function_arg_advance): Declare.
12902 (default_function_arg, default_function_incoming_arg): Declare.
12903 * targhooks.c (default_function_arg_advance): New function.
12904 (default_function_arg, default_function_incoming_arg): New function.
12905 * config/i386/i386.c (function_arg_advance): Rename to...
12906 (ix86_function_arg_advance): ...this. Make static.
12907 (function_arg): Rename to...
12908 (ix86_function_arg): ...this. Make static.
12909 (TARGET_FUNCTION_ARG_ADVANCE): Define.
12910 (TARGET_FUNCTION_ARG): Define.
12911 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
12912 (FUNCTION_ARG): Delete.
12913 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
12914 (function_arg): Delete prototype.
12915
12916 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
12917
12918 * reginfo.c (init_reg_sets_1): Adjust comments.
12919 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
12920 * calls.c (prepare_call_address): Likewise.
12921 (emit_call_1): Use targetm.calls.return_pops_args.
12922 (expand_call): Likewise.
12923 * function.c (assign_parms): Likewise.
12924 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
12925 * target.h (struct gcc_target) [struct calls]: Add
12926 return_pops_args field.
12927 * targhooks.h (default_return_pops_args): Declare.
12928 * targhooks.c (default_return_pops_args): Define.
12929 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
12930 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
12931 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
12932 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
12933 documentation.
12934 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
12935 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
12936 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
12937 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
12938 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
12939 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
12940 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
12941 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
12942 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
12943 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
12944 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
12945 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
12946 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
12947 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
12948 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
12949 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
12950 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
12951 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
12952 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
12953 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
12954 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
12955 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
12956 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
12957 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
12958 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
12959 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
12960 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
12961 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
12962 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
12963 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
12964 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
12965 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
12966 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
12967 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
12968 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
12969 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
12970 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
12971 * config/i386/i386.c (ix86_return_pops_args): Make static.
12972 Constify arguments.
12973 (TARGET_RETURN_POPS_ARGS): Define.
12974 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
12975 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
12976 (TARGET_RETURN_POPS_ARGS): Define.
12977 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
12978 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
12979 (TARGET_RETURN_POPS_ARGS): Define.
12980
12981 2010-06-29 Richard Guenther <rguenther@suse.de>
12982
12983 PR middle-end/44667
12984 * tree-inline.c (initialize_inlined_parameters): Make sure
12985 to remap the inlined parameter variable substitutions types.
12986
12987 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
12988
12989 PR rtl-optimization/44659
12990 * combine.c (make_compound_operation) <SUBREG>: Do not return the
12991 result of force_to_mode if it partially re-expanded the compound.
12992
12993 2010-06-28 Jan Hubicka <jh@suse.cz>
12994
12995 PR middle-end/44671
12996 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
12997 RESULT_DECL.
12998
12999 2010-06-28 Anatoly Sokolov <aesok@post.ru>
13000
13001 * double-int.h (force_fit_type_double): Remove declaration.
13002 * double-int.c (force_fit_type_double): Move to tree.c.
13003 * tree.h (force_fit_type_double): Declare.
13004 * tree.h (force_fit_type_double): Moved from double-int.c. Use
13005 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
13006 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
13007 * convert.c (convert_to_pointer): Adjust call to
13008 force_fit_type_double.
13009 * tree-vrp.c (extract_range_from_assert,
13010 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
13011 * fold-const.c: Update comment.
13012 (int_const_binop, fold_convert_const_int_from_int,
13013 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
13014 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
13015 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
13016 round_up_loc): Adjust call to force_fit_type_double.
13017
13018 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13019
13020 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
13021
13022 2010-06-28 Martin Jambor <mjambor@suse.cz>
13023
13024 * tree-sra.c (convert_callers): New parameter, change fndecls of
13025 recursive calls.
13026 (modify_function): Pass the old decl to convert_callers.
13027
13028 2010-06-28 Martin Jambor <mjambor@suse.cz>
13029
13030 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
13031 ipa_check_create_node_params and ipa_initialize_node_params with
13032 checking asserts they are not necessary.
13033
13034 2010-06-28 Jan Hubicka <jh@suse.cz>
13035
13036 PR tree-optimization/44687
13037 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
13038
13039 2010-06-28 Martin Jambor <mjambor@suse.cz>
13040
13041 PR c++/44535
13042 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
13043 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
13044 instead of BINFO_BASE_BINFO.
13045
13046 2010-06-28 Michael Matz <matz@suse.de>
13047
13048 PR middle-end/44592
13049 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
13050 proper VDEF chain for intermediate stores in the sequence.
13051
13052 2010-06-28 Jan Hubicka <jh@suse.cz>
13053
13054 PR tree-optimization/44357
13055 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
13056 uninlinable functions.
13057
13058 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13059
13060 * config.gcc (powerpc*-*-*): Handle titan.
13061 * config/rs6000/rs6000.c (titan_cost): New costs.
13062 (rs6000_override_options): Add "titan" to processor_target_table.
13063 Add Titan to branch alignment logic.
13064 Correctly set rs6000_cost for titan.
13065 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
13066 * config/rs6000/titan.md: New file.
13067 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
13068
13069 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
13070
13071 * tree-browser.c (TB_history_stack): Convert to a VEC.
13072 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
13073 (TB_history_prev): Likewise.
13074
13075 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
13076
13077 * vec.h (vec_heap_free): Add parentheses around free.
13078
13079 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
13080
13081 * system.h: Poison GCC_EXCEPT_H for front-end files.
13082
13083 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
13084 langhook.
13085 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
13086 Define to NULL by default.
13087 * except.h: Define GCC_EXCEPT_H.
13088 (doing_eh): Remove prototype.
13089 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
13090 (lang_protect_cleanup_actions): Remove.
13091 * except.c (lang_protect_cleanup_actions): Remove.
13092 (doing_eh): Remove.
13093 (gen_eh_region): Don't check doing_eh here.
13094 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
13095 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
13096 instead of lang_protect_cleanup_actions.
13097 * omp-low.c (maybe_catch_exception): Likewise.
13098 * Makefile.in: Update dependencies.
13099
13100 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
13101
13102 * cgraph.h (struct varpool_node): new used_from_object_file flag.
13103 (struct cgraph_local_info): new used_from_object_file flag.
13104 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
13105 (cgraph_clone_node): initialize used_from_object_file.
13106 (cgraph_create_virtual_clone): initialize used_from_object_file.
13107 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
13108 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
13109 when compiling with -fwhole-program.
13110 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
13111 internal resolver.
13112 * ipa.c (function_and_variable_visibility): Set externally_visible
13113 flag of varpool_node if used_from_object_file flag is set.
13114 (cgraph_externally_visible_p): check used_from_object_file flag.
13115 * doc/invoke.texi (-fwhole-program option): Change description of
13116 externally_visible attribute accordingly.
13117 * doc/extend.texi (externally_visible): Ditto.
13118
13119 2010-06-27 Jan Hubicka <jh@suse.cz>
13120
13121 * params.def (max-inline-insns-auto): Default to 40.
13122 * doc/invoke.texi (max-inline-insns-auto): Document the change.
13123
13124 2010-06-27 Jan Hubicka <jh@suse.cz>
13125
13126 PR middle-end/44671
13127 PR middle-end/44686
13128 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
13129 signature change.
13130 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
13131 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
13132
13133 2010-06-27 Anatoly Sokolov <aesok@post.ru>
13134
13135 * target.h (struct gcc_target): Add register_move_cost field.
13136 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
13137 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
13138 * targhooks.c (default_register_move_cost): New function.
13139 * targhooks.h (default_register_move_cost): Declare function.
13140 * defaults.h (REGISTER_MOVE_COST): Delete.
13141 * ira-int.h (ira_register_move_cost): Update comment.
13142 * ira.c (ira_register_move_cost): Update comment.
13143 * reload.h (register_move_cost): Declare.
13144 * reginfo.c (register_move_cost): New function.
13145 (move_cost): Update comment.
13146 (init_move_cost, memory_move_secondary_cost): Replace
13147 REGISTER_MOVE_COST with register_move_cost.
13148 * postreload.c (reload_cse_simplify_set): (Ditto.).
13149 * reload.c (find_valid_class, find_reloads): (Ditto.).
13150 * reload1.c (choose_reload_regs): (Ditto.).
13151 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
13152 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
13153 * doc/md.texi (can_create_pseudo_p): Update documentation.
13154
13155 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
13156 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
13157 * config/i386/i386.h (ix86_memory_move_cost): Make static.
13158 (TARGET_MEMORY_MOVE_COST): Define.
13159
13160 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13161 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
13162 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
13163 (TARGET_MEMORY_MOVE_COST): Define.
13164
13165 2010-06-27 Richard Guenther <rguenther@suse.de>
13166
13167 PR tree-optimization/44683
13168 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
13169 false edge from the inverted condition.
13170
13171 2010-06-27 Richard Guenther <rguenther@suse.de>
13172
13173 PR middle-end/44684
13174 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
13175 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
13176 for register LHS. Or non-store assignments.
13177
13178 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
13179
13180 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
13181 (sparc_emit_set_const64): Likewise. Remove disabled code.
13182 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
13183 (sparc_emit_set_const64): Likewise.
13184
13185 2010-06-26 Catherine Moore <clm@codesourcery.com>
13186
13187 * config/mips/mips.md (alu_type): New attribute.
13188 (type): Infer type from alu_type.
13189 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
13190 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
13191 *subsi3_extended, negsi2, negdi2, *low<mode>,
13192 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
13193 xor<mode>3, *nor<mode>3,
13194 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
13195 *zero_extendhi_truncqi): Set alu_type instead of type.
13196
13197 2010-06-26 Douglas B Rupp <rupp@gnat.com>
13198
13199 * config/alpha/alpha.c (alpha_need_linkage): Adjust
13200 splay_tree_new_ggc call.
13201 (alpha_use_linkage): Likewise.
13202
13203 2010-06-26 Joseph Myers <joseph@codesourcery.com>
13204
13205 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
13206 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
13207 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
13208 (static_specs): Remove switches_need_spaces.
13209 (process_command, do_self_spec): Hardcode handling "-o" instead of
13210 checking switches_need_spaces.
13211 * system.h (SWITCHES_NEED_SPACES): Poison.
13212
13213 2010-06-26 Richard Guenther <rguenther@suse.de>
13214
13215 PR tree-optimization/44393
13216 * tree-loop-distribution.c (generate_loops_for_partition): Fix
13217 stmt removal and VOP renaming.
13218 (generate_memset_zero): Remove redundant stmt updating.
13219 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
13220 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
13221
13222 2010-06-26 Jan Hubicka <jh@suse.cz>
13223
13224 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
13225 edges comming from header are equivalent.
13226 (visit_bb): Handle PHIs correctly.
13227 * tree-inline.c (copy_phis_for_bb): Be able to copy
13228 PHI from entry edge.
13229 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
13230
13231 2010-06-26 Richard Guenther <rguenther@suse.de>
13232
13233 PR middle-end/44674
13234 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
13235 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
13236
13237 2010-06-26 Joseph Myers <joseph@codesourcery.com>
13238
13239 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
13240 add_infile, alloc_switch): New.
13241 (process_command): Remove variable lang_n_infiles. Process
13242 options in a single pass. Use new functions for allocating
13243 infiles and switches arrays. Properly skip operands of
13244 -Xpreprocessor and -Xassembler.
13245
13246 2010-06-26 Jan Hubicka <jh@suse.cz>
13247
13248 PR middle-end/44671
13249 * cgraphunit.c (cgraph_function_versioning): Remove wrong
13250 cgraph_make_decl_local call; fix typo copying RTL data.
13251
13252 2010-06-25 DJ Delorie <dj@redhat.com>
13253
13254 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
13255 (m32c_output_aligned_common): Likewise.
13256 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
13257 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13258 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
13259 (m32c_register_pragmas): Register it.
13260 * config/m32c/m32c.c (m32c_get_pragma_address): New.
13261 (m32c_insert_attributes): Set #pragma address decls volatile.
13262 (pragma_entry_eq): New.
13263 (pragma_entry_hash): New.
13264 (m32c_note_pragma_address): New.
13265 (m32c_get_pragma_address): New.
13266 (m32c_output_aligned_common): New.
13267 * doc/extend.texi: Document the new pragma.
13268
13269 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
13270 also.
13271 * config/m32c/predicates.md (m32c_any_operand): Check the code
13272 instead of memory_operand so as to allow matching volatile MEMs.
13273 (m32c_nonimmediate_operand): Likewise.
13274 (mra_operand): Allow volatiles.
13275
13276 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
13277
13278 PR debug/44610
13279 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
13280 address if the offset is unknown.
13281
13282 2010-06-25 Douglas B Rupp <rupp@gnat.com>
13283
13284 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
13285 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
13286 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
13287 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
13288 to ia64_start_function. Invoke it.
13289 * config/ia64/ia64.c (ia64_start_function): Call new function
13290 dwarf2out_vms_debug_main_pointer.
13291
13292 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
13293
13294 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
13295 statements computing the true predicate.
13296
13297 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
13298
13299 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
13300 to boolean_true_node.
13301 (reset_bb_predicate): New.
13302 (predicate_bbs): Call reset_bb_predicate.
13303
13304 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
13305
13306 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
13307 (tree_if_conversion): Returns true when something has been changed.
13308 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
13309 changed something.
13310
13311 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
13312
13313 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
13314 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
13315 * tree-if-conv.c: Include dbgcnt.h.
13316 (tree_if_conversion): Use if_conversion_tree to count the number of
13317 if-convertible loops.
13318
13319 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
13320
13321 * common.opt (fprefetch-loop-arrays): Re-define
13322 -fprefetch-loop-arrays as a tri-state option with the initial
13323 value of -1.
13324 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
13325 pass only when flag_prefetch_loop_arrays > 0.
13326 * toplev.c (process_options): Note that, with tri-states,
13327 flag_prefetch_loop_arrays>0 means prefetching is enabled.
13328 * config/i386/i386.c (override_options): Enable prefetching at -O3
13329 for a set of CPUs that sw prefetching is helpful.
13330 (software_prefetching_beneficial_p): New. Return TRUE if software
13331 prefetching is beneficial for the given CPU.
13332
13333 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
13334
13335 PR rtl-optimization/44326
13336 * implicit-zee.c (find_removable_zero_extends): Replace
13337 INSN_P with NONDEBUG_INSN_P.
13338
13339 2010-06-25 Martin Jambor <mjambor@suse.cz>
13340
13341 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
13342 (struct ipa_node_params): Removed the modification_analysis_done flag.
13343 (ipa_is_param_modified): Removed.
13344 (ipa_analyze_node): Declare.
13345 (ipa_compute_jump_functions): Remove declaration.
13346 (ipa_count_arguments): Likewise.
13347 (ipa_detect_param_modifications): Likewise.
13348 (ipa_analyze_params_uses): Likewise.
13349 * ipa-prop.c (struct param_analysis_info): New type.
13350 (visit_store_addr_for_mod_analysis): Removed.
13351 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
13352 moved down in the file.
13353 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
13354 (ipa_count_arguments): Made static.
13355 (mark_modified): New function.
13356 (is_parm_modified_before_call): New function.
13357 (compute_pass_through_member_ptrs): New parameter parms_info, call
13358 is_parm_modified_before_call instead of ipa_is_param_modified.
13359 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
13360 it to compute_pass_through_member_ptrs.
13361 (ipa_compute_jump_functions): New parameter parms_info, pass it to
13362 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
13363 on the callee if it is analyzed. Made static.
13364 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
13365 is_parm_modified_before_call instead of ipa_is_param_modified.
13366 (ipa_analyze_call_uses): New parameter parms_info, pass it to
13367 ipa_analyze_indirect_call_uses.
13368 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
13369 ipa_analyze_call_uses.
13370 (ipa_analyze_params_uses): New parameter parms_info, pass it to
13371 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
13372 (ipa_analyze_node): New function.
13373 (ipa_print_node_params): Do not dump the modified flag.
13374 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
13375 it. Do not stream the modified parameter flag.
13376 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
13377 it. Do not stream the modified parameter flag.
13378 * ipa-cp.c (ipcp_analyze_node): Removed.
13379 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
13380 with only a call to ipa_analyze_node.
13381 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
13382 node with only a call to ipa_analyze_node.
13383
13384 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
13385
13386 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
13387
13388 2010-06-25 Jan Hubicka <jh@suse.cz>
13389
13390 * tree-pass.h (pass_split_functions): Declare.
13391 * opts.c (decode_options): Enable function splitting at -O2
13392 * timevar.def (TV_IPA_FNSPLIT): New macro.
13393 * ipa-split.c: New file.
13394 * common.opt (-fpartial-inlining): New flag.
13395 * Makefile.in (ipa-split.o): New object file.
13396 * passes.c (init_optimization_passes): Add ipa-split.
13397 * params.def (partial-inlining-entry-probability): New parameters.
13398 * doc/invoke.texi (-fpartial-inlining): New.
13399
13400 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
13401
13402 PR 44665
13403 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
13404 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
13405 (gimplify_expr): Likewise.
13406
13407 2010-06-25 Martin Jambor <mjambor@suse.cz>
13408
13409 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
13410 statements instead of bailing out on them.
13411 (ipa_analyze_indirect_call_uses): Do not require that loads from the
13412 parameter are in the same BB as the condition. Update comments.
13413
13414 2010-06-25 Jakub Jelinek <jakub@redhat.com>
13415
13416 PR middle-end/43866
13417 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
13418 true or always false, return NULL_TREE.
13419 (tree_unswitch_single_loop): Optimize conditions even when reaching
13420 max-unswitch-level parameter. If num > 0, optimize first all conditions
13421 using entry checks, then do still reachable block discovery and consider
13422 only conditions in still reachable basic blocks in the loop.
13423
13424 PR tree-optimization/44539
13425 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
13426 the call doesn't have LHS, but has VDEF.
13427
13428 2010-06-25 Joseph Myers <joseph@codesourcery.com>
13429
13430 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
13431 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
13432 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
13433 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
13434 * system.h (MODIFY_TARGET_NAME): Poison.
13435
13436 2010-06-25 Alan Modra <amodra@gmail.com>
13437
13438 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
13439 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
13440 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13441 CMODEL_LARGE as default.
13442 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
13443 (offsettable_ok_by_alignment): Delete.
13444 (rs6000_emit_move): Remove mcmodel=medium optimization.
13445
13446 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
13447
13448 With large parts from Jim Wilson:
13449 PR target/43902
13450 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
13451 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13452 * optabs.c (optab_for_tree_code): Likewise.
13453 (expand_widen_pattern_expr): Likewise.
13454 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
13455 out of execute_optimize_widening_mul.
13456 (convert_plusminus_to_widen): New function.
13457 (execute_optimize_widening_mul): Use the two new functions.
13458 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
13459 Remove code to generate widening multiply-accumulate. Add support
13460 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13461 * gimple-pretty-print.c (dump_ternary_rhs): New function.
13462 (dump_gimple_assign): Call it when appropriate.
13463 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
13464 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
13465 (expand_gimple_stmt_1): Likewise.
13466 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
13467 WIDEN_MULT_MINUS_EXPR.
13468 * tree-ssa-operands.c (get_expr_operands): Likewise.
13469 * tree-inline.c (estimate_operator_cost): Likewise.
13470 * gimple.c (extract_ops_from_tree_1): Renamed from
13471 extract_ops_from_tree. Add new arg for a third operand; fill it.
13472 (gimple_build_assign_stat): Support operations with three operands.
13473 (gimple_build_assign_with_ops_stat): Likewise.
13474 (gimple_assign_set_rhs_from_tree): Likewise.
13475 (gimple_assign_set_rhs_with_ops_1): Renamed from
13476 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
13477 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
13478 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
13479 WIDEN_MULT_MINUS_EXPR.
13480 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
13481 (extract_ops_from_tree_1): Adjust declaration.
13482 (gimple_assign_set_rhs_with_ops_1): Likewise.
13483 (gimple_build_assign_with_ops): Pass NULL for last operand.
13484 (gimple_build_assign_with_ops3): New macro.
13485 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
13486 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
13487 functions.
13488 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
13489 (verify_gimple_assign): Call it.
13490 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
13491 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
13492 functions for dealing with three-operand statements.
13493 * tree.c (commutative_ternary_tree_code): New function.
13494 * tree.h (commutative_ternary_tree_code): Declare it.
13495 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
13496 ternary statements.
13497 (gimple_assign_nonzero_warnv_p): Likewise.
13498 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
13499 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
13500 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
13501 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
13502 (struct hashtable_expr): New member ternary in the union.
13503 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
13504 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
13505 (iterative_hash_hashable_expr): Likewise.
13506 (print_expr_hash_elt): Handle EXPR_TERNARY.
13507 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
13508 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
13509 statements. Handle GIMPLE_TERNARY_RHS.
13510
13511 2010-06-25 Jan Hubicka <jh@suse.cz>
13512
13513 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
13514
13515 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
13516
13517 PR c/44517
13518 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
13519 parameters are not good.
13520 (c_parser_parameter_declaration): Error unknown type name if the type
13521 name can't start declaration specifiers.
13522
13523 2010-06-25 Joseph Myers <joseph@codesourcery.com>
13524
13525 * gcc.c (translate_options): Don't mention +e in comment.
13526 (process_command): Don't handle +e specially.
13527
13528 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
13529
13530 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
13531
13532 * ira-build.c (merge_hard_reg_conflicts): New function.
13533 (create_cap_allocno, copy_info_to_removed_store_destinations,
13534 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
13535 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
13536 (remove_unnecessary_allocnos, remove_low_level_allocnos)
13537 copy_nifo_to_removed_store_destination): Use them.
13538 * ira-lives.c (make_hard_regno_born): New function, split out of
13539 make_regno_born.
13540 (make_allocno_born): Likewise.
13541 (make_hard_regno_dead): New function, split out of make_regno_dead.
13542 (make_allocno_dead): Likewise.
13543 (inc_register_pressure): New function, split out of set_allocno_live.
13544 (dec_register_pressure): New function, split out of clear_allocno_live.
13545 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
13546 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
13547 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
13548 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
13549 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
13550 mark_pseudo_regno_live.
13551 (process_bb_node_lives): Use mark_pseudo_regno_live,
13552 make_hard_regno_born and make_allocno_dead.
13553 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
13554 set_allocno_live, clear_allocno_live): Delete functions.
13555
13556 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
13557 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
13558 functions.
13559 (ira_flattening): Use ira_parent_allocno.
13560 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
13561 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
13562
13563 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
13564 statement.
13565
13566 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
13567 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
13568 minmax_set_iter_cond, minmax_set_iter_next,
13569 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
13570 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
13571 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
13572 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
13573 uses changed.
13574
13575 * ira-int.h (struct live_range, live_range_t): Renamed from struct
13576 ira_allocno_live_range and allocno_live_range_t; all uses changed.
13577 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
13578 All uses changed.
13579
13580 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
13581
13582 * thumb2.md (thumb2_tlobits_cbranch): Delete.
13583 (peephole2 to convert zero_extract/compare of single bit to
13584 lshift/compare): New.
13585
13586 2010-06-24 Anatoly Sokolov <aesok@post.ru>
13587
13588 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
13589 recursive call and call to 'int_const_binop'.
13590 (build_range_check, fold_cond_expr_with_comparison, unextend,
13591 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
13592 multiple_of_p): Adjust call to const_binop.
13593
13594 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
13595
13596 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
13597 determine size of XFmode operand.
13598 (XFmode extended DFmode push splitter): Ditto.
13599 (XFmode extended SFmode push splitter): Ditto.
13600
13601 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
13602
13603 PR target/44588
13604 * config/i386/i386.md (extract_code): New.
13605 (<u>divmodqi4): Likewise.
13606 (divmodhiqi3): Likewise.
13607 (udivmodhiqi3): Likewise.
13608 (<u>divqi3): Remvoved.
13609
13610 2010-06-24 Jakub Jelinek <jakub@redhat.com>
13611
13612 PR middle-end/44492
13613 * recog.h (struct recog_data): Add is_asm field.
13614 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
13615 present in constraints of inline-asm operand and memory operand
13616 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
13617 (extract_insn): Initialize recog_data.is_asm.
13618 * doc/md.texi (Constraints): Document operand side-effect rules.
13619
13620 2010-06-24 Andi Kleen <ak@linux.intel.com>
13621
13622 * c-parser.c (c_parser_conditional_expression): Call
13623 warn_for_omitted_condop.
13624 * doc/invoke.texi: Document omitted condop warning.
13625
13626 2010-06-24 Nick Clifton<nickc@redhat.com>
13627
13628 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
13629 insn in the sequence is a jump insn before setting its label.
13630
13631 2010-06-24 Alan Modra <amodra@gmail.com>
13632
13633 * collect2.c (main): Match exactly --version and --help.
13634
13635 2010-06-24 DJ Delorie <dj@redhat.com>
13636
13637 * config/m32c/m32c-pragma.c: Don't include rtl.h.
13638
13639 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
13640
13641 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
13642 using X87MODEF mode iterator.
13643 (pushsf splitter): Macroize splitter using P mode iterator.
13644 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
13645 mode iterator.
13646
13647 (*movxf_internal): Rename from *movxf_integer.
13648 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
13649 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
13650 (*movdf_internal): Rename from *movdf_integer.
13651 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
13652 (*movsf_internal): Rename from *movdf_1.
13653
13654 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
13655
13656 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
13657 (const_gimple_seq_node): Removed typedefs.
13658
13659 * gimple.h (gimple_seq_node_d, gimple_seq_node)
13660 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
13661
13662 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
13663
13664 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
13665 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
13666 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
13667 and CODE_FOR_vec_extract_lo_v4df.
13668
13669 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
13670 Changed to define_insn_and_split.
13671 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
13672 (vec_extract_lo_v16hi): Likewise.
13673 (vec_extract_lo_v32qi): Likewise.
13674 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
13675 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13676
13677 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
13678
13679 PR target/44640
13680 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13681 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13682 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13683 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13684 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13685
13686 PR target/44640
13687 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13688
13689 PR other/44644
13690 * df-core.c (struct df): Rename to df_d.
13691 * df.h (struct df): Likewise.
13692 * dse.h (struct df): Remove forward declaration.
13693 * recog.h (struct insn_data): Rename to:
13694 (struct_insn_data_d). Adjusted all users.
13695
13696 2010-06-23 Arnaud Charlet <charlet@adacore.com
13697
13698 PR ada/22220
13699 * doc/install.texi: Update requirements to build GNAT.
13700
13701 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
13702
13703 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13704 enum type.
13705 (m68k_sched_attr_opx_type): Remove unreachable return.
13706 (m68k_sched_attr_opy_type): Likewise.
13707 (m68k_sched_attr_size): Likewise.
13708 (sched_get_opxy_mem_type): Likewise.
13709 (m68k_sched_attr_op_mem): Likewise.
13710
13711 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
13712
13713 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13714 new statement and adjust VDEF only if necessary. Remove superfluous
13715 call to maybe_clean_or_replace_eh_stmt.
13716 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13717 copy the flags.
13718 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13719 * tree-inline.c (copy_bb): ...and not there.
13720
13721 2010-06-22 Cary Coutant <ccoutant@google.com>
13722
13723 * dwarf2out.c (is_nested_in_subprogram): New function.
13724 (should_move_die_to_comdat): Use it.
13725 (copy_ancestor_tree): Don't mark DIEs here.
13726 (copy_decls_walk): Start walk from root of newly-added tree;
13727 mark DIEs here instead.
13728
13729 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
13730
13731 * config/i386/i386.md (unit): Also check sseishft1.
13732
13733 2010-06-22 Jan Hubicka <jh@suse.cz>
13734
13735 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13736 enabled.
13737
13738 2010-06-22 Jan Hubicka <jh@suse.cz>
13739
13740 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13741 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13742 Return true if something changed.
13743 * df.h (df_confluence_function_n): Return bool.
13744 * df-core.c (df_worklist_propagate_forward,
13745 df_worklist_propagate_backward): Track changes and ages.
13746 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13747 track ages.
13748 * dse.c (dse_confluence_n): Return always true.
13749
13750 2010-06-22 Jan Hubicka <jh@suse.cz>
13751
13752 * bitmap.c (bitmap_clear_bit): Micro optimize.
13753
13754 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
13755
13756 * config/i386/i386.md (SWI1248x): New mode iterator.
13757 (SWI48x): Ditto.
13758 (SWI12): Ditto.
13759 (SWI24): Ditto.
13760
13761 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13762 SWI1248x mode iterator.
13763 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13764 using SWI124 mode iterator.
13765 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13766 mode iterator.
13767 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
13768 *pushdi2_prologue_rex64 using P mode iterator.
13769 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13770 using SWI48 mode iterator.
13771 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13772 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13773 using SWI1248x mode iterator.
13774 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13775 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13776 SWI48 mode iterator.
13777 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13778 iterator.
13779 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13780 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13781 SWI12 mode iterator.
13782 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13783 SWI12 mode iterator.
13784 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13785 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13786 SWI24 mode iterator.
13787 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13788 SWI48 mode iterator.
13789 (mov<mode>_insn_1): New expander.
13790 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13791 using SWI48x mode iterator.
13792
13793 (*movoi_internal_avx): Rename from *movoi_internal.
13794 (*movti_internal_rex64): Rename from *movti_rex64.
13795 (*movti_internal_sse): Rename from *movti_sse.
13796 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13797 (*movdi_internal): Rename from *movdi_2.
13798 (*movsi_internal): Rename from *movsi_1.
13799 (*movhi_internal): Rename from *movhi_1.
13800 (*movqi_internal): Rename from *movqi_1.
13801
13802 (insv): Update the call to gen_movsi_insv_1 for rename.
13803 * config/i386/i386.c (promote_duplicated_reg): Ditto.
13804
13805 2010-06-22 Jan Hubicka <jh@suse.cz>
13806
13807 * passes.c (execute_function_todo): Move call of statistics_fini_pass
13808 to ...
13809 (execute_todo) ... this one.
13810
13811 2010-06-22 Alan Modra <amodra@gmail.com>
13812
13813 PR target/44364
13814 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13815 * caller-save.c (insert_restore, insert_save): Use non-validate
13816 form of adjust_address.
13817
13818 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13819
13820 PR target/39690
13821 * config/pa/pa.c (override_options): Disable
13822 -freorder-blocks-and-partition.
13823
13824 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
13825
13826 PR target/44615
13827 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13828
13829 * config/i386/i386.md (type): Add sseishft1
13830
13831 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13832 (ppro_insn_load): Likewise.
13833 (ppro_insn_store): Likewise.
13834 (ppro_insn_both): Likewise.
13835
13836 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
13837 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
13838 for type.
13839 (*vec_extractv2di_1_avx): Likewise.
13840 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
13841 type. Remove atom_unit.
13842 (*vec_extractv2di_1_sse2): Likewise.
13843
13844 2010-06-21 DJ Delorie <dj@redhat.com>
13845
13846 * diagnostic.h (diagnostic_classification_change_t): New.
13847 (diagnostic_context): Add history and push/pop list.
13848 (diagnostic_push_diagnostics): Declare.
13849 (diagnostic_pop_diagnostics): Declare.
13850 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
13851 from pragmas in a history chain instead of the global table.
13852 (diagnostic_push_diagnostics): New.
13853 (diagnostic_pop_diagnostics): New.
13854 (diagnostic_report_diagnostic): Scan history chain to find state
13855 of diagnostics as of the diagnostic location.
13856 * opts.c (set_option): Pass UNKNOWN_LOCATION to
13857 diagnostic_classify_diagnostic.
13858 (enable_warning_as_error): Likewise.
13859 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
13860 use in the history chain.
13861 * doc/extend.texi: Document pragma GCC diagnostic changes.
13862
13863 2010-06-21 Jakub Jelinek <jakub@redhat.com>
13864
13865 * dwarf2out.c (add_linkage_name): New function. Don't add
13866 anything to DW_TAG_member DIEs.
13867 (add_name_and_src_coords_attributes): Use it.
13868 (gen_variable_die): Call it for C++ static data members if
13869 specification is DW_TAG_member.
13870
13871 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
13872 C++ char16_t and char32_t.
13873
13874 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
13875 * genattrtab.c: Include vecprim.h.
13876 (cached_attrs, cached_attr_count, attrs_seen_once,
13877 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
13878 attrs_cached_after): New variables.
13879 (find_attrs_to_cache): New function.
13880 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
13881 (write_test_expr): Add attrs_cached argument, return it too,
13882 attempt to cache non-const attributes used more than once in
13883 a single case handling.
13884 (write_attr_get): Use find_attrs_to_cache, for caching candidates
13885 emit cached_* variables. Adjust write_attr_set callers.
13886 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
13887 to find attributes that should be cached in this block. Adjust
13888 write_test_expr callers.
13889 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
13890 callers.
13891 (make_automaton_attrs): Adjust write_test_expr caller.
13892
13893 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
13894 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
13895 (make_automaton_attrs): If find_tune_attr returns non-NULL,
13896 write separate internal_dfa_insn_code_* and insn_default_latency_*
13897 functions for each attribute's value and emit init_sched_attrs
13898 function and function pointers.
13899 * genattr.c (const_attrs, reservations): New variables.
13900 (gen_attr): Add const attributes to const_attrs vector.
13901 (check_tune_attr, find_tune_attr): New functions.
13902 (main): Add reservations to reservations vector. If find_tune_attr
13903 returns true, add prototype for init_sched_attrs and make
13904 internal_dfa_insn_code and insn_default_latency function pointers,
13905 otherwise define init_sched_attrs as dummy macro.
13906 * cfgexpand.c: Include insn-attr.h.
13907 (gimple_expand_cfg): Call init_sched_attrs.
13908
13909 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
13910
13911 PR target/44575
13912 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
13913 va_arg from a set of register save slots into a temporary,
13914 if the container is bigger than type size, do the copying
13915 using smaller mode or using memcpy.
13916
13917 PR bootstrap/44426
13918 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
13919 prototype.
13920 (sel_print_to_dot): Remove macro.
13921 (sel_print): Likewise. New prototype.
13922 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
13923 (sel_print): New function.
13924
13925 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13926
13927 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
13928 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
13929
13930 2010-06-21 Nick Clifton <nickc@redhat.com>
13931
13932 * config/rx/rx.h (PTRDIFF_TYPE): Define.
13933 (SMALL_REGISTER_CLASS): Define (to zero).
13934 (PRINT_OPERAND): Delete.
13935 (PRINT_OPERAND_ADDRESS): Delete.
13936 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
13937 (rx_print_operand_address): Delete prototype.
13938 * config/rx/rx.c (rx_print_operand): Make static.
13939 Allow %H and %L to handle CONST_DOUBLEs.
13940 (rx_print_operand_address): Make static.
13941 (rx_gen_move_template): Rename local variable 'template' to
13942 out_template.
13943 (rx_function_arg): Do not pass unknown sized objects in registers.
13944 (TARGET_PRINT_OPERAND): Define.
13945 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13946
13947 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13948
13949 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
13950
13951 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
13952
13953 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
13954 stack-alignment for simple leaf-functions.
13955
13956 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
13957
13958 * doc/install.texi: Document bootstrap-lto.
13959
13960 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
13961
13962 PR debug/44248
13963 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
13964 (input_function): Drop them here, if VTA is disabled.
13965
13966 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
13967
13968 PR target/44546
13969 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
13970 New predicate.
13971 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
13972 ix86_swapped_fp_comparsion_operator instead of
13973 ix86_fp_comparison_operator.
13974
13975 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
13976 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
13977 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
13978 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
13979 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
13980 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
13981
13982 2010-06-20 Joseph Myers <joseph@codesourcery.com>
13983
13984 PR other/32998
13985 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
13986 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
13987 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
13988 (decode_cmdline_option): Update for this return value. Set
13989 orig_option_with_args_text field. Set arg field for unknown
13990 options. Make static.
13991 (decode_cmdline_options_to_array): New.
13992 (prune_options): Update handling of find_opt return value.
13993 * opts.c (read_cmdline_option): Take decoded option. Return void.
13994 (read_cmdline_options): Take decoded options.
13995 (decode_options): Add parameters for decoded options. Use
13996 decode_cmdline_options_to_array. Use decoded options for -O
13997 scan. Use integral_argument for -O parameters. Update call to
13998 read_cmdline_options.
13999 (enable_warning_as_error): Update handling of find_opt return value.
14000 * opts.h: Update comment on unknown options.
14001 (struct cl_decoded_option): Update comments on opt_index and arg.
14002 Add orig_option_with_args_text.
14003 (decode_cmdline_option): Remove.
14004 (decode_cmdline_options_to_array): Declare.
14005 (decode_options): Update prototype.
14006 * toplev.c (save_argv): Remove.
14007 (save_decoded_options, save_decoded_options_count): New.
14008 (read_integral_parameter): Remove.
14009 (print_switch_values): Use decoded options.
14010 (toplev_main): Don't set save_argv. Update call to decode_options.
14011 * toplev.h (read_integral_parameter): Remove.
14012 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
14013
14014 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
14015
14016 PR target/44072
14017 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
14018 immediate.
14019 * constraints.md (Pw, Px): New constraints.
14020 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
14021
14022 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
14023
14024 * config/i386/sse.md (fma4modesuffixf4): Removed.
14025 (ssemodesuffixf2s): Likewise.
14026 (ssemodesuffixf4): Likewise.
14027 (ssemodesuffixf2c): Likewise.
14028 (ssescalarmodesuffix2s): Likewise.
14029 (avxmodesuffixf2c): Likewise.
14030 (ssemodesuffix): New.
14031 (ssescalarmodesuffix): Likewise.
14032 Update patterns with ssemodesuffix and ssescalarmodesuffix.
14033
14034 2010-06-19 Philip Herron <herron.philip@googlemail.com>
14035
14036 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
14037
14038 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
14039
14040 * stor-layout.c (debug_rli): Remove unused local variables.
14041
14042 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
14043
14044 PR rtl-optimization/40900
14045 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
14046 original expression for later reuse.
14047 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
14048 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
14049
14050 2010-06-18 Anatoly Sokolov <aesok@post.ru>
14051
14052 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
14053 double_int_fits_in_uhwi_p): Implement as static inline.
14054 (double_int_xor): New inline function.
14055 (double_int_lrotate, double_int_rrotate, double_int_max,
14056 double_int_umax, double_int_smax, double_int_min, double_int_umin,
14057 double_int_smin): Declare.
14058 (lrotate_double, rrotate_double): Remove declaration.
14059 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
14060 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
14061 (double_int_lrotate, double_int_rrotate, double_int_max,
14062 double_int_umax, double_int_smax, double_int_min, double_int_umin,
14063 double_int_smin): New function.
14064 * fold-const.c (int_const_binop): Clean up, use double_int_*
14065 functions.
14066 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
14067 double_int_* and immed_double_int_const functions.
14068
14069 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
14070
14071 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
14072 * function.c (types_used_by_cur_var_decl): Likewise.
14073 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
14074
14075 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
14076
14077 * tree.h (record_layout_info): Change type of pending_statics field
14078 to a VEC.
14079 * stor-layout.c (start_record_layout): Store NULL into
14080 pending_statics.
14081 (debug_rli): Call debug_vec_tree instead of debug_tree.
14082 (place_field): Likewise.
14083 (finish_record_layout): Likewise.
14084
14085 2010-06-18 Alan Modra <amodra@gmail.com>
14086
14087 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
14088
14089 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14090
14091 PR target/43740
14092 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
14093 for SET source operand from SET destination operand.
14094
14095 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
14096
14097 PR rtl-optimization/39871
14098 * reload1.c (init_eliminable_invariants): For flag_pic, disable
14099 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
14100 (function_invariant_p): Rule out a plus of frame or arg pointer with
14101 a SYMBOL_REF.
14102 * ira.c (find_reg_equiv_invariant_const): Likewise.
14103
14104 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
14105
14106 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
14107 print_operand_address and puts to output the operand for CONST.
14108
14109 2010-06-17 Jakub Jelinek <jakub@redhat.com>
14110
14111 PR debug/44572
14112 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
14113 hook.
14114
14115 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14116
14117 * v850-protos.h (print_operand): Delete.
14118 (print_operand_address): Delete.
14119 * v850.h (PRINT_OPERAND): Delete.
14120 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14121 (PRINT_OPERAND_ADDRESS): Delete.
14122 * v850.c (print_operand_address): Rename to...
14123 (v850_print_operand_address): ...this. Make static. Call
14124 v850_print_operand.
14125 (print_operand): Rename to...
14126 (v850_print_operand): ...this. Make static. Call
14127 v850_print_operand_address.
14128 (v850_print_operand_punct_valid_p): New function.
14129 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14130 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14131
14132 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14133
14134 * config/sh/sh-protos.h (print_operand): Delete.
14135 (print_operand_address): Delete.
14136 * config/sh/sh.h (PRINT_OPERAND): Delete.
14137 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14138 (PRINT_OPERAND_ADDRESS): Delete.
14139 * config/sh/sh.c (sh_print_operand_address): Make static.
14140 (sh_print_operand): Make static. Call sh_print_operand_address
14141 and sh_print_operand.
14142 (sh_print_operand_punct_valid_p): New function.
14143 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14144 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14145
14146 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14147
14148 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
14149 (mcore_print_operand_address): Delete.
14150 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
14151 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14152 (PRINT_OPERAND_ADDRESS): Delete.
14153 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
14154 (mcore_print_operand): Make static.
14155 (mcore_print_operand_punct_valid_p): New function.
14156 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
14157 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14158
14159 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14160
14161 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
14162 (print_operand_address): Delete.
14163 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
14164 (PRINT_OPERAND_ADDRESS): Delete.
14165 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
14166 static.
14167 (m68hc11_print_operand): Make static.
14168 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14169
14170 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14171
14172 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
14173 (m32r_print_operand_address): Delete.
14174 * config/m32r/m32r.h (m32r_punct_chars): Delete.
14175 (PRINT_OPERAND): Delete.
14176 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14177 (PRINT_OPERAND_ADDRESS): Delete.
14178 * config/m32r/m32r.c (m32r_punct_chars): Make static.
14179 (m32r_print_operand_address): Make static.
14180 (m32r_print_operand): Make static.
14181 (m32r_print_operand_punct_valid_p): New function.
14182 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14183 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14184
14185 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14186
14187 * config/iq2000/iq2000-protos.h (print_operand): Delete.
14188 (print_operand_address): Delete.
14189 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
14190 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14191 (PRINT_OPERAND_ADDRESS): Delete.
14192 (iq2000_print_operand_punct): Delete.
14193 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
14194 (iq2000_print_operand_address): Make static.
14195 (iq2000_print_operand): Make static.
14196 (iq2000_print_operand_punct_valid_p): New function.
14197 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14198 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14199
14200 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14201
14202 * config/frv/frv-protos.h (frv_print_operand): Delete.
14203 (frv_print_operand_address): Delete.
14204 * config/frv/frv.h (PRINT_OPERAND): Delete.
14205 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14206 (PRINT_OPERAND_ADDRESS): Delete.
14207 * config/frv/frv.c (frv_print_operand_address): Make static.
14208 (frv_print_operand): Make static.
14209 (frv_print_operand_punct_valid_p): New function.
14210 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14211 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14212
14213 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
14214
14215 * tree.h (vec_member): Declare.
14216 * tree.c (vec_member): Define.
14217
14218 2010-06-17 Richard Guenther <rguenther@suse.de>
14219
14220 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
14221 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
14222
14223 2010-06-17 Richard Guenther <rguenther@suse.de>
14224
14225 * tree-inline.c (declare_return_variable): Remove bogus code.
14226
14227 2010-06-17 Richard Guenther <rguenther@suse.de>
14228
14229 * gimplify.c (gimplify_bind_expr): Always promote complex
14230 and vector variables to registers if possible.
14231
14232 2010-06-17 Richard Guenther <rguenther@suse.de>
14233
14234 * expr.c (get_inner_reference): Use double_int for bit_offset
14235 calculation.
14236
14237 2010-06-16 DJ Delorie <dj@redhat.com>
14238
14239 * common.opt (-fstrict-volatile-bitfields): new.
14240 * doc/invoke.texi: Document it.
14241 * fold-const.c (optimize_bit_field_compare): For volatile
14242 bitfields, use the field's type to determine the mode, not the
14243 field's size.
14244 * expr.c (expand_assignment): Likewise.
14245 (get_inner_reference): Likewise.
14246 (expand_expr_real_1): Likewise.
14247 * expmed.c (store_fixed_bit_field): Likewise.
14248 (extract_bit_field_1): Likewise.
14249 (extract_fixed_bit_field): Likewise.
14250
14251 2010-06-16 Richard Guenther <rguenther@suse.de>
14252
14253 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
14254
14255 2010-06-16 Douglas B Rupp <rupp@gnat.com>
14256
14257 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
14258 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
14259 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
14260 * debug.c: Likewise.
14261 * sdbout.c: Likewise.
14262 * vmsdbgout.c: Likewise.
14263 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
14264 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
14265 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
14266 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
14267 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
14268 * dwarf2out.c (dw_fde_struct): New fields
14269 dw_fde_vms_{end,begin}_prologue.
14270 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
14271 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
14272 (dwarf2out_vms_end_prologue): New function.
14273 (dwarf2out_vms_begin_epilogue): New function.
14274 (dw_val_struct): New value dw_val_class_vms_delta.
14275 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
14276 begin_epilogue for VMS.
14277 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
14278 new static functions.
14279 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
14280 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
14281 static functions.
14282 (print_die): New case dw_val_class_vms_delta.
14283 (attr_checksum): Likewise.
14284 (same_dw_val_p: Likewise.
14285 (size_of_die): Likewise.
14286 (value_format): Likewise.
14287 (output_die): Likewise.
14288 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
14289 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
14290 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
14291 dwarf2out_cfi_begin_epilogue
14292 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
14293
14294 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
14295
14296 * config/cris/cris-protos.h (cris_print_operand): Delete.
14297 (cris_print_operand_address): Delete.
14298 * config/cris/cris.h (PRINT_OPERAND): Delete.
14299 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14300 (PRINT_OPERAND_ADDRESS): Delete.
14301 * config/cris/cris.c (cris_print_operand_address): Make static.
14302 (cris_print_operand): Make static.
14303 (cris_print_operand_punct_valid_p): New function.
14304 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14305 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14306
14307 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
14308
14309 * config/arm/arm-protos.h (arm_print_operand): Delete.
14310 (arm_print_operand_address): Delete.
14311 * config/arm/arm.h (PRINT_OPERAND): Delete.
14312 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14313 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
14314 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
14315 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
14316 (arm_print_operand): Make static.
14317 (arm_print_operand_punct_valid_p): New function.
14318 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14319 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14320
14321 2010-06-16 Nick Clifton <nickc@redhat.com>
14322
14323 * config/rx/constraints.md (NEGint4): New constraint.
14324 * config/rx/rx.md (attr cc): Add set_zsc.
14325 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
14326 initialised.
14327 (cmpsf): Likewise.
14328 (call_internal): Clobber the cc0 register.
14329 (call_value_internal): Likewise.
14330 (cstoresi4): Likewise.
14331 (movsieq): Likewise.
14332 (movsine): Likewise.
14333 (addsi3): Add alternative to handle small negative constants.
14334 (sunsi3): Likewise.
14335 (addsi3): Do not set the O bit in the cc0 register.
14336 (adddi3): Likewise.
14337 (subsi3): Likewise.
14338 (subdi3): Likewise.
14339 (andsi3): Reorder alternatives to prefer shorter forms.
14340 (mulsi3): Likewise.
14341 (iorsi3): Likewise.
14342 (negsi2): Note that the cc0 flags are set.
14343 (rotlsi3): Note that only the Z and S bits are set in cc0.
14344 (lshrsi3): Likewise.
14345 (ashlsi3): Likewise.
14346 (subsf3): Use %Q for the MEM operand.
14347 (fix_truncsfsi2): Likewise.
14348 (floatsisf2): Likewise.
14349 (bitset): Remove early clobber from destination.
14350 (bitset_in_memory): Likewise.
14351 (lrintsf2): Clobber the cc0 register.
14352 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
14353 (rx_print_operand): Handle %N.
14354
14355 2010-06-16 Jan Hubicka <jh@suse.cz>
14356
14357 * df-core.c (df_compact_blocks): Free problem_temps vector.
14358
14359 2010-06-16 Martin Jambor <mjambor@suse.cz>
14360
14361 PR tree-optimization/43905
14362 * tree-sra.c: Include tree-inline.h.
14363 (create_abstract_origin): Removed.
14364 (modify_function): Version the call graph node instead of creating
14365 abstract origins and dealing with same_body aliases.
14366 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
14367 function is versionable.
14368 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
14369
14370 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
14371
14372 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
14373 (CHOOSE_DYNAMIC_LINKER): Update.
14374
14375 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
14376
14377 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
14378 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
14379 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
14380 *prefetch_3dnow_rex.
14381
14382 2010-06-15 Anatoly Sokolov <aesok@post.ru>
14383
14384 * target.h (struct asm_out):Add declare_constant_name field.
14385 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14386 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
14387 * output.h (default_asm_declare_constant_name): Declare.
14388 (assemble_label): Update prototype.
14389 * varasm.c (assemble_constant_contents): Use
14390 targetm.asm_out.declare_constant_name target hook.
14391 (assemble_label): Add 'file' argument.
14392 (default_asm_declare_constant_name): New function.
14393 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
14394 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
14395 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
14396
14397 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
14398 * config/darwin.c (darwin_asm_declare_constant_name): New function.
14399 (machopic_output_indirection): Update assemble_label argument list.
14400 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
14401 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14402
14403 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
14404
14405 PR middle-end/44391
14406 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14407 size_one_node for pointer types. Do not call gmp_cst_to_tree.
14408
14409 2010-06-15 Richard Guenther <rguenther@suse.de>
14410
14411 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
14412
14413 2010-06-15 Paul Brook <paul@codesourcery.com>
14414
14415 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
14416 hard-float ABI.
14417
14418 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
14419
14420 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
14421 don't get a vector type for output.
14422
14423 2010-06-15 Jakub Jelinek <jakub@redhat.com>
14424
14425 PR fortran/44536
14426 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
14427 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
14428 (LANG_HOOKS_DECLS): Add it.
14429 * gimplify.c (omp_notice_variable): Call
14430 lang_hooks.decls.omp_report_decl.
14431
14432 2010-06-15 Martin Jambor <mjambor@suse.cz>
14433
14434 PR lto/44464
14435 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
14436 on the newly dead SSA name.
14437
14438 2010-06-15 Alan Modra <amodra@gmail.com>
14439
14440 * doc/invoke.texi: Add mcmodel to powerpc options.
14441 * configure.ac: Add HAVE_LD_LARGE_TOC test.
14442 * configure: Regenerate.
14443 * config.in: Regenerate.
14444 * config/rs6000/linux64.opt (mcmodel): New.
14445 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
14446 (TARGET_CMODEL, SET_CMODEL): Define.
14447 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
14448 select CMODEL_MEDIUM default.
14449 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
14450 (TARGET_CMODEL): Define default.
14451 * config/rs6000/rs6000.c (cmodel): New variable.
14452 (rs6000_explicit_options): Add cmodel field.
14453 (rs6000_handle_option): Handle -mcmodel.
14454 (create_TOC_reference): Add largetoc_reg param. Generate high,
14455 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
14456 (rs6000_delegitimize_address): Recognise new toc reference rtl
14457 and minimal-toc rtl.
14458 (rs6000_legitimize_reload_address): Handle new toc references.
14459 (print_operand_address): Handle legitimate_constant_pool_address_p
14460 match before lo_sum.
14461 (rs6000_eliminate_indexed_memrefs): Tidy.
14462 (rs6000_emit_move): Tweak threshold for inlining constants.
14463 Keep rs6000_emit_allocate_stack large stack frame offsets
14464 loaded into r0 inline.
14465 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
14466 (tocrel_base, tocrel_offset): New variables.
14467 (toc_relative_expr_p): Set them here.
14468 (print_operand_address): Skip over any offset on constant pool address.
14469 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
14470 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
14471 (offsettable_ok_by_alignment): New function.
14472 (rs6000_emit_move): Address suitably aligned local symbol_refs
14473 relative to the toc pointer for -mcmodel=medium.
14474 (legitimate_constant_pool_address_p): Make param const_rtx. Add
14475 strict param. Allow lo_sum version of addressing. Verify reg
14476 used for -mminimal-toc and -mcmodel != small. Update all callers.
14477 * config/rs6000/constraints.md: Update for above change.
14478 * config/rs6000/predicates.md: Likewise.
14479 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
14480 code.
14481 (tls_gd): Split for -mcmodel=medium/large.
14482 (tls_gd_high, tls_gd_low): New.
14483 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
14484 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
14485 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
14486 (largetoc_high, largetoc_low): New.
14487 (cmptf_internal2): Add clobber.
14488 * config/rs6000/rs6000-protos.h: Update.
14489
14490 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
14491
14492 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
14493 true if no prefetch is going to be generated for a given group.
14494 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
14495 estimate the prefetch_count.
14496 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
14497 prefetch count by considering the unroll_factor and prefetch_mod
14498 for is_loop_prefetching_profitable.
14499
14500 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
14501
14502 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
14503 anything if the argument is not a MEM.
14504
14505 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
14506
14507 PR debug/43650
14508 PR debug/44181
14509 PR debug/44247
14510 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
14511 debug stmts.
14512 (canonicalize_loop_ivs): Likewise.
14513
14514 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
14515
14516 PR debug/43656
14517 * haifa-sched.c (setup_insn_reg_pressure_info,
14518 update_register_pressure): Reject debug insns.
14519 (ready_sort): Don't setup reg pressure for debug insns.
14520 (schedule_insn): Don't update reg pressure for debug insns.
14521
14522 2010-06-14 Richard Guenther <rguenther@suse.de>
14523
14524 * lto-streamer.c (cached_bp): Remove.
14525 (bitpack_delete): Likewise.
14526 (bitpack_create): Likewise.
14527 (bp_get_next_word): Likewise.
14528 (bp_pack_value, bp_unpack_value): Move ...
14529 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
14530 Re-implement.
14531 (struct bitpack_d): Likewise.
14532 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
14533 New inline functions.
14534 * lto-streamer-out.c (lto_output_bitpack): Remove.
14535 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
14536 (pack_value_fields): Adjust.
14537 (lto_write_tree): Likewise.
14538 (output_gimple_stmt): Likewise.
14539 (output_function): Likewise.
14540 * lto-streamer-in.c (input_gimple_stmt): Adjust.
14541 (input_function): Likewise.
14542 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
14543 (lto_input_bitpack): Remove.
14544 (lto_materialize_tree): Adjust.
14545 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
14546 * lto-cgraph.c (lto_output_edge): Adjust.
14547 (lto_output_node): Likewise.
14548 (lto_output_varpool_node): Likewise.
14549 (lto_output_ref): Likewise.
14550 (input_node): Likewise.
14551 (input_varpool_node): Likewise.
14552 (input_ref): Likewise.
14553 (input_edge): Likewise.
14554 (output_node_opt_summary): Likewise.
14555 (input_node_opt_summary): Likewise.
14556 * ipa-pure-const.c (pure_const_write_summary): Likewise.
14557 (pure_const_read_summary): Likewise.
14558 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
14559 (ipa_read_indirect_edge_info): Likewise.
14560 (ipa_write_node_info): Likewise.
14561 (ipa_read_node_info): Likewise.
14562
14563 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
14564
14565 PR target/44534
14566 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
14567 (vec_extract_lo_v16hi): Likewise.
14568 (vec_extract_lo_v32qi): Likewise.
14569
14570 2010-06-14 Jakub Jelinek <jakub@redhat.com>
14571
14572 PR bootstrap/44426
14573 * tree.h (build_call_expr): Don't define as vararg macro, instead
14574 add a prototype.
14575 * builtins.c (build_call_nofold): Remove.
14576 (expand_builtin_int_roundingfn, expand_builtin_pow,
14577 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
14578 expand_builtin_memset_args, expand_builtin_strcmp,
14579 expand_builtin_strncmp, expand_builtin_memory_chk): Use
14580 build_call_nofold_loc instead of build_call_nofold.
14581 (build_call_expr): New function.
14582
14583 PR tree-optimization/44508
14584 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
14585 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
14586 don't eliminate trivially dead stmts.
14587 * tree-vrp.c (vrp_finalize): Pass false as last argument
14588 to substitute_and_fold.
14589 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
14590 to substitute_and_fold.
14591 * tree-ssa-ccp.c (ccp_finalize): Likewise.
14592
14593 PR bootstrap/44509
14594 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
14595
14596 2010-06-14 Ira Rosen <irar@il.ibm.com>
14597
14598 PR tree-optimization/44507
14599 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
14600 to build initial vector for BIT_AND_EXPR.
14601 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14602
14603 2010-06-14 Jakub Jelinek <jakub@redhat.com>
14604
14605 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
14606 adjust z10prop set_attr.
14607
14608 2010-06-13 Jan Hubicka <jh@suse.cz>
14609
14610 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
14611 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
14612 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
14613 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
14614 datastructure checks into checking asserts.
14615 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
14616 * tree-ssa-sccvn.c (VN_INFO): Likewise.
14617 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
14618 df_ref_create_structure): Likewise.
14619 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
14620 pool_free): Use gcc_checking_assert.
14621 * alias.c (get_alias_set): Likewise.
14622 * var-tracking.c (variable_htab_free, shared_hash_copy,
14623 canonicalize_values_mark, variable_merge_over_cur): Likewise.
14624 * lto-streamer.c (bp_unpack_value): Likewise.
14625
14626 2010-06-13 Richard Guenther <rguenther@suse.de>
14627
14628 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
14629 Do not stream but initialize TYPE_CANONICAL to NULL.
14630 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
14631 * gimple.c (gimple_types_compatible_p): Disregard
14632 TYPE_STRUCTURAL_EQUALITY_P.
14633 (gimple_register_type): Use TYPE_CANONICAL as cache.
14634 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
14635 before registering common types.
14636 * config/i386/i386.c (ix86_function_arg_boundary): Do not
14637 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
14638 * tree.h (TYPE_CANONICAL): Clarify documentation.
14639
14640 2010-06-13 Anatoly Sokolov <aesok@post.ru>
14641
14642 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14643 LIBCALL_VALUE): Remove macros.
14644 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
14645 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14646 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14647 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
14648 (ia64_function_value): Make static. Handle receiving the function
14649 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
14650
14651 2010-06-12 Jan Hubicka <jh@suse.cz>
14652
14653 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
14654 at correct place.
14655
14656 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
14657
14658 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
14659
14660 2010-06-12 Jan Hubicka <jh@suse.cz>
14661
14662 * df-core.c (df_clear_bb_info): New function.
14663 (df_set_blocks): bb_info is always allocated.
14664 (df_get_bb_info): Use block_info_elt_size.
14665 (df_set_bb_info): Likewise.
14666 (df_compact_blocks): Update for new block_info.
14667 (grow_bb_info): New function.
14668 * df-problems.c (df_grow_bb_info): Move to df-core.c
14669 (df_rd_set_bb_info): Remove.
14670 (df_rd_free_bb_info): Do not free block pool.
14671 (df_rd_alloc): Do not create pool, use check for
14672 obstack presence instead of NULL pointer for new blocks.
14673 (df_rd_free): DO not free alloc pool; clear block_info.
14674 (problem_RD): Add size of block info structure.
14675 (df_lr_set_bb_info): Remove.
14676 (df_lr_free_bb_info): Do not free block pool.
14677 (df_lr_alloc): Do not create pool, use check for
14678 obstack presence instead of NULL pointer for new blocks.
14679 (df_lr_free): DO not free alloc pool; clear block_info.
14680 (problem_LR): Add size of block info structure.
14681 (df_live_set_bb_info): Remove.
14682 (df_live_free_bb_info): Do not free block pool.
14683 (df_live_alloc): Do not create pool, use check for
14684 obstack presence instead of NULL pointer for new blocks.
14685 (df_live_free): DO not free alloc pool; clear block_info.
14686 (problem_LIVE): Add size of block info structure.
14687 (problem_CHAIN): Add size of block info structure.
14688 (df_byte_lr_set_bb_info): Remove.
14689 (df_byte_lr_free_bb_info): Do not free block pool.
14690 (df_byte_lr_alloc): Do not create pool, use check for
14691 obstack presence instead of NULL pointer for new blocks.
14692 (df_byte_lr_free): DO not free alloc pool; clear block_info.
14693 (problem_BYTE_LR): Add size of block info structure.
14694 (problem_NOTE): Add size of block info structure.
14695 (df_byte_MD_set_bb_info): Remove.
14696 (df_byte_MD_free_bb_info): Do not free block pool.
14697 (df_byte_MD_alloc): Do not create pool, use check for
14698 obstack presence instead of NULL pointer for new blocks.
14699 (df_byte_MD_free): DO not free alloc pool; clear block_info.
14700 (problem_BD): Add size of block info structure.
14701 * df-scan.c (df_scan_free_internal): Free block pool.
14702 (df_scan_set_bb_info): Remove.
14703 (df_scan_free_bb_info): Check for artificial_defs instead
14704 of bb_info being non-NULL.
14705 (df_scan_alloc): DO not create df_scan_block pool.
14706 (problem_SCAN): Set size of block info.
14707 (df_bb_refs_record): Do not allocate bb_info.
14708 * df.h (df_problem): Add block_info_elt_size.
14709 (struct dataflow): Change block_info to void *.
14710 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14711 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14712 in-line structures.
14713
14714 2010-06-12 Jan Hubicka <jh@suse.cz>
14715
14716 PR tree-optimize/44485
14717 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14718 containing use of return value of noreturn function.
14719
14720 2010-06-12 Anatoly Sokolov <aesok@post.ru>
14721
14722 * targhooks.c (default_function_value): Don't use
14723 FUNCTION_OUTGOING_VALUE.
14724 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14725 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14726
14727 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
14728
14729 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14730 Add crtfastmath.o to extra_parts.
14731 * config/mips/crtfastmath.c: New.
14732 * config/mips/linux.h (ENDFILE_SPEC): New.
14733
14734 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
14735
14736 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14737 old_type in parameter.
14738 (gcc_type_for_value): Update call to gcc_type_for_interval.
14739 (compute_type_for_level_1): Renamed compute_type_for_level.
14740 Update call to gcc_type_for_interval.
14741
14742 2010-06-11 Joseph Myers <joseph@codesourcery.com>
14743
14744 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14745 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14746
14747 2010-06-11 Joseph Myers <joseph@codesourcery.com>
14748
14749 * opts-common.c: Include options.h.
14750 (integral_argument): Move from opts.c.
14751 (decode_cmdline_option): New. Based on read_cmdline_option.
14752 * opts.c (integral_argument): Move to opts-common.c.
14753 (read_cmdline_option): Move most contents to
14754 decode_cmdline_option. Use %qs in diagnostics.
14755 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14756 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14757 decode_cmdline_option): New.
14758
14759 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14760
14761 PR target/44481
14762 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14763 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14764 (partiysi2_cmp): Ditto.
14765 (*partiyhi2_cmp): Ditto.
14766 (*parityqi2_cmp): Remove.
14767
14768 2010-06-11 Jan Hubicka <jh@suse.cz>
14769
14770 * bitmap.h (bmp_iter_next_bit): New.
14771 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14772
14773 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
14774 Eric Botcazou <ebotcazou@adacore.com>
14775
14776 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14777 computed cost.
14778
14779 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14780
14781 * config/i386/i386.md (unspec): New define_c_enum.
14782 (unspecv): Ditto.
14783
14784 2010-06-10 Jakub Jelinek <jakub@redhat.com>
14785
14786 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14787
14788 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
14789
14790 PR middle-end/44483
14791 * tree-if-conv.c (bb_predicate_s): New struct.
14792 (bb_predicate_p): New.
14793 (bb_has_predicate): New.
14794 (bb_predicate): New.
14795 (set_bb_predicate): New.
14796 (bb_predicate_gimplified_stmts): New.
14797 (set_bb_predicate_gimplified_stmts): New.
14798 (add_bb_predicate_gimplified_stmts): New.
14799 (init_bb_predicate): New.
14800 (free_bb_predicate): New.
14801 (is_predicated): Use bb_predicate.
14802 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14803 (predicate_bbs): Same. Gimplify the condition of the basic blocks
14804 before processing their successors.
14805 (clean_predicate_lists): Removed.
14806 (find_phi_replacement_condition): Use bb_predicate.
14807 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
14808 computations.
14809 (insert_gimplified_predicates): New.
14810 (combine_blocks): Call insert_gimplified_predicates.
14811 (tree_if_conversion): Call free_bb_predicate instead of
14812 clean_predicate_lists.
14813
14814 2010-10-11 Paul Brook <paul@codesourcery.com>
14815
14816 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14817 * config/arm/arm.c (all_architectures): Change v7e-m default to
14818 cortexm4.
14819 * config/arm/arm-cores.def: Add cortex-m4.
14820 * config/arm/arm-tune.md: Regenerate.
14821
14822 2010-06-11 Jan Hubicka <jh@suse.cz>
14823
14824 * ipa-pure-const.c (special_builtlin_state): New function.
14825 (check_call): Use it instead of special casign BUILT_IN_RETURN.
14826 (propagate_pure_const): Use it.
14827
14828 2010-06-11 Jan Hubicka <jh@suse.cz>
14829
14830 * df-problems.c (df_live_scratch): Convert to bitmap_head.
14831 (df_live_alloc): Initialize df_live_scratch when initializing
14832 problem_data.
14833 (df_live_transfer_function): Update uses of df_live_scratch.
14834 (df_live_free): Free problem_data; clear df_live_scratch before
14835 releasing the obstack.
14836 (df_md_free): Free problem data.
14837
14838 2010-06-11 Jan Hubicka <jh@suse.cz>
14839
14840 * doc/invoke.texi (Wsuggest-attribute): Document.
14841 (Wmissing-noreturn): Remove.
14842 * ipa-pure-const.c (warn_function_noreturn): New function.
14843 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
14844 warn_missing_noreturn.
14845 * common.opt (Wsuggest-attribute=noreturn): New.
14846 * tree-flow.h (warn_function_noreturn): Declare.
14847 * tree-cfg.c (execute_warn_function_noreturn): Use
14848 warn_function_noreturn.
14849 (gate_warn_function_noreturn): New.
14850 (pass_warn_function_noreturn): Update.
14851
14852 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14853
14854 * c-typeck.c (handle_warn_cast_qual): Add loc
14855 parameter. Improve warning message.
14856 (build_c_cast): Pass location to handle_warn_cast_qual.
14857
14858 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
14859
14860 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
14861 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
14862 insn mnemonic.
14863 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
14864
14865 2010-06-10 Dodji Seketeli <dodji@redhat.com>
14866
14867 Fix bootstap on mips
14868 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
14869 be naming typedefs.
14870
14871 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
14872
14873 * system.h (helper_const_non_const_cast): New inline for
14874 gcc version <= 4.0.
14875 (CONST_CAST2): For gcc version <= 4.0 use
14876 new helper to do const/non-const casting.
14877
14878 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14879
14880 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
14881 * Makefile.in (OBJS-common): Include insn-enums.o.
14882 (insn-enums.o): New rule.
14883 (simple_generated_c): Add insn-enums.c.
14884 (build/genenums.o): New rule.
14885 (genprogmd): Add "enums".
14886 * genconstants.c (print_enum_type): Declare a C string array
14887 for each enum.
14888 * genenums.c: New file.
14889 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
14890 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
14891 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
14892
14893 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14894
14895 * doc/md.texi (define_enum_attr): Document.
14896 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
14897 * read-md.h (lookup_enum_type): Declare.
14898 * read-md.c (lookup_enum_type): New function.
14899 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
14900 * genattrtab.c (attr_desc): Add an enum_name field.
14901 (evaluate_eq_attr): Take the associated attribute as argument.
14902 Get the enum prefix from the enum_name field, if defined.
14903 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
14904 (simplify_test_exp): Pass attr to evaluate_eq_attr.
14905 (add_attr_value): New function, split out from...
14906 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
14907 (write_test_expr): Pass attr to evaluate_eq_attr.
14908 (write_attr_get): Use the enum_name as the enum tag, if defined.
14909 (write_attr_valueq): Use the enum_name as a prefix, if defined.
14910 (find_attr): Initialize enum_name.
14911 (main): Handle DEFINE_ENUM_ATTR.
14912 * gensupport.c (process_rtx): Likewise.
14913 * config/mips/mips.h (mips_tune_attr): Delete.
14914 * config/mips/mips.md (cpu): Use define_attr_enum.
14915
14916 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
14917
14918 * doc/md.texi (define_c_enum, define_enum): Document.
14919 * read-md.h (md_constant): Add a parent_enum field.
14920 (enum_value, enum_type): New structures.
14921 (upcase_string, traverse_enum_types): Declare.
14922 * read-md.c (enum_types): New variable.
14923 (upcase_string, add_constant): New functions.
14924 (handle_constants): Don't create the hash table here.
14925 Use add_constant.
14926 (traverse_md_constants): Don't check for a null md_constants.
14927 (decimal_string, handle_enum, traverse_enum_types): New functions.
14928 (read_md_files): Initialize md_constants and md_enums.
14929 * genconstants.c (print_md_constant): Ignore info argument.
14930 Only print constants that belong to no enum.
14931 (print_enum_type): New function.
14932 (main): Don't pass stdout to print_md_constant. Call print_enum_type
14933 for each defined enum type.
14934 * config/mips/mips.md (processor): New define_enum.
14935 (unspec): New define_c_enum.
14936 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
14937 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
14938 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
14939 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
14940 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
14941 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
14942 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
14943 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
14944 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
14945 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
14946 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
14947 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
14948 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
14949 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
14950 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
14951 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
14952 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
14953 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
14954 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
14955 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
14956 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
14957 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
14958 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14959 (UNSPEC_RDDSP): Move to mips-dsp.md.
14960 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
14961 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
14962 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
14963 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
14964 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
14965 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
14966 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
14967 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
14968 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
14969 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
14970 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
14971 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
14972 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
14973 Moved to mips-dspr2.md.
14974 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
14975 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
14976 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
14977 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
14978 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
14979 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
14980 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14981 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14982 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14983 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14984 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14985 UNSPEC_LOONGSON_PSADBH)
14986 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14987 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14988 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
14989 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14990 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14991 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14992 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
14993 (cpu): Update comment.
14994 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
14995 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
14996 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
14997 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
14998 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
14999 UNSPEC_LOONGSON_PCMPEQ)
15000 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
15001 UNSPEC_LOONGSON_PINSR_0)
15002 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
15003 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
15004 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
15005 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
15006 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
15007 UNSPEC_LOONGSON_PSADBH)
15008 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
15009 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
15010 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
15011 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15012 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15013 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15014 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
15015 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
15016 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
15017 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
15018 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
15019 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
15020 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
15021 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
15022 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
15023 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
15024 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
15025 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
15026 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
15027 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
15028 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
15029 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
15030 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
15031 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
15032 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
15033 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
15034 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
15035 (UNSPEC_RDDSP): Moved from mips.md.
15036 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
15037 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
15038 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
15039 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
15040 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
15041 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
15042 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
15043 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
15044 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
15045 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
15046 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
15047 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
15048 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
15049 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
15050 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
15051 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
15052 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
15053 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
15054 (UNSPEC_SCC): Moved from mips.md.
15055 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
15056 "processor_type" to "processor".
15057 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
15058 * config/mips/mips.h (processor_type): Delete.
15059 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
15060 "processor_type" to "processor".
15061
15062 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15063
15064 * configure.ac (tm_include_list): Add insn-constants.h.
15065 * configure: Regenerate.
15066 * Makefile.in (GTM_H): Move insn-constants.h here from...
15067 (TM_H): ...here.
15068 * mkconfig.sh: Remove special handling for insn-constants.h.
15069
15070 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15071
15072 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
15073 (BUILD_MD): ...this new variable.
15074 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
15075 that include the old contents of simple_generated_h and
15076 simple_generated_c.
15077 (simple_generated_h, simple_generated_c): Include them. Add
15078 insn-constants.h.
15079 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
15080 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
15081 Remove these dependencies from the main rule and include
15082 insn-conditions.md in the command line only if it appears
15083 in the dependency list.
15084 (insn-constants.h, s-constants): Delete.
15085 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
15086 or gensupport.h.
15087 (build/genmddeps.o): Likewise.
15088 (genprogrtl): New variable that contains everything from genprogmd
15089 except mddeps and constants.
15090 (genprogmd): Redefine in terms of genprogrtl. Make these programs
15091 depend on $(BUILD_MD)
15092 (genprog): New variable. Make these programs depend on
15093 $(BUILD_ERRORS).
15094 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
15095 (main): Use read_md_files instead of init_rtx_reader_args.
15096 * genconstants.c: As for genmddeps.c.
15097 * read-md.h (read_skip_construct): Declare.
15098 * read-md.c (read_skip_construct): New function.
15099 (handle_file): Allow a null handle_directive, skipping the
15100 construct if so.
15101 (parse_include): Update the comment accordingly.
15102
15103 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15104
15105 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
15106 * genmddeps.c: Include read-md.h.
15107 (main): Call init_rtx_reader_args instead of init_md_reader_args.
15108 * genattr.c (main): Likewise.
15109 * genattrtab.c (main): Likewise.
15110 * genautomata.c (main): Likewise.
15111 * gencodes.c (main): Likewise.
15112 * genconditions.c (main): Likewise.
15113 * genconfig.c (main): Likewise.
15114 * genconstants.c (main): Likewise.
15115 * genemit.c (main): Likewise.
15116 * genextract.c (main): Likewise.
15117 * genflags.c (main): Likewise.
15118 * genopinit.c (main): Likewise.
15119 * genoutput.c (main): Likewise.
15120 * genpeep.c (main): Likewise.
15121 * genrecog.c (main): Likewise.
15122 * genpreds.c (main): Likewise.
15123 * gensupport.h (in_fname): Move to read-md.h.
15124 (init_md_reader_args_cb): Rename to...
15125 (init_rtx_reader_args_cb): ...this and return a bool.
15126 (init_md_reader_args): Rename to...
15127 (init_rtx_reader_args): ...this and return a bool.
15128 (include_callback): Move to read-md.h.
15129 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
15130 (file_name_list, first_dir_md_include): Move to read-md.c
15131 (first_bracket_include): Delete unused variable.
15132 (last_dir_md_include): Move to read-md.c.
15133 (process_include): Delete, moving code to read-md.c:handle_include.
15134 (process_rtx): Don't handle INCLUDE.
15135 (save_string): Delete.
15136 (rtx_handle_directive): New function.
15137 (init_md_reader_args_cb): Rename to...
15138 (init_rtx_reader_args_cb): ...this and return a boolean success value.
15139 Use read_md_args.
15140 (init_md_reader_args): Rename to...
15141 (init_rtx_reader_args): ...this and return a boolean success value.
15142 * rtl.def (INCLUDE): Delete.
15143 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
15144 argument.
15145 * read-rtl.c (read_conditions): Don't gobble ')' here.
15146 (read_mapping): Likewise.
15147 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
15148 Handle top-level non-rtx constructs here rather than in read_rtx_1.
15149 Store the whole queue in *X. Remove call to init_md_reader.
15150 (read_rtx_1): Rename to...
15151 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
15152 Don't handle top-level non-rtx constructs here. Don't handle (nil)
15153 here.
15154 (read_nested_rtx): New function. Handle (nil) here rather than
15155 in read_rtx_code.
15156 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
15157 gobble ')' here.
15158 * read-md.h (directive_handler_t): New type.
15159 (in_fname, include_callback): Moved from read-md.h.
15160 (read_constants, init_md_reader): Delete.
15161 (read_md_files): Declare.
15162 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
15163 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
15164 from gensupport.c.
15165 (read_constants): Rename to...
15166 (handle_constants): ...this. Don't gobble ')' here.
15167 (handle_include, handle_file, handle_toplevel_file)
15168 (parse_include): New functions, mostly taken from gensupport.c.
15169 (init_md_reader): Subsume into...
15170 (read_md_files): ...this new function.
15171
15172 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15173
15174 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
15175 (unread_char): Decrement read_md_lineno after putting back '\n'.
15176 * read-md.c (fatal_with_file_and_line): Push back any characters
15177 that we decide not to add to the context.
15178 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
15179 fatal_expected_char in cases where '/' ends a line (for example).
15180 (read_name): Don't increment read_md_lineno here.
15181 (read_escape): Likewise.
15182 (read_quoted_string): Likewise.
15183 (read_braced_string): Likewise.
15184
15185 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15186
15187 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
15188 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
15189 * genconstants.c: Include read-md.h.
15190 * read-rtl.c (md_constants): Move to read-md.c.
15191 (md_name): Move to read-md.h.
15192 (initialize_iterators): Use leading_string_hash instead of def_hash
15193 and leading_string_eq_p instead of def_name_eq_p.
15194 (read_name): Move to read-md.c.
15195 (def_hash, def_name_eq_p): Delete.
15196 (read_constants, traverse_md_constants): Move to read-md.c.
15197 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
15198 * read-md.h: Include hashtab.h.
15199 (md_name): Moved from read-rtl.c.
15200 (md_constant): Moved from read-md.h.
15201 (leading_string_hash, leading_string_eq_p, read_name)
15202 (read_constants, traverse_md_constants): Declare.
15203 * read-md.c (md_constants): Moved from read-rtl.c.
15204 (leading_string_hash, leading_string_eq_p): New functions.
15205 (read_name, read_constants, traverse_md_constants): Moved from
15206 read-rtl.c.
15207
15208 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15209
15210 * read-rtl.c (md_name): New structure.
15211 (read_name): Take an md_name instead of a buffer pointer.
15212 Use the "string" field instead of strcpy when expanding constants.
15213 (read_constants): Remove the tmp_char argument. Update the calls
15214 to read_name, using two local name buffers instead of the tmp_char
15215 argument. Merge the constant-creation code.
15216 (read_conditions): Remove the tmp_char argument. Update the calls
15217 to read_name, using a local name buffer instead of the tmp_char
15218 argument.
15219 (read_mapping): Replace tmp_char variable with a local name buffer.
15220 Update the calls to read_name.
15221 (read_rtx_1): Likewise. Update the calls to read_constants and
15222 read_conditions.
15223
15224 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15225
15226 * Makefile.in (build/read-md.o): Depend on errors.h.
15227 * read-md.h (error_with_line): Declare.
15228 * read-md.c: Include errors.h.
15229 (message_with_line_1): New function, extracted from...
15230 (message_with_line): ...here.
15231 (error_with_line): New function.
15232 * genattrtab.c: If a call to message_with_line is followed by
15233 "have_error = 1;", replace both statements with a call to
15234 error_with_line.
15235 * genoutput.c: Likewise.
15236 * genpreds.c: Likewise.
15237 * genrecog.c: If a call to message_with_line is followed by
15238 "error_count++;", replace both statements with a call to
15239 error_with_line.
15240 (errorcount): Delete.
15241 (main): Don't check it.
15242 * gensupport.c: If a call to message_with_line is followed by
15243 "errors = 1;", replace both statements with a call to error_with_line.
15244 (errors): Delete.
15245 (process_define_cond_exec): Check have_error instead of errors.
15246 (init_md_reader_args_cb): Likewise. Don't set errors.
15247
15248 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15249
15250 * read-md.h (read_md_file): Declare.
15251 (read_char, unread_char): New functions.
15252 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15253 (read_quoted_string, read_string): Remove FILE * argument.
15254 * read-md.c (read_md_file): New variable.
15255 (read_md_filename, read_md_lineno): Update comments and remove
15256 unnecessary initialization.
15257 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15258 (read_escape, read_quoted_string, read_braced_string, read_string):
15259 Remove FILE * argument. Update calls accordingly, using read_char
15260 and unread_char instead of getc and ungetc.
15261 * rtl.h (read_rtx): Remove FILE * argument.
15262 * read-rtl.c (iterator_group): Remove FILE * argument from
15263 "find_builtin".
15264 (iterator_traverse_data): Remove "infile" field.
15265 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
15266 (add_mapping, read_name, read_constants, read_conditions)
15267 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
15268 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
15269 Remove file arguments from all calls, using read_char and unread_char
15270 instead of getc and ungetc.
15271 * gensupport.c (process_include): Preserve read_md_file around
15272 the include. Set read_md_file to the handle of the included file.
15273 Update call to read_rtx.
15274 (init_md_reader_args_cb): Set read_md_file to the handle of the file
15275 and remove local FILE *. Update calls to read_rtx.
15276
15277 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15278
15279 * read-md.h (read_rtx_lineno): Rename to...
15280 (read_md_lineno): ...this.
15281 (read_rtx_filename): Rename to...
15282 (read_md_filename): ...this.
15283 (copy_rtx_ptr_loc): Rename to...
15284 (copy_md_ptr_loc): ...this.
15285 (print_rtx_ptr_loc): Rename to...
15286 (print_md_ptr_loc): ...this.
15287 * read-md.c: Likewise. Update references after renaming.
15288 (string_obstack): Replace RTL with MD in comment.
15289 (set_rtx_ptr_loc): Rename to...
15290 (set_md_ptr_loc): ...this.
15291 (get_rtx_ptr_loc): Rename to...
15292 (get_md_ptr_loc): ...this.
15293 * genconditions.c: Update references after renaming.
15294 * genemit.c: Likewise.
15295 * genoutput.c: Likewise.
15296 * genpreds.c: Likewise.
15297 * gensupport.c: Likewise.
15298 * read-rtl.c: Likewise.
15299
15300 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
15301
15302 * Makefile.in (READ_MD_H): New variable.
15303 (BUILD_RTL): Add build/read-md.o.
15304 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
15305 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
15306 (build/genattrtab.o, build/genconditions.o build/genemit.o)
15307 (build/genextract.o, build/genflags.o, build/genoutput.o)
15308 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
15309 (build/read-md.o): New rule.
15310 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
15311 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
15312 * coretypes.h: ...here.
15313 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
15314 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
15315 * genattr.c: Include read-md.h.
15316 * genattrtab.c: Likewise.
15317 * genconditions.c: Likewise.
15318 * genemit.c: Likewise.
15319 * genextract.c: Likewise.
15320 * genflags.c: Likewise.
15321 * genoutput.c: Likewise.
15322 * genpreds.c: Likewise.
15323 * genrecog.c: Likewise.
15324 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
15325 (join_c_conditions, print_c_condition, read_rtx_filename)
15326 (read_rtx_lineno): Move to read-md.h.
15327 * read-rtl.c: Include read-md.h.
15328 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
15329 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
15330 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
15331 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
15332 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
15333 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
15334 (read_braced_string, read_string): Move to read-md.c.
15335 (read_rtx): Move some initialization to init_md_reader and call
15336 init_md_reader here.
15337 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
15338 Move to read-md.h.
15339 * gensupport.c: Include read-md.h.
15340 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
15341 * read-md.h, read-md.c: New files.
15342
15343 2010-06-10 Anatoly Sokolov <aesok@post.ru>
15344
15345 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15346 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15347 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
15348 * config/moxie/moxie.c (moxie_function_value): Make static.
15349 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
15350 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15351
15352 2010-06-10 Martin Jambor <mjambor@suse.cz>
15353
15354 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
15355 * dbgcnt.def (tree_sra): New counter.
15356 * tree-sra.c: Include dbgcnt.h.
15357 (gate_intra_sra): Check tree_sra debug counter.
15358
15359 2010-06-10 Martin Jambor <mjambor@suse.cz>
15360
15361 PR tree-optimization/44258
15362 * tree-sra.c (build_access_subtree): Return false iff there is a
15363 partial overlap.
15364 (build_access_trees): Likewise.
15365 (analyze_all_variable_accesses): Disqualify candidates if
15366 build_access_trees returns true for them.
15367
15368 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
15369
15370 PR debug/41371
15371 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
15372 tail-recurse into canonical node. Fast-forward over
15373 non-canonical VALUEs.
15374
15375 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
15376
15377 PR boostrap/44470
15378 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
15379 (*addsi_1_zext) <TYPE_LEA>: Likewise.
15380 (add lea splitter): Likewise.
15381 (add_zext lea splitter): Likewise.
15382
15383 2010-06-10 Joseph Myers <joseph@codesourcery.com>
15384
15385 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
15386
15387 2010-06-10 Jan Hubicka <jh@suse.cz>
15388
15389 * df-problems.c (df_live_problem_data): Add live_bitmaps.
15390 (df_live_alloc): Initialize problem data and live_osbtacks.
15391 (df_live_finalize): Remove obstack, problem data; do not
15392 clear all bitmaps.
15393 (df_live_top_dump, df_live_bottom_dump): Do not dump old
15394 data when not allocated.
15395 (df_live_verify_solution_start): Do not allocate problem data.
15396 (df_live_verify_solution_end): Check if out is allocated.
15397 (struct df_md_problem_data): New structure.
15398 (df_md_alloc): Allocate problem data.
15399 (df_md_free): Free problem data; do not clear bitmaps.
15400
15401 2010-06-10 Jan Beulich <jbeulich@novell.com>
15402
15403 PR bootstrap/37304
15404 * configure.ac: Replace $() with ${} when intending to expand
15405 variables rather than invoking commands.
15406 * configure: Re-generate.
15407
15408 2010-06-10 Jan Hubicka <jh@suse.cz>
15409
15410 PR rtl-optimization/44460
15411 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
15412 TYPE_NEEDS_CONSTRUCTING sanity check.
15413
15414 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
15415
15416 * doc/include/fdl.texi: Move to GFDL version 1.3.
15417
15418 * doc/cpp.texi: Move to GFDL version 1.3.
15419 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
15420 * doc/gccint.texi: Move to GFDL version 1.3.
15421 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
15422 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
15423 * doc/invoke.texi: Move to GFDL version 1.3.
15424
15425 2010-06-09 Jan Hubicka <jh@suse.cz>
15426
15427 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
15428 Break out from ...
15429 (propagate) ... here; swap the order.
15430
15431 2010-06-09 Jan Hubicka <jh@suse.cz>
15432
15433 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
15434 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
15435 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
15436 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
15437
15438 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
15439
15440 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
15441 Do not the gather memory reference in the outer loop if the step
15442 is not a constant.
15443
15444 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
15445
15446 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
15447 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
15448 8 to 4. Minor change of the related comments.
15449
15450 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
15451
15452 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
15453 the scev analysis when the variable is not used outside the loop
15454 in a close phi node: call compute_overall_effect_of_inner_loop.
15455
15456 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
15457
15458 * graphite-sese-to-poly.c (single_pred_cond): Renamed
15459 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
15460 (build_sese_conditions_before): Renamed call to single_pred_cond.
15461 (build_sese_conditions_after): Same.
15462
15463 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
15464
15465 * graphite-poly.h: Fix comments and indentation.
15466 * graphite-sese-to-poly.c: Same.
15467 (build_sese_conditions_before): Compute stmt and gbb only when needed.
15468 * tree-chrec.c: Fix comments and indentation.
15469 (tree-ssa-loop-niter.c): Same.
15470
15471 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
15472
15473 PR rtl-optimization/42461
15474 * dce.c (deletable_insn_p): Return true for const or pure calls again.
15475 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
15476
15477 2010-06-09 Jan Hubicka <jh@suse.cz>
15478
15479 * bitmap.c (bitmap_and): Walk array forward.
15480 (bitmap_and_compl_into): Likewise.
15481 (bitmap_xor): Likewise.
15482 (bitmap_xor_into): Likewise.
15483 (bitmap_equal_p): Likewise.
15484 (bitmap_intersect_p): Likewise.
15485 (bitmap_intersect_compl_p): Likewise.
15486 (bitmap_ior_and_into): Likewise.
15487 (bitmap_elt_copy): Likewise.
15488 (bitmap_and_compl): Likewise.
15489 (bitmap_elt_ior): Likewise.
15490
15491 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
15492
15493 * opts-common.c (prune_options): Ensure replacement argv array
15494 is correctly terminated by a NULL entry.
15495
15496 2010-06-09 Jan Hubicka <jh@suse.cz>
15497
15498 * cgraph.h (varpool_first_static_initializer,
15499 varpool_next_static_initializer): Make checking only when
15500 checking enabled.
15501 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
15502 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
15503 gcc_assert to gcc_checking_assert.
15504 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
15505 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
15506 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
15507 op_iter_init_phiuse, op_iter_init_phidef,
15508 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
15509 gcc_checking_assert.
15510 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
15511 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
15512 partition_is_global, live_on_entry, live_on_exit,
15513 live_merge_and_clear): Likewise.
15514 * system.h (gcc_checking_assert): New macro.
15515 * gimple.h (set_bb_seq): Use gcc_checking_assert.
15516
15517 2010-06-09 Jason Merrill <jason@redhat.com>
15518
15519 * Makefile.in (TAGS): Collect tags info from c-family.
15520
15521 2010-06-09 Jan Hubicka <jh@suse.cz>
15522
15523 * gimple.h (gcc_gimple_checking_assert): New macro.
15524 (gimple_set_def_ops, gimple_set_use_ops,
15525 gimple_set_vuse, gimple_set_vdef,
15526 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
15527 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
15528 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
15529 gimple_asm_output_op, gimple_asm_output_op_ptr,
15530 gimple_asm_set_output_op, gimple_asm_clobber_op,
15531 gimple_asm_set_clobber_op, gimple_asm_label_op,
15532 gimple_asm_set_label_op, gimple_try_set_kind,
15533 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
15534 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
15535 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
15536 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
15537 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
15538 gimple_omp_for_set_initial, gimple_omp_for_final,
15539 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
15540 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
15541 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
15542 conditional with ENABLE_GIMPLE_CHECKING.
15543 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
15544
15545 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
15546
15547 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
15548 (get_computation_cost_at): Use it.
15549 (determine_use_iv_cost_condition): Likewise.
15550 (determine_iv_cost): Likewise.
15551
15552 2010-06-09 Richard Guenther <rguenther@suse.de>
15553
15554 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
15555 replace constants.
15556
15557 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
15558
15559 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
15560
15561 2010-06-09 Martin Jambor <mjambor@suse.cz>
15562
15563 PR tree-optimization/44423
15564 * tree-sra.c (dump_access): Dump also grp_assignment_read.
15565 (analyze_access_subtree): Pass negative allow_replacements to children
15566 if the current type is scalar.
15567
15568 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
15569
15570 PR testsuite/42843
15571 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
15572 * doc/plugins.texi (Plugin license check): Update information
15573 on type of plugin_is_GPL_compatible.
15574 * Makefile.in (PLUGINCC): Define as $(COMPILER).
15575 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
15576
15577 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
15578
15579 * config/arm/arm.c (thumb2_reorg): New function.
15580 (arm_reorg): Call it.
15581 * config/arm/thumb2.md (define_peephole2 for flag clobbering
15582 arithmetic operations): Delete.
15583
15584 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
15585
15586 PR target/44067
15587 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
15588 e500v2 target.
15589
15590 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
15591
15592 PR plugins/44459
15593 * gcc-plugin.h: Encapsulate all declarations in extern "C".
15594
15595 2010-06-08 Jan Hubicka <jh@suse.cz>
15596
15597 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
15598 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
15599
15600 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
15601
15602 PR tree-optimization/39874
15603 PR middle-end/28685
15604 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
15605 Declare.
15606 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
15607 same_bool_result_p): New.
15608 (and_var_with_comparison, and_var_with_comparison_1,
15609 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
15610 (or_var_with_comparison, or_var_with_comparison_1,
15611 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
15612 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
15613 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
15614 of combine_comparisons.
15615 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
15616
15617 2010-06-08 Anatoly Sokolov <aesok@post.ru>
15618
15619 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15620 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15621 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
15622 pdp11_function_value_regno_p): New functions.
15623 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15624 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15625
15626 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
15627
15628 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
15629 Thumb-2 in the MINUS case.
15630
15631 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15632
15633 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
15634
15635 * doc/gty.texi (GTY Options): Document typed GC allocation and
15636 variable_size GTY option.
15637
15638 * ggc-internal.h: New.
15639
15640 * ggc.h: Update copyright year.
15641 (digit_string): Move to stringpool.c.
15642 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
15643 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
15644 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
15645 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
15646 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
15647 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
15648 (ggc_force_collect, ggc_get_size, ggc_statistics)
15649 (ggc_print_common_statistics): Move to ggc-internal.h.
15650 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
15651 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
15652 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
15653 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
15654 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
15655 (ggc_alloc_zone_pass_stat): Remove.
15656 (ggc_internal_alloc_stat, ggc_internal_alloc)
15657 (ggc_internal_cleared_alloc_stat): New.
15658 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
15659 (ggc_internal_vec_alloc_stat)
15660 (ggc_internal_cleared_vec_alloc_stat)
15661 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
15662 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
15663 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
15664 (ggc_cleared_alloc_ptr_array_two_args): New.
15665 (htab_create_ggc, splay_tree_new_ggc): Redefine.
15666 (ggc_splay_alloc): Change the type of the first argument to
15667 enum gt_types_enum.
15668 (ggc_alloc_string): Make macro.
15669 (ggc_alloc_string_stat): New.
15670 (ggc_strdup): Redefine.
15671 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
15672 (ggc_alloc_rtvec_sized): New.
15673 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
15674 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
15675 (ggc_internal_cleared_alloc_zone_stat)
15676 (ggc_internal_zone_alloc_stat)
15677 (ggc_internal_zone_cleared_alloc_stat)
15678 (ggc_internal_zone_vec_alloc_stat)
15679 (ggc_alloc_zone_rtx_def_stat)
15680 (ggc_alloc_zone_tree_node_stat)
15681 (ggc_alloc_zone_cleared_tree_node_stat)
15682 (ggc_alloc_cleared_gimple_statement_d_stat): New.
15683
15684 * ggc-common.c: Include ggc-internal.h.
15685 (ggc_internal_cleared_alloc_stat): Rename from
15686 ggc_alloc_cleared_stat.
15687 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15688 (ggc_calloc): Remove.
15689 (ggc_cleared_alloc_htab_ignore_args): New.
15690 (ggc_cleared_alloc_ptr_array_two_args): New.
15691 (ggc_splay_alloc): Add obj_type parameter.
15692 (init_ggc_heuristics): Formatting fixes.
15693
15694 * ggc-none.c: Update copyright year.
15695 (ggc_alloc_stat): Rename to ggc_alloc_stat.
15696 (ggc_alloc_cleared_stat): Rename to
15697 ggc_internal_cleared_alloc_stat.
15698 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15699
15700 * ggc-page.c: Update copyright year. Include ggc-internal.h.
15701 Remove references to ggc_alloc in comments.
15702 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15703 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15704 (new_ggc_zone, destroy_ggc_zone): Remove.
15705 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15706
15707 * ggc-zone.c: Include ggc-internal.h. Remove references to
15708 ggc_alloc in comments.
15709 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15710 (ggc_internal_alloc_zone_pass_stat): New.
15711 (ggc_internal_cleared_alloc_zone_stat): New.
15712 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15713 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15714 (new_ggc_zone, destroy_ggc_zone): Remove.
15715
15716 * stringpool.c: Update copyright year. Include ggc-internal.h
15717 (digit_vector): Make static.
15718 (digit_string): Moved from ggc.h.
15719 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15720 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15721
15722 * Makefile.in (GGC_INTERNAL_H): New.
15723 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15724 $(GGC_INTERNAL_H) to dependencies.
15725
15726 * gentype.c: Update copyright year.
15727 (walk_type): Accept variable_size GTY option.
15728 (USED_BY_TYPED_GC_P): New macro.
15729 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
15730 whitespace at the end of strings.
15731 (get_type_specifier, variable_size_p): New functions.
15732 (alloc_quantity, alloc_zone): New enums.
15733 (write_typed_alloc_def): New function.
15734 (write_typed_struct_alloc_def): Likewise.
15735 (write_typed_typed_typedef_alloc_def): Likewise.
15736 (write_typed_alloc_defns): Likewise.
15737 (output_typename, write_splay_tree_allocator_def): Likewise.
15738 (write_splay_tree_allocators): Likewise.
15739 (main): Call write_typed_alloc_defns and
15740 write_splay_tree_allocators.
15741
15742 * lto-streamer.h (lto_file_decl_data_ptr): New.
15743
15744 * passes.c (order): Define using cgraph_node_ptr.
15745
15746 * strinpool.c (struct string_pool_data): Declare nested_ptr using
15747 ht_identifier_ptr.
15748
15749 * gimple.h (union gimple_statement_d): Likewise.
15750
15751 * rtl.h (struct rtx_def): Likewise.
15752 (struct rtvec_def): Likewise.
15753
15754 * tree.h (union tree_node): Likewise.
15755
15756 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15757
15758 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15759
15760 * tree-scalar-evolution.c (scev_initialize): Likewise.
15761
15762 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15763
15764 * dwarf2asm.c (dw2_force_const_mem): Likewise.
15765
15766 * omp-low.c (lower_omp_critical): Likewise.
15767
15768 * bitmap.h (struct bitmap_head_def): Update comment to not
15769 reference ggc_alloc.
15770
15771 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15772
15773 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15774
15775 * ipa-prop.c (duplicate_ggc_array): Rename to
15776 duplicate_ipa_jump_func_array. Use typed GC allocation.
15777 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15778
15779 * gimple.c (gimple_alloc_stat): Use
15780 ggc_alloc_cleared_gimple_statement_d_stat.
15781
15782 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15783
15784 * tree.c (make_node_stat): Use
15785 ggc_alloc_zone_cleared_tree_node_stat.
15786 (make_tree_vec_stat): Likewise.
15787 (build_vl_exp_stat): Likewise.
15788 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15789 (make_tree_binfo_stat): Likewise.
15790 (tree_cons_stat): Likewise.
15791
15792 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15793 (shallow_copy_rtx_stat): Likewise.
15794 (make_node_stat): Likewise.
15795
15796 * lto-symtab.c: Fix comment.
15797
15798 * tree-cfg.c (create_bb): Update comment to not reference
15799 ggc_alloc_cleared.
15800 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15801
15802 * varpool.c (varpool_node): Use typed GC allocation.
15803 (varpool_extra_name_alias): Likewise.
15804
15805 * varasm.c (emutls_decl): Likewise.
15806 (get_unnamed_section): Likewise.
15807 (get_noswitch_section): Likewise.
15808 (get_section): Likewise.
15809 (get_block_for_section): Likewise.
15810 (build_constant_desc): Likewise.
15811 (create_constant_pool): Likewise.
15812 (force_const_mem): Likewise.
15813
15814 * tree.c (build_vl_exp_stat): Likewise.
15815 (build_real): Likewise.
15816 (build_string): Likewise.
15817 (decl_debug_expr_insert): Likewise.
15818 (decl_value_expr_insert): Likewise.
15819 (type_hash_add): Likewise.
15820 (build_omp_clause): Likewise.
15821
15822 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15823
15824 * tree-ssa.c (init_tree_ssa): Likewise.
15825
15826 * tree-ssa-structalias.c (heapvar_insert): Likewise.
15827
15828 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15829
15830 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15831
15832 * tree-ssa-alias.c (get_ptr_info): Likewise.
15833
15834 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15835
15836 * tree-phinodes.c (allocate_phi_node): Likewise.
15837
15838 * tree-iterator.c (tsi_link_before): Likewise.
15839 (tsi_link_after): Likewise.
15840
15841 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15842
15843 * tree-dfa.c (create_var_ann): Likewise.
15844
15845 * tree-cfg.c (create_bb): Likewise.
15846
15847 * toplev.c (alloc_for_identifier_to_locale): Likewise.
15848 (general_init): Likewise.
15849
15850 * stringpool.c (stringpool_ggc_alloc): Likewise.
15851 (gt_pch_save_stringpool): Likewise.
15852
15853 * sese.c (if_region_set_false_region): Likewise.
15854
15855 * passes.c (do_per_function_toporder): Likewise.
15856
15857 * optabs.c (set_optab_libfunc): Likewise.
15858 (set_conv_libfunc): Likewise.
15859
15860 * lto-symtab.c (lto_symtab_register_decl): Likewise.
15861
15862 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15863 (input_eh_region): Likewise.
15864 (input_eh_lp): Likewise.
15865 (make_new_block): Likewise.
15866 (unpack_ts_real_cst_value_fields): Likewise.
15867
15868 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15869
15870 * lto-cgraph.c (input_node_opt_summary): Likewise.
15871
15872 * loop-init.c (loop_optimizer_init): Likewise.
15873
15874 * lambda.h (lambda_vector_new): Likewise.
15875
15876 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
15877
15878 * ira.c (update_equiv_regs): Likewise.
15879
15880 * ipa.c (cgraph_node_set_new): Likewise.
15881 (cgraph_node_set_add): Likewise.
15882 (varpool_node_set_new): Likewise.
15883 (varpool_node_set_add): Likewise.
15884
15885 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
15886 (duplicate_ipa_jump_func_array): Likewise.
15887 (ipa_read_node_info): Likewise.
15888
15889 * ipa-cp.c (ipcp_create_replace_map): Likewise.
15890
15891 * integrate.c (get_hard_reg_initial_val): Likewise.
15892
15893 * gimple.c (gimple_alloc_stat): Likewise.
15894 (gimple_build_omp_for): Likewise.
15895 (gimple_seq_alloc): Likewise.
15896 (gimple_copy): Likewise.
15897
15898 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
15899 (gsi_insert_after_without_update): Likewise.
15900
15901 * function.c (add_frame_space): Likewise.
15902 (insert_temp_slot_address): Likewise.
15903 (assign_stack_temp_for_type): Likewise.
15904 (allocate_struct_function): Likewise.
15905 (types_used_by_var_decl_insert): Likewise.
15906
15907 * except.c (init_eh_for_function): Likewise.
15908 (gen_eh_region): Likewise.
15909 (gen_eh_region_catch): Likewise.
15910 (gen_eh_landing_pad): Likewise.
15911 (add_call_site): Likewise.
15912
15913 * emit-rtl.c (get_mem_attrs): Likewise.
15914 (get_reg_attrs): Likewise.
15915 (start_sequence): Likewise.
15916 (init_emit): Likewise.
15917
15918 * dwarf2out.c (new_cfi): Likewise.
15919 (queue_reg_save): Likewise.
15920 (dwarf2out_frame_init): Likewise.
15921 (new_loc_descr): Likewise.
15922 (find_AT_string): Likewise.
15923 (new_die): Likewise.
15924 (add_var_loc_to_decl): Likewise.
15925 (clone_die): Likewise.
15926 (clone_as_declaration): Likewise.
15927 (break_out_comdat_types): Likewise.
15928 (new_loc_list): Likewise.
15929 (loc_descriptor): Likewise.
15930 (add_loc_descr_to_each): Likewise.
15931 (add_const_value_attribute): Likewise.
15932 (tree_add_const_value_attribute): Likewise.
15933 (add_comp_dir_attribute): Likewise.
15934 (add_name_and_src_coords_attributes): Likewise.
15935 (lookup_filename): Likewise.
15936 (store_vcall_insn): Likewise.
15937 (dwarf2out_init): Likewise.
15938
15939 * dbxout.c (dbxout_init): Likewise.
15940
15941 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15942
15943 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15944
15945 * config/score/score7.c (score7_output_external): Likewise.
15946
15947 * config/score/score3.c (score3_output_external): Likewise.
15948
15949 * config/s390/s390.c (s390_init_machine_status): Likewise.
15950
15951 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15952 (rs6000_init_machine_status): Likewise.
15953 (output_toc): Likewise.
15954
15955 * config/pa/pa.c (pa_init_machine_status): Likewise.
15956 (get_deferred_plabel): Likewise.
15957
15958 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15959
15960 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15961
15962 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15963
15964 * config/mep/mep.c (mep_init_machine_status): Likewise.
15965 (mep_note_pragma_flag): Likewise.
15966
15967 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15968
15969 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15970
15971 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15972
15973 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15974 (i386_pe_maybe_record_exported_symbol): Likewise.
15975
15976 * config/i386/i386.c (get_dllimport_decl): Likewise.
15977 (ix86_init_machine_status): Likewise.
15978 (assign_386_stack_local): Likewise.
15979
15980 * config/frv/frv.c (frv_init_machine_status): Likewise.
15981
15982 * config/darwin.c (machopic_indirection_name): Likewise.
15983
15984 * config/cris/cris.c (cris_init_machine_status): Likewise.
15985
15986 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15987
15988 * config/avr/avr.c (avr_init_machine_status): Likewise.
15989
15990 * config/arm/arm.c (arm_init_machine_status): Likewise.
15991
15992 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15993 (alpha_need_linkage): Likewise.
15994 (alpha_use_linkage): Likewise.
15995
15996 * cgraph.c (cgraph_allocate_node): Likewise.
15997 (cgraph_create_edge_1): Likewise.
15998 (cgraph_create_indirect_edge): Likewise.
15999 (cgraph_add_asm_node): Likewise.
16000
16001 * cfgrtl.c (init_rtl_bb_info): Likewise.
16002
16003 * cfgloop.c (alloc_loop): Likewise.
16004 (rescan_loop_exit): Likewise.
16005
16006 * cfg.c (init_flow): Likewise.
16007 (alloc_block): Likewise.
16008 (unchecked_make_edge): Likewise.
16009
16010 * c-parser.c (c_parse_init): Likewise.
16011 (c_parse_file): Likewise.
16012
16013 * c-decl.c (bind): Likewise.
16014 (record_inline_static): Likewise.
16015 (push_scope): Likewise.
16016 (make_label): Likewise.
16017 (lookup_label_for_goto): Likewise.
16018 (finish_struct): Likewise.
16019 (finish_enum): Likewise.
16020 (c_push_function_context): Likewise.
16021
16022 * bitmap.c (bitmap_element_allocate): Likewise.
16023 (bitmap_gc_alloc_stat): Likewise.
16024
16025 * alias.c (record_alias_subset): Likewise.
16026 (init_alias_analysis): Likewise.
16027
16028 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
16029
16030 * fold-const.c (fold_comparison): Remove redundant parenthesis.
16031 * tree-inline.c (expand_call_inline): Pass translated return value of
16032 cgraph_inline_failed_string to diagnostic function.
16033
16034 2010-06-08 Andrew Pinski <pinskia@gmail.com>
16035 Shujing Zhao <pearly.zhao@oracle.com>
16036
16037 PR c/37724
16038 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
16039 implicit bad conversions is initialization.
16040 (error_init): Use gmsgid instead of msgid for argument name and change
16041 the call for error.
16042 (pedwarn_init): Use gmsgid instead of msgid for argument name and
16043 change the call for pedwarn.
16044 (warning_init): Use gmsgid instead of msgid for argument name and
16045 change the call for warning.
16046
16047 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
16048
16049 * config/mips/mips-protos.h (mips_print_operand): Delete.
16050 (mips_print_operand_address): Delete.
16051 * config/mips/mips.h (mips_print_operand_punct): Delete.
16052 (PRINT_OPERAND): Delete.
16053 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16054 (PRINT_OPERAND_ADDRESS): Delete.
16055 * config/mips/mips.c (mips_print_operand_punct): Make static.
16056 (mips_print_operand_address): Make static.
16057 (mips_print_operand): Make static. Call
16058 mips_print_operand_punct_valid_p.
16059 (mips_print_operand_punct_valid_p): New function.
16060 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16061 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16062
16063 2010-06-07 Jan Hubicka <jh@suse.cz>
16064
16065 PR middle-end/44454
16066 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
16067 are allocated.
16068
16069 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
16070
16071 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
16072 name of RECORD.
16073
16074 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16075
16076 * doc/sourcebuild.texi (Effective-Target Keywords, Other
16077 attributes): Document gas.
16078
16079 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
16080
16081 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
16082 <TYPE_LEA>: Split instruction.
16083 <default>: Remove alternative 2 handling.
16084 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
16085 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
16086 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
16087
16088 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
16089 (ashift_zext lea splitter): Use DImode for multiplication.
16090
16091 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
16092 to generate addition.
16093
16094 2010-06-07 Joseph Myers <joseph@codesourcery.com>
16095
16096 * common.opt (fira-verbose): Use Var.
16097 (fpcc-struct-return): Use Init instead of VarExists.
16098 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
16099 toplev.c.
16100 * flags.h (flag_signed_char, flag_short_enums,
16101 flag_pcc_struct_return, flag_ira_verbose,
16102 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
16103 * toplev.c (flag_detailed_statistics, flag_signed_char,
16104 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
16105 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
16106 * toplev.h (flag_crossjumping, flag_if_conversion,
16107 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
16108 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
16109 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
16110 flag_cprop_registers, time_report, flag_ira_loop_pressure,
16111 flag_ira_coalesce, flag_ira_move_spills,
16112 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
16113
16114 2010-06-07 Jan Hubicka <jh@suse.cz>
16115
16116 * df-core.c (df_analyze_problem): Do verification after allocation.
16117
16118 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
16119 (df_lr_alloc): Initialize problem data; move bitmaps to
16120 lr_bitmaps obstack.
16121 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
16122 (df_lr_verify_solution_start): Do not initialize problem data;
16123 allocate bitmaps in lr_bitmaps.
16124 (df_lr_verify_solution_end): Do not free problem data.
16125
16126 2010-06-07 Jan Hubicka <jh@suse.cz>
16127
16128 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
16129 if caller is noreturn.
16130 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
16131 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
16132 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
16133 * ipa-pure-const.c (check_decl): Add IPA parameter.
16134 (state_from_flags): New function.
16135 (better_state, worse_state): New functions.
16136 (check_call): When in IPA mode, do not care about callees.
16137 (check_load, check_store): Update.
16138 (check_ipa_load, check_ipa_store): New.
16139 (check_stmt): When in IPA mode, use IPA checkers.
16140 (analyze_function): Use state_from_flags.
16141 (propagate): Check indirect edges and references.
16142
16143 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
16144
16145 PR rtl-optimization/44404
16146 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
16147 of count_occurrences to see if it's safe to modify mem_insn.
16148
16149 2010-06-07 Richard Guenther <rguenther@suse.de>
16150
16151 * gimplify.c (gimplify_cleanup_point_expr): For empty body
16152 and EH-only cleanup drop the cleanup instead of inserting it
16153 unconditionally.
16154
16155 2010-06-07 Ira Rosen <irar@il.ibm.com>
16156
16157 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
16158 documentation.
16159 * targhooks.c (default_builtin_vectorization_cost): New function.
16160 * targhooks.h (default_builtin_vectorization_cost): Declare.
16161 * target.h (enum vect_cost_for_stmt): Define.
16162 (builtin_vectorization_cost): Change argument and comment.
16163 * tree-vectorizer.h: Remove cost model macros.
16164 * tree-vect-loop.c: Include target.h.
16165 (vect_get_cost): New function.
16166 (vect_estimate_min_profitable_iters): Replace cost model macros with
16167 calls to vect_get_cost.
16168 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
16169 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
16170 default implementation.
16171 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
16172 calls to target hook builtin_vectorization_cost.
16173 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
16174 Likewise.
16175 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
16176 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
16177 implementation to return costs.
16178 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
16179 * config/spu/spu.h: Remove vectorizer cost model macros.
16180 * config/i386/i386.h: Likewise.
16181 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
16182 a call to target hook builtin_vectorization_cost.
16183
16184 2010-06-06 Sriraman Tallam <tmsriram@google.com>
16185
16186 PR target/44319
16187 * config/i386/i386.c (override_options): Turn zee pass on for level 2
16188 and above and defer till target is known.
16189 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
16190 turn off otherwise.
16191
16192 2010-05-25 Jan Hubicka <jh@suse.cz>
16193
16194 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
16195 (df_compact_blocks): Likewise.
16196 * df.h (struct df): Turn hardware_regs_used,
16197 regular_block_artificial_uses, eh_block_artificial_uses,
16198 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
16199 bitmap_head.
16200 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
16201 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
16202 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
16203 df_scan_blocks, df_insn_delete, df_insn_rescan,
16204 df_insn_rescan_debug_internal, df_insn_rescan_all,
16205 df_process_deferred_rescans, df_process_deferred_rescans,
16206 df_notes_rescan, df_get_call_refs, df_get_call_refs,
16207 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
16208 df_record_entry_block_defs, df_record_exit_block_uses,
16209 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
16210 df_scan_verify): Update.
16211
16212 2010-05-25 Dodji Seketeli <dodji@redhat.com>
16213
16214 PR c++/44188
16215 * c-common.c (is_typedef_decl): Move this definition ...
16216 * tree.c (is_typedef_decl): ... here.
16217 (typdef_variant_p): Move definition here from cp/tree.c.
16218 * c-common.h (is_typedef_decl): Move this declaration ...
16219 * tree.h (is_typedef_decl): ... here.
16220 (typedef_variant_p): Move declaration here from cp/cp-tree.h
16221 * dwarf2out.c (is_naming_typedef_decl): New function.
16222 (gen_tagged_type_die): Split out of ...
16223 (gen_type_die_with_usage): ... this function. When an anonymous
16224 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
16225 is emitted for the typedef.
16226 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
16227 anonymous tagged types.
16228
16229 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
16230
16231 PR c/20000
16232 * c-decl.c (grokdeclarator): Delete warning.
16233
16234 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
16235
16236 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
16237 newly built CALL_EXPR.
16238 * tree-profile.c (tree_profiling): Don't profile functions produced
16239 for built-in stuff.
16240
16241 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
16242
16243 PR bootstrap/44427
16244 PR bootstrap/44428
16245 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
16246 endianness-independent.
16247
16248 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
16249
16250 * c-common.c: Move to c-family/.
16251 * c-common.def: Likewise.
16252 * c-common.h: Likewise.
16253 * c-cppbuiltin.c: Likewise.
16254 * c-dump.c: Likewise.
16255 * c-format.c: Likewise.
16256 * c-format.h : Likewise.
16257 * c-gimplify.c: Likewise.
16258 * c-lex.c: Likewise.
16259 * c-omp.c: Likewise.
16260 * c.opt: Likewise.
16261 * c-opts.c: Likewise.
16262 * c-pch.c: Likewise.
16263 * c-ppoutput.c: Likewise.
16264 * c-pragma.c: Likewise.
16265 * c-pragma.h: Likewise.
16266 * c-pretty-print.c: Likewise.
16267 * c-pretty-print.h: Likewise.
16268 * c-semantics.c: Likewise.
16269 * stub-objc.c: Likewise.
16270
16271 * gengtype.c (get_file_langdir): Special-case files in c-family/.
16272 (get_output_file_with_visibility): Fix name for c-common.h.
16273 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
16274
16275 * c-tree.h: Update include path for moved files.
16276 * c-lang.c: Likewise.
16277 * c-lang.h: Likewise.
16278 * c-parser.c: Likewise.
16279 * c-convert.c: Likewise.
16280 * c-decl.c: Likewise.
16281 * c-objc-common.c: Likewise.
16282 * configure.ac: Make sure c-family/ exists in the build directory.
16283 * configure: Regenerate.
16284 * Makefile.in: Update paths for moved files. Regroup files per
16285 location and update dependencies. Move generated_files down after
16286 ALL_GTFILES_H.
16287
16288 * config/spu/spu-c.c: Update paths for moved files.
16289 * config/mep/mep-pragma.c: Likewise.
16290 * config/darwin-c.c: Likewise.
16291 * config/i386/msformat-c.c: Likewise.
16292 * config/i386/i386-c.c: Likewise.
16293 * config/avr/avr-c.c: Likewise.
16294 * config/sol2-c.c: Likewise.
16295 * config/ia64/ia64-c.c: Likewise.
16296 * config/rs6000/rs6000-c.c: Likewise.
16297 * config/arm/arm.c: Likewise.
16298 * config/arm/arm-c.c: Likewise.
16299 * config/h8300/h8300.c: Likewise.
16300 * config/v850/v850-c.c: Likewise.
16301
16302 * config/t-darwin: Fix dependencies for moved files.
16303 * config/t-sol2: Fix dependencies for moved files.
16304 * config/mep/t-mep: Fix dependencies for moved files.
16305 * config/ia64/t-ia64: Fix dependencies for moved files.
16306 * config/rs6000/t-rs6000: Fix dependencies for moved files.
16307 * config/v850/t-v850: Fix dependencies for moved files.
16308 * config/v850/t-v850e: Fix dependencies for moved files.
16309
16310 * config/m32c/m32c-pragma.c
16311
16312 * po/exgettext: Look in c-family/ also.
16313
16314 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
16315
16316 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
16317 (mark_control_dependent_edges_necessary): Call it instead of marking
16318 the last statement manually.
16319 (propagate_necessity): Likewise.
16320
16321 2010-06-05 Jan Hubicka <jh@suse.cz>
16322
16323 * basic-block.h (compute_dominance_frontiers): Updated.
16324 (compute_idf): Likewise.
16325
16326 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
16327 for dominance frontiers.
16328 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
16329 (insert_updated_phi_nodes_for): Likewise.
16330 (update_ssa): Likewise.
16331 * cfganal.c (compute_dominance_frontiers_1): Likewise.
16332 (compute_dominance_frontiers): Likewise.
16333 (compute_idf): Likewise.
16334 * df-problems.c (df_md_local_compute): Likewise.
16335
16336 2010-06-05 Anatoly Sokolov <aesok@post.ru>
16337
16338 * target.h (struct gcc_target): Add memory_move_cost field.
16339 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
16340 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
16341 * targhooks.c (default_memory_move_cost): New function.
16342 * targhooks.h (default_memory_move_cost): Declare function.
16343 * reload.h (memory_move_cost): Declare.
16344 (memory_move_secondary_cost): Change type of 'in' argument to bool.
16345 * reginfo.c (memory_move_cost): New function.
16346 (memory_move_secondary_cost): Change type of 'in' argument to bool.
16347 * ira.h (ira_memory_move_cost): Update comment.
16348 * ira.c (ira_memory_move_cost): Update comment.
16349 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
16350 with memory_move_cost.
16351 * postreload.c (reload_cse_simplify_set): (Ditto.).
16352 * reload1.c (choose_reload_regs): (Ditto.).
16353 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
16354 (MEMORY_MOVE_COST): Revise documentation.
16355
16356 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
16357 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
16358 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
16359 type of 'in' argument to bool.
16360 (TARGET_MEMORY_MOVE_COST): Define.
16361
16362 2010-06-05 Jan Hubicka <jh@suse.cz>
16363
16364 * ipa-pure-const.c (propagate): Fix typo in handling of functions
16365 that cannot return. Be more careful when merging the results with
16366 previously known ones.
16367
16368 2010-06-05 Matthias Klose <doko@ubuntu.com>
16369
16370 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
16371 function to add the -iplugindir option.
16372 (find_plugindir_spec_function): Add new declaration and function.
16373 (static_spec_func): Use it for "find-plugindir".
16374
16375 2010-06-05 Jakub Jelinek <jakub@redhat.com>
16376
16377 PR c++/44361
16378 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
16379 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
16380 statement expression.
16381
16382 2010-06-05 Jan Hubicka <jh@suse.cz>
16383
16384 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
16385 (df_rd_problem_data): Convert sparse_invalidated_by_call,
16386 dense_invalidated_by_call to bitmap head.
16387 (df_rd_alloc, df_rd_bb_local_compute_process_def,
16388 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
16389 df_rd_start_dump, df_lr_verify_transfer_functions,
16390 df_live_verify_transfer_functions, df_chain_create_bb,
16391 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
16392 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
16393 df_simulate_one_insn_forwards, df_md_alloc,
16394 df_md_bb_local_compute_process_def,
16395 df_md_bb_local_compute_process_def, df_md_local_compute,
16396 df_md_transfer_function df_md_free): Update.
16397
16398 2010-06-05 Joseph Myers <joseph@codesourcery.com>
16399
16400 PR c/44322
16401 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
16402 target type for ADDR_EXPR; require no changes to qualifiers except
16403 for function types.
16404 * c-tree.h (c_build_type_variant): Remove.
16405
16406 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
16407
16408 * genautomata.c (get_excl_set): Do work per element, not per char.
16409 (check_presence_pattern_sets): Similar.
16410 (check_absence_pattern_sets): Similar.
16411
16412 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
16413
16414 * genautomata.c (curr_state_pass_num): Delete.
16415 (min_issue_delay_pass_states): Delete.
16416 (min_issue_delay): Delete.
16417 (initiate_min_issue_delay_pass_states): Delete.
16418 (output_min_issue_delay_table): Compute min_issue_delay_vect
16419 using a breadth-first search variant.
16420 (output_tables): Don't call initiate_min_issue_delay_pass_states.
16421
16422 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
16423
16424 PR boostrap/44421
16425 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
16426 (df_byte_lr_bb_local_compute): Likewise.
16427
16428 2010-06-03 Jason Merrill <jason@redhat.com>
16429
16430 Implement noexcept operator (5.3.7)
16431 * c-common.c (c_common_reswords): Add noexcept.
16432 * c-common.h (enum rid): Add RID_NOEXCEPT.
16433
16434 2010-06-04 Joseph Myers <joseph@codesourcery.com>
16435
16436 * config/darwin-driver.c (darwin_default_min_version): Use
16437 GCC-specific formats in diagnostics.
16438 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
16439 diagnostics.
16440 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
16441 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
16442 eval_spec_function, handle_braces, process_brace_body, main,
16443 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
16444 getenv_spec_function, compare_version_strings,
16445 version_compare_spec_function): Use GCC-specific formats in
16446 diagnostics.
16447
16448 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
16449
16450 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
16451 that operand 0 and operand 1 are equal.
16452 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
16453 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
16454 and operand 1 are equal.
16455 <default>: Ditto. Remove ??? comment.
16456 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
16457 and operand 1 are equal.
16458 <default>: Ditto. Remove ??? comment.
16459 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
16460 are equal.
16461 (*add<mode>_4) <default>: Ditto.
16462 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
16463
16464 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
16465
16466 * config/i386/i386-protos.h (ix86_print_operand): Declare.
16467 * config/i386/i386.c (ix86_print_operand): Make non-static.
16468 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
16469 * output.h (output_operand): Declare.
16470 * final.c (output_operand): Make non-static.
16471
16472 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
16473
16474 PR rtl-optimization/44013
16475 * sched-deps.c (add_dependence_list_and_free): Don't free lists
16476 when processing debug insns.
16477
16478 PR debug/41371
16479 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
16480 recursing. Check that recursion is bounded. Rename inner var
16481 to avoid hiding incoming argument.
16482
16483 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
16484
16485 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
16486 operands[2] == 255.
16487 (*addqi_3): Ditto.
16488 (*addqi_4): Ditto.
16489 (*addqi_5): Ditto.
16490 (*addqi_ext_1_rex64): Ditto.
16491 (*addqi_ext_1): Ditto.
16492
16493 (*addqi_4): Check for incdec_operand in QImode.
16494
16495 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
16496 using SWI mode iterator.
16497 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
16498 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
16499 mode iterator.
16500 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
16501 using SWI mode iterator.
16502
16503 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
16504
16505 PR c/25880
16506 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
16507 * c-format.c (gcc_diag_flag_specs): Add hash.
16508 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
16509 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
16510 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
16511 pp_c_cv_qualifiers. Handle qualifiers spelling here.
16512 (pp_c_type_qualifier_list): Call the function above.
16513 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
16514 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
16515 (WARN_FOR_QUALIFIERS): New macro.
16516 (convert_for_assignment): Use it.
16517
16518 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
16519
16520 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
16521
16522 2010-06-04 Jan Hubicka <jh@suse.cz>
16523
16524 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
16525 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
16526 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
16527 DF_BYTE_LR_OUT): Update for embedded bitmaps.
16528 * fwprop.c (single_def_use_enter_block): Likewise.
16529 * ddg.c (create_ddg_dep_from_intra_loop_link,
16530 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
16531 * loop-iv.c (latch_dominating_def): Likewise.
16532 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
16533 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
16534 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
16535 df_rd_transfer_function, df_rd_top_dump,
16536 df_rd_bottom_dump): Update.
16537 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
16538 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
16539 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
16540 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
16541 df_lr_verify_solution_start, df_lr_verify_solution_end,
16542 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
16543 df_live_free_bb_info, df_live_alloc, df_live_reset,
16544 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
16545 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
16546 df_live_verify_solution_start, df_live_verify_solution_end,
16547 df_live_verify_transfer_functions, df_chain_create_bb,
16548 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
16549 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16550 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16551 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
16552 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16553 df_byte_lr_transfer_function, df_byte_lr_top_dump,
16554 df_byte_lr_bottom_dump, df_create_unused_note,
16555 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
16556 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
16557 df_md_transfer_function, df_md_init, df_md_confluence_0,
16558 df_md_confluence_n,
16559 df_md_top_dump, df_md_bottom_dump): Update.
16560 (struct df_lr_problem_data): Embedd bitmap headers.
16561
16562 2010-06-04 Jan Hubicka <jh@suse.cz>
16563
16564 * dce.c (dce_process_block): Do not re-scan already marked
16565 instructions.
16566
16567 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
16568
16569 PR rtl-optimization/39871
16570 PR rtl-optimization/40615
16571 PR rtl-optimization/42500
16572 PR rtl-optimization/42502
16573 * ira.c (init_reg_equiv_memory_loc: New function.
16574 (ira): Call it twice.
16575 * reload.h (calculate_elim_costs_all_insns): Declare.
16576 * ira-costs.c: Include "reload.h".
16577 (regno_equiv_gains): New static variable.
16578 (init_costs): Allocate it.
16579 (finish_costs): Free it.
16580 (ira_costs): Call calculate_elim_costs_all_insns.
16581 (find_costs_and_classes): Take estimated elimination costs
16582 into account.
16583 (ira_adjust_equiv_reg_cost): New function.
16584 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
16585 * reload1.c (init_eliminable_invariants, free_reg_equiv,
16586 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
16587 (elim_bb): New static variable.
16588 (reload): Move code out of here into init_eliminable_invariants and
16589 free_reg_equiv. Call them.
16590 (calculate_elim_costs_all_insns): New function.
16591 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
16592 all callers changed. If FOR_COSTS is true, don't call alter_reg,
16593 but call note_reg_elim_costly if we turned a valid memory address
16594 into an invalid one.
16595 * Makefile.in (ira-costs.o): Depend on reload.h.
16596
16597 2010-06-04 Julian Brown <julian@codesourcery.com>
16598
16599 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
16600 for pool ranges.
16601
16602 2010-06-04 Richard Guenther <rguenther@suse.de>
16603
16604 PR lto/41584
16605 * cgraph.h (struct varpool_node): Add lto_file_data field.
16606 * lto-cgraph.c (input_varpool_node): Initialize it.
16607
16608 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
16609
16610 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
16611 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
16612 predicate in "type" attribute calculation.
16613 (*addsi_1_zext): Ditto.
16614 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
16615 (*addsi_2_zext): Ditto.
16616 (*add<mode>_3): Ditto.
16617 (*addsi_3_zext): Ditto.
16618 (*add<mode>_5): Ditto.
16619
16620 2010-06-03 Jan Hubicka <jh@suse.cz>
16621
16622 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
16623 of bitmap_bit_p.
16624 * cfganal.c (compute_dominance_frontiers_1): Likewise.
16625
16626 2010-06-03 Jan Hubicka <jh@suse.cz>
16627
16628 * df-problems.c (df_create_unused_note, df_note_bb_compute):
16629 micro-optimize the checks when to add new note.
16630
16631 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
16632
16633 * final.c (output_asm_insn): Call
16634 targetm.asm_out.print_operand_punct_valid_p. Update comments.
16635 (output_operand): Call targetm.asm_out.print_operand. Update comments.
16636 (output_address): Call targetm.asm_out.print_operand_address.
16637 Update comments.
16638 * target.h (struct gcc_target): Add print_operand,
16639 print_operand_address, and print_operand_punct_valid_p fields.
16640 * targhooks.h (default_print_operand): Declare.
16641 (default_print_operand_address): Declare.
16642 (default_print_operand_punct_valid_p): Declare.
16643 * targhooks.c (default_print_operand): Define.
16644 (default_print_operand_address): Define.
16645 (default_print_operand_punct_valid_p): Define.
16646 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
16647 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
16648 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
16649 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
16650 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
16651 * vmsdbgout.c (addr_const_to_string): Update comment.
16652 * config/i386/i386.c (print_operand): Rename to...
16653 (ix86_print_operand): ...this. Make static.
16654 (print_operand_address): Rename to...
16655 (ix86_print_operand_address): ...this. Make static. Call
16656 ix86_print_operand instead of PRINT_OPERAND.
16657 (ix86_print_operand_punct_valid_p): New function.
16658 (TARGET_PRINT_OPERAND): Define.
16659 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16660 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16661 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
16662 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16663 (PRINT_OPERAND): Delete.
16664 (PRINT_OPERAND_ADDRESS): Delete.
16665 * config/i386/i386-protos.h (print_operand): Delete prototype.
16666 (print_operand_address): Delete prototype.
16667
16668 2010-06-03 Richard Guenther <rguenther@suse.de>
16669
16670 PR tree-optimization/44403
16671 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16672 Preserve pointer qualifiers.
16673 (vect_create_data_ref_ptr): Likewise.
16674
16675 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
16676
16677 PR c++/44294
16678 * defaults.h (MAX_FIXED_MODE_SIZE): New.
16679
16680 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16681
16682 2010-06-03 Jakub Jelinek <jakub@redhat.com>
16683
16684 PR debug/44375
16685 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16686 return false if merging the bbs would lead to goto_locus
16687 location being lost from the IL.
16688
16689 2010-06-03 Jan Hubicka <jh@suse.cz>
16690 Jakub Jelinek <jakub@redhat.com>
16691
16692 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16693 set->regs[i] is NULL or has just one entry.
16694
16695 2010-06-03 Jan Hubicka <jh@suse.cz>
16696
16697 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16698 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16699
16700 2010-06-03 Paul Brook <paul@codesourcery.com>
16701
16702 * config/arm/arm.c (FL_TUNE): Define.
16703 (arm_default_cpu, arm_cpu_select): Remove.
16704 (all_cores): Populate core field.
16705 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16706 (arm_find_cpu): New function.
16707 (arm_handle_option): Lookup cpu/architecture names.
16708 (arm_override_options): Cleanup mcpu/march/mtune handling.
16709 (arm_file_start): Ditto.
16710
16711 2010-06-03 Alan Modra <amodra@gmail.com>
16712
16713 PR target/44169
16714 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16715 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16716 rtx to gen_load_toc_v4_PIC_1b. Tidy.
16717 (rs6000_emit_load_toc_table): Likewise.
16718
16719 2010-06-02 Jan Hubicka <jh@suse.cz>
16720
16721 * passes.c (init_optimization_passes): Put ipa reference
16722 after ipa pure-const.
16723
16724 2010-06-02 Jan Hubicka <jh@suse.cz>
16725
16726 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16727 calls_read_all and calls_write_all.
16728 (get_reference_optimization_summary): Fix formatting.
16729 (is_proper_for_analysis): Check that decl is not readonly.
16730 (propagate_bits): Check CONST/PURE/noreturn flags.
16731 (ipa_init): Move all_module_statics to optimization_summary_obstack.
16732 (analyze_function): Ignore indirect edges.
16733 (copy_global_bitmap): For all module statics, do nothing.
16734 (generate_summary): Do not print calls_read_all/calls_write_all.
16735 (read_write_all_from_decl): Take node as argument; check
16736 cgraph_node_cannot_return.
16737 (propagate): Reorganize read_all/write_all computation;
16738 check indirect edges; check ecf flags; use all_module_statics
16739 in the results; do not free all_module_statics.
16740 (stream_out_bitmap): Handle all_module_statics.
16741 (ipa_reference_write_optimization_summary): Likewise; use
16742 varpool/cgraph encoders to get boundaries.
16743 (ipa_reference_read_optimization_summary): Read in all_module_statics;
16744 use it when possible.
16745
16746 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16747
16748 PR target/44218
16749 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16750 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16751
16752 * doc/extend.texi (powerpc builtins): Document vec_recip,
16753 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16754
16755 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16756 (rs6000_emit_swrsqrt): Ditto.
16757 (rs6000_emit_swdivsf): Delete.
16758 (rs6000_emit_swdivdf): Ditto.
16759 (rs6000_emit_swrsqrtsf): Ditto.
16760
16761 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16762 describe the reciprocal estimate support for each type.
16763 (recip_options): Map -mrecip=<opt> into option bits.
16764 (gen_2arg_fn_t): New typedef for binary rtx gen function.
16765 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16766 reciprocal estimate instructions.
16767 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16768 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16769 Set up rs6000_recip_bits based on the -mrecip* options. Print the
16770 cost information if -mdebug=cost or -mdebug=reg.
16771 (rs6000_override_options): Set -mrecip-precision for power6, and
16772 power7 machines. If -mvsx or -mdfp, enable various options that
16773 came in previous instruction set ISAs, unless the option was
16774 explicitly disabled by the command line option. Parse
16775 -mrecip=<opt> options.
16776 (rs6000_builtin_vectorized_function): Add support for vectorizing
16777 the reciprocal estimate builtins and expansions.
16778 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16779 (bdesc_2arg): Add reciprocal estimate builtins.
16780 (bdesc_1arg): Add reciprocal square root estimate builtins.
16781 (rs6000_expand_builtin): Rewrite to use a switch statement,
16782 instead of multiple if/then/elses. Add reciprocal estimate builtins.
16783 (rs6000_init_builtins): Create declarations for reciprocal
16784 estimate builtins.
16785 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16786 sized, prefer traditional floating point registers, if integer
16787 vector types, prefer altivec registers. Don't actually look at
16788 the memory address any more.
16789 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16790 builtins.
16791 (rs6000_load_constant_and_splat): New helper function to load up
16792 the constant for reciprocal estimate instructions.
16793 (rs6000_emit_madd): New helper function for generating
16794 multiply/add type instructions, based on the current switches.
16795 (rs6000_emit_msub): Ditto.
16796 (rs6000_emit_mnsub): Ditto.
16797 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16798 replace a divide with a reciprocal estimate and fixup, adding
16799 support for machines with high precision and vectors.
16800 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16801 low precision machines.
16802 (rs6000_emit_swdiv): New common function to be called to replace a
16803 division with reciprocal estimate and fixup.
16804 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
16805 for double and vector types. Add support for high precision machines.
16806
16807 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16808 the reciprocal estimate instructions can be generated.
16809 (TARGET_FRE): Ditto.
16810 (TARGET_FRSQRTES): Ditto.
16811 (TARGET_FRSQRTE): Ditto.
16812 (RS6000_RECIP_*): New macros for reciprocal estimate support.
16813
16814 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16815 square root estimate on vectors.
16816 (re<mode>2): New insn for reciprocal division estimate on vectors.
16817
16818 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16819 New builtin.
16820 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16821 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16822 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16823 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16824 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16825 (RS6000_BUILTIN_RSQRT): Ditto.
16826 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16827 floating point builtin.
16828
16829 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16830 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16831 __RECIP_PRECISION__ based on the command line switches.
16832 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16833
16834 * config/rs6000/rs6000.opt (-mrecip): Document add support for
16835 replacing division instructions with reciprocal estimate and fixup.
16836 (-mrecip=<opt>): New option.
16837 (-mrecip-precision): Ditto.
16838
16839 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
16840 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
16841 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
16842 precision scalar.
16843
16844 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
16845 (UNSPEC_VREFP): Ditto.
16846 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
16847 conterparts with regard to support of -mno-fused-madd and -ffast-math.
16848 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
16849 reciprocal estimate instructions to be generated.
16850 (altivec_vrefp): Ditto.
16851
16852 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
16853 estimate support.
16854 (rreg): New mode attribute for reciprocal estimate support.
16855 (recip<mode>3): New insn for division using reciprocal estimate
16856 and fixup builtins.
16857 (divide define_split): New define_split to convert floating point
16858 division to use reciprocal estimate if the user used the
16859 appropriate options and the split is run when we can add new
16860 pseudo registers for the fixup.
16861 (rsqrt<mode>2): New insn for reciprocal square root support.
16862 (recipsf3): Move into recip<mode>3.
16863 (recipdf3): Ditto.
16864 (fres): Use TARGET_FRES.
16865 (rsqrtsf2): Move into rsqrt<mode>2.
16866 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
16867 (copysignsf3): Add support for VSX.
16868 (fred): Use TARGET_FRE.
16869 (fred_fpr): Ditto.
16870 (rsqrtdf_internal1): New function for frsqrte instruciton.
16871
16872 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
16873 (vec_rsqrt): Ditto.
16874
16875 2010-06-03 Richard Guenther <rguenther@suse.de>
16876
16877 PR middle-end/44291
16878 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
16879 (set_user_assembler_libfunc): Likewise.
16880
16881 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
16882
16883 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
16884 defaults.h.
16885 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
16886 to defaults.h
16887 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
16888 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
16889 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
16890 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
16891 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
16892 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
16893 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
16894 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
16895 * defaults.h: Updated for above mentioned changes.
16896
16897 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
16898
16899 * c-common.c: Remove header include of tm_p.h.
16900 * Makefile.in (c-common.o): Remove TM_P_H dependency.
16901
16902 2010-06-02 Jakub Jelinek <jakub@redhat.com>
16903
16904 * tree.h (struct tree_decl_map): New type.
16905 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
16906 (tree_decl_map_hash): New prototype.
16907 (debug_expr_for_decl, value_expr_for_decl): Change into
16908 tree_decl_map hashtab from tree_map.
16909 (init_ttree): Adjust initialization.
16910 (tree_decl_map_hash): New function.
16911 (decl_debug_expr_lookup, decl_debug_expr_insert,
16912 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
16913
16914 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16915
16916 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
16917 linker emulations.
16918 * configure: Regenerate.
16919 * config.in: Regenerate.
16920
16921 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
16922 (X86_64_EMULATION): Define.
16923 (TARGET_LD_EMULATION): Use them.
16924
16925 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
16926 (SPARC64_EMULATION): Define.
16927 (LINK_ARCH_SPEC): Use them.
16928
16929 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
16930
16931 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
16932 smallest_mode_for_size for computing the precision types of new
16933 graphite IVs. Do not call lang_hooks.types.type_for_size.
16934
16935 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
16936
16937 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
16938 information.
16939 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
16940
16941 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
16942
16943 PR middle-end/44363
16944 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
16945 return false instead.
16946
16947 2010-06-02 Jan Hubicka <jh@suse.cz>
16948
16949 PR middle-end/44295
16950 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
16951 create new cgraph node to check callee.
16952
16953 2010-06-02 Richard Guenther <rguenther@suse.de>
16954
16955 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
16956
16957 2010-06-02 Richard Guenther <rguenther@suse.de>
16958
16959 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
16960 (lto_wrapper_cleanup): ... this. Do not exit.
16961 (fatal): Adjust. Exit here.
16962 (fatal_perror): Likewise.
16963 (fatal_signal): New function.
16964 (main): Set up signal handlers to cleanup temporary files.
16965 * Makefile.in (lto-wrapper.o): Adjust dependencies.
16966
16967 2010-06-02 Richard Guenther <rguenther@suse.de>
16968
16969 PR tree-optimization/44377
16970 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
16971
16972 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16973
16974 * config/s390/2097.md (z10_fhex): Remove insn reservation.
16975 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
16976 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
16977 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
16978 instruction.
16979 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
16980
16981 2010-06-02 Jan Hubicka <jh@suse.cz>
16982
16983 * bitmap.c (bitmap_descriptor): Add search_iter.
16984 (bitmap_find_bit): Increment it.
16985 (print_statistics): Print it.
16986
16987 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
16988
16989 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
16990 instead of gimple_build_call_vec. Delete unnecessary local variable.
16991
16992 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
16993
16994 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
16995 change from yesterday.
16996
16997 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
16998
16999 * c-ada-spec.c: Clean up redundant includes.
17000
17001 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
17002
17003 * gimplify.c: Do not include except.h and optabs.h.
17004 (gimplify_body): Do not initialize RTL profiling.
17005 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
17006 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
17007 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
17008 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
17009 langhooks.h.
17010
17011 * tree-pretty-print.h: Include pretty-print.h.
17012 * gimple-pretty-print.h: Include pretty-print.h.
17013
17014 * tree-pretty-print.c: Do not include diagnostic.h.
17015 * tree-vrp.c: Likewise.
17016 * tree-tailcall.c: Likewise
17017 * tree-scalar-evolution.c: Likewise
17018 * tree-ssa-dse.c: Likewise
17019 * tree-chrec.c: Likewise
17020 * tree-ssa-sccvn.c: Likewise
17021 * tree-ssa-copyrename.c: Likewise
17022 * tree-nomudflap.c: Likewise
17023 * tree-call-cdce.c: Likewise
17024 * tree-stdarg.c: Likewise
17025 * tree-ssa-math-opts.c: Likewise
17026 * tree-nrv.c: Likewise
17027 * tree-ssa-sink.c: Likewise
17028 * tree-browser.c: Likewise
17029 * tree-ssa-loop-ivcanon.c: Likewise
17030 * tree-ssa-loop.c: Likewise
17031 * tree-parloops.c: Likewise
17032 * tree-ssa-address.c: Likewise
17033 * tree-ssa-ifcombine.c: Likewise
17034 * tree-if-conv.c: Likewise
17035 * tree-data-ref.c: Likewise
17036 * tree-affine.c: Likewise
17037 * tree-ssa-phiopt.c: Likewise
17038 * tree-ssa-coalesce.c: Likewise
17039 * tree-ssa-pre.c: Likewise
17040 * tree-ssa-live.c: Likewise
17041 * tree-predcom.c: Likewise
17042 * tree-ssa-forwprop.c: Likewise
17043 * tree-ssa-dce.c: Likewise
17044 * tree-ssa-ter.c: Likewise
17045 * tree-ssa-loop-prefetch.c: Likewise
17046 * tree-optimize.c: Likewise
17047 * tree-ssa-phiprop.c: Likewise
17048 * tree-object-size.c: Likewise
17049 * tree-outof-ssa.c: Likewise
17050 * tree-ssa-structalias.c: Likewise
17051 * tree-switch-conversion.c: Likewise
17052 * tree-ssa-reassoc.c: Likewise
17053 * tree-ssa-operands.c: Likewise
17054 * tree-vectorizer.c: Likewise
17055 * tree-vect-data-refs.c: Likewise
17056 * tree-vect-generic.c: Likewise
17057 * tree-vect-stmts.c: Likewise
17058 * tree-vect-patterns.c: Likewise
17059 * tree-vect-slp.c: Likewise
17060 * tree-vect-loop.c: Likewise
17061 * tree-ssa-loop-ivopts.c: Likewise
17062 * tree-ssa-loop-im.c: Likewise
17063 * tree-ssa-loop-niter.c: Likewise
17064 * tree-ssa-loop-unswitch.c: Likewise
17065 * tree-ssa-loop-manip.c: Likewise
17066 * tree-ssa-loop-ch.c: Likewise
17067 * tree-dump.c: Likewise
17068 * tree-complex.c: Likewise
17069
17070 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
17071 * tree-ssa-uninit.c: Likewise
17072 * tree-ssa-threadupdate.c: Likewise
17073 * tree-ssa-uncprop.c: Likewise
17074 * tree-ssa-ccp.c: Likewise
17075 * tree-ssa-dom.c: Likewise
17076 * tree-ssa-propagate.c: Likewise
17077 * tree-ssa-alias.c: Likewise
17078 * tree-dfa.c: Likewise
17079 * tree-cfgcleanup.c: Likewise
17080 * tree-sra.c: Likewise
17081 * tree-ssa-copy.c: Likewise
17082 * tree-ssa.c: Likewise
17083 * tree-profile.c: Likewise
17084 * tree-cfg.c: Likewise
17085 * tree-ssa-threadedge.c: Likewise
17086 * tree-vect-loop-manip.c: Likewise
17087
17088 * tree-inline.c: Do not include diagnostic.h and expr.h.
17089 Include rtl.h.
17090 (copy_decl_for_dup_finish): Do not use NULL_RTX.
17091
17092 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
17093 * tree-loop-distribution.c: Likewise.
17094
17095 2010-06-01 Jan Hubicka <jh@suse.cz>
17096
17097 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
17098
17099 2010-06-01 Jan Hubicka <jh@suse.cz>
17100
17101 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
17102 remove return value.
17103 (split_bbs_on_noreturn_calls) .... here.
17104 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
17105 * tree-flow.h (fixup_noreturn_call): New.
17106
17107 2010-06-01 Jan Hubicka <jh@suse.cz>
17108
17109 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
17110
17111 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
17112
17113 * tree.h (build_nt_call_list): Delete.
17114 * tree.c (build_nt_call_list): Delete.
17115
17116 2010-06-01 Jan Hubicka <jh@suse.cz>
17117
17118 * fwprop.c: Make emit-rtl.h include last.
17119 * rtlanal.c: Include emit-rtl.h.
17120 * genautomata.c: Output emit-rtl include into insn-automata.c
17121 * df-scan.c: Include emit-rtl.h.
17122 * haifa-sched.c: Indlude emit-rtl.h.
17123 * mode-switching.c: Indlude emit-rtl.h.
17124 * graph.c: Indlude emit-rtl.h.
17125 * sel-sched.c: Include emit-rtl.h.
17126 * sel-sched-ir.c: Include emit-rtl.h.
17127 * ira-build.c: Include emit-rtl.h.
17128 * emit-rtl.c (first_insn, last_insn): Remove defines.
17129 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
17130 Move to emit-rtl.h.
17131 (set_new_first_and_last_insn, get_last_insn_anywhere,
17132 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
17133 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
17134 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
17135 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
17136 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
17137 Use accessor functions.
17138 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17139 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17140 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17141 mem_expr_equal_p): Move here from rtl.h.
17142 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
17143 Move here from emit-rtl.c; make inline.
17144 * cfglayout.h: Include emit-rtl.h.
17145 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17146 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17147 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17148 mem_expr_equal_p, get_insns, set_first-insn,
17149 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
17150 * reg-stack.c: Include emit-rtl.h.
17151 * dce.c: Likewise.
17152
17153 2010-06-01 Jan Hubicka <jh@suse.cz>
17154
17155 * cgraph.h (tree_function_versioning): Update prototype.
17156 (cgraph_function_versioning): Update prototype.
17157 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
17158 bitmap.
17159 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
17160 (cgraph_materialize_clone, save_inline_function_body): Update use of
17161 tree_function_versioning.
17162 * tree-inline.c (copy_bb): Look for previous copied block to link
17163 after; fix debug output.
17164 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
17165 (copy_body): Likewise.
17166 (expand_call_inline): Update use of copy_body.
17167 (tree_function_versioning): Update use of copy body; accept
17168 blocks_to_copy and new_entry.
17169
17170 2010-06-01 Jan Hubicka <jh@suse.cz>
17171
17172 * gegenrtl.c: Remove unnecesary prototypes.
17173 (gendecl): Remove.
17174 (gendef): Produce static inline.
17175 (gencode): Remove.
17176 (main): Do not decode parameters; generate header only.
17177 * Makefile.in (genrtl.c): Remove.
17178
17179 2010-06-01 Jan Hubicka <jh@suse.cz>
17180
17181 * tree-switch-conversion.c (build_one_array): Make it readonly.
17182
17183 2010-06-01 Richard Guenther <rguenther@suse.de>
17184
17185 * optabs.c (init_optabs): Guard all accesses to reinit.
17186 * ipa-pure-const.c (propagate): Fix another typo.
17187 * opts.c (common_handle_option): Split assignment to bool.
17188 * c-opts.c (c_common_handle_option): Likewise.
17189
17190 2010-06-01 Arnaud Charlet <charlet@adacore.com>
17191 Matthew Gingell <gingell@adacore.com>
17192
17193 * doc/invoke.texi: Mention -fdump-ada-spec.
17194 * tree-dump.c (dump_files): Add ada-spec.
17195 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
17196 * tree-pass.h (tree_dump_index): Add TDI_ada.
17197 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
17198 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
17199 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
17200 * c-decl.c: Include c-ada-spec.h.
17201 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
17202 functions.
17203 (c_write_global_declarations): Add handling of -fdump-ada-spec.
17204 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
17205 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
17206 * c-ada-spec.h, c-ada-spec.c: New files.
17207
17208 2010-06-01 Richard Guenther <rguenther@suse.de>
17209
17210 PR lto/43853
17211 * ipa-pure-const.c (get_function_state): Hand back varying state
17212 if we do not have one.
17213 (has_function_state): New function.
17214 (duplicate_node_data): Adjust.
17215 (remove_node_data): Likewise.
17216 (pure_const_write_summary): Likewise.
17217 (propagate): Likewise. Fix typo.
17218
17219 2010-06-01 Jan Hubicka <jh@suse.cz>
17220
17221 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
17222 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
17223 (execute_all_ipa_transforms): Do not play with the states.
17224
17225 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
17226
17227 * config/arm/t-linux-androideabi: New.
17228 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
17229
17230 2010-06-01 Jan Hubicka <jh@suse.cz>
17231
17232 * tree-inline.c (estimate_num_insns): For stdarg functions look
17233 into call statement to count cost of argument passing.
17234
17235 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
17236
17237 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
17238 argument for fprintf.
17239 (ix86_output_addr_diff_elt): Likewise.
17240 (x86_function_profiler): Likewise.
17241 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
17242 (LPREFIX): Likewise.
17243 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
17244
17245 2010-05-31 Jakub Jelinek <jakub@redhat.com>
17246
17247 PR target/44338
17248 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
17249 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
17250 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
17251 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
17252 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
17253 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
17254 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
17255 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
17256 TARGET_FUSED_MADD.
17257
17258 2010-05-31 Jan Hubicka <jh@suse.cz>
17259
17260 * tree.h (tree_range_check_failed): Declare noreturn.
17261
17262 2010-05-31 Jan Hubicka <jh@suse.cz>
17263
17264 * gimple.c (gimple_call_builtin_p): New function.
17265 * gimple.h (gimple_call_builtin_p): Declare.
17266 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
17267 to exit.
17268 (execute_warn_function_return): BUILT_IN_RETURN is return.
17269 (split_critical_edges): Return edges are not critical.
17270 (is_ctrl_altering_stmt): Builtin_in_return is altering.
17271 (gimple_verify_flow_info): Handle built_in_return.
17272 (execute_warn_function_return): Handle built_in_return.
17273 * ipa-pure-const.c (check_call): Ignore builtin_return.
17274
17275 2010-05-31 Jakub Jelinek <jakub@redhat.com>
17276
17277 PR middle-end/44337
17278 * expr.c (expand_assignment): Don't store anything for out-of-bounds
17279 array accesses with non-MEM.
17280
17281 PR tree-optimization/44182
17282 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
17283 newly needs to end a bb is followed by debug stmts, instead return
17284 true from the function at the end.
17285 (maybe_move_debug_stmts_to_successors): New function.
17286 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
17287
17288 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
17289
17290 PR target/44161
17291 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
17292
17293 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
17294
17295 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
17296 for nested functions in non-optimized compilation.
17297
17298 2010-05-31 Richard Guenther <rguenther@suse.de>
17299
17300 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
17301
17302 2010-05-30 Jan Hubicka <jh@suse.cz>
17303
17304 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
17305
17306 2010-05-30 Richard Guenther <rguenther@suse.de>
17307
17308 PR lto/42975
17309 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
17310 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
17311 no longer needed.
17312
17313 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
17314
17315 * config/darwin.c (output_objc_section_asm_op): Add comment.
17316 (name_needs_quotes): Add '_' to list of valid comment chars.
17317 (machopic_output_function_base_name): Remove unneeded quotes.
17318 (darwin_encode_section_info): Adjust asm whitespace.
17319 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
17320 (ASM_OUTPUT_LOCAL): Ditto.
17321 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
17322 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
17323 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
17324
17325 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
17326
17327 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
17328 RS6000_OUTPUT_BASENAME unconditionally.
17329 (rs6000_output_function_epilogue): Likewise.
17330
17331 2010-05-30 Jan Hubicka <jh@suse.cz>
17332
17333 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
17334 nodes.
17335
17336 2010-05-30 Richard Guenther <rguenther@suse.de>
17337
17338 * tree-cfg.c (verify_gimple_assign_single): Implement
17339 verification for COND_EXPR rhs.
17340
17341 2010-05-30 Jan Hubicka <jh@suse.cz>
17342
17343 * cgraph.h (cgraph_dump_file): Declare.
17344 * cgraphunit.c (cgraph_dump_file): Export.
17345 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
17346
17347 2010-05-30 Jan Hubicka <jh@suse.cz>
17348
17349 * dwarf2out.c (reference_to_unused,
17350 premark_types_used_by_global_vars_helper): Avoid creation of new
17351 varpool nodes.
17352
17353 2010-05-30 Jan Hubicka <jh@suse.cz>
17354
17355 * cgraph.h (cgraph_node_cannot_return,
17356 cgraph_edge_cannot_lead_to_return): New functions.
17357 * cgraph.c (cgraph_node_cannot_return,
17358 cgraph_edge_cannot_lead_to_return): Use them.
17359 * ipa-pure-const.c (pure_const_names): New static var.
17360 (check_call): Handle calls not leading to return.
17361 (pure_const_read_summary): Dump info read.
17362 (propagate): Dump info about propagation process; ignore side effects
17363 of functions not leading to exit; fix handling of pure functions.
17364
17365 2010-05-30 Jan Hubicka <jh@suse.cz>
17366
17367 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
17368 for tail call epilogues.
17369
17370 2010-05-30 Jan Hubicka <jh@suse.cz>
17371
17372 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
17373 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
17374 dump files.
17375
17376 2010-05-29 Jan Hubicka <jh@suse.cz>
17377
17378 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
17379 node; remove references in node we no longer keep in cgrpah but need
17380 body of.
17381
17382 2010-05-29 Jan Hubicka <jh@suse.cz>
17383
17384 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
17385
17386 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17387
17388 PR target/44165
17389 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
17390
17391 2010-05-29 Jan Hubicka <jh@suse.cz>
17392
17393 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
17394 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
17395 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
17396 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
17397 debug_names_replaced_by, debug_update_ssa): Likewise.
17398 * sbitmap.c (debug_sbitmap): Likewise.
17399 * genrecog.c (debug_decision, debug_decision_list): Likewise.
17400 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
17401 debug_tree_chain): Likewise.
17402 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
17403 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
17404 * optabs.c (debug_optab_libfuncs): Likewise.
17405 (verify_loop_closed_ssa): Likewise.
17406 * value-prof.c (verify_histograms): Likewise.
17407 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
17408 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
17409 * cfghooks.c (verify_flow_info): Likewise.
17410 * fold-const.c (debug_fold_checksum): Likewise.
17411 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
17412 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
17413 Likewise.
17414 * omega.c (debug_omega_problem): Likewise.
17415 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
17416 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
17417 * dominance.c (verify_dominators, debug_dominance_info,
17418 debug_dominance_tree): Likewise.
17419 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
17420 * df_regno_debug, df_ref_debug,
17421 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
17422 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
17423 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
17424 * sel-sched.c (debug_state): Likewise.
17425 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
17426 Likewise.
17427 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
17428 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
17429 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
17430 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
17431 Likewise.
17432 * c-pretty-print.c (debug_c_tree): Likewise.
17433 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
17434 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
17435 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
17436 * ebitmap.c (debug_ebitmap): Likewise.
17437 * function.c (debug_find_var_in_block_tree): Likewise.
17438 * print-rtl.c (debug_rtx): Likewise.
17439 (debug_rtx_count): Likewise.
17440 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
17441 * stor-layout.c (debug_rli): Likewise.
17442 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
17443 * tree-data-ref.c (debug_data_references,
17444 debug_data_dependence_relations, debug_data_reference,
17445 debug_data_dependence_relation, debug_rdg_vertex,
17446 debug_rdg_component, debug_rdg): Likewise.
17447 * tree-affine.c (debug_aff): Likewise.
17448 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
17449 Likewise.
17450 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
17451 * emit-rtl.c (verify_rtl_sharing): Likewise.
17452 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
17453 debug_value_expressions): Likewise.
17454 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
17455 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
17456 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
17457 * cfglayout.c (verify_insn_chain): Likewise.
17458 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
17459 debug_clast_stmt, debug_generated_program): Likewise.
17460 * ggc-page.c (debug_print_page_list): Likewise.
17461 * tree-ssa-ter.c (debug_ter): Likewise.
17462 * graphite-dependences.c (debug_pddr): Likewise.
17463 * sched-deps.c (debug_ds): Likewise.
17464 * tree-ssa.c (verify_ssa): Likewise.
17465 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
17466 debug_scattering_functions, debug_iteration_domains, debug_pdr,
17467 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
17468 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
17469 * tree-inline.c (debug_find_tree): Likewise.
17470 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
17471 debug_ppl_powerset_matrix): Likewise.
17472 * var-tracking.c (debug_dv): Likewise.
17473 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
17474 * cfgloop.c (verify_loop_structure): Likewise.
17475 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
17476 * c-common.c (verify_sequence_points): Likewise.
17477 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
17478 debug_candidates, debug_rgn_dependencies): Likewise.
17479 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
17480 * debug_constraint_graph, debug_solution_for_var,
17481 debug_sa_points_to_info): Likewise.
17482 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
17483 Likewie.
17484 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
17485 debug_loops, debug_loop, debug_loop_num): Likewise.
17486 * passes.c (debug_pass): Likewise.
17487 (dump_properties): Likewise; add cfglayout property.
17488 (debug_properties): Likewise.
17489 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
17490 * varpool.c (debug_varpool): Likewise.
17491 * regcprop.c (debug_value_data): Likewise.
17492 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
17493 debug_immediate_uses_for): Likewise.
17494
17495 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
17496
17497 PR bootstrap/44315
17498 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
17499 Filter out insn-flags.h.
17500
17501 2010-05-29 Jan Hubicka <jh@suse.cz>
17502
17503 * cgraph.h (struct varpool_node_set_def,
17504 struct cgraph_node_set_def): Remove unused AUX pointer.
17505 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
17506 VEC_empty macro.
17507
17508 2010-05-29 Jan Hubicka <jh@suse.cz>
17509
17510 PR middle-end/44324
17511 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
17512
17513 2010-05-29 Richard Guenther <rguenther@suse.de>
17514
17515 * lto-streamer.c (cached_bp): New global variable.
17516 (bitpack_create): Return the cached bitpack, if available.
17517 (bitpack_delete): Clear and cache the bitpack, if appropriate.
17518 (bp_pack_value): Remove redundant asserts.
17519
17520 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
17521
17522 PR middle-end/44306
17523 * tree-if-conv.c (is_true_predicate): New.
17524 (is_predicated): Use is_true_predicate.
17525 (add_to_predicate_list): Same. Do not use unshare_expr.
17526 (add_to_dst_predicate_list): Same.
17527
17528 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
17529
17530 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
17531 field on edges.
17532 (predicate_bbs): Same.
17533 (clean_predicate_lists): Same.
17534 (find_phi_replacement_condition): Do not AND the predicate from
17535 edge->aux.
17536
17537 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
17538
17539 PR bootstrap/44315
17540 * Makefile.in (build/gencondmd.o): Add a missing `\'.
17541
17542 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17543
17544 PR target/44261
17545 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
17546 (negdf2): Adjust expander pattern and use negdf2_slow.
17547 (negsf2): Likewise.
17548
17549 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
17550
17551 * basic-block.h (struct control_flow_graph): Move last_label_uid field
17552 up.
17553 * df.h (struct df_base_ref): Move regno field up.
17554 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
17555 * expr.h (struct separate_ops): Move location field up.
17556 * optabs.h (struct optab_d): Move libcall_basename field down.
17557 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
17558 * config/i386/i386.h (struct machine_function): Convert call_abi field
17559 into a bitfield. Move cfa field to the end of the structure.
17560
17561 2010-05-29 Jan Hubicka <jh@suse.cz>
17562
17563 * varpool.c (varpool_get_node): Fix lookup.
17564
17565 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17566
17567 * config/spu/spu-protos.h: Do not include rtl.h. Protect
17568 RTL specific prototypes with #ifdef RTX_CODE.
17569 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
17570 * config/spu/t-spu-elf: Fix dependencies.
17571
17572 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
17573
17574 2010-05-29 Mike Stump <mikestump@comcast.net>
17575
17576 PR bootstrap/44315
17577 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
17578 TM_H when building to avoid dependency loops.
17579
17580 2010-05-29 Jan Hubicka <jh@suse.cz>
17581
17582 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
17583 refs and body; not the whole node for masters of materialized clones.
17584
17585 2010-05-29 Mike Stump <mikestump@comcast.net>
17586
17587 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
17588
17589 2010-05-29 Jan Hubicka <jh@suse.cz>
17590
17591 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
17592 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
17593 use of clone_function_name.
17594 * cgraph.h (cgraph_create_virtual_clone,
17595 cgraph_function_versioning): update prototypes.
17596 (clone_function_name): Declare.
17597 * ipa-cp.c (ipcp_insert_stage): Update call of
17598 cgraph_create_virtual_clone.
17599 * omp-low.c (create_omp_child_function_name): Use
17600 cgraph_create_virtual_clone.
17601 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
17602 (cgraph_function_versioning): Take SUFFIX argument; produce new name
17603 and make decl local.
17604
17605 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17606
17607 * vec.h: Include statistics.h
17608 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
17609 with VEC_H.
17610
17611 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17612
17613 * c-lex.c: Do not include c-tree.h.
17614 * c-pretty-print.c: Likewise.
17615 * c-opts.c: Likewise.
17616 * c-gimplify.c: Likewise.
17617 * c-common.c: Likewise.
17618 * c-dump.c: Likewise. Include c-common.h.
17619
17620 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17621
17622 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
17623 before including diagnostic-core.h.
17624 (c_cpp_error): New prototype moved from c-tree.h.
17625 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
17626 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
17627 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
17628 (c_cpp_error): Prototype moved to c-common.h.
17629 * Makefile.in: Update dependency for C_COMMON_H.
17630
17631 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
17632
17633 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
17634 * c-common.c (c_register_addr_space): Remove here.
17635 * c-decl.c (c_register_addr_space): Re-add here.
17636
17637 2010-05-28 Mike Stump <mikestump@comcast.net>
17638
17639 * config/darwin-c.c: Remove c-tree.h include.
17640
17641 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17642
17643 * gcc.c: Include diagnostic.h.
17644 (error_count): Remove. All users changed to use errorcount.
17645 (programname): Remove. All users changed to use progname.
17646 (fancy_abort, internal_error, fatal_error, error, warning, inform,
17647 fnotice): Remove.
17648 (execute): Don't include "Internal error" and bug reporting
17649 information in argument of internal_error call.
17650 (process_command): Don't increment error_count after calling
17651 perror_with_name.
17652 (input_filename): Rename to gcc_input_filename. All users
17653 changed.
17654 (main): Call diagnostic_initialize. Register delete_temp_files
17655 with atexit. Use seen_error to test for errors.
17656 * gcc.h: Include diagnostic-core.h.
17657 (fatal_error, error, warning): Remove.
17658 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
17659 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
17660 (gcc.o): Update dependencies.
17661
17662 2010-05-28 Jeff Law <law@redhat.com>
17663
17664 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
17665 functions.
17666 * ira.h (ira_bad_reload_regno): Declare
17667 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
17668
17669 * ira-color.c (update_curr_costs): Free updated hard reg costs.
17670 (ira_reassign_conflict_allocnos): Remove bogus asserts.
17671 (allocno_reload_assign): Likewise.
17672
17673 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
17674
17675 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17676 build1_stat.
17677
17678 2010-05-28 Richard Guenther <rguenther@suse.de>
17679
17680 PR lto/44312
17681 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17682 Stream fixed-point constants mode.
17683 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17684 and TYPE_PRECISION.
17685 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17686 Stream fixed-point constants mode.
17687 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17688 and TYPE_PRECISION.
17689
17690 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17691
17692 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17693 only place it was called from.
17694 (number_of_latch_executions): Do not return chrec_dont_know when the
17695 may_be_zero is a runtime condition: instead, return a COND_EXPR
17696 including the may_be_zero condition.
17697 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17698 of nb_iterations.
17699 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17700 COND_EXPRs.
17701
17702 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17703
17704 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17705 generate COND_EXPRs for degenerate_phi_result.
17706
17707 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
17708
17709 PR middle-end/44293
17710 * tree-if-conv.c (if_convertible_loop_p): Check the
17711 if-convertibility of phi nodes in non predicated BBs.
17712
17713 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17714
17715 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17716
17717 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17718
17719 PR driver/15303
17720 * gcc.c (inform, warning, inform): New functions.
17721 (fatal_ice): Rename to internal_error; change cmsgid parameter to
17722 gmsgid. All callers changed.
17723 (notice): Rename to fnotice; add parameter fp. All callers changed.
17724 (fatal_error): Rename to fatal_signal. All users changed.
17725 (fatal): Rename to fatal_error; change cmsgid parameter to
17726 gmsgid. All callers changed.
17727 (process_command): Use warning instead of error for warnings.
17728 (end_going_arg): Don't use _() around argument of error.
17729 (do_spec_1): Use inform for message from %n specs. Use warning
17730 instead of error for warnings.
17731 (main): Use inform for comparison messages. Use warning for
17732 message about unused linker input.
17733 (error): Increment error_count. Print "error: ".
17734 * gcc.h (fatal): Change to fatal_error.
17735 (warning): Declare.
17736 * config/darwin-driver.c (darwin_default_min_version): Use warning
17737 instead of fprintf for warnings.
17738 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17739
17740 2010-05-28 Julian Brown <julian@codesourcery.com>
17741
17742 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17743 (*thumb2_addsi3_compare0_scratch): New.
17744 * config/arm/constraints.md (Pv): New.
17745 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17746 for ARM mode only.
17747 (*addsi3_compare0_scratch): Likewise.
17748
17749 2010-05-28 Jan Hubicka <jh@suse.cz>
17750
17751 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17752 check.
17753 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17754 only on local statics.
17755
17756 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
17757
17758 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17759
17760 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
17761
17762 PR bootstrap/44314
17763 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17764 (OPTION_GLIBC): Define.
17765
17766 2010-05-28 Jakub Jelinek <jakub@redhat.com>
17767
17768 PR debug/41048
17769 * dwarf2out.c (double_int_type_size_in_bits): New function.
17770 (round_up_to_align): Change first argument and return value to
17771 double_int.
17772 (field_byte_offset): Work internally on double_ints.
17773
17774 PR target/43636
17775 * builtins.c (expand_movstr): Use a temporary pseudo instead
17776 of target even when target is not NULL and not const0_rtx, but
17777 fails movstr predicate.
17778 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17779
17780 2010-05-28 Joseph Myers <joseph@codesourcery.com>
17781
17782 * final.c (rest_of_clean_state): Use %m in errors instead of
17783 strerror (errno).
17784 * gengtype.c (read_input_list, close_output_files): Use xstrerror
17785 instead of strerror.
17786 * toplev.c (process_options): Use %m in errors instead of strerror
17787 (errno).
17788 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17789 (errno).
17790
17791 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
17792
17793 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17794 (ix86_canonical_va_list_type): Make static. Add declaration.
17795 (ix86_enum_va_list): Make static. Reindent.
17796 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17797 (ix86_canonical_va_list_type): Ditto.
17798 (ix86_enum_va_list): Ditto.
17799
17800 2010-05-28 Richard Guenther <rguenther@suse.de>
17801
17802 * lto-wrapper.c (run_gcc): With -save-temps generate a
17803 user-visible ltrans filename. Fixup ltrans unit numbering.
17804
17805 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
17806
17807 * c-common.c (c_common_nodes_and_builtins): Replace use
17808 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17809 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17810 to ix86_enum_va_list.
17811 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17812 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17813 (TARGET_ENUM_VA_LIST_P): Add hook description.
17814 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17815 * target.h (gcc_target): Add enum_va_list hook.
17816
17817 PR bootstrap/44299
17818 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17819 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17820 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17821
17822 2010-05-28 Alan Modra <amodra@gmail.com>
17823
17824 PR target/44266
17825 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17826 emit_library_call machinery to set up __tls_get_addr calls.
17827
17828 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17829
17830 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17831
17832 2010-05-28 Dodji Seketeli <dodji@redhat.com>
17833
17834 Revert fix for PR c++/44188
17835 * c-common.c (is_typedef_decl): Revert the moving of this
17836 definition ...
17837 * tree.c (is_typedef_decl): ... here.
17838 (typdef_variant_p): Revert the moving of this definition
17839 here from cp/tree.c.
17840 * c-common.h (is_typedef_decl): Revert the moving of this
17841 declaration ...
17842 * tree.h (is_typedef_decl): ... here.
17843 (typedef_variant_p): Revert the moving of this declaration here
17844 from cp/cp-tree.h
17845 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
17846 (gen_tagged_type_die): Revert the splitting out of ...
17847 (gen_type_die_with_usage): ... this function. Revert the anonymous
17848 tagged type handling.
17849 (gen_typedef_die): Revert emitting DW_TAG_typedef for
17850 typedefs naming anonymous tagged types.
17851
17852 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
17853
17854 * config/rs6000/rs6000-modes.def (PSImode): Delete.
17855
17856 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
17857
17858 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
17859 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
17860 throughout.
17861 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
17862 "xer" to "ca".
17863 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
17864 XER_REGS to CA_REGS throughout.
17865 * config/rs6000/rs6000.h: Same.
17866 (ADDITIONAL_REGISTER_NAMES): Add "xer".
17867 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
17868 that mode_iterator "P" is the size for arithmetic carries as well.
17869 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
17870
17871 2010-05-28 Jakub Jelinek <jakub@redhat.com>
17872
17873 PR bootstrap/44255
17874 * combine.c (struct rtx_subst_pair): Define unconditionally.
17875 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
17876 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
17877 Call make_compound_operation on pair->to.
17878 (propagate_for_debug): Don't call make_compound_operation here.
17879 Always use simplify_replace_fn_rtx.
17880
17881 2010-05-27 Sterling Augustine <sterling@tensilica.com>
17882
17883 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
17884 * config/xtensa/xtensa.c (override_options): Check
17885 TARGET_FORCE_NO_PIC and set flag_pic.
17886 * config/xtensa/xtensa.opt: Document -mforce-no-pic
17887
17888 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
17889
17890 PR bootstrap/44299
17891 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
17892 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
17893
17894 2010-05-27 Joseph Myers <joseph@codesourcery.com>
17895
17896 * diagnostic-core.h: New. Contents moved from diagnostic.h and
17897 toplev.h.
17898 * diagnostic.c: Don't include toplev.h.
17899 (progname): Define. Moved from toplev.c.
17900 (seen_error): New function.
17901 * diagnostic.h: Include diagnostic-core.h.
17902 (diagnostic_t, emit_diagnostic): Don't declare here.
17903 * toplev.c (progname): Move to toplev.c.
17904 (emit_debug_global_declarations, compile_file, finalize,
17905 do_compile, toplev_main): Use seen_error.
17906 * toplev.h: Include diagnostic-core.h.
17907 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
17908 internal_error, warning, warning_at, error, error_n, error_at,
17909 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
17910 verbatim, fnotice, progname): Move to diagnostic-core.h.
17911 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
17912 (expand_builtin_expect): Use seen_error.
17913 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
17914 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
17915 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
17916 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
17917 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
17918 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
17919 errorcount for errors.
17920 * c-opts.c (c_common_finish): Use seen_error.
17921 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17922 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
17923 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
17924 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
17925 (get_coverage_counts): Use seen_error.
17926 * dwarf2out.c (dwarf2out_finish): Use seen_error.
17927 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
17928 gimplify_body): Use seen_error.
17929 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
17930 * ipa-pure-const.c (gate_pure_const): Use seen_error.
17931 * ipa-reference.c (gate_reference): Use seen_error.
17932 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
17933 * lambda-code.c: Include diagnostic-core.h instead of
17934 diagnostic.h.
17935 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17936 * lto-compress.c: Include diagnostic-core.h instead of
17937 diagnostic.h.
17938 * lto-section-in.c: Include diagnostic-core.h instead of
17939 diagnostic.h.
17940 * lto-streamer-out.c: Include diagnostic-core.h instead of
17941 diagnostic.h.
17942 * lto-streamer.c: Include diagnostic-core.h instead of
17943 diagnostic.h.
17944 (gate_lto_out): Use seen_error.
17945 * matrix-reorg.c: Include diagnostic-core.h instead of
17946 diagnostic.h.
17947 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
17948 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
17949 (gate_expand_omp, lower_omp_1): Use seen_error.
17950 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
17951 (rest_of_decl_compilation, rest_of_type_compilation,
17952 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
17953 * tree-cfg.c (label_to_block_fn): Use seen_error.
17954 * tree-inline.c (optimize_inline_calls): Use seen_error.
17955 * tree-mudflap.c (mudflap_finish_file): Use
17956 seen_error.
17957 * tree-optimize.c (gate_all_optimizations,
17958 gate_all_early_local_passes, gate_all_early_optimizations): Use
17959 seen_error.
17960 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
17961 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
17962 (varpool_remove_unreferenced_decls,
17963 varpool_assemble_pending_decls): Use seen_error.
17964 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
17965 (TOPLEV_H, DIAGNOSTIC_H): Update.
17966 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
17967 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
17968 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
17969 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
17970 coverage.o, lambda-code.o): Update dependencies.
17971
17972 2010-05-25 Dodji Seketeli <dodji@redhat.com>
17973
17974 PR c++/44188
17975 * c-common.c (is_typedef_decl): Move this definition ...
17976 * tree.c (is_typedef_decl): ... here.
17977 (typdef_variant_p): Move definition here from cp/tree.c.
17978 * c-common.h (is_typedef_decl): Move this declaration ...
17979 * tree.h (is_typedef_decl): ... here.
17980 (typedef_variant_p): Move declaration here from cp/cp-tree.h
17981 * dwarf2out.c (is_naming_typedef_decl): New function.
17982 (gen_tagged_type_die): Split out of ...
17983 (gen_type_die_with_usage): ... this function. When an anonymous
17984 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
17985 is emitted for the typedef.
17986 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
17987 anonymous tagged types.
17988
17989 2010-05-27 Jason Merrill <jason@redhat.com>
17990
17991 * print-tree.c (debug_vec_tree): New fn.
17992 (print_vec_tree): New fn.
17993 * tree.h: Declare them.
17994 * gdbinit.in (pvt): New command.
17995
17996 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
17997
17998 * gdbinit.in (pdd): New command.
17999
18000 2010-05-27 Jan Hubicka <jh@suse.cz>
18001
18002 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
18003 (update_caller_keys): Return early if there are no callers;
18004 only update fibheap when decresing the key.
18005 (update_callee_keys): Avoid recursion.
18006 (decide_inlining_of_small_functions): When badness does not match;
18007 re-insert into fibheap.
18008
18009 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
18010
18011 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
18012 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
18013 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
18014 (ALL_HOST_OBJS): Now a union of the above two.
18015 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
18016 all files in ALL_HOST_FRONTEND_OBJS.
18017 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
18018
18019 * c-common.c: Pretend to be a backend file by undefining
18020 IN_GCC_FRONTEND (still need rtl.h here).
18021
18022 2010-05-27 Jan Hubicka <jh@suse.cz>
18023
18024 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
18025 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
18026
18027 2010-05-27 Jan Hubicka <jh@suse.cz>
18028
18029 * sched-ebb.c: Rename struct deps to struct deps_desc.
18030 * ddg.c: Likewise.
18031 * sel-sched-ir.c: Likewise.
18032 * sched-deps.c: Likewise.
18033 * sched-int.h: Likewise.
18034 * sched-rgn.c: Likewise.
18035
18036 2010-05-27 Jon Beniston <jon@beniston.com>
18037
18038 PR 43726
18039 * config/lm32/lm32.h: Remove definition of
18040 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
18041
18042 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
18043
18044 PR lto/44230
18045 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
18046
18047 2010-05-27 Richard Guenther <rguenther@suse.de>
18048
18049 PR tree-optimization/44284
18050 * tree-vect-stmts.c (vectorizable_assignment): Handle
18051 sign-changing conversions as simple copy.
18052
18053 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18054
18055 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
18056 Bionic C library.
18057 (__gthread_active_p): Check for pthread_create if compiling against
18058 Bionic C library.
18059
18060 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18061
18062 Support compilation for Android platform. Reimplement -mandroid.
18063
18064 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
18065 (*android*): Set ANDROID_DEFAULT.
18066 (arm*-*-linux*): Include linux-android.h.
18067 (arm*-*-eabi*): Don't include previous -mandroid implementation.
18068 * config/arm/eabi.h: Remove, move Android-specific parts ...
18069 * config/linux-android.h: ... here. New file.
18070 * config/arm/eabi.opt: Rename to ...
18071 * config/linux-android.opt: ... this.
18072 (mandroid): Allow -mno-android option. Initialize based on
18073 ANDROID_DEFAULT.
18074 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
18075 Move logic to corresponding LINUX_TARGET_* macros.
18076 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
18077 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
18078 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
18079 Android definitions.
18080 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
18081 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
18082 Document.
18083
18084 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18085
18086 Add support for Bionic C library
18087
18088 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
18089 macro.
18090 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
18091 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
18092
18093 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
18094 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
18095 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
18096 to support multiple C libraries. Handle Bionic.
18097 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
18098 (BIONIC_DYNAMIC_LINKER64): Define.
18099 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
18100 Update.
18101 (TARGET_HAS_SINCOS): Enable for Bionic.
18102
18103 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
18104 the last option specified on command line take effect.
18105 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
18106 (mbionic): New.
18107 (mglibc, muclibc): Update.
18108
18109 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
18110 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
18111 DEFAULT_LIBC.
18112
18113 * doc/invoke.texi (-mglibc, -muclibc): Update.
18114 (-mbionic): Document.
18115
18116 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18117
18118 * c-common.h (c_register_addr_space): Add prototype.
18119 (ADDR_SPACE_KEYWORD): Remove.
18120 * c-common.c (c_register_addr_space): New function.
18121 (c_addr_space_name): Reimplement.
18122 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
18123
18124 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
18125 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
18126
18127 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
18128 Remove TARGET_ADDR_SPACE_KEYWORDS.
18129
18130 2010-05-27 Joseph Myers <joseph@codesourcery.com>
18131
18132 * input.c: New file.
18133 * input.h (main_input_filename): Move declaration to toplev.h.
18134 * toplev.c (input_location, line_table): Move to input.c
18135 * toplev.h (main_input_filename): Move declaration from input.h.
18136 * tree.c (expand_location): Move to input.c.
18137 * Makefile.in (OBJS-common): Add input.o.
18138 (input.o): Add dependencies.
18139
18140 2010-05-27 Richard Guenther <rguenther@suse.de>
18141
18142 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
18143 for non-existant files.
18144 (fork_execute): Mark args_name file as deleted.
18145
18146 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
18147
18148 PR bootstrp/44287
18149 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
18150 (narrow_signed_type): Likewise.
18151
18152 2010-05-26 Jan Hubicka <jh@suse.cz>
18153
18154 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
18155 edge only when checking is enabled; check using former_clone_of;
18156 check inline clones too.
18157 (cgraph_materialize_clone): Record former_clone_of pointer.
18158 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
18159 combining redirections; dump args_to_skip bitmap
18160 (cgraph_materialize_all_clones): Do no redirection here.
18161 * ipa-inline.c (inline_transform): Do redirection here.
18162 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
18163 cheking only).
18164
18165 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
18166
18167 * config/avr/avr-c.c: Do not include regs.h.
18168 Include cpplib.h for cpp_define and tree.h for c-common.h.
18169 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
18170 * config/avr/t-avr: Fix dependencies for avr-c.o.
18171
18172 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
18173
18174 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
18175 string instead of SYMBOL_REF rtx.
18176 * rtl.h (set_stack_check_libfunc): Move prototype from here...
18177 * libfuncs.h: ...to here. Adjust for explow.c change.
18178
18179 2010-05-26 Joseph Myers <joseph@codesourcery.com>
18180
18181 * pretty-print.c: Don't include ggc.h.
18182 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
18183 (identifier_to_locale): Use them for allocation.
18184 * pretty-print.h (identifier_to_locale_alloc,
18185 identifier_to_locale_free): Declare.
18186 * toplev.c (alloc_for_identifier_to_locale): New.
18187 (general_init): Set identifier_to_locale_alloc and
18188 identifier_to_locale_free.
18189 * Makefile.in (pretty-print.o): Update dependencies.
18190
18191 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
18192
18193 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
18194 pointer types if they have different alignment or mode.
18195
18196 2010-05-26 Anatoly Sokolov <aesok@post.ru>
18197
18198 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
18199 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18200 * config/sparc/sparc-protos.h (function_value): Remove declaration.
18201 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
18202 sparc_function_value_regno_p): New functions.
18203 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18204 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18205 (function_value): Rename to...
18206 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
18207 argument to 'outgoing'.
18208 (function_arg_record_value, function_arg_union_value,
18209 function_arg_vector_value): Update comment.
18210
18211 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
18212
18213 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
18214 (fde_needed_for_eh_p): New predicate.
18215 (output_call_frame_info): Use it throughout to decide whether FDEs
18216 are needed for EH purpose.
18217 (dwarf2out_begin_prologue): Reorder assignments.
18218
18219 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18220
18221 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
18222 special case loop->header.
18223 (is_predicated): New.
18224 (if_convertible_loop_p): Call it.
18225
18226 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18227
18228 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
18229 iterator in parameter. Do not generate code during the analysis.
18230 (tree_if_convert_cond_stmt): Removed.
18231 (tree_if_convert_stmt): Removed.
18232 (predicate_bbs): New.
18233 (if_convertible_loop_p): Call predicate_bbs.
18234 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
18235 now contains all the analysis part.
18236
18237 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18238
18239 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
18240 statements in the analysis part.
18241 (tree_if_convert_stmt): Update comment.
18242 (remove_conditions_and_labels): New.
18243 (combine_blocks): Call remove_conditions_and_labels.
18244 (tree_if_conversion): Update comment.
18245
18246 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18247
18248 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
18249 than 2 predecessors or more than 2 successors.
18250
18251 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18252
18253 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
18254 of loops in which the data dependence analysis fails.
18255
18256 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18257
18258 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
18259 CDI_POST_DOMINATORS.
18260 (tree_if_conversion): Same.
18261
18262 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18263
18264 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
18265
18266 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
18267
18268 * tree-if-conv.c: Update copyright years. Fix comments.
18269 Fix indentation.
18270
18271 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
18272
18273 * builtin-types.def (BT_INT128): New primitive type.
18274 (BT_UINT128): Likewise.
18275 * c-common.c (c_common_r): Add __int128 keyword.
18276 (c_common_type_for_size): Handle __int128.
18277 (c_common_type_for_mode): Likewise.
18278 (c_common_signed_or_unsigned_type): Likewise.
18279 (c_common_nodes_and_builtins): Add builtin type
18280 if target supports 128-bit integer scalar.
18281 * c-common.h (enum rid): Add RID_INT128.
18282 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
18283 if target supports 128-bit integer scalar.
18284 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
18285 (finish_declspecs): Likewise.
18286 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
18287 (c_token_starts_declspecs): Likewise.
18288 (c_parser_declspecs): Likewise.
18289 (c_parser_attributes): Likewise.
18290 (c_parser_objc_selector): Likewise.
18291 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
18292 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
18293 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
18294 * tree.c (make_or_reuse_type): Likewise.
18295 (make_unsigned_type): Likewise.
18296 (build_common_tree_nodes_2): Likewise.
18297 * tree.h (enum integer_type_kind): Add itk_int128 and
18298 itk_unsigned_int128.
18299 (int128_integer_type_node): New define.
18300 (int128_unsigned_type_node): New define.
18301 * doc/extend.texi: Add documentation about __int128 type.
18302
18303 2010-05-26 Richard Guenther <rguenther@suse.de>
18304
18305 * tree-ssa-sccvn.c (copy_nary): Adjust.
18306 (copy_phis): Rename to ...
18307 (copy_phi): ... this. Adjust.
18308 (copy_references): Rename to ...
18309 (copy_reference): ... this. Adjust.
18310 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
18311 result into the valid table.
18312
18313 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
18314
18315 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
18316 insn-config.h, insn-codes.h, recog.h, and optabs.h.
18317
18318 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18319
18320 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
18321
18322 2010-05-26 Richard Guenther <rguenther@suse.de>
18323
18324 * opts.c (common_handle_option): Handle OPT_Ofast.
18325
18326 2010-05-26 Joseph Myers <joseph@codesourcery.com>
18327
18328 * diagnostic.c: Don't include opts.h.
18329 (permissive_error_option): Define.
18330 (diagnostic_initialize): Take n_opts parameter. Allocate memory
18331 for classify_diagnostic. Don't use memset for
18332 classify_diagnostic. Initialize new and recently added fields.
18333 (diagnostic_classify_diagnostic): Use context->n_opts instead of
18334 N_OPTS.
18335 (diagnostic_report_diagnostic): Pass context parameter to
18336 diagnostic_report_warnings_p. Use option_enabled and option_name
18337 hooks from context.
18338 (emit_diagnostic): Use permissive_error_option.
18339 (permerror): Likewise.
18340 * diagnostic.h: Don't include options.h.
18341 (struct diagnostic_context): Add n_opts, opt_permissive,
18342 inhibit_warnings, warn_system_headers, option_enabled and
18343 option_name fields. Change classify_diagnostic to a pointer.
18344 * opts-diagnostic.h: New file.
18345 * opts.c: Include opts-diagnostic.h.
18346 (common_handle_option): Set global_dc fields for -Wfatal-errors,
18347 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
18348 (option_name): New function.
18349 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
18350 (c_common_handle_option): Set global_dc->permissive for
18351 -fpermissive.
18352 * c-common.c (c_cpp_error): Save and restore
18353 global_dc->warn_system_headers, not variable warn_system_headers.
18354 * toplev.c: Include opts-diagnostic.h.
18355 (general_init): Update call to diagnostic_initialize. Set
18356 global_dc->show_column, global_dc->option_enabled and
18357 global_dc->option_name.
18358 (process_options): Don't set global_dc fields here.
18359 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
18360 (diagnostic.o, opts.o, toplev.o): Update dependencies.
18361
18362 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
18363
18364 * config/picochip/picochip.md (movsi): Split a movsi from a
18365 const after reload.
18366
18367 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18368
18369 * ggc-zone.c: Update copyright year.
18370 (poison_region): Mark memory for Valgrind as undefined before
18371 memset () call and inaccessible afterwards.
18372 (ggc_pch_total_size): Change type of i to int.
18373
18374 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18375
18376 * ggc-common.c (ggc_free_overhead): Allow empty slot.
18377
18378 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18379
18380 * ggc-common.c: Update copyright year.
18381 (ggc_rlimit_bound): Remove prototype. Compile only if
18382 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
18383 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
18384 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
18385 (ggc_min_heapsize_heuristic): Likewise.
18386
18387 2010-05-26 Richard Guenther <rguenther@suse.de>
18388
18389 PR rtl-optimization/44164
18390 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
18391 no-common access-path disambiguation.
18392 (indirect_ref_may_alias_decl_p): Adjust.
18393 (indirect_refs_may_alias_p): Likewise.
18394 (refs_may_alias_p_1): Likewise.
18395
18396 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
18397
18398 * c-typeck.c: Do not include expr.h.
18399
18400 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
18401
18402 * rtl.h (decl_default_tls_model): Move prototype from here...
18403 * output.h: ...to here.
18404 * c-decl.c: Do not include rtl.h.
18405 * c-pragma.c: Likewise.
18406 * c-parser.c: Likewise.
18407 * c-gimplify.c: Likewise. And also not hard-reg-set.
18408 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
18409 FIXME note for it. Add a FIXME note for expr.h.
18410 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
18411 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
18412 defined.
18413
18414 2010-05-26 Jakub Jelinek <jakub@redhat.com>
18415
18416 PR target/44199
18417 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
18418 or total_size is larger than red zone size for non-V4 ABI, emit a
18419 stack_tie resp. frame_tie insn before stack pointer restore.
18420 * config/rs6000/rs6000.md (frame_tie): New insn.
18421
18422 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
18423
18424 * function.h (struct function): Add can_throw_non_call_exceptions bit.
18425 * lto-streamer-in.c (input_function): Stream it in.
18426 * lto-streamer-out.c (output_function): Stream it out.
18427 * function.c (allocate_struct_function): Set it.
18428 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
18429 for flag_non_call_exceptions.
18430 * cfgbuild.c (control_flow_insn_p): Likewise.
18431 (make_edges): Likewise.
18432 * cfgexpand.c (expand_stack_alignment): Likewise.
18433 * combine.c (distribute_notes): Likewise.
18434 * cse.c (cse_extended_basic_block): Likewise.
18435 * except.c (insn_could_throw_p): Likewise.
18436 * gcse.c (simple_mem): Likewise.
18437 * ipa-pure-const.c (check_call): Likewise.
18438 (check_stmt ): Likewise.
18439 * lower-subreg.c (lower-subreg.c): Likewise.
18440 * optabs.c (emit_libcall_block): Likewise.
18441 (prepare_cmp_insn): Likewise.
18442 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
18443 * postreload.c (rest_of_handle_postreload): Likewise.
18444 * reload1.c (reload_as_needed): Likewise.
18445 (emit_input_reload_insns): Likewise.
18446 (emit_output_reload_insns): Likewise.
18447 (fixup_abnormal_edges): Likewise.
18448 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
18449 * store-motion.c (find_moveable_store): Likewise.
18450 * tree-eh.c (stmt_could_throw_p): Likewise.
18451 (tree_could_throw_p): Likewise.
18452 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18453 * config/arm/arm.c (arm_expand_prologue): Likewise.
18454 (thumb1_expand_prologue): Likewise.
18455 * config/rx/rx.md (cbranchsf4): Likewise.
18456 (cmpsf): Likewise.
18457 * config/s390/s390.c (s390_emit_prologue): Likewise.
18458 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
18459 (inline_forbidden_into_p): New predicate.
18460 (expand_call_inline): Use it to forbid inlining.
18461 (tree_can_inline_p): Likewise.
18462
18463 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
18464
18465 * config/i386/i386-c.c: Do not include rtl.h.
18466 * config/i386/t-i386: Update dependencies.
18467
18468 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
18469
18470 * attribs.c: Do not include rtl.h.
18471 * Makefile.in: Update dependencies.
18472
18473 2010-05-25 Anatoly Sokolov <aesok@post.ru>
18474
18475 * double-int.h (double_int_and): New.
18476 * combine.c (try_combine): Clean up, use double_int_* and
18477 immed_double_int_const functions.
18478
18479 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18480
18481 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
18482 stderr to /dev/null instead of grep -q.
18483 * configure: Regenerate.
18484
18485 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
18486
18487 * Makefile.in (EXCEPT_H): Fix typo.
18488
18489 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
18490
18491 * ira-build.c (update_conflict_hard_reg_costs): New.
18492 (ira_build): Call update_conflict_hard_reg_costs.
18493
18494 2010-05-25 Jakub Jelinek <jakub@redhat.com>
18495
18496 PR debug/41371
18497 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
18498 ENABLE_CHECKING.
18499 (intersect_loc_chains): Walk the s2var's loc_chain together
18500 with s1node chain as long as the locations are equal, don't
18501 call find_loc_in_1pdv in that case.
18502
18503 PR debug/42801
18504 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
18505 (copy_bind_expr): ... instead of here.
18506 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
18507 if the block hasn't been remapped.
18508 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
18509 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
18510
18511 2010-05-25 Richard Guenther <rguenther@suse.de>
18512
18513 PR middle-end/44069
18514 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
18515 out-of-bounds array accesses.
18516
18517 2010-05-25 Richard Guenther <rguenther@suse.de>
18518
18519 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
18520 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
18521 (run_gcc): Re-organize to make cleanup easier.
18522
18523 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18524
18525 * config/s390/s390.c (optimization_options): Fix and move the
18526 flag_prefetch_loop_arrays override ...
18527 (override_options): ... here.
18528
18529 2010-05-25 Joseph Myers <joseph@codesourcery.com>
18530
18531 * diagnostic.c: Don't include plugin.h.
18532 (diagnostic_report_diagnostic): Don't handle plugins specially
18533 here. Pass context to internal_error callback.
18534 * diagnostic.h (struct diagnostic_context): Add context parameter
18535 to internal_error callback.
18536 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
18537 * plugin.h (struct diagnostic_context): Declare.
18538 (warn_if_plugins, plugins_internal_error_function): Declare.
18539 * toplev.c (general_init): Set global_dc->internal_error.
18540 * Makefile.in (diagnostic.o): Update dependencies.
18541
18542 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
18543
18544 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
18545 * config/rs6000/t-darwin64: New.
18546 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
18547 build crt2.
18548
18549 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
18550
18551 PR 44203
18552 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
18553 match the original (and intended) behaviour before r159557. This
18554 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
18555 in two ways.
18556
18557 2010-05-25 Richard Guenther <rguenther@suse.de>
18558
18559 * doc/invoke.texi: Document -Ofast.
18560 * target.h (struct gcc_target): Add handle_ofast.
18561 * target-def.h (TARGET_HANDLE_OFAST): Add.
18562 (TARGET_INITIALIZER): Adjust.
18563 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
18564 * common.opt (Ofast): Add.
18565
18566 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
18567
18568 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
18569 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
18570
18571 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
18572
18573 PR target/43610
18574 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
18575 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
18576 false_rtx. Use false_rtx to compute the correct *ptest for reversed
18577 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
18578
18579 2010-05-25 Jakub Jelinek <jakub@redhat.com>
18580
18581 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
18582 DW_OP_minus with negated offset instead of DW_OP_plus.
18583 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
18584
18585 2010-05-25 Wei Guozhi <carrot@google.com>
18586
18587 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
18588 tst instruction and a new alternative.
18589 * config/arm/constraints.md (Pu): New constraint.
18590
18591 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
18592
18593 * function.c (assign_stack_local_1): Initialize variable
18594 to avoid warning when bootstrapping at -O3.
18595
18596 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
18597
18598 * configure.ac (all_lang_makefiles): Remove everything related to it.
18599 * configure: Regenerate.
18600 * Makefile.in: Fix reference to ada Make-lang.in.
18601 Remove support for LANG_MAKEFILES.
18602
18603 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
18604 Sandra Loosemore <sandra@codesourcery.com>
18605
18606 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
18607 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
18608 description. Add arm_neon_fp16_ok.
18609 (Add Options): Add arm_neon and arm_neon_fp16.
18610
18611 2010-05-24 Joseph Myers <joseph@codesourcery.com>
18612
18613 * diagnostic.c: Don't include flags.h.
18614 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
18615 context parameters. Check flags in the context passed as a parameter.
18616 (diagnostic_build_prefix): Add context parameter. Check
18617 show_column flag in context.
18618 (diagnostic_action_after_output): Check fatal_errors flag in context.
18619 (diagnostic_report_current_module): Check show_column flag in context.
18620 (default_diagnostic_starter): Update call to
18621 diagnostic_build_prefix.
18622 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
18623 (emit_diagnostic): Pass context to permissive_error_kind.
18624 (permerror): Pass context to permissive_error_kind.
18625 * diagnostic.h (struct diagnostic_context): Add show_column,
18626 pedantic_errors, permissive and fatal_errors fields.
18627 (diagnostic_build_prefix): Update prototype.
18628 * langhooks.c
18629 * toplev.c (process_options): Set flags in global_dc from
18630 flag_show_column, flag_pedantic_errors, flag_permissive,
18631 flag_fatal_errors.
18632 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
18633 to diagnostic_build_prefix.
18634 * Makefile.in (diagnostic.o): Update dependencies.
18635
18636 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
18637
18638 * config/i386/ia32intrin.h (__crc32q): Define only if
18639 __SSE4_2__ is defined.
18640
18641 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
18642
18643 PR target/44132
18644 PR middle-end/43602
18645 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
18646 DECL_VISIBILITY_SPECIFIED.
18647 (emutls_decl): Set DECL_PRESERVE_P and copy
18648 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
18649 (emutls_finalize_control_var): New callback.
18650 (emutls_finish): Finalize emutls control variables.
18651 * toplev.c (compile_file): Move the call to emutls_finish ()
18652 before varpool_assemble_pending_decls ().
18653
18654 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
18655
18656 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
18657 added to the preprocessor condition.
18658
18659 2010-05-24 Paul Brook <paul@codesourcery.com>
18660
18661 * gengtype-lex.l: Add HARD_REG_SET.
18662 * expr.c (expand_expr_real_1): Record writes to hard registers.
18663 * function.c (rtl_data): Add asm_clobbers.
18664 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
18665 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
18666 Use crtl->asm_clobbers.
18667
18668 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18669
18670 * doc/makefile.texi (Makefile): Mention stages 'profile'
18671 and 'feedback' for profiledbootstrap.
18672
18673 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
18674
18675 PR target/44245
18676 * config/i386/i386.c (def_builtin): Properly check
18677 OPTION_MASK_ISA_64BIT.
18678
18679 2010-05-23 Joseph Myers <joseph@codesourcery.com>
18680
18681 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18682 typedefs with different but compatible types. Allow duplicate
18683 typedefs with the same type except for pedantic non-C1X, but give
18684 warning for variably modified types.
18685 * c-typeck.c (tagged_types_tu_compatible_p,
18686 function_types_compatible_p, type_lists_compatible_p,
18687 comptypes_internal): Add parameter different_types_p; set
18688 *different_types_p for different but compatible types. All
18689 callers changed.
18690 (comptypes_check_different_types): New.
18691 * c-tree.h (comptypes_check_different_types): Declare.
18692
18693 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
18694
18695 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
18696 * jump.c: Include basic-block.h.
18697 * profile.c: Likewise.
18698 * tree-profile.c: Likewise.
18699 * coverage.c: Likewise.
18700 * basic-block.h (optimize_function_for_size_p): Move to function.h.
18701 (optimize_function_for_speed_p): Likewise.
18702 * function.h (optimize_function_for_size_p,
18703 optimize_function_for_speed_p): Moved here from basic-block.h.
18704 * Makefile.in: Update dependencies.
18705
18706 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18707
18708 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18709 before calling make; allow override through $MAKE.
18710 * doc/invoke.texi (Optimize Options): Document override.
18711
18712 2010-05-23 Anatoly Sokolov <aesok@post.ru>
18713
18714 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18715 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18716 (rs6000_mode_dependent_address_ptr): Make static.
18717 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18718 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18719 Remove.
18720
18721 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
18722
18723 PR target/43869
18724 * config/i386/i386.c: Make sure that the correct regparm is passed.
18725
18726 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
18727
18728 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18729 * sbitmap.c: ...to here to internalize sbitmap element access.
18730 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18731 Explain why basic-block.h is included.
18732 * function.h: Include tm.h for CUMULATIVE_ARGS.
18733 * Makefile.in: Update dependencies.
18734
18735 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
18736
18737 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18738 New core types.
18739 * sbitmap.h (struct sbitmap_def): Do not typedef here.
18740 * sbitmap.c: Include sbitmap.h.
18741 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18742 hard-reg-set.h. Split everything related to regsets out from here...
18743 * regset.h: ...to here. New file.
18744 * df.h: Include regset.h and sbitmap.h.
18745 * tree-flow.h: Likewise.
18746 * cfgloop.h: Likewise.
18747 * except.h: Do not include sbitmap.h. Include hashtab.h.
18748 * cgraph.h: Include vec.h and function.h.
18749 * reload.h (struct insn_chain): Change types of live_throughout
18750 and dead_or_set from regset_head to bitmap_head.
18751 (compute_use_by_pseudos): Be defined also if regset.h is not included.
18752 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18753 spilled_regs from regset_head to bitmap_head to avoid dependency
18754 in regset.h.
18755 * sel-sched-ir.h: Include regset.h.
18756 * reload.c: Include df.h before reload.h.
18757 * caller-save.c: Likewise.
18758 * reload1.c: Likewise.
18759 * ira.c: Likewise.
18760 (mark_elimination): Update type of r to bitmap, consistent with
18761 DF_LR_IN.
18762 * dominance.c: Include bitmap.h.
18763 * modulo-sched.c: Include df.h.
18764 * cfganal.c: Include bitmap.h and sbitmap.h.
18765 * cfgbuild.c: Include sbitmap.h.
18766 * lcm.c: Include sbitmap.h.
18767 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18768 * domwalk.c: Include sbitmap.h, exclude ggc.h.
18769 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18770 * cselib.c: Include bitmap.h.
18771 * tree-optimize.c: Include regset.h.
18772 * stmt.c: Include bitmap.h.
18773 * Makefile.in: Update dependencies.
18774
18775 2010-05-22 Jan Hubicka <jh@suse.cz>
18776
18777 * cgraph.h (struct varpool_node): Add same_comdat_group.
18778 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18779 pointer.
18780 (output_varpool): Update call of lto_output_varpool_node.
18781 (input_varpool): Read same_comdat_group pointer.
18782 (input_varpool_1): Fixup same_comdat_group pointer.
18783 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18784 group is needed, all are.
18785 * varpool.c (varpool_remove_node): Remove node from same comdat group
18786 linklist too.
18787 (varpool_analyze_pending_decls): Walk same comdat groups.
18788
18789 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
18790
18791 * rtl.h (union rtunion_def): Remove rt_bit member.
18792 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18793 * print-rtl (print_rtx): Do not print the member.
18794 * gengtype.c (adjust_field_rtx_def): Do not handle it.
18795 * gengenrtl.c (type_from_format): Likewise.
18796 (accessor_from_format): Likewise.
18797
18798 2010-05-22 Joseph Myers <joseph@codesourcery.com>
18799
18800 * dbgcnt.c: Include toplev.h instead of errors.h.
18801 * ira-emit.c: Don't include errors.h.
18802 * ira.c: Include toplev.h instead of errors.h.
18803 * lto-compress.c: Include toplev.h instead of errors.h.
18804 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18805 ira.o, dbgcnt.o): Update dependencies.
18806
18807 2010-05-22 Richard Guenther <rguenther@suse.de>
18808
18809 * gimple.c (gimple_types_compatible_p): Check type qualifications
18810 before merging pointer to complete and pointer to incomplete type.
18811 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18812 we use our own resolution algorithm. The gold linker plugin
18813 doesn't do the job we want it to do here.
18814
18815 2010-05-22 Anatoly Sokolov <aesok@post.ru>
18816
18817 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18818 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18819 (sparc_mode_dependent_address_p): New function.
18820
18821 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
18822
18823 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18824
18825 * timevar.c: Do not include any core headers.
18826 (timevar_print): De-i18n-ize.
18827 (print_time): Likewise.
18828 * timevar.h (timevar_push, timevar_pop): Make inline functions.
18829
18830 2010-05-21 Joseph Myers <joseph@codesourcery.com>
18831
18832 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18833 langhooks-def.h.
18834 (diagnostic_initialize): Initialize x_data not last_function.
18835 (diagnostic_report_current_function): Move to tree-diagnostic.c.
18836 (default_diagnostic_starter): Call
18837 diagnostic_report_current_module not
18838 diagnostic_report_current_function.
18839 (diagnostic_report_diagnostic): Initialize x_data not
18840 abstract_origin.
18841 (verbatim): Likewise.
18842 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
18843 x_data.
18844 (struct diagnostic_context): Change last_function to x_data.
18845 (diagnostic_auxiliary_data): Replace with
18846 diagnostic_context_auxiliary_data and
18847 diagnostic_info_auxiliary_data.
18848 (diagnostic_last_function_changed, diagnostic_set_last_function,
18849 diagnostic_report_current_function): Move to tree-diagnostic.h.
18850 (print_declaration, dump_generic_node, print_generic_stmt,
18851 print_generic_stmt_indented, print_generic_expr,
18852 print_generic_decl, debug_c_tree, dump_omp_clauses,
18853 print_call_name, debug_generic_expr, debug_generic_stmt,
18854 debug_tree_chain, default_tree_printer): Move to
18855 tree-pretty-print.h.
18856 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
18857 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
18858 gimple-pretty-print.h.
18859 * pretty-print.c: Don't include tree.h
18860 (pp_base_format): Don't handle %K here.
18861 (pp_base_tree_identifier): Move to tree-pretty-print.c.
18862 * pretty-print.h (text_info): Change abstract_origin to x_data.
18863 (pp_tree_identifier, pp_unsupported_tree,
18864 pp_base_tree_identifier): Move to tree-pretty-print.h.
18865 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
18866 tree-pretty-print.h: New files.
18867 * tree-pretty-print.c: Include tree-pretty-print.h.
18868 (percent_K_format): New. Moved from pretty-print.c.
18869 (pp_base_tree_identifier): Move from pretty-print.c.
18870 * c-objc-common.c: Include tree-pretty-print.h.
18871 (c_tree_printer): Handle %K here.
18872 * langhooks.c: Include tree-diagnostic.h.
18873 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
18874 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
18875 (default_tree_printer): Handle %K using percent_K_format.
18876 (general_init): Use default_tree_diagnostic_starter.
18877 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
18878 (free_lang_data): Use default_tree_diagnostic_starter.
18879 * c-pretty-print.c: Include tree-pretty-print.h.
18880 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18881 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18882 * dwarf2out.c: Include tree-pretty-print.h.
18883 * except.c: Include tree-pretty-print.h.
18884 * gimple-pretty-print.c: Include tree-pretty-print.h and
18885 gimple-pretty-print.h.
18886 * gimplify.c: Include tree-pretty-print.h.
18887 * graphite-poly.c: Include tree-pretty-print.h and
18888 gimple-pretty-print.h.
18889 * ipa-cp.c: Include tree-pretty-print.h.
18890 * ipa-inline.c: Include gimple-pretty-print.h.
18891 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18892 * ipa-pure-const.c: Include gimple-pretty-print.h.
18893 * ipa-struct-reorg.c: Include tree-pretty-print.h and
18894 gimple-pretty-print.h.
18895 * ipa-type-escape.c: Include tree-pretty-print.h.
18896 * print-rtl.c: Include tree-pretty-print.h.
18897 * print-tree.c: Include gimple-pretty-print.h.
18898 * sese.c: Include tree-pretty-print.h.
18899 * tree-affine.c: Include tree-pretty-print.h.
18900 * tree-browser.c: Include tree-pretty-print.h.
18901 * tree-call-cdce.c: Include gimple-pretty-print.h.
18902 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18903 * tree-chrec.c: Include tree-pretty-print.h.
18904 * tree-data-ref.c: Include tree-pretty-print.h and
18905 gimple-pretty-print.h.
18906 * tree-dfa.c: Include tree-pretty-print.h.
18907 * tree-if-conv.c: Include tree-pretty-print.h and
18908 gimple-pretty-print.h.
18909 * tree-inline.c: Include tree-pretty-print.h.
18910 * tree-into-ssa.c: Include tree-pretty-print.h and
18911 gimple-pretty-print.h.
18912 * tree-nrv.c: Include tree-pretty-print.h.
18913 * tree-object-size.c: Include tree-pretty-print.h and
18914 gimple-pretty-print.h.
18915 * tree-outof-ssa.c: Include tree-pretty-print.h and
18916 gimple-pretty-print.h.
18917 * tree-parloops.c: Include tree-pretty-print.h and
18918 gimple-pretty-print.h.
18919 * tree-predcom.c: Include tree-pretty-print.h and
18920 gimple-pretty-print.h.
18921 * tree-scalar-evolution.c: Include tree-pretty-print.h and
18922 gimple-pretty-print.h.
18923 * tree-sra.c: Include tree-pretty-print.h.
18924 * tree-ssa-address.c: Include tree-pretty-print.h.
18925 * tree-ssa-alias.c: Include tree-pretty-print.h.
18926 * tree-ssa-ccp.c: Include tree-pretty-print.h and
18927 gimple-pretty-print.h.
18928 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
18929 * tree-ssa-copy.c: Include tree-pretty-print.h and
18930 gimple-pretty-print.h.
18931 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
18932 * tree-ssa-dce.c: Include tree-pretty-print.h and
18933 gimple-pretty-print.h.
18934 * tree-ssa-dom.c: Include tree-pretty-print.h and
18935 gimple-pretty-print.h.
18936 * tree-ssa-dse.c: Include gimple-pretty-print.h.
18937 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
18938 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
18939 * tree-ssa-live.c: Include tree-pretty-print.h and
18940 gimple-pretty-print.h.
18941 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
18942 gimple-pretty-print.h.
18943 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
18944 gimple-pretty-print.h.
18945 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
18946 gimple-pretty-print.h.
18947 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
18948 gimple-pretty-print.h.
18949 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
18950 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
18951 * tree-ssa-operands.c: Include tree-pretty-print.h and
18952 gimple-pretty-print.h.
18953 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
18954 gimple-pretty-print.h.
18955 * tree-ssa-pre.c: Include tree-pretty-print.h and
18956 gimple-pretty-print.h.
18957 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
18958 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
18959 gimple-pretty-print.h.
18960 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
18961 gimple-pretty-print.h.
18962 * tree-ssa-sink.c: Include gimple-pretty-print.h.
18963 * tree-ssa-ter.c: Include tree-pretty-print.h and
18964 gimple-pretty-print.h.
18965 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
18966 * tree-ssa.c: Include tree-pretty-print.h and
18967 gimple-pretty-print.h.
18968 * tree-stdarg.c: Include gimple-pretty-print.h.
18969 * tree-switch-conversion.c: Include gimple-pretty-print.h.
18970 * tree-tailcall.c: Include tree-pretty-print.h and
18971 gimple-pretty-print.h.
18972 * tree-vect-data-refs.c: Include tree-pretty-print.h and
18973 gimple-pretty-print.h.
18974 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
18975 gimple-pretty-print.h.
18976 * tree-vect-loop.c: Include tree-pretty-print.h and
18977 gimple-pretty-print.h.
18978 * tree-vect-patterns.c: Include gimple-pretty-print.h.
18979 * tree-vect-slp.c: Include tree-pretty-print.h and
18980 gimple-pretty-print.h.
18981 * tree-vect-stmts.c: Include tree-pretty-print.h and
18982 gimple-pretty-print.h.
18983 * tree-vectorizer.c: Include tree-pretty-print.h.
18984 * tree-vrp.c: Include tree-pretty-print.h and
18985 gimple-pretty-print.h.
18986 * value-prof.c: Include tree-pretty-print.h and
18987 gimple-pretty-print.h.
18988 * var-tracking.c: Include tree-pretty-print.h.
18989 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
18990 (tree-diagnostic.o): New dependencies.
18991 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
18992 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
18993 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
18994 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
18995 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
18996 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
18997 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
18998 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
18999 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
19000 tree-ssa-address.o, tree-ssa-loop-niter.o,
19001 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
19002 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
19003 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
19004 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
19005 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
19006 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
19007 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
19008 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
19009 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
19010 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
19011 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
19012 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
19013 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
19014 tree-switch-conversion.o, var-tracking.o, value-prof.o,
19015 cfgexpand.o, pretty-print.o): Update dependencies.
19016
19017 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
19018
19019 * tree-ssa-structalias.c: Remove tm_p.h from include.
19020
19021 2010-05-21 Jeff Law <law@redhat.com>
19022
19023 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
19024
19025 2010-05-21 Jason Merrill <jason@redhat.com>
19026
19027 * tree-eh.c (cleanup_is_dead_in): New.
19028 (lower_try_finally): Don't generate a dead cleanup region.
19029 (lower_cleanup): Likewise.
19030
19031 2010-05-21 Jakub Jelinek <jakub@redhat.com>
19032
19033 PR debug/44223
19034 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
19035 unchain each use from the cyclic next_regno_use chain first.
19036
19037 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
19038
19039 * real: Do not include gmp.h, mpfr.h, and mpc.h.
19040 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
19041 (real_value_negate, real_value_abs): New prototypes.
19042 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
19043 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
19044 new include file for interface between MPFR and REAL_VALUE_TYPE.
19045 * real.c: Include realmpfr.h.
19046 (real_arithmetic2): Remove legacy function.
19047 (real_value_negate): New.
19048 (real_value_abs): New.
19049 (mfpr_from_real, real_from_mpfr): Move from here...
19050 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
19051 * builtins.c: Include realmpfr.h.
19052 * fold-const.c: Include realmpfr.h.
19053 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
19054 (fold_negate_const): Likewise.
19055 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
19056 * toplev.c: Include realmpfr.h.
19057 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
19058 and real_value_negate.
19059 * fixed-value.c (check_real_for_fixed_mode): Likewise.
19060 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
19061 (vfp3_const_double_index): Likewise.
19062 (arm_print_operand): Likewise.
19063 * Makefile.in: Update dependencies.
19064
19065 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19066
19067 * config/s390/s390.c (override_options): Increase the default
19068 of max-completely-peel-times.
19069
19070 2010-05-21 Julian Brown <julian@codesourcery.com>
19071 Mark Mitchell <mark@codesourcery.com>
19072
19073 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
19074 sibling calls for Thumb-1.
19075 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
19076 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
19077 Thumb-2.
19078 (*call_insn, *call_value_insn): Don't use for Thumb-2.
19079 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
19080 for Thumb-2.
19081 (return): New expander.
19082 (*arm_return): New name for ARM return insn.
19083 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
19084
19085 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
19086
19087 * config.gcc (sparc64-*-rtems*): New target.
19088
19089 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
19090
19091 * tree.c (build_function_decl_skip_args): Fix grammar.
19092 (build_function_type_list_1): Fix typos, adjust formatting.
19093
19094 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
19095
19096 * tree.h: Include real.h and fixed-value.h as basic datatypes.
19097 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
19098 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
19099 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
19100 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
19101 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
19102 tree-pretty-print.c, tree-loop-distribution.c,
19103 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
19104 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
19105 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
19106 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
19107 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
19108 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
19109 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
19110 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
19111 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
19112 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
19113 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
19114 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
19115 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
19116 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
19117 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
19118 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
19119 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
19120 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
19121 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
19122 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
19123 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
19124 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
19125 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
19126 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
19127 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
19128 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
19129 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
19130 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
19131 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
19132 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
19133 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
19134 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
19135 config/score/score7.c, config/score/score.c, config/arm/arm.c,
19136 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
19137 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
19138 config/bfin/bfin.c: Clean up redundant includes.
19139 * Makefile.in: Update accordingly.
19140
19141 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
19142
19143 PR middle-end/44204
19144 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
19145 statement has no arguments.
19146
19147 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
19148
19149 PR/44139
19150 * varasm.c (emutls_decl): Merge attributes to new decl.
19151
19152 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
19153
19154 PR middle-end/44101
19155 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
19156 around the uniquized constructor if its type requires a conversion.
19157
19158 2010-05-21 Jakub Jelinek <jakub@redhat.com>
19159
19160 PR debug/44205
19161 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
19162 at -O0 goto_locus of any of the incoming edges differs from
19163 goto_locus of outgoing edge, or gimple_location of any of the
19164 labels differs.
19165
19166 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
19167
19168 * ira.c (ira_non_ordered_class_hard_regs): Define.
19169 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
19170 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
19171 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
19172 cost of unaligned hard regs when allocating multi-reg pseudos.
19173
19174 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19175
19176 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
19177 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
19178 for TARGET_NO_FLOAT.
19179 * config/mips/mips.c (mips_file_start): Expand conditional expression
19180 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
19181 (mips_override_options): Move -mno-float override -msoft-float and
19182 -mhard-float.
19183 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
19184 Condition(TARGET_SUPPORTS_NO_FLOAT).
19185 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
19186 __mips_no_float here.
19187 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
19188 (TARGET_SUPPORTS_NO_FLOAT): Define.
19189 * config/mips/sdemtk.opt: Delete.
19190
19191 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
19192
19193 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
19194
19195 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
19196
19197 PR target/43733
19198 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
19199 * configure: Regenerate.
19200 * config.in: Regenerate.
19201 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
19202 instead of sahf only for 64bit targets.
19203
19204 2010-05-20 Jakub Jelinek <jakub@redhat.com>
19205
19206 PR debug/44178
19207 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
19208 setup_ref_regs for DEBUG_INSNs.
19209
19210 2010-05-20 Jan Hubicka <jh@suse.cz>
19211
19212 PR middle-end/44197
19213 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
19214
19215 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
19216
19217 PR bootstrap/43870
19218 * df-scan.c (df_ref_compare): Stabilize sort.
19219
19220 2010-05-20 Jakub Jelinek <jakub@redhat.com>
19221
19222 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
19223 argument. Don't use DW_OP_piece if offset is non-zero,
19224 put offset into second DW_OP_bit_piece argument.
19225 (dw_sra_loc_expr): Adjust callers. For memory expressions
19226 compute offset.
19227
19228 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
19229
19230 PR target/44202
19231 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
19232 settings for 16-bit-constant "addo" alternative.
19233
19234 2010-05-19 James E. Wilson <wilson@codesourcery.com>
19235
19236 * config/mips/mips-dsp.md (add<DSPV:mode>3,
19237 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
19238
19239 PR target/43764
19240 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
19241 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
19242 Use it.
19243
19244 2010-05-19 Joseph Myers <joseph@codesourcery.com>
19245
19246 * diagnostic.c (FLOAT, FFS): Don't undefine.
19247 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
19248 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
19249 include ordering.
19250
19251 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19252
19253 * combine.c (propagate_for_debug): Call make_compound_operation
19254 on the source value.
19255 (try_combine): When implementing a split chosen by find_split_point,
19256 either copy i2src or set it to null. Assert that i2src is not null
19257 before substituting into CALL_INSN_FUNCTION_USAGE.
19258
19259 2010-05-19 Anatoly Sokolov <aesok@post.ru>
19260
19261 * double-int.h (double_int_ior): New function.
19262 * tree.h (build_int_cst_wide_type): Remove.
19263 * tree.c (build_int_cst_wide_type): Remove.
19264 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
19265 of build_int_cst_wide_type.
19266 * stor-layout.c (set_sizetype): (Ditto.).
19267 * dojump.c (do_jump): Use build_int_cstu instead of
19268 build_int_cst_wide_type.
19269
19270 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
19271
19272 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
19273 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
19274 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
19275 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
19276 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
19277 propagate the 'data' argument to copy_tree_r.
19278 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
19279 Propagate 'data' argument to walk_tree.
19280 (copy_if_shared): New function.
19281 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
19282 (unmark_visited): New function.
19283 (unshare_body): Call copy_if_shared instead of doing it manually.
19284 (unvisit_body): Call unmark_visited instead of doing it manually.
19285
19286 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
19287
19288 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
19289 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
19290 * hooks.c: Likewise.
19291 * target-def.h (TARGET_FOLD_BUILTIN): Define to
19292 hook_tree_tree_int_treep_bool_null.
19293 * target.h (struct gcc_target): Update signature of fold_builtin
19294 field.
19295 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
19296 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
19297 instead of the call expression.
19298 (fold_builtin_call_array): Pass n and argarray directly.
19299 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
19300 consing a list.
19301 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
19302 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
19303 `i' and use it in place of `arity'.
19304 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
19305 Dereference `args' directly.
19306 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
19307
19308 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19309
19310 * doc/sourcebuild.texi (Effective-Target Keywords): Document
19311 3dnow, sse3, sse2.
19312 (Directives): Document optional dg-require-effective-target
19313 selector.
19314
19315 2010-05-19 Richard Guenther <rguenther@suse.de>
19316
19317 PR lto/44196
19318 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
19319
19320 2010-05-19 Richard Guenther <rguenther@suse.de>
19321
19322 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
19323 * common.opt (fwhopr=): New.
19324 * opts.c (common_handle_option): Handle OPT_fwhopr.
19325 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
19326 * collect2.c (main): Match -fwhopr*.
19327 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
19328 Execute ltrans stage in parallel when jobs is bigger than 1.
19329
19330 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19331
19332 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19333 pentiumpro on Solaris 8/x86 with Sun as.
19334 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
19335 hidden alias bug.
19336 (gcc_cv_as_ix86_quad): Check for .quad directive.
19337 * configure: Regenerate.
19338 * config.in: Regenerate.
19339 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
19340
19341 2010-05-19 Martin Jambor <mjambor@suse.cz>
19342
19343 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
19344 also for indirect edges. Actual printing moved...
19345 (ipa_print_node_jump_functions_for_edge): ...here.
19346 (ipa_compute_jump_functions): Renamed to
19347 ipa_compute_jump_functions_for_edge and made static.
19348 (ipa_compute_jump_functions): New function.
19349 (make_edge_direct_to_target): Check if the number of arguments on
19350 the newly direct edge is the same as the number of parametrs of
19351 the callee.
19352 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
19353 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
19354 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
19355 analysis functions unconditionally, call the new
19356 ipa_analyze_params_uses on the node instead of every edge.
19357
19358 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
19359
19360 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
19361 to tree.
19362 (dump_mem_ref): Adopt debug code to handle a tree as step. This
19363 also checks for a constant int vs. non-constant but
19364 loop-invariant steps.
19365 (find_or_create_group): Change the sort algorithm to only consider
19366 steps that are constant ints.
19367 (idx_analyze_ref): Adopt code to handle a tree instead of a
19368 HOST_WIDE_INT for step.
19369 (gather_memory_references_ref): Handle tree instead of int and be
19370 prepared to see a NULL_TREE.
19371 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
19372 prefetches if the step cannot be calculated at compile time.
19373 (issue_prefetch_ref): Issue prefetches for non-constant but
19374 loop-invariant steps.
19375
19376 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
19377
19378 Revert:
19379 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
19380
19381 * tree.h (build_call_list): Remove.
19382 * tree.c (build_call_list): Remove.
19383
19384 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
19385
19386 * tree.h (build_call_list): Remove.
19387 * tree.c (build_call_list): Remove.
19388
19389 2010-05-18 Jan Hubicka <jh@suse.cz>
19390
19391 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
19392
19393 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
19394
19395 PR rtl-optimization/43332
19396 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
19397
19398 2010-05-18 Anatoly Sokolov <aesok@post.ru>
19399
19400 * tree.h (build_int_cstu): Implement as static inline.
19401 * tree.c (build_int_cstu): Remove function.
19402 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
19403 sign extended.
19404
19405 2010-05-18 Richard Guenther <rguenther@suse.de>
19406
19407 PR lto/44143
19408 * lto-wrapper.c (verbose): New variable. Initialize from -v.
19409 (debug): Initialize from -save-temps.
19410 (collect_execute): Print command-line when verbose.
19411 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
19412 for ltrans invocation. Produce -dumpbase flag again.
19413 (process_args): Remove.
19414 (main): Simplify.
19415 * collect2.c (maybe_run_lto_and_relink): Only pass object
19416 files to lto-wrapper.
19417 * gcc.c (LINK_COMMAND_SPEC): Likewise.
19418
19419 2010-05-18 Jan Hubicka <jh@suse.cz>
19420
19421 * opts.c (decode_options): Do not disable whopr at ipa_cp.
19422 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
19423
19424 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
19425
19426 PR lto/44184
19427 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
19428 in a GIMPLE_ASM.
19429 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
19430 in a GIMPLE_ASM.
19431
19432 2010-05-18 Jakub Jelinek <jakub@redhat.com>
19433
19434 PR debug/41371
19435 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
19436 rtx_equal_p inline.
19437
19438 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
19439
19440 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
19441 lto-macho as lto_binary_reader.
19442
19443 * darwin.c (darwin_asm_named_section): Do not add assembler comment
19444 after .section directive; just print it before the directive instead.
19445
19446 2010-05-17 Jan Hubicka <jh@suse.cz>
19447
19448 * cgraph.c (cgraph_create_virtual_clone): Only check
19449 versionable_function_p when not in wpa and checking is enabled.
19450 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
19451 there are no more functions to materialize.
19452
19453 2010-05-17 Jan Hubicka <jh@suse.cz>
19454
19455 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
19456 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
19457 New functions.
19458 (output_cgraph): Call output_cgraph_opt_summary.
19459 (input_cgrpah): Call input_cgraph_opt_summary.
19460 (output_cgraph_opt_summary_p, output_node_opt_summary,
19461 input_node_opt_summary, input_cgraph_opt_section): New functions.
19462 * lto-section-in.c (lto_section_name): Add cgraphopt.
19463 * tree-inline.c (tree_function_versioning): Handle parm_num.
19464 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
19465 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
19466
19467 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
19468
19469 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
19470 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
19471 the insn to prefetch ratio heuristic to loops with known trip count.
19472
19473 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
19474
19475 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
19476 (schedule_prefetches): Do not generate a prefetch if the unroll factor
19477 is far from what is required by the prefetch.
19478
19479 2010-05-17 Jan Hubicka <jh@suse.cz>
19480
19481 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
19482 (ipcp_estimate_growth): Likewise.
19483 (ipcp_const_param_count): Likewise.
19484 (ipcp_insert_stage): Likewise.
19485 * ipa-prop.c (visit_load_for_mod_analysis): New function.
19486 (visit_store_addr_for_mod_analysis): Set used flag.
19487 (ipa_detect_param_modifications): Set used flag for SSE params;
19488 update use of walk_stmt_load_store_addr_ops.
19489 (ipa_print_node_params): Print used flag.
19490 (ipa_write_node_info): Stream used flag.
19491 (ipa_read_node_info): Likewise.
19492 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
19493 (ipa_is_param_used): New function.
19494 (lto_ipa_fixup_call_notes): Remove unused declaration.
19495
19496 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19497
19498 PR target/44074
19499 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
19500 * configure: Regenerate.
19501 * config.in: Regenerate.
19502 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
19503 !HAVE_AS_IX86_REP_LOCK_PREFIX.
19504 Don't emit whitespace.
19505 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
19506 (*rep_movsi): Likewise.
19507 (*rep_movsi_rex64): Likewise.
19508 (*rep_movqi): Likewise.
19509 (*rep_movqi_rex64): Likewise.
19510 (*rep_stosdi_rex64): Likewise.
19511 (*rep_stossi): Likewise.
19512 (*rep_stossi_rex64): Likewise.
19513 (*rep_stosqi): Likewise.
19514 (*rep_stosqi_rex64): Likewise.
19515 (*cmpstrnqi_nz_1): Use {%;} after repz.
19516 (*cmpstrnqi_nz_rex_1): Likewise.
19517 (*cmpstrnqi_1): Likewise.
19518 (*cmpstrnqi_rex_1): Likewise.
19519 (*strlenqi_1): Use {%;} after repnz.
19520 (*strlenqi_rex_1): Likewise.
19521 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
19522 (*sync_compare_and_swap<mode>): Likewise.
19523 (sync_double_compare_and_swap<mode>): Likewise.
19524 (*sync_double_compare_and_swapdi_pic): Likewise.
19525 (sync_old_add<mode>): Likewise.
19526 (sync_add<mode>): Likewise.
19527 (sync_sub<mode>): Likewise.
19528 (sync_<code><mode>): Likewise.
19529
19530 2010-05-17 Martin Jambor <mjambor@suse.cz>
19531
19532 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
19533 otr_token and polymorphic.
19534 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
19535 (cgraph_clone_edge): Copy the above fields.
19536 * tree.c (get_binfo_at_offset): New function.
19537 * tree.h (get_binfo_at_offset): Declare.
19538 * ipa-prop.h (enum jump_func_type): Added known_type jump function
19539 type, reordered items, updated comments.
19540 (union jump_func_value): Added base_type field, reordered fields.
19541 (enum ipa_lattice_type): Moved down in the file.
19542 (struct ipa_param_descriptor): New field polymorphic.
19543 (ipa_is_param_polymorphic): New function.
19544 * ipa-prop.c: Include gimple.h and gimple-fold.h.
19545 (ipa_print_node_jump_functions): Print known type jump functions.
19546 (compute_complex_pass_through): Renamed to...
19547 (compute_complex_assign_jump_func): this.
19548 (compute_complex_ancestor_jump_func): New function.
19549 (compute_known_type_jump_func): Likewise.
19550 (compute_scalar_jump_functions): Create known type and complex ancestor
19551 jump functions.
19552 (ipa_note_param_call): New parameter polymorphic, set the corresponding
19553 flag in the call note accordingly.
19554 (ipa_analyze_call_uses): Renamed to...
19555 (ipa_analyze_indirect_call_uses): this. New parameter target, define
19556 variable var only in the block where it is used.
19557 (ipa_analyze_virtual_call_uses): New function.
19558 (ipa_analyze_call_uses): Likewise.
19559 (combine_known_type_and_ancestor_jfs): Likewise.
19560 (update_jump_functions_after_inlining): Implemented handling of a
19561 number of new jump function types combination.
19562 (print_edge_addition_message): Removed.
19563 (make_edge_direct_to_target): New function.
19564 (try_make_edge_direct_simple_call): Likewise.
19565 (try_make_edge_direct_virtual_call): Likewise.
19566 (update_call_notes_after_inlining): Renamed to...
19567 (update_indirect_edges_after_inlining): this. Moved edge creation for
19568 indirect calls to try_make_edge_direct_simple_call, also calls
19569 try_make_edge_direct_virtual_call for virtual calls.
19570 (ipa_print_node_params): Changed the header message.
19571 (ipa_write_jump_function): Stream also known type jump functions.
19572 (ipa_read_jump_function): Likewise.
19573 (ipa_write_indirect_edge_info): Stream new fields in
19574 cgraph_indirect_call_info.
19575 (ipa_read_indirect_edge_info): Likewise.
19576 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
19577 GIMPLE_FOLD_H.
19578
19579 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19580
19581 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
19582
19583 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
19584
19585 * tree.h (CALL_EXPR_ARGS): Delete.
19586 (call_expr_arglist): Delete.
19587 * tree.c (call_expr_arglist): Delete.
19588 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
19589 targetm.fold_builtin.
19590 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
19591 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
19592 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
19593 arglist parameter. Use CALL_EXPR_ARG.
19594 (picochip_expand_builtin_3op): Likewise.
19595 (picochip_expand_builtin_2opvoid): Likewise.
19596 (picochip_expand_array_get): Likewise.
19597 (picochip_expand_array_put): Likewise.
19598 (picochip_expand_array_testport): Likewise.
19599 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
19600 rather than arglist.
19601 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
19602 CALL_EXPR_ARGS.
19603 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
19604 than TREE_VALUE and TREE_CHAIN.
19605 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
19606 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
19607 the arglist.
19608
19609 2010-05-17 Jakub Jelinek <jakub@redhat.com>
19610
19611 PR bootstrap/42347
19612 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
19613 to have no fallthru edge.
19614
19615 PR middle-end/44102
19616 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
19617 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
19618 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
19619 add BARRIER after previous bb if needed.
19620
19621 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
19622
19623 * tree.c (build_function_type_list_1): Remove bogus assert condition.
19624
19625 2010-05-17 Alan Modra <amodra@gmail.com>
19626
19627 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
19628 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
19629 with copy_reg rtx param.
19630 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
19631 Correct cases where code for ABI_V4 did not initialise the reg
19632 used to access frame. Also leave frame_reg_rtx as sp for large
19633 frames that save no regs.
19634
19635 2010-05-17 Martin Jambor <mjambor@suse.cz>
19636
19637 PR middle-end/44133
19638 * tree-sra.c (create_access_replacement): New parameter rename, mark
19639 the replaement for renaming only when it is true.
19640 (get_access_replacement): Pass true in the rename parameter of
19641 create_access_replacement.
19642 (get_unrenamed_access_replacement): New function.
19643 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
19644 replacement declaration from it.
19645
19646 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
19647
19648 * function.c (try_fit_stack_local, add_frame_space): New static
19649 functions.
19650 (assign_stack_local_1): Use them. Look for opportunities to use
19651 space previously wasted on alignment.
19652 * function.h (struct frame_space): New.
19653 (struct rtl_data): Add FRAME_SPACE_LIST member.
19654 * reload1.c (something_was_spilled): New static variable.
19655 (alter_reg): Set it.
19656 (reload): Test it in addition to testing if the frame size changed.
19657
19658 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
19659
19660 * config/s390/s390.c: Define sane prefetch settings and activate
19661 flag_prefetch_loop_arrays on -O3.
19662 * config/s390/s390.h: Declare that read can use write prefetch.
19663
19664 2010-05-17 Jakub Jelinek <jakub@redhat.com>
19665
19666 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
19667 build.
19668
19669 2010-05-16 Jan Hubicka <jh@suse.cz>
19670
19671 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
19672 function body; do not check stdarg field of struct function.
19673
19674 2010-05-16 Jan Hubicka <jh@suse.cz>
19675
19676 * cgraph.c (dump_cgraph_node): Dump versionable flag.
19677 * cgraph.h (cgraph_local_info): Add versionable flag.
19678 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19679 (ipcp_versionable_function_p): Use it.
19680 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19681 versionable flag.
19682
19683 2010-05-16 Jan Hubicka <jh@suse.cz>
19684
19685 * cgraph.c (cgraph_clone_node): Take decl argument and insert
19686 clone into hash when it is different from orig.
19687 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19688 * cgraph.h (cgraph_clone_node): Update prototype.
19689 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19690 (lto_cgraph_encoder_delete): Delete body map.
19691 (lto_cgraph_encoder_size): Move to header.
19692 (lto_cgraph_encoder_encode_body_p,
19693 lto_set_cgraph_encoder_encode_body): New.
19694 (lto_output_node): Do not take written_decls argument; output clone_of
19695 pointer.
19696 (add_node_to): Add include_body_argument; call
19697 lto_set_cgraph_encoder_encode_body on master of the clone.
19698 (add_references): Update use of add_node_to.
19699 (compute_ltrans_boundary): Likewise.
19700 (output_cgraph): Do not create written_decls bitmap.
19701 (input_node): Take nodes argument; stream in clone_of correctly.
19702 (input_cgraph_1): Update use of input_node.
19703 * lto-streamer-out.c (lto_output): Use encoder info to decide
19704 what bodies to output.
19705 * ipa-inline.c (cgraph_clone_inlined_nodes,
19706 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19707 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19708 (lto_cgraph_encoder_size): Define here.
19709 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19710 Declare.
19711
19712 2010-05-16 Richard Guenther <rguenther@suse.de>
19713
19714 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19715 -fipa-type-escape.
19716 * ipa-type-escape.c (gate_type_escape_vars): Run when
19717 -fipa-struct-reorg runs.
19718 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19719 * common.opt (fipa-type-escape): Remove.
19720
19721 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
19722
19723 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19724 (decode_options): Likewise.
19725 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19726
19727 2010-05-16 Jan Hubicka <jh@suse.cz>
19728
19729 * ipa.c (function_and_variable_visibility): Also bring local all
19730 aliases.
19731
19732 2010-05-16 Richard Guenther <rguenther@suse.de>
19733
19734 * alias.c (nonoverlapping_memrefs_p): Remove use of
19735 IPA type-escape information.
19736
19737 2010-05-16 Joseph Myers <joseph@codesourcery.com>
19738
19739 * c-common.c (c_common_reswords): Add _Static_assert for C.
19740 * c-parser.c (c_token_starts_declaration,
19741 c_parser_next_token_starts_declaration,
19742 c_parser_static_assert_declaration_no_semi,
19743 c_parser_static_assert_declaration): New.
19744 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19745 Handle static assertions if static_assert_ok.
19746 (c_parser_external_declaration, c_parser_declaration_or_fndef,
19747 c_parser_compound_statement_nostart, c_parser_label,
19748 c_parser_for_statement, c_parser_objc_methodprotolist,
19749 c_parser_omp_for_loop): All callers of
19750 c_parser_declaration_or_fndef changed.
19751 (c_parser_struct_declaration): Handle static assertions.
19752 (c_parser_compound_statement_nostart): Use
19753 c_parser_next_token_starts_declaration and
19754 c_token_starts_declaration to detect start of declarations.
19755 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19756 Likewise.
19757
19758 2010-05-16 Anatoly Sokolov <aesok@post.ru>
19759
19760 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19761 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19762 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19763 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19764 (mmix_function_outgoing_value): Rename to...
19765 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19766 (mmix_function_value_regno_p): Make static.
19767 (mmix_libcall_value): New function.
19768 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19769 mmix_function_value_regno_p): Remove declaration.
19770
19771 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
19772
19773 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19774 BUILT_IN_ALLOCA if stack checking is enabled.
19775
19776 2010-05-16 Richard Guenther <rguenther@suse.de>
19777
19778 * var-tracking.c (vars_copy_1): Inline ...
19779 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
19780 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
19781 (variable_merge_over_cur): Adjust. Merge asserts.
19782 (variable_merge_over_src): Likewise.
19783 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19784 (variable_post_merge_new_vals): Merge asserts.
19785 (variable_post_merge_perm_vals): Likewise.
19786 (find_mem_expr_in_1pdv): Likewise.
19787 (dataflow_set_different_value): Remove.
19788 (onepart_variable_different_p): Merge asserts.
19789 (variable_different_p): Likewise.
19790 (dataflow_set_different_1): Inline ...
19791 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
19792 (emit_notes_for_differences_1): Merge asserts.
19793
19794 2010-05-16 Richard Guenther <rguenther@suse.de>
19795
19796 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19797 * optabs.c (libfunc_decl_hash): Likewise.
19798 * varasm.c (emutls_decl): Likewise.
19799
19800 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
19801
19802 * c-decl.c: Don't include gimple.h.
19803 (merge_decls): Do not copy gimple_body.
19804
19805 2010-05-15 Jason Merrill <jason@redhat.com>
19806
19807 * c.opt: Add -fnothrow-opt.
19808
19809 2010-05-15 Jan Hubicka <jh@suse.cz>
19810
19811 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19812 analyzed.
19813 * passes.c (ipa_write_summaries): Write all analyzed nodes.
19814
19815 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
19816
19817 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19818 * Makefile.in: Add it.
19819 Fix all other Makefile dependencies for changes below.
19820 * tree.h: Include it instead of defining VEC primitives here.
19821 * gimple.h: Likewise.
19822 * rtl.h: Likewise.
19823 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19824 * except.h: Include vecir.h, break dependence on tree.h.
19825
19826 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19827 Move from here...
19828 * tree-iterator.c: ...to here.
19829 * tree-iterator.h: Fix file introduction comment. Add extern markers.
19830
19831 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
19832 tm_p.h.
19833 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
19834 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
19835 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
19836 tree-mudflap.h, and target.h.
19837 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
19838 predict.h, tree-inline.h, gimple.h, and langhooks.h.
19839 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
19840 Add FIXME for why gimple.h is still included (should be unnecessary
19841 since GCC 4.5 gimplification unit-at-a-time).
19842 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
19843 * c-pragma.c: Add FIXME for why function.h needs to be included just
19844 for cfun, at front-end level.
19845 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
19846 Do not include ggc.h, but include vecprim.h for VEC(char).
19847 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
19848 Explain why target.h is included.
19849 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
19850 Explain why gimple.h is included.
19851 * c-ppoutput.c: Do not include tm.h.
19852 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
19853 * c-parses.c: Explain why rtl.h is included, and that this (and only
19854 this) is also why tm.h must be included.
19855 Do not include except.h.
19856 * c-lang.c: Do not include ggc.h.
19857
19858 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
19859
19860 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
19861
19862 2010-05-15 Joseph Myers <joseph@codesourcery.com>
19863
19864 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
19865 unions by default if those structs and unions have no tags. Do
19866 not condition anonymous struct and unions handling on flag_iso.
19867 Allow anonymous structs and unions for C1X.
19868 (finish_struct): Do not diagnose lack of named fields when
19869 anonymous structs and unions present for C1X. Accept flexible
19870 array members in structure with anonymous structs or unions but no
19871 directly named fields.
19872 * doc/extend.texi (Unnamed Fields): Update.
19873
19874 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
19875
19876 * gimple.h (compare_field_offset): Rename into...
19877 (gimple_compare_field_offset): ...this.
19878 * gimple.c (compare_field_offset): Rename into...
19879 (gimple_compare_field_offset): ...this. Compare the full access if
19880 the offset is self-referential.
19881 (gimple_types_compatible_p): Adjust for above renaming.
19882 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
19883 DECL_NONADDRESSABLE_P flag of fields before merging them.
19884
19885 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
19886
19887 * tree.h (ctor_to_list): Delete.
19888 * tree.c (ctor_to_list): Delete.
19889
19890 2010-05-15 Jan Hubicka <jh@suse.cz>
19891
19892 * ipa-reference.c: Include toplev.h
19893 (is_proper_for_analysis): Only add to all_module_statics
19894 if it is allocated.
19895 (write_node_summary_p, stream_out_bitmap,
19896 ipa_reference_write_optimization_summary,
19897 ipa_reference_read_optimization_summary): New.
19898 (struct ipa_opt_pass_d pass_ipa_reference): Add
19899 optimization summary streaming.
19900 * lto-cgraph.c (referenced_from_this_partition_p,
19901 reachable_from_this_partition_p): New functions.
19902 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19903 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
19904 * opts.c (decode_options): Enable ipa_reference.
19905 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
19906 * lto-streamer.h (referenced_from_this_partition_p,
19907 reachable_from_this_partition_p): Declare.
19908
19909 2010-05-15 Richard Guenther <rguenther@suse.de>
19910
19911 PR tree-optimization/44038
19912 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
19913 taking the address of a V_C_E of a constant.
19914
19915 2010-05-14 Jan Hubicka <jh@suse.cz>
19916
19917 * tree.h (memory_identifier_string): Remove.
19918 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
19919 (ipa_reference_global_vars_info_d): Remove statics_not_read and
19920 statics_not_written.
19921 (ipa_reference_optimization_summary_d): New structure.
19922 (ipa_reference_optimization_summary_t): New type and vector.
19923 (ipa_reference_vars_info_d): Embedd structures instead of using
19924 pointers.
19925 (reference_vars_to_consider): Remove out of GGC space.
19926 (module_statics_escape): Remove.
19927 (global_info_obstack): Rename to ...
19928 (optimization_summary_obstack): ... this one.
19929 (initialization_status_t): Remove.
19930 (memory_identifier_string): Remove.
19931 (get_reference_vars_info): Fix indenting.
19932 (set_reference_vars_info): Likewise.
19933 (get_reference_optimization_summary): New.
19934 (set_reference_optimization_summary): New.
19935 (get_global_reference_vars_info): Remove.
19936 (ipa_reference_get_read_global): Remove.
19937 (ipa_reference_get_written_global): Remove.
19938 (ipa_reference_get_not_read_global): Update.
19939 (ipa_reference_get_not_written_global): Update.
19940 (is_proper_for_analysis): Outlaw addressable.
19941 (propagate_bits): Update for new datastructures.
19942 (analyze_variable): Remove.
19943 (init_function_info): Update for new datastructures.
19944 (clean_function_local_data): Remove.
19945 (clean_function): Remove.
19946 (copy_global_bitmap): Use optimizations_summary_obstack.
19947 (duplicate_node_data): Duplicate optimization summary only.
19948 (remove_node_data): Remove optimization summary only.
19949 (generate_summary): Do not analyze variables; do not compute
19950 module_statics_escape; do not prune solutions by it.
19951 (read_write_all_from_decl): Fix typos in comments.
19952 (propagate): Doscover readonly and nonaddressable first;
19953 update for new datastructures; share global bitmaps.
19954 * ipa-reference.h (ipa_reference_get_read_global,
19955 ipa_reference_get_written_global): Remove.
19956 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
19957 * Makefile.in: Remove ipa-refereference from GT files.
19958
19959 2010-05-14 Jakub Jelinek <jakub@redhat.com>
19960
19961 PR debug/44112
19962 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
19963 for all SYMBOL_REF_DECLs.
19964
19965 2010-05-14 Jan Hubicka <jh@suse.cz>
19966
19967 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
19968 (varpool_all_refs_explicit_p): New inline function.
19969 * ipa-reference.c: Update comment.
19970 (module_statics_written): Remove.
19971 (get_static_decl): Remove.
19972 (ipa_init): Do not initialize module_statics_written.
19973 (analyze_function): Likewise.
19974 (generate_summary): Likewise; do not compute module_statics_readonly
19975 and do not update variable flags.
19976 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
19977 * ipa.c: Inlucde flags.h
19978 (cgraph_local_node_p): New.
19979 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
19980 promote functions to local.
19981 (ipa_discover_readonly_nonaddressable_vars): New function.
19982 (function_and_variable_visibility): Use cgraph_local_node_p.
19983 * varpool.c (varpool_finalize_decl): Set force_output for
19984 DECL_PRESERVE_P vars.
19985
19986 2010-05-14 Jan Hubicka <jh@suse.cz>
19987
19988 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
19989
19990 2010-05-14 Richard Guenther <rguenther@suse.de>
19991
19992 PR tree-optimization/44119
19993 * tree-ssa-pre.c (eliminate): Properly mark replacement of
19994 a PHI node necessary.
19995
19996 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
19997
19998 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
19999
20000 2010-05-14 Jason Merrill <jason@redhat.com>
20001
20002 PR c++/44127
20003 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
20004 (gimple_call_set_nothrow): New.
20005 * gimple.c (gimple_build_call_from_tree): Call it.
20006 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
20007
20008 PR c++/44127
20009 * gimplify.c (gimplify_seq_add_stmt): No longer static.
20010 * gimple.h: Declare it.
20011 * gimple.c (gimple_build_eh_filter): No ops.
20012
20013 2010-05-14 Jan Hubicka <jh@suse.cz>
20014
20015 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
20016 nodes already in queue.
20017 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
20018 re-enqueueing node.
20019
20020 2010-05-14 Jakub Jelinek <jakub@redhat.com>
20021
20022 PR debug/44136
20023 * cfgexpand.c (expand_debug_expr): If non-memory op0
20024 has BLKmode, return NULL.
20025
20026 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
20027
20028 * config.gcc: Add support for --with-cpu option for bdver1.
20029 * config/i386/i386.h (TARGET_BDVER1): New macro.
20030 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
20031 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
20032 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
20033 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
20034 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
20035 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
20036 (processor_type): Add PROCESSOR_BDVER1.
20037 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
20038 processor_type in config/i386/i386.h.
20039 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
20040 movaps <reg, reg> instead of movapd <reg, reg> when replacing
20041 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
20042 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
20043 to emit packed xor instead of packed double/packed integer
20044 xor for SSE and AVX when moving a zero value.
20045 * config/i386/sse.md: Add check for
20046 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
20047 movapd/movdqa for SSE and AVX.
20048 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
20049 single logical operations i.e and, or and xor instead of packed double
20050 logical operations for SSE and AVX.
20051 * config/i386/i386-c.c (ix86_target_macros_internal):
20052 Add PROCESSOR_BDVER1.
20053 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
20054 (has_fma4, has_xop): New.
20055 * config/i386/i386.c (bdver1_cost): New variable.
20056 (m_BDVER1): New macro.
20057 (m_AMD_MULTIPLE): Add m_BDVER1.
20058 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
20059 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
20060 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
20061 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
20062 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
20063 x86_tune_sse_partial_reg_dependency,
20064 x86_tune_sse_unaligned_load_optimal,
20065 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
20066 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
20067 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
20068 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
20069 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
20070 Enable/disable for bdver1.
20071 (processor_target_table): Add bdver1_cost.
20072 (cpu_names): Add bdver1.
20073 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
20074 processor_alias_table.
20075 (ix86_expand_vector_move_misalign): Change.
20076 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
20077 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
20078 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
20079 of movupd/movdqu for SSE and AVX.
20080 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
20081 (ix86_tune_adjust_cost): Add code for bdver1.
20082 (standard_sse_constant_opcode): Add check for
20083 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
20084 of packed double xor for SSE and AVX.
20085
20086 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
20087
20088 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
20089 result to unsigned.
20090
20091 2010-05-14 Tristan Gingold <gingold@adacore.com>
20092
20093 * toplev.c (default_debug_hooks): Remove this variable.
20094 (process_options): Remove assignments to default_debug_hooks.
20095
20096 2010-05-14 Martin Jambor <mjambor@suse.cz>
20097
20098 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
20099 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
20100 * langhooks.h (struct lang_hooks_for_decls): Removed field
20101 fold_obj_type_ref.
20102 * tree.c (free_lang_data): Remove assignment to
20103 lang_hooks.fold_obj_type_ref.
20104 * tree.def (OBJ_TYPE_REF): Update comment.
20105
20106 2010-05-14 Richard Guenther <rguenther@suse.de>
20107
20108 PR tree-optimization/44124
20109 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
20110
20111 2010-05-14 Alan Modra <amodra@gmail.com>
20112
20113 PR target/44075
20114 * config/rs6000/rs6000.c (struct machine_function): Reorder
20115 fields for better packing. Add lr_save_state.
20116 (rs6000_ra_ever_killed): Return lr_save_state if set.
20117 (rs6000_emit_eh_reg_restore): Set lr_save_state.
20118
20119 2010-05-13 Jan Hubicka <jh@suse.cz>
20120
20121 * varpool.c (decide_is_variable_needed): Drop code checking
20122 TREE_SYMBOL_REFERENCED.
20123
20124 2010-05-13 Jan Hubicka <jh@suse.cz>
20125
20126 * final.c (output_addr_const): Do not call mark_decl_referenced.
20127 * cgraphunit.c (process_function_and_variable_attributes): Use
20128 mark_needed_node dirrectly.
20129 (assemble_thunk): Do not call mark_decl_referenced.
20130
20131 2010-05-13 Anatoly Sokolov <aesok@post.ru>
20132
20133 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
20134
20135 2010-05-13 Jeff Law <law@redhat.com>
20136
20137 * ira-conflicts.c (print_allocno_conflicts): New function broken out
20138 from...
20139 (print_conflicts): Call print_allocno_conflicts.
20140
20141 2010-05-13 Jakub Jelinek <jakub@redhat.com>
20142
20143 PR debug/44104
20144 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
20145 if it is NULL.
20146
20147 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
20148
20149 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
20150 t-mingw-w64 or t-mingw-w32 for multilib configuration.
20151 * config/i386/t-mingw-w32: New.
20152 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
20153
20154 2010-05-13 Martin Jambor <mjambor@suse.cz>
20155
20156 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
20157 gimple-fold.c).
20158 * gimple-fold.c (get_base_binfo_for_type): New function.
20159 (gimple_get_relevant_ref_binfo): Likewise.
20160 (gimple_fold_obj_type_ref_known_binfo): Likewise.
20161 (gimple_fold_obj_type_ref): Likewise.
20162 (fold_gimple_call): Simplify condition for folding virtual calls
20163 and call gimple_fold_obj_type_ref.
20164 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
20165 (gimple_fold_obj_type_ref_known_binfo): Likewise.
20166
20167 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
20168
20169 * config/rs6000/rs6000-protos.h
20170 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
20171 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
20172 (rs6000_debug_mode_dependent_address)
20173 (rs6000_mode_dependent_address_ptr): Likewise.
20174
20175 2010-05-13 Jakub Jelinek <jakub@redhat.com>
20176
20177 PR debug/43983
20178 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
20179 by SRA.
20180 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
20181 * tree-sra.c (create_access_replacement): Call unshare_expr before
20182 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
20183 * dwarf2out.c: Include tree-flow.h.
20184 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
20185 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
20186 Handle DW_OP_bit_piece.
20187 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
20188 construct_piece_list, adjust_piece_list): New functions.
20189 (add_var_loc_to_decl): Handle SRA optimized variables.
20190 Adjust for var_loc_note to loc field renaming.
20191 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
20192 in VAR_LOCATION note.
20193 (new_loc_descr_op_bit_piece): New function.
20194 (dw_sra_loc_expr): New function.
20195 (dw_loc_list): Use it. Don't handle the last range after the
20196 loop, handle it inside of the loop. Adjust for var_loc_note
20197 to loc field renaming.
20198 (add_location_or_const_value_attribute): Only special case
20199 single entry loc lists if loc is NOTE_P. Adjust for
20200 var_loc_note to loc field renaming.
20201 (dwarf2out_var_location): Don't set newloc->var_loc_note
20202 and newloc->next here.
20203
20204 2010-05-12 Jan Hubicka <jh@suse.cz>
20205
20206 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
20207 flag.
20208 * cgraph.h (cgraph_only_called_directly_p,
20209 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
20210 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
20211 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
20212 (assemble
20213 * ipa.c (cgraph_remove_unreachable_nodes): Use
20214 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
20215 flags.
20216 * tree-inline.c (copy_bb): Check address_taken flag.
20217 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
20218 externally_visible flag.
20219
20220 2010-05-12 Jason Merrill <jason@redhat.com>
20221
20222 PR bootstrap/44048
20223 PR target/44099
20224 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
20225 * sdbout.c (plain_type_1): Likewise.
20226 * dwarf2out.c (is_base_type): Likewise.
20227 (gen_type_die_with_usage): Likewise. Generate
20228 DW_TAG_unspecified_type for any LANG_TYPE.
20229
20230 2010-05-12 Jan Hubicka <jh@suse.cz>
20231
20232 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
20233 indrect edges too.
20234 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
20235 (cgraph_clone_edge): Update.
20236 (cgraph_node_remove_callees): Remove indirect calls too.
20237 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
20238 (cgraph_create_indirect_edge): Update prototype.
20239 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
20240 is_proper_for_analysis.
20241 (add_new_function, visited_nodes, function_insertion_hook_holder,
20242 get_local_reference_vars_info, mark_address_taken, mark_address,
20243 mark_load, mark_store, check_asm_memory_clobber, check_call,
20244 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
20245 (ipa_init): Do not initialize visited_nodes;
20246 function_insertion_hook_holder.
20247 (analyze_variable): Rewrite.
20248 (analyze_function): Rewrite.
20249 (copy_local_bitmap): Remove.
20250 (duplicate_node_dat): Do not duplicate local info.
20251 (generate_summary): Simplify to only walk cgraph.
20252 (write_node_summary_p, ipa_reference_write_summary,
20253 ipa_reference_read_summary): Remove.
20254 (propagate): Do not remove function insertion;
20255 generate summary.
20256 (pass_ipa_reference): NULLify summary handling fields.
20257 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
20258 (input_edge): Input ecf_flags.
20259 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
20260 (update_indirect_edges_after_inlining): Ignore edges with unknown
20261 param.
20262
20263 2010-05-12 Sriraman Tallam <tmsriram@google.com>
20264
20265 * implicit-zee.c: New file.
20266 * tree-pass.h (pass_implicit_zee): Declare.
20267 * passes.c (init_optimization_passes): Add zee pass.
20268 * common.opt (fzee): New flag.
20269 * timevar.def (TV_ZEE): Define.
20270 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
20271 and beyond.
20272 * Makefile.in (implicit-zee.o): Add new build file.
20273
20274 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
20275 Nathan Froyd <froydnj@codesourcery.com>
20276
20277 * c-common.c (sync_resolve_params): Remove write-only variable.
20278
20279 2010-05-12 Anatoly Sokolov <aesok@post.ru>
20280
20281 * target.h (struct gcc_target): Add mode_dependent_address_p field.
20282 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20283 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
20284 * targhooks.c (default_mode_dependent_address_p): New function.
20285 * targhooks.h (default_mode_dependent_address_p): Declare function.
20286 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20287 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
20288 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
20289 target hook. Change return type to bool.
20290 * recog.h (mode_dependent_address_p): Change return type to bool.
20291
20292 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
20293 Nathan Froyd <froydnj@codesourcery.com>
20294
20295 * tree-mudflap.c (build_function_type_0, build_function_type_1,
20296 build_function_type_2, build_function_type_3): Remove.
20297 (mudflap_init): Use build_function_type_list.
20298
20299 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
20300 Nathan Froyd <froydnj@codesourcery.com>
20301
20302 * coverage.c (build_fn_info_value): Call build_constructor instead of
20303 build_constructor_from_list.
20304 (build_ctr_info_value): Likewise.
20305 (build_gcov_info): Likewise.
20306
20307 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
20308
20309 * tree.c (build_constructor): Compute TREE_CONSTANT for the
20310 resultant constructor.
20311 (build_constructor_single): Don't set TREE_CONSTANT.
20312 (build_constructor_from_list): Don't compute TREE_CONSTANT.
20313
20314 2010-05-12 Jan Hubicka <jh@suse.cz>
20315
20316 * cgraph.h (struct varpool_node): Add aux.
20317 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
20318 * varpool.c (varpool_remove_node): Do not remove initializer.
20319 (varpool_reset_queue): Export.
20320 (varpool_finalize_decl): Volatile vars are forced to be output.
20321 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
20322 replaced decl.
20323 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
20324 process_references, varpool_can_remove_if_no_refs): New functions.
20325 (cgraph_remove_unreachable_nodes): Handle variables too.
20326
20327 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
20328
20329 PR target/44088
20330 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
20331
20332 2010-05-12 Jakub Jelinek <jakub@redhat.com>
20333
20334 PR middle-end/44085
20335 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
20336 change value of ORT_TASK.
20337 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
20338 (omp_notice_threadprivate_variable): New function.
20339 (omp_notice_variable): Call it for threadprivate variables.
20340 If enclosing ctx is a task, print enclosing task rather than
20341 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
20342 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
20343 if task has untied clause.
20344
20345 PR debug/42278
20346 * dwarf2out.c (base_type_die): Don't add name attribute here.
20347 (modified_type_die): Instead of sizetype use
20348 its underlying original type. If a DW_TAG_base_type doesn't
20349 have name added, add __unknown__.
20350 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
20351 always call force_type_die instead.
20352
20353 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
20354
20355 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
20356 for __stack_chk_guard.
20357
20358 2010-05-11 Jakub Jelinek <jakub@redhat.com>
20359
20360 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
20361 don't call start_source_file debug hook here...
20362 (finish_options): ... but here, after outputting predefined and
20363 command line defines and undefs.
20364
20365 PR middle-end/44071
20366 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
20367 no fallthru edge.
20368 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
20369 optimizing away empty bb with no successors, move over its
20370 footer chain to fallthru predecessor.
20371 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
20372 (rtl_split_edge): For asm goto call patch_jump_insn even if
20373 splitting fallthru edge.
20374
20375 PR c++/44059
20376 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
20377 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
20378 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20379 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
20380 on DW.ref.* decls.
20381
20382 PR c++/44062
20383 * c-parser.c (c_parser_expression): Mark LHS of a comma
20384 expression as read if it is a decl, handled component or
20385 COMPOUND_EXPR with that on the RHS.
20386 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
20387 if it is a decl or handled component.
20388
20389 2010-05-11 Jan Hubicka <jh@suse.cz>
20390
20391 * lto-symtab.c (lto_symtab_free): New function.
20392 * lto-streamer.h (lto_symtab_free): Declare.
20393
20394 2010-05-11 Jan Hubicka <jh@suse.cz>
20395
20396 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
20397 that if function is needed it is reachable.
20398 (lto_output_node): See if it the function is reachable or referenced.
20399 (output_cgraph): Update call of lto_output_node.
20400 * lto-streamer.h (reachable_from_other_partition_p): Declare.
20401
20402 2010-05-11 Jan Hubicka <jh@suse.cz>
20403
20404 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
20405 Mark as used.
20406
20407 2010-05-11 Jan Hubicka <jh@suse.cz>
20408
20409 PR tree-optimize/44063
20410 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
20411 queue.
20412 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
20413 limits.
20414 (estimate_function_body_sizes): Compute sizes even when disregarding.
20415
20416 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
20417
20418 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
20419
20420 2010-05-11 Jan Hubicka <jh@suse.cz>
20421
20422 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
20423 into every boundary.
20424
20425 2010-05-11 Jan Hubicka <jh@suse.cz>
20426
20427 * matrix-reorg.c (matrix_reorg): Rebuild edges.
20428
20429 2010-05-11 Jan Hubicka <jh@suse.cz>
20430
20431 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
20432 lto_streamer_cache_delete): Put nodes into heap.
20433 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
20434 heap.
20435
20436 2010-05-11 Jan Hubicka <jh@suse.cz>
20437
20438 * cgraphbuild.c (cgraph_rebuild_references): New.
20439 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
20440 out extern inlines.
20441 * cgraph.h (cgraph_rebuild_references): Declare.
20442 * tree-inline.c (tree_function_versioning): Use it.
20443 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
20444
20445 2010-05-11 Jan Hubicka <jh@suse.cz>
20446
20447 * cgraph.c: Include ipa-utils.h
20448 (cgraph_create_virtual_clone): Update references.
20449 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
20450
20451 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
20452
20453 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
20454 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
20455 cache size.
20456
20457 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
20458
20459 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
20460
20461 2010-05-11 Jakub Jelinek <jakub@redhat.com>
20462
20463 * gcc.c (execute): For -### don't quote arguments that
20464 contain just alphanumerics and _/-. characters.
20465 * doc/invoke.texi: Document that change for -###.
20466
20467 PR debug/44023
20468 * df-problems.c (struct dead_debug): Add to_rescan field.
20469 (dead_debug_init): Clear to_rescan field.
20470 (dead_debug_finish): Rescan all debug insns in to_rescan
20471 bitmap and free the bitmap.
20472 (dead_debug_insert_before): Instead of rescanning debug insns
20473 immediately queue their rescanning until dead_debug_finish.
20474 (df_note_bb_compute): After dead_debug_add do continue instead
20475 of break.
20476
20477 2010-05-10 Jakub Jelinek <jakub@redhat.com>
20478
20479 PR debug/44028
20480 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
20481 clear also INSN_REG_USE_LIST.
20482
20483 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20484
20485 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
20486
20487 2010-05-10 Jan Hubicka <jh@suse.cz>
20488
20489 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
20490 commited change.
20491
20492 2010-05-10 Jan Hubicka <jh@suse.cz>
20493
20494 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
20495 Allocate encoders.
20496 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
20497 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
20498 (lto_streamer_cache_create): Init alloc pool.
20499 (lto_streamer_cache_delete): Free alloc pool.
20500 * lto-streamer.h: Include alloc pool.
20501 (lto_streamer_cache_d): Use alloc pool.
20502 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
20503
20504 2010-05-10 Jan Hubicka <jh@suse.cz>
20505
20506 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
20507 * cgraphbuild.c: Include except.h
20508 (record_type_list, record_eh_tables): New function.
20509 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
20510
20511 2010-05-10 Jan Hubicka <jh@suse.cz>
20512
20513 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
20514 __frame_dummy_init_array_entry, force_to_data): Attribute as used
20515 rather than unused.
20516
20517 2010-05-10 Michael Matz <matz@suse.de>
20518
20519 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
20520 (can_reassociate_p): Use FLOAT_TYPE_P.
20521 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
20522 (vect_force_simple_reduction): ... this.
20523 * tree-parloops.c (gather_scalar_reductions): Use
20524 vect_force_simple_reduction.
20525 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
20526 vect_is_simple_reduction, add modify argument, if true rewrite
20527 "a-b" into "a+(-b)".
20528 (vect_is_simple_reduction, vect_force_simple_reduction): New
20529 functions.
20530 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
20531
20532 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
20533 Vladimir Makarov <vmakarov@redhat.com>
20534
20535 PR rtl-optimization/44012
20536 * ira-build.c (remove_unnecessary_allocnos): Nullify
20537 regno_allocno_map of the removed allocno.
20538
20539 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20540
20541 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
20542 to /dev/null.
20543 * configure: Regenerate.
20544
20545 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20546
20547 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
20548 unused.
20549 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
20550 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
20551 support in Sun ld.
20552 * configure: Regenerate.
20553
20554 2010-05-10 Richard Guenther <rguenther@suse.de>
20555
20556 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
20557 marked if the entry identifier is marked.
20558
20559 2010-05-10 Richard Guenther <rguenther@suse.de>
20560
20561 * c-common.c (struct c_common_attributes): Add fnspec attribute.
20562 (handle_fnspec_attribute): New function.
20563 * gimple.h (gimple_call_return_flags): Declare.
20564 (gimple_call_arg_flags): Likewise.
20565 * gimple.c (gimple_call_arg_flags): New function.
20566 (gimple_call_return_flags): Likewise.
20567 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
20568 New argument flags.
20569 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
20570 return value flags.
20571 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
20572 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
20573 main work to ...
20574 (make_heapvar_for): ... this new function.
20575 (handle_rhs_call): Handle fnspec attribute argument specifiers.
20576 (handle_lhs_call): Likewise.
20577 (find_func_aliases): Adjust.
20578
20579 2010-05-10 Richard Guenther <rguenther@suse.de>
20580
20581 PR tree-optimization/44050
20582 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
20583
20584 2010-05-10 Wei Guozhi <carrot@google.com>
20585
20586 PR target/42879
20587 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
20588
20589 2010-05-09 Joseph Myers <joseph@codesourcery.com>
20590
20591 PR c/10676
20592 * c-typeck.c (lookup_field): Take a type directly. Update
20593 recursive calls.
20594 (build_component_ref): Update call to lookup_field.
20595 (set_init_label): Use lookup_field to find initialized field.
20596 Handle returned list of fields like a sequence of designators.
20597
20598 2010-05-09 Richard Guenther <rguenther@suse.de>
20599
20600 PR middle-end/44024
20601 * fold-const.c (tree_single_nonzero_warnv_p): Properly
20602 handle &FUNCTION_DECL.
20603
20604 2010-05-09 Joseph Myers <joseph@codesourcery.com>
20605
20606 PR c/4784
20607 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
20608 structures and unions recursively.
20609 (detect_field_duplicates): Move duplicate detection with a hash to
20610 detect_field_duplicates_hash. Always use a hash if anonymous
20611 structures or unions are present.
20612 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
20613 give errors.
20614
20615 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
20616
20617 PR target/44046
20618 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
20619 detect Atom, Core 2 and Core i7.
20620
20621 2010-05-09 Richard Guenther <rguenther@suse.de>
20622
20623 * gcc.c (store_arg): Handle temporary file deletion for
20624 joined arguments.
20625
20626 2010-05-09 Richard Guenther <rguenther@suse.de>
20627
20628 PR middle-end/44043
20629 * ipa-inline.c (estimate_function_body_sizes): Return after
20630 disregarding inline limits.
20631
20632 2010-05-09 Richard Guenther <rguenther@suse.de>
20633
20634 * gcc.c (store_arg): Revert last change.
20635
20636 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
20637
20638 PR middle-end/28685
20639 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
20640 (optimize_ops_list): Call it.
20641
20642 2010-05-08 Richard Guenther <rguenther@suse.de>
20643
20644 PR tree-optimization/44030
20645 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
20646 NECESSARY flag if we propagate from a inserted expression.
20647
20648 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
20649
20650 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
20651 domain types as equal if they are both PLACEHOLDER_EXPRs.
20652
20653 2010-05-08 Richard Guenther <rguenther@suse.de>
20654
20655 * lto-wrapper.c (run_gcc): Remove linker output from
20656 command line for LTRANS invocation.
20657
20658 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
20659
20660 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
20661 lto-macho as lto_binary_reader.
20662 * target.h (struct gcc_target): New hooks lto_start and lto_end.
20663 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
20664 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
20665 in lto_start and lto_end calls.
20666 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
20667 magic numbers.
20668 (scan_prog_file): Update is_elf_or_coff call.
20669 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
20670
20671 * collect2.c (main): Fix enum comparison.
20672
20673 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
20674 Add prototypes.
20675 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20676 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
20677 and TARGET_ASM_LTO_END.
20678 * darwin.c: Include obstack.h and lto-streamer.h.
20679 (lto_section_names_offset, lto_section_names_obstack,
20680 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20681 global variables.
20682 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20683 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
20684 to a temporary file.
20685 (darwin_asm_lto_end): New function. Restore asm_out_file.
20686 (darwin_asm_named_section): For LTO sections, replace the name with
20687 the offset of the section name in a string table, and build this
20688 table.
20689 (darwin_file_start): Initialize global vars for LTO support.
20690 (darwin_file_end): If output to asm_out_file was redirected, append it
20691 to the proper asm_out_file here. Add the section names section.
20692
20693 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
20694
20695 * c-pragma.c (pending_weak_d, pending_weak): New.
20696 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20697 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20698 handle_pragma_weak): Update the uses of pending_weaks.
20699
20700 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20701
20702 PR documentation/44016
20703 * doc/standards.texi (Standards): Link to unversioned
20704 cxx0x_status.html page.
20705
20706 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
20707
20708 PR target/43708
20709 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20710 in addition to TREE_USED, to avoid "set but unused" warnings.
20711
20712 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20713
20714 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20715 (is_loop_prefetching_profitable): Do not insert prefetches
20716 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20717 times the prefetch ahead distance.
20718
20719 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20720
20721 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20722 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20723 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20724 the unroll_factor.
20725
20726 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
20727
20728 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20729 a diagnostic info when the insn-to-mem ratio is too small.
20730
20731 2010-05-07 Richard Guenther <rguenther@suse.de>
20732
20733 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20734 the linker plugin.
20735 (store_arg): Queue temp_filename for deletion instead of
20736 the whole argument.
20737
20738 2010-05-07 Richard Guenther <rguenther@suse.de>
20739
20740 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20741 (run_gcc): Handle LTRANS phase invocation.
20742 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20743
20744 2010-05-07 Jakub Jelinek <jakub@redhat.com>
20745
20746 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20747 this is also meaningful on PARM_DECLs and RESULT_DECLs.
20748
20749 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20750
20751 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20752
20753 2010-05-07 Richard Guenther <rguenther@suse.de>
20754
20755 PR tree-optimization/44020
20756 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20757 code when PRE is not yet initialized.
20758
20759 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20760
20761 * config/mips/dbxmdebug.h: Remove.
20762 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20763
20764 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
20765
20766 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20767 with null pointer and also warn about ordered comparison of zero with
20768 pointer if -Wextra.
20769
20770 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
20771
20772 * graphite-blocking.c
20773 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20774 * graphite-clast-to-gimple.c
20775 (clast_to_gcc_expression): Same.
20776 (precision_for_value): Same.
20777 (precision_for_interval): Same.
20778 (gcc_type_for_interval): Same.
20779 (graphite_create_new_guard): Same.
20780 (compute_bounds_for_level): Same.
20781 (graphite_create_new_loop_guard): Same.
20782 * graphite-interchange.c
20783 (build_linearized_memory_access): Same.
20784 (pdr_stride_in_loop): Same.
20785 (memory_strides_in_loop_1): Same.
20786 (memory_strides_in_loop): Same.
20787 (extend_scattering): Same.
20788 (psct_scattering_dim_for_loop_depth): Same.
20789 (pbb_number_of_iterations): Same.
20790 * graphite-poly.h
20791 (debug_iteration_domains): Same.
20792 * graphite-ppl.c
20793 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20794 (ppl_set_inhomogeneous_gmp): Same.
20795 (ppl_strip_loop): Same.
20796 (ppl_lexico_compare_linear_expressions): Same.
20797 (ppl_read_polyhedron_matrix): Same.
20798 (ppl_max_for_le_pointset): Same.
20799 * graphite-ppl.h
20800 (ppl_read_polyhedron_matrix): Same.
20801 (tree_int_to_gmp): Same.
20802 (gmp_cst_to_tree): Same.
20803 (ppl_set_inhomogeneous): Same.
20804 (ppl_set_inhomogeneous_tree): Same.
20805 (ppl_set_coef): Same.
20806 (ppl_set_coef_tree): Same.
20807 * graphite-sese-to-poly.c
20808 (build_pbb_scattering_polyhedrons): Same.
20809 (build_scop_scattering): Same.
20810 (scan_tree_for_params_right_scev): Same.
20811 (scan_tree_for_params): Same.
20812 (find_params_in_bb): Same.
20813 (find_scop_parameters): Same.
20814 (add_upper_bounds_from_estimated_nit): Same.
20815 (build_loop_iteration_domains): Same.
20816 (add_condition_to_domain): Same.
20817 (pdr_add_memory_accesses): Same.
20818
20819 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
20820
20821 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20822 CLooG's value_* macros to their respective mpz_* counterparts.
20823 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20824 (graphite_create_new_loop_guard): Same.
20825 * graphite-interchange.c (build_linearized_memory_access): Same.
20826 (pdr_stride_in_loop): Same.
20827 (memory_strides_in_loop_1): Same.
20828 (1st_interchange_profitable_p): Same.
20829 * graphite-poly.c (extend_scattering): Same.
20830 (psct_scattering_dim_for_loop_depth): Same.
20831 (pbb_number_of_iterations): Same.
20832 (pbb_number_of_iterations_at_time): Same.
20833 * graphite-poly.h (new_1st_loop): Same.
20834 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
20835 (oppose_constraint): Same.
20836 (insert_constraint_into_matrix): Same.
20837 (ppl_set_inhomogeneous_gmp): Same.
20838 (ppl_set_coef_gmp): Same.
20839 (ppl_strip_loop): Same.
20840 (ppl_lexico_compare_linear_expressions): Same.
20841 (ppl_max_for_le_pointset): Same.
20842 (ppl_min_for_le_pointset): Same.
20843 (ppl_build_realtion): Same.
20844 * graphite-ppl.h (gmp_cst_to_tree): Same.
20845 (ppl_set_inhomogeneous): Same.
20846 (ppl_set_inhomogeneous_tree): Same.
20847 (ppl_set_coef): Same.
20848 (ppl_set_coef_tree): Same.
20849 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
20850 (build_scop_scattering): Same.
20851 (add_value_to_dim): Same.
20852 (scan_tree_for_params_right_scev): Same.
20853 (scan_tree_for_params_int): Same.
20854 (scan_tree_for_params): Same.
20855 (find_params_in_bb): Same.
20856 (find_scop_parameters): Same.
20857 (add_upper_bounds_from_estimated_nit): Same.
20858 (build_loop_iteration_domains): Same.
20859 (create_linear_expr_from_tree): Same.
20860 (add_condition_to_domain): Same.
20861 (pdr_add_memory_accesses): Same.
20862
20863 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
20864 Jason Merrill <jason@redhat.com>
20865
20866 * c-common.c (c_common_reswords): Add nullptr.
20867 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
20868 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
20869 (gen_type_die_with_usage): Likewise.
20870 * dbxout.c (dbxout_type): Likewise.
20871 * sdbout.c (plain_type_1): Likewise.
20872
20873 2010-05-06 Jason Merrill <jason@redhat.com>
20874
20875 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
20876 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
20877 ret appropriately.
20878 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
20879
20880 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
20881 stripping WITH_SIZE_EXPR.
20882 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
20883 change.
20884
20885 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20886
20887 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
20888 list of obsolete configurations.
20889 Disabled check for obsolete configurations.
20890 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
20891 Removed support for previous versions.
20892 * config/mips/iris.h: Removed.
20893 * config/mips/iris5.h: Removed.
20894 * config/mips/iris6.h: Merged old iris.h contents.
20895 (TARGET_IRIX): Removed.
20896 (DRIVER_SELF_SPECS): Removed mabi=32.
20897 (IDENT_ASM_OP): Removed undef.
20898 (STARTFILE_SPEC): Removed mabi=32.
20899 (ENDFILE_SPEC): Likewise.
20900 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
20901 (MACHINE_TYPE): Update for IRIX 6.5.
20902 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
20903 TARGET_IRIX by TARGET_IRIX6.
20904 (mips_file_start): Likewise.
20905 (mips_output_external): Remove IRIX 5/6 O32 support.
20906 (mips_output_function_prologue): Likewise.
20907 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
20908 TARGET_IRIX6.
20909 (TARGET_CPU_CPP_BUILTINS): Likewise.
20910 (TARGET_IRIX): Removed.
20911 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
20912 (MULTILIB_DIRNAMES): Removed 32.
20913 (MULTILIB_OSDIRNAMES): Removed ../lib.
20914 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
20915 (Specific, mips-sgi-irix5): Document removal.
20916 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
20917 Remove references to older IRIX 6 releases and the O32 ABI.
20918
20919 2010-05-06 Jakub Jelinek <jakub@redhat.com>
20920
20921 PR bootstrap/43994
20922 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
20923 instead of DF_REF_REAL_REG.
20924
20925 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
20926
20927 PR target/43888
20928 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
20929 handling to still return true for x64 targets.
20930
20931 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
20932
20933 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
20934
20935 2010-05-06 Jan Hubicka <jh@suse.cz>
20936
20937 PR tree-optimization/43791
20938 * ipa-inline.c (update_caller_keys): Remove bogus
20939 disregard_inline_limits check.
20940
20941 2010-05-06 Michael Matz <matz@suse.de>
20942
20943 PR tree-optimization/43984
20944 * tree-ssa-pre.c (inserted_phi_names): Remove.
20945 (inserted_exprs): Change to bitmap.
20946 (create_expression_by_pieces): Set bits, don't append to vector.
20947 (insert_into_preds_of_block): Don't handle inserted_phi_names.
20948 (eliminate): Don't look at inserted_phi_names, remove deleted
20949 insns from inserted_exprs.
20950 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
20951 (init_pre, fini_pre): Allocate and free bitmaps.
20952 (execute_pre): Insert insns on edges before elimination.
20953
20954 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
20955
20956 * tree.c (initializer_zerop): Handle STRING_CST.
20957
20958 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
20959
20960 PR 40989
20961 * doc/invoke.texi (Wimplicit): Document as C only.
20962 * opts.c (common_handle_option): Add argument kind.
20963 (handle_option): Rename as read_cmdline_option. Factor out code to...
20964 (handle_option): ... here. New.
20965 (handle_options): Rename as read_cmdline_options.
20966 (decode_options): Update call.
20967 (set_option): Use option index instead of option pointer. Classify
20968 diagnostics correctly.
20969 (enable_warning_as_error): Call handle_option.
20970 * opts.h (set_option): Update declaration.
20971 (handle_option): Declare.
20972 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
20973 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
20974 * c-opts.c (set_Wimplicit): Delete.
20975 (c_family_lang_mask): New static constant.
20976 (c_common_handle_option): Add argument kind. Use handle_option
20977 instead of set_Wimplicit.
20978 (c_common_post_options): warn_implicit and warn_implicit_int
20979 are disabled by default.
20980 * c-common.c (warn_implicit): Do not define here.
20981 * c-common.h (warn_implicit): Do not declare here.
20982 (c_common_handle_option): Update declaration.
20983 * lto-opts.c (lto_reissue_options): Update call to set_option.
20984
20985 2010-05-06 Richard Guenther <rguenther@suse.de>
20986
20987 PR tree-optimization/43571
20988 * domwalk.c (walk_dominator_tree): Walk the dominator
20989 sons in more optimal order.
20990
20991 2010-05-06 Richard Guenther <rguenther@suse.de>
20992
20993 PR tree-optimization/43934
20994 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
20995 (stmt_cost): Likewise.
20996 (extract_true_false_args_from_phi): New helper.
20997 (determine_max_movement): For PHI nodes verify we can hoist them
20998 and compute their cost.
20999 (determine_invariantness_stmt): Handle PHI nodes.
21000 (move_computations_stmt): Likewise. Hoist PHI nodes in
21001 if-converted form using COND_EXPRs.
21002 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
21003 (tree_ssa_lim): Likewise.
21004 * tree-flow.h (tree_ssa_lim): Adjust prototype.
21005 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
21006
21007 2010-05-06 Richard Guenther <rguenther@suse.de>
21008
21009 PR tree-optimization/43987
21010 * tree-ssa-structalias.c (could_have_pointers): For possibly
21011 address-taken variables force pointers to be recorded.
21012 (create_variable_info_for_1): Likewise.
21013 (push_fields_onto_fieldstack): Pass in wheter all fields
21014 must have pointers.
21015 (find_func_aliases): Query types instead of vars whether
21016 they contain pointers where appropriate.
21017
21018 2010-05-06 Jan Hubicka <jh@suse.cz>
21019
21020 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
21021 (record_reference, mark_address, mark_load, mark_store): Record
21022 references.
21023 (record_references_in_initializer): Update call of record_references.
21024 (rebuild_cgraph_edges): Remove all references before rebuiding.
21025 * cgraph.c (cgraph_create_node): Clear ref list.
21026 (cgraph_remove_node): Remove references.
21027 (dump_cgraph_node): Dump references.
21028 (cgraph_clone_node): Clone references.
21029 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
21030 (struct cgraph_node, varpool_node): Add ref_lst.
21031 * ipa-ref.c: New file.
21032 * ipa-ref.h: New file.
21033 * ipa-ref-inline.h: New file.
21034 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
21035 (referenced_from_other_partition_p): New function.
21036 (lto_output_varpool_node): Take set arugment; call
21037 referenced_from_other_partition.
21038 (lto_output_ref): New.
21039 (add_references): New.
21040 (output_refs): New.
21041 (output_cgraph): Compute boundary based on references; output refs.
21042 (output_varpool): Accept cgraph_node_set argument.
21043 (input_ref): New.
21044 (input_refs): New.
21045 (input_cgraph): Call input_refs.
21046 * lto-section-in.c (lto_section_name): Add refs.
21047 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
21048 (ipa-ref.o): New file.
21049 * varpool.c (varpool_node): Clear ipa ref list.
21050 (varpool_remove_node): Remove references.
21051 (dump_varpool_node): Dump references.
21052 (varpool_assemble_decl): Only compile finalized ones.
21053 (varpool_extra_name_alias): Initialize ref list.
21054 * lto-streamer.c (lto-get_section_name): Add .refs section.
21055 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
21056 (referenced_from_other_partition_p): Declared.
21057
21058 2010-05-06 Ira Rosen <irar@il.ibm.com>
21059
21060 PR tree-optimization/43901
21061 * tree-vect-stmts.c (vectorizable_call): Assert that vector
21062 type is not NULL if it's transformation phase, and return
21063 FALSE if it's analysis.
21064 (vectorizable_conversion, vectorizable_operation,
21065 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
21066
21067 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
21068
21069 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
21070 Delete.
21071 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
21072 New define.
21073 * config/mips/mips-protos.h
21074 (mips_small_register_classes_for_mode_p): Delete prototype.
21075
21076 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
21077
21078 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
21079 * config/arm/arm.c (multiple_operation_profitable_p,
21080 compute_offset_order): New static functions.
21081 (load_multiple_sequence, store_multiple_sequence): Use them.
21082 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
21083 memory offsets, not register numbers.
21084 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
21085
21086 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
21087
21088 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
21089 (get_pending_sizes, put_pending_size, put_pending_sizes):
21090 Update the uses of pending_sizes.
21091 * c-decl.c (store_parm_decls): Likewise.
21092 * c-tree.h (struct c_arg_info): Likewise.
21093 * tree.h: Update the prototype for get_pending_sizes and
21094 put_pending_sizes.
21095
21096 2010-05-05 Jason Merrill <jason@redhat.com>
21097
21098 PR debug/43370
21099 * c-common.c (handle_aligned_attribute): Respect
21100 ATTR_FLAG_TYPE_IN_PLACE.
21101
21102 PR testsuite/43758
21103 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
21104 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
21105 (TARGET_INITIALIZER): Use it.
21106 * c-common.c (attribute_takes_identifier_p): Call it.
21107 * c-common.h: Update prototype.
21108 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
21109 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
21110
21111 2010-05-05 Jakub Jelinek <jakub@redhat.com>
21112
21113 PR debug/43950
21114 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
21115 DW_ID_down_case for Fortran compilation units.
21116
21117 2010-05-05 Jan Hubicka <jh@suse.cz>
21118
21119 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
21120 handle aliases.
21121
21122 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
21123
21124 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
21125 a variable-sized RESULT_DECL.
21126
21127 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
21128
21129 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
21130
21131 2010-05-05 Jason Merrill <jason@redhat.com>
21132
21133 PR c++/43787
21134 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
21135 returns GS_OK.
21136 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
21137
21138 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
21139 Jakub Jelinek <jakub@redhat.com>
21140
21141 PR debug/43478
21142 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
21143 (dead_debug_init, dead_debug_finish): New functions.
21144 (dead_debug_add, dead_debug_insert_before): Likewise.
21145 (df_note_bb_compute): Initialize a dead_debug object, add dead
21146 debug uses to it, insert debug bind insns before death insns,
21147 reset debug insns that refer to pending uses at the end.
21148 * rtl.h (make_debug_expr_from_rtl): New prototype.
21149 * varasm.c (make_debug_expr_from_rtl): New function.
21150
21151 2010-05-05 Jan Hubicka <jh@suse.cz>
21152
21153 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
21154 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
21155 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
21156 lto_varpool_encoder_deref, lto_varpool_encoder_size,
21157 lto_varpool_encoder_encode_initializer_p,
21158 lto_set_varpool_encoder_encode_initializer): New functions.
21159 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
21160 call output_varpool.
21161 (input_varpool_node): Do not always set analyzed.
21162 (input_cgraph_1): Return vector of cgraph nodes.
21163 (input_varpool_1): Return vector of varpools.
21164 (input_cgraph): Free the vectors.
21165 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21166 output only initializers needed.
21167 (lto_output): Only call output_cgraph.
21168 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
21169 * lto-section-out.c (lto_new_out_decl_state): Initialize
21170 state->varpool_node_encoder.
21171 * lto-streamer.h (lto_varpool_encoder_d): New.
21172 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
21173 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
21174 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
21175 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
21176 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
21177 Declare.
21178 (output_varpool, input_varpool): Remove declarations.
21179
21180 2010-05-05 Jan Hubicka <jh@suse.cz>
21181
21182 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
21183 with body can prevail.
21184
21185 2010-05-05 Jan Hubicka <jh@suse.cz>
21186
21187 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
21188 size.
21189
21190 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21191
21192 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
21193
21194 * gengtype.h (erro_at_line): Constify pos argument.
21195
21196 * gengtype.c: Include hashtab.h.
21197 (enum gc_used): Document GC_MAYBE_POINTED_TO.
21198 (error_at_line): Constify pos argument.
21199 (do_typedef): Initialize p->opt field.
21200 (get_file_gtfilename): Fix comment typo.
21201 (struct walk_type_data): Constify line field.
21202 (get_output_file_for_structure): New function.
21203 (write_local_func_for_structure): Constify orig_s argument.
21204 Use get_output_file_for_structure.
21205 (write_func_for_structure): Use get_output_file_for_structure.
21206 (INDENT): New define.
21207 (dump_pair, dump_type, dump_type_list, dump_typekind)
21208 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
21209 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
21210 functions.
21211 (seen_types): New variable.
21212 (main): New variable do_dump. Process "-d" command line option.
21213 Call dump_everything if dump requested.
21214
21215 2010-05-05 Jakub Jelinek <jakub@redhat.com>
21216
21217 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
21218 in a temporary instead of invoking the macro multiple times.
21219 (track_expr_p): Likewise.
21220
21221 2010-05-04 Neil Vachharajani <nvachhar@google.com>
21222
21223 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
21224 per new semantics.
21225 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
21226 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
21227 conditions for printing notes.
21228 * common.opt (-Wcoverage-mismatch): Allow negative, default to
21229 true, update documentation.
21230 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
21231
21232 2010-05-04 Jakub Jelinek <jakub@redhat.com>
21233
21234 PR c/43981
21235 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
21236 on dimen.
21237
21238 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
21239
21240 PR target/43799
21241 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
21242 (*sse_prologue_save_insn1): Likewise.
21243 (SSE prologue save splitter): Likewise.
21244
21245 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
21246
21247 * tree.c (free_lang_data_in_one_sizepos): New inline function.
21248 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
21249 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
21250 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
21251 all decls. Call it on DECL_FIELD_OFFSET of fields.
21252 (find_decls_types_r): Follow DECL_VALUE_EXPR.
21253 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
21254
21255 2010-05-04 Martin Jambor <mjambor@suse.cz>
21256
21257 * tree-sra.c (build_access_from_expr_1): The first parameter type
21258 changed to simple tree.
21259 (build_access_from_expr): Likewise, gsi parameter was eliminated.
21260 (scan_assign_result): Renamed to assignment_mod_result, enum elements
21261 renamed as well.
21262 (build_accesses_from_assign): Removed all parameters except for a
21263 simple gimple statement. Now returns a simple bool.
21264 (scan_function): All non-analysis parts moved to separate functions
21265 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
21266 parameters and updated both callers.
21267 (sra_modify_expr): Removed parameter data.
21268 (sra_modify_function_body): New function.
21269 (perform_intra_sra): Call sra_modify_function_body to modify the
21270 function body.
21271 (replace_removed_params_ssa_names): Parameter data changed into
21272 adjustments vector.
21273 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
21274 changed the parameter dont_convert to convert with the opposite
21275 meaning.
21276 (sra_ipa_modify_assign): Parameter data changed into adjustments
21277 vector, return value changed to bool.
21278 (ipa_sra_modify_function_body): New function.
21279 (sra_ipa_reset_debug_stmts): Updated a comment.
21280 (modify_function): Use ipa_sra_modify_function_body to modify function
21281 body.
21282
21283 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
21284
21285 PR middle-end/43671
21286 * alias.c (true_dependence): Handle the same VALUE in x and mem.
21287 (canon_true_dependence): Likewise.
21288 (write_dependence_p): Likewise.
21289
21290 2010-05-04 Jan Hubicka <jh@suse.cz>
21291
21292 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
21293 * cgraphbuild.c: Include ipa-utils.h
21294 (record_reference_ctx): New struct.
21295 (record_reference): Simplify to work on initializers; not statements.
21296 (mark_address, mark_load, mark_store): New.
21297 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21298 walk PHI nodes too.
21299 (record_references_in_initializer): Update use of record_reference.
21300 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21301 walk PHI nodes too.
21302
21303 2010-05-04 Jan Hubicka <jh@suse.cz>
21304
21305 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
21306 node will be removed anyway.
21307 (lto_varpool_replace_node): Allow also unanalyzed nodes;
21308 relink aliases of node into prevailing node.
21309 * varpool.c (varpool_remove_node): Remove aliases properly;
21310 when removing node, remove all its aliases too; remove DECL_INITIAL
21311 of removed node; ggc_free the varpool node.
21312
21313 2010-05-04 Richard Guenther <rguenther@suse.de>
21314
21315 PR tree-optimization/43879
21316 * tree-ssa-structalias.c (alias_get_name): Use
21317 DECL_ASSEMBLER_NAME if available.
21318 (create_function_info_for): Return the varinfo node.
21319 (ipa_pta_execute): Associate same-body aliases and extra names
21320 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
21321
21322 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
21323
21324 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
21325
21326 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
21327
21328 PR bootstrap/43964
21329 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
21330 only if HONOR_REG_ALLOC_ORDER is not defined.
21331
21332 2010-05-04 Richard Guenther <rguenther@suse.de>
21333
21334 PR tree-optimization/43949
21335 * tree-vrp.c (extract_range_from_binary_expr): Only handle
21336 TRUNC_MOD_EXPR.
21337
21338 2010-04-26 Jason Merrill <jason@redhat.com>
21339
21340 * c.opt (-fstrict-enums): New.
21341 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
21342
21343 2010-05-03 David Ung <davidu@mips.com>
21344 James E. Wilson <wilson@codesourcery.com>
21345
21346 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
21347 emit the trap instruction before the divide for TUNE_74K.
21348
21349 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
21350
21351 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
21352 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
21353 based on the above, for new target hook.
21354
21355 * hooks.c (hook_bool_mode_true): New generic hook.
21356 * hooks.h (hook_bool_mode_true): Add prototype.
21357
21358 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
21359 target hook.
21360 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
21361 target hook, set to hook_bool_mode_false.
21362 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
21363 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
21364 with targetm.small_register_classes_for_mode_p.
21365 (find_reusable_reload): Likewise.
21366 (combine_reloads): Likewise.
21367 * reload1.c (reload_as_needed): Likewise.
21368 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
21369 * ifcvt.c (noce_process_if_block, check_cond_move_block,
21370 dead_or_predicable): Likewise.
21371 * regmove.c (optimize_reg_copy_1): Likewise.
21372 * calls.c (prepare_call_address): Likewise.
21373 (precompute_register_parameters): Likewise.
21374
21375 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
21376 hook definition.
21377 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
21378 implementation of the hook that considers all register classes
21379 small except for SH64.
21380 (sh_override_options): Use the new hook.
21381 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
21382 Add prototype.
21383
21384 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
21385 hook definition.
21386 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
21387 implementation of the hook that considers all register classes
21388 small for THUMB1.
21389 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
21390 Add prototype.
21391
21392 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
21393 hook definition.
21394 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
21395 implementation of the hook that considers all register classes
21396 small for MIPS16.
21397 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
21398 Add prototype.
21399
21400 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
21401 hook definition.
21402 * config/m32c/m32c.h: Likewise.
21403 * config/pdp11/pdp11.h: Likewise.
21404 * config/avr/avr.h: Likewise.
21405 * config/xtensa/xtensa.h: Likewise.
21406 * config/m68hc11/m68hc11.h: Likewise.
21407 * config/mn10300/mn10300.h: Likewise.
21408 * config/mcore/mcore.h: Likewise.
21409 * config/h8300/h8300.h: Likewise.
21410 * config/bfin/bfin.h: Likewise.
21411
21412 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
21413 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
21414
21415 2010-05-03 Anatoly Sokolov <aesok@post.ru>
21416
21417 * double-int.h (tree_to_double_int): Remove macro.
21418 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
21419 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21420 (tree_to_double_int): New function.
21421 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
21422 Move ...
21423 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21424
21425 2010-05-03 Richard Guenther <rguenther@suse.de>
21426
21427 PR tree-optimization/43971
21428 * tree-ssa-structalias.c (get_constraint_for_1): Fix
21429 constraints in the !flag_delete_null_pointer_checks case.
21430
21431 2010-05-03 Jakub Jelinek <jakub@redhat.com>
21432
21433 PR debug/43972
21434 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
21435 result mode matches original rtl mode.
21436
21437 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
21438
21439 PR target/43888
21440 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
21441
21442 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
21443
21444 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
21445 when processing flag options.
21446
21447 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
21448
21449 * gcov-iov.c (main): Change format string placeholder
21450 from %#08x to 0x%08x.
21451 * genchecksum.c (dosum): Change format string placeholder
21452 from %#02x to 0x%02x.
21453
21454 2010-05-02 Richard Guenther <rguenther@suse.de>
21455
21456 PR tree-optimization/43879
21457 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
21458
21459 2010-05-02 Bruno Haible <bruno@clisp.org>
21460
21461 * doc/extend.texi (Function Attributes): Fix a typo.
21462
21463 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
21464
21465 Revert:
21466 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
21467 placeholder from 0x%x to %#x.
21468 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21469 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21470 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21471 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21472 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21473 * config/i386/i386.c (ix86_target_string): Ditto.
21474 * config/i386/i386.c (output_pic_addr_const): Ditto.
21475 (print_operand): Ditto.
21476
21477 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
21478
21479 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
21480 placeholder from 0x%x to %#x.
21481 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
21482 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
21483 (ASM_OUTPUT_DEBUG_DATA): Ditto.
21484 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
21485 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
21486 * optc-gen.awk: Ditto.
21487 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
21488 (HOST_WIDE_INT_PRINT_HEX): Ditto.
21489 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
21490 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21491
21492 2010-05-01 Anatoly Sokolov <aesok@post.ru>
21493
21494 * target.h (struct calls): Add function_value_regno_p field.
21495 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
21496 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
21497 * targhooks.c (default_function_value_regno_p): New function.
21498 * targhooks.h (default_function_value_regno_p): Declare function.
21499 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
21500 * builtins.c. (apply_result_size): (Ditto.).
21501 * combine.c. (likely_spilled_retval_p): (Ditto.).
21502 * mode-switching.c. Include 'target.h'.
21503 (create_pre_exit): Use function_value_regno_p hook.
21504 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
21505 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
21506 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
21507
21508 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
21509 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
21510 (ix86_function_value_regno_p): Declare as static, change argument
21511 type to const unsigned int.
21512 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
21513
21514 2010-05-01 Richard Guenther <rguenther@suse.de>
21515
21516 PR tree-optimization/43949
21517 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
21518 types.
21519 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
21520
21521 2010-05-01 Anatoly Sokolov <aesok@post.ru>
21522
21523 * rtl.h (CONST_DOUBLE_P): Define.
21524 (rtx_to_double_int): Declare.
21525 * emit-rtl.c (rtx_to_double_int): New function.
21526 * dwarf2out.c (insert_double): New function.
21527 (loc_descriptor, add_const_value_attribute): Clean up, use
21528 rtx_to_double_int and insert_double functions.
21529
21530 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
21531
21532 * doc/extend.texi (Inline): Add missing return keyword to examples.
21533 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
21534 "command-line".
21535
21536 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
21537
21538 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
21539 the variable part of the offset as well. Use highest_pow2_factor for
21540 all alignment checks.
21541
21542 2010-04-30 Richard Guenther <rguenther@suse.de>
21543
21544 PR tree-optimization/43879
21545 * tree-ssa-structalias.c (type_could_have_pointers): Functions
21546 can have pointers.
21547
21548 2010-04-30 Jan Hubicka <jh@suse.cz>
21549
21550 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
21551 varpool.
21552 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
21553
21554 2010-04-30 Jan Hubicka <jh@suse.cz>
21555
21556 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
21557 New.
21558 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
21559 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
21560 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
21561 cgraph_node_set_needs_ltrans_p): Remove.
21562
21563 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
21564
21565 * sdbout.c: Include vec.h, do not include varray.h.
21566 (deferred_global_decls, sdbout_global_decl,
21567 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
21568 * toplev.c: Do not include varray.h.
21569 (dump_memory_report): Do not dump VARRAY statistics.
21570 * gengtype.c (open_base_file): Ignore varray.h.
21571 * Makefile.in: Update for abovementioned changes.
21572 Remove all traces of varray.c and varray.h.
21573 * varray.c: Remove file.
21574 * varray.h: Remove file.
21575
21576 2010-04-30 Jan Hubicka <jh@suse.cz>
21577
21578 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
21579 references.
21580
21581 2010-04-30 Jan Hubicka <jh@suse.cz>
21582
21583 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
21584 needed.
21585
21586 2010-04-30 Richard Guenther <rguenther@suse.de>
21587
21588 * tree-ssa-structalias.c (get_constraint_for_1): Generate
21589 constraints for CONSTRUCTOR.
21590
21591 2010-04-30 Richard Guenther <rguenther@suse.de>
21592
21593 PR lto/43946
21594 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
21595 first after all lowering passes.
21596
21597 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
21598
21599 * toplev.c: Include varray.h for statistics dumping.
21600 * tree.h: Do not declare varray_head_tag.
21601 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
21602 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
21603 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
21604 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
21605 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
21606 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
21607 c-common.c, c-common.h, reg-stack.c, basic-block.h,
21608 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
21609 include varray.h.
21610 * Makefile.in: Update for abovementioned changes.
21611
21612 2010-04-30 Jakub Jelinek <jakub@redhat.com>
21613
21614 PR debug/43942
21615 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
21616
21617 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
21618
21619 * config/picochip/picochip.c (picochip_legitimize_address): Define.
21620 Use this function to do machine-specific conversion.
21621 (picochip_legitimize_reload_address): Likewise.
21622 (picochip_legitimate_address_p): Check valid base register only if
21623 strict.
21624 (picochip_check_conditional_copy): Check for modw only if opnd is
21625 register.
21626 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
21627 to call the function in c.
21628 * config/picochip/picochip-protos.h
21629 (picochip_legitimize_reload_address): Define.
21630 * config/picochip/picochip.md (supported_compare1): Define.
21631
21632 2010-04-30 Jan Hubicka <jh@suse.cz>
21633
21634 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
21635 (cgraph_global_info): Remove inlined.
21636 (LTO_cgraph_tag_names): Remove.
21637 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
21638 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
21639 simplify cgraph tags and document.
21640 (lto_output_node): Use only LTO_cgraph_unavail_node and
21641 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
21642 for_functions_valid, global info, process and output flags.
21643 (input_overwrite_node): Initialize estimated stack size and
21644 estimated growth. Do not read flags we no longer store.
21645 (input_node): Likewise do not read info no longer stored.
21646 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
21647 flag.
21648
21649 2010-04-30 Richard Guenther <rguenther@suse.de>
21650
21651 PR tree-optimization/43879
21652 * tree-ssa-structalias.c (get_constraint_for_1): Properly
21653 handle non-zero initializers.
21654
21655 2010-04-30 Richard Guenther <rguenther@suse.de>
21656
21657 * builtins.c (fold_builtin_1): Delete free (0).
21658
21659 2010-04-29 Jan Hubicka <jh@suse.cz>
21660
21661 * gengtype.c (open_base_files): Add lto-streamer.h
21662 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
21663 (pass_ipa_cp): GGC collect.
21664 * toplev. (compile_file): Do not output symbols.
21665 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
21666 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
21667 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
21668 * lto-section-in.c: Include ggc.h
21669 (lto_new_in_decl_state): Alloc in GGC.
21670 (lto_delete_in_decl_state): Likewise.
21671 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
21672 Collect.
21673
21674 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
21675
21676 PR target/42895
21677 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21678 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
21679 (HONOR_REG_ALLOC_ORDER): Describe new macro.
21680 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21681 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21682 account only if HONOR_REG_ALLOC_ORDER is not defined.
21683 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21684 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21685
21686 2010-04-29 Jon Grant <04@jguk.org>
21687
21688 * collect2.c (vflag): Change type from int to bool.
21689 (debug): Likewise.
21690 (helpflag): New global bool.
21691 (main): Set vflag and debug with boolean, not integer truth values.
21692 Accept new "--help" option and output usage text if found.
21693 * collect2.h (vflag): Update prototype.
21694 (debug): Likewise.
21695
21696 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
21697
21698 PR bootstrap/43936
21699 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21700
21701 2010-04-29 Richard Guenther <rguenther@suse.de>
21702
21703 PR bootstrap/43935
21704 * plugin.h (invoke_plugin_callbacks): Annotate arguments
21705 with ATTRIBUTE_UNUSED.
21706
21707 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
21708
21709 PR target/43921
21710 * config/i386/i386.c (get_some_local_dynamic_name): Replace
21711 INSN_P with NONDEBUG_INSN_P.
21712 (distance_non_agu_define): Likewise.
21713 (distance_agu_use): Likewise.
21714
21715 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
21716
21717 From Dominique d'Humieres <dominiq@lps.ens.fr>
21718 PR bootstrap/43858
21719 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21720 test_set.
21721
21722 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
21723
21724 * plugin.h (invoke_plugin_callbacks): New inline function.
21725 * plugin.c (flag_plugin_added): New global flag.
21726 (add_new_plugin): Initialize above flag.
21727 (invoke_plugin_callbacks): Rename to ...
21728 (invoke_plugin_callbacks_full): ... this.
21729
21730 2010-04-28 Jan Hubicka <jh@suse.cz>
21731
21732 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21733 (lto_varpool_replace_node): New.
21734 (lto_symtab_resolve_symbols): Resolve varpool nodes.
21735 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21736 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21737 * cgraph.h (varpool_node_ptr): New type.
21738 (varpool_node_ptr): New vector.
21739 (varpool_node_set_def): New structure.
21740 (varpool_node_set): New type.
21741 (varpool_node_set): New vector.
21742 (varpool_node_set_element_def): New structure.
21743 (varpool_node_set_element, const_varpool_node_set_element): New types.
21744 (varpool_node_set_iterator): New type.
21745 (varpool_node): Add prev pointers, add used_from_other_partition,
21746 in_other_partition.
21747 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21748 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21749 varpool_get_node, varpool_remove_node): Declare.
21750 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21751 varpool_node_set_size): New inlines.
21752 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21753 * tree-pass.h (varpool_node_set_def): Forward declare.
21754 (ipa_opt_pass_d): Summary writting takes vnode sets too.
21755 (ipa_write_optimization_summaries): Update prototype.
21756 * ipa-cp.c (ipcp_write_summary): Update.
21757 * ipa-reference.c (ipa_reference_write_summary): Update.
21758 * lto-cgraph.c (lto_output_varpool_node): New static function.
21759 (output_varpool): New function.
21760 (input_varpool_node): New static function.
21761 (input_varpool_1): New function.
21762 (input_cgraph): Input varpool.
21763 * ipa-pure-const.c (pure_const_write_summary): Update.
21764 * lto-streamer-out.c (lto_output): Update, output varpool too.
21765 (write_global_stream): Kill WPA hack.
21766 (produce_asm_for_decls): Update.
21767 (output_alias_pair_p): Handle variables.
21768 (output_unreferenced_globals): Output only needed partition of varpool.
21769 * ipa-inline.c (inline_write_summary): Update.
21770 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21771 cgraph.
21772 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21773 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21774 varpool_node_set_new, varpool_node_set_add,
21775 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21776 debug_varpool_node_set): New functions.
21777 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21778 (execute_one_pass): Process new decls too.
21779 (ipa_write_summaries_2): Pass around vsets.
21780 (ipa_write_summaries_1): Likewise.
21781 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21782 to add.
21783 (ipa_write_optimization_summaries_1): Pass around vsets.
21784 (ipa_write_optimization_summaries): Likewise.
21785 * varpool.c (varpool_get_node): New.
21786 (varpool_node): Update doubly linked lists.
21787 (varpool_remove_node): New.
21788 (dump_varpool_node): More dumping.
21789 (varpool_enqueue_needed_node): Update doubly linked lists.
21790 (decide_is_variable_needed): Kill ltrans hack.
21791 (varpool_finalize_decl): Kill lto hack.
21792 (varpool_assemble_decl): Skip decls in other partitions.
21793 (varpool_assemble_pending_decls): Update doubly linkes lists.
21794 (varpool_empty_needed_queue): Likewise.
21795 (varpool_extra_name_alias): Likewise.
21796 * lto-streamer.c (lto_get_section_name): Add vars section.
21797 * lto-streamer.h (lto_section_type): Update.
21798 (output_varpool, input_varpool): Declare.
21799
21800 2010-04-28 Mike Stump <mikestump@comcast.net>
21801
21802 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21803
21804 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21805
21806 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21807 record or union type with RECORD_OR_UNION_TYPE_P predicate.
21808 (lto_input_ts_type_tree_pointers): Likewise.
21809 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21810 (lto_output_ts_type_tree_pointers): Likewise.
21811
21812 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21813
21814 Uniquization of constants at the Tree level
21815 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21816 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21817 bit to the end.
21818 (tree_output_constant_def): Declare.
21819 * gimplify.c (gimplify_init_constructor): When using block copy, first
21820 uniquize the constant constructor on the RHS.
21821 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21822 DECL_IN_CONSTANT_POOL flag.
21823 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21824 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21825 constant pool.
21826 (assemble_variable): Deal with symbols belonging to the tree constant
21827 pool.
21828 (get_constant_section): Add ALIGN parameter and simplify.
21829 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21830 (assemble_constant_contents): Use the expression of the VAR_DECL.
21831 (output_constant_def_contents): Use the alignment of the VAR_DECL.
21832 (tree_output_constant_def): New global function.
21833 (mark_constant): Use the expression of the VAR_DECL.
21834 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
21835 its expression.
21836 (output_object_block): Likewise and assemble the expression.
21837
21838 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
21839
21840 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
21841 hash_tree, eq_tree): New tree hash table.
21842 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
21843 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
21844 lto_orig_address_remove): Reimplement.
21845
21846 2010-04-28 Xinliang David Li <davidxl@google.com>
21847
21848 PR c/42643
21849 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
21850 (compute_uninit_opnds_pos): New function.
21851 (is_non_loop_exit_postdominating): New function.
21852 (compute_control_dep_chain): New function.
21853 (find_pdom): New function.
21854 (convert_control_dep_chain_into_preds): New function.
21855 (find_predicates): New function.
21856 (find_control_equiv_block): New function.
21857 (collect_phi_def_edges): New function.
21858 (find_def_preds): New function.
21859 (find_dom): New function.
21860 (dump_predicates): New function.
21861 (get_cmp_code): New function.
21862 (is_value_included_in): New function.
21863 (find_matching_predicate_in_rest_chains): New function.
21864 (use_pred_not_overlap_with_undef_path_pred): New function.
21865 (is_use_properly_guarded): New function.
21866 (normalize_cond_1): New function.
21867 (is_and_or_or): New function.
21868 (normalize_cond): New function.
21869 (is_gcond_subset_of): New function.
21870 (is_subset_of_any): New function.
21871 (is_or_set_subset_of): New function.
21872 (is_and_set_subset_of): New function.
21873 (is_norm_cond_subset_of): New function.
21874 (is_pred_expr_subset_of): New function.
21875 (is_pred_chain_subset_of): New function.
21876 (is_included_in): New function.
21877 (is_superset_of): New function.
21878 (find_uninit_use): New function.
21879 (warn_uninitialized_phi): New function.
21880 (compute_possibly_undefined_names): New function.
21881 (ssa_undefined_value_p): New function.
21882 (execute_late_warn_uninitialized): New function.
21883 * tree-ssa.c (ssa_undefined_value_p): Removed.
21884 (warn_uninit): Changed to extern.
21885 (warn_uninitialized_phi): Removed.
21886 (warn_uninitialized_vars): Changed to extern.
21887 (execute_late_warn_uninitialized): Removed
21888 * tree-flow.h: Add new prototypes.
21889 * timevar.def: Add new time variable.
21890 * Makefile.in: Add new build file.
21891
21892 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
21893
21894 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
21895 type if available.
21896
21897 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21898
21899 PR target/22224
21900 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
21901
21902 2010-04-28 Martin Jambor <mjambor@suse.cz>
21903
21904 * cgraph.h (struct cgraph_node): New field indirect_calls.
21905 (struct cgraph_indirect_call_info): New type.
21906 (struct cgraph_edge): Removed field indirect_call. New fields
21907 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
21908 (cgraph_create_indirect_edge): Declare.
21909 (cgraph_make_edge_direct): Likewise.
21910 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
21911 * ipa-prop.h (struct ipa_param_call_note): Removed.
21912 (struct ipa_node_params): Removed field param_calls.
21913 (ipa_create_all_structures_for_iinln): Declare.
21914 * cgraph.c: Described indirect edges and uids in initial comment.
21915 (cgraph_add_edge_to_call_site_hash): New function.
21916 (cgraph_edge): Search also among the indirect edges, use
21917 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
21918 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
21919 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
21920 site hash.
21921 (initialize_inline_failed): Assign a reason to indirect edges.
21922 (cgraph_create_edge_1): New function.
21923 (cgraph_create_edge): Moved some functionality to
21924 cgraph_create_edge_1.
21925 (cgraph_create_indirect_edge): New function.
21926 (cgraph_edge_remove_callee): Add an assert checking for
21927 non-indirectness.
21928 (cgraph_edge_remove_caller): Special-case indirect edges.
21929 (cgraph_remove_edge): Likewise.
21930 (cgraph_set_edge_callee): New function.
21931 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
21932 (cgraph_make_edge_direct): New function.
21933 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
21934 the declaration of the call statement matches.
21935 (cgraph_node_remove_callees): Special-case indirect edges.
21936 (cgraph_clone_edge): Likewise.
21937 (cgraph_clone_node): Clone also the indirect edges.
21938 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
21939 indirect_call, dump count of indirect_calls edges.
21940 * ipa-prop.c (iinlining_processed_edges): New variable.
21941 (ipa_note_param_call): Create indirect edges instead of
21942 creating notes. New parameter node.
21943 (ipa_analyze_call_uses): New parameter node, pass it on to
21944 ipa_note_param_call.
21945 (ipa_analyze_stmt_uses): Likewise.
21946 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
21947 (print_edge_addition_message): Work on edges rather than on notes.
21948 (update_call_notes_after_inlining): Likewise, renamed to
21949 update_indirect_edges_after_inlining.
21950 (ipa_create_all_structures_for_iinln): New function.
21951 (ipa_free_node_params_substructures): Do not free notes.
21952 (ipa_edge_duplication_hook): Propagate bits within
21953 iinlining_processed_edges bitmap.
21954 (ipa_node_duplication_hook): Do not duplicate notes.
21955 (free_all_ipa_structures_after_ipa_cp): Renamed to
21956 ipa_free_all_structures_after_ipa_cp.
21957 (free_all_ipa_structures_after_iinln): Renamed to
21958 ipa_free_all_structures_after_iinln.
21959 (ipa_write_param_call_note): Removed.
21960 (ipa_read_param_call_note): Removed.
21961 (ipa_write_indirect_edge_info): New function.
21962 (ipa_read_indirect_edge_info): Likewise.
21963 (ipa_write_node_info): Do not stream notes, do stream information
21964 in indirect edges.
21965 (ipa_read_node_info): Likewise.
21966 (lto_ipa_fixup_call_notes): Removed.
21967 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
21968 * ipa-inline.c (pass_ipa_inline): Likewise.
21969 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
21970 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
21971 * tree-inline.c (copy_bb): Removed an unnecessary double check for
21972 is_gimple_call.
21973 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
21974 edges.
21975 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
21976 (output_cgraph): Stream also indirect edges.
21977 (lto_output_edge): Added capability to stream indirect edges.
21978 (input_edge): Likewise.
21979 (input_cgraph_1): Likewise.
21980 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
21981 of indirect edges.
21982
21983 2010-04-28 Richard Guenther <rguenther@suse.de>
21984
21985 PR tree-optimization/43879
21986 PR tree-optimization/43909
21987 * tree-ssa-structalias.c (struct variable_info): Add
21988 only_restrict_pointers flag.
21989 (new_var_info): Initialize it. Increment stats.total_vars here.
21990 (create_function_info_for): Do not increment stats.total_vars here.
21991 (get_function_part_constraint): Fix build with C++.
21992 (insert_into_field_list): Remove.
21993 (push_fields_onto_fieldstack): Properly merge fields.
21994 (create_variable_info_for): Split and simplify.
21995 (create_variable_info_for_1): New piece.
21996 (intra_create_variable_infos): Properly make restrict constraints
21997 from parameters.
21998
21999 2010-04-28 Richard Guenther <rguenther@suse.de>
22000
22001 PR c++/43880
22002 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
22003
22004 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
22005 Jan Hubicka <hubicka@ucw.cz>
22006
22007 * doc/invoke.texi (-Wsuggest-attribute=const,
22008 -Wsuggest-attribute=pure): Document.
22009 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
22010 (function_always_visible_to_compiler_p,
22011 suggest_attribute, warn_function_pure, warn_function_const):
22012 New functions.
22013 (check_call): Improve debug info.
22014 (analyze_function): Do not check availability.
22015 (add_new_function): Check availability.
22016 (propagate): Output warnings.
22017 (skip_function_for_local_pure_const): New function.
22018 (local_pure_const): Use it; output warnings.
22019 * common.opt (Wsuggest-attribute=const,
22020 Wsuggest-attribute=pure): New.
22021
22022 2010-04-27 Jakub Jelinek <jakub@redhat.com>
22023
22024 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
22025 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
22026 or DW_CFA_def_cfa_offset{,_sf}.
22027
22028 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
22029
22030 * tree.h: Fix truncated long macros.
22031
22032 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
22033
22034 * collect2.c (TARGET_64BIT): Redefine to target's default.
22035 * tlink.c: Likewise.
22036 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
22037 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
22038 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
22039 for underscoring __USER_LABEL_PREFIX__.
22040 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
22041 (SUB_LINK_ENTRY32): New.
22042 (SUB_LINK_ENTRY64): New.
22043 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
22044 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
22045 (SUB_LINK_ENTRY64): New.
22046 (SUB_LINK_ENTRY): New.
22047 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
22048 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
22049 x64 target is choosen.
22050 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
22051 * configure: Regenerated.
22052 * configure.ac (leading-mingw64-underscores): Option added.
22053
22054 2010-04-27 Jan Hubicka <jh@suse.cz>
22055
22056 * doc/invoke.texi (-fipa-profile): Document.
22057 * opts.c (decode_options): Enable ipa-profile at -O1.
22058 * timevar.def (TV_IPA_PROFILE): Define.
22059 * common.opt (fipa-profile): Add.
22060 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
22061 flag for clones.
22062 (cgraph_propagate_frequency): Handle only local ones.
22063 * tree-pass.h (pass_ipa_profile): Declare.
22064 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
22065 (pass_ipa_profile): Use TV_IPA_PROFILE.
22066 * ipa.c (ipa_profile): New function.
22067 (gate_ipa_profile): Likewise.
22068 (pass_ipa_profile): New global variable.
22069 * passes.c (pass_ipa_profile): New.
22070
22071 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
22072
22073 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
22074
22075 2010-04-27 Martin Jambor <mjambor@suse.cz>
22076
22077 PR middle-end/43812
22078 * ipa.c (dissolve_same_comdat_group_list): New function.
22079 (function_and_variable_visibility): Call
22080 dissolve_same_comdat_group_list when comdat group contains external or
22081 newly local nodes.
22082 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
22083 lists are circular and that they contain only DECL_ONE_ONLY nodes.
22084
22085 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
22086
22087 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
22088 (const_hash_1) <VECTOR_CST>: New case.
22089 (compare_constant) <VECTOR_CST>: Likewise.
22090 <ADDR_EXPR>: Deal with LABEL_REFs.
22091 (copy_constant) <VECTOR_CST>: New case.
22092
22093 2010-04-27 Jan Hubicka <jh@suse.cz>
22094
22095 * cgraph.c (cgraph_propagate_frequency): New function.
22096 * cgraph.h (cgraph_propagate_frequency): Declare.
22097 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
22098 cgraph_propagate_frequency.
22099
22100 2010-04-27 Jakub Jelinek <jakub@redhat.com>
22101
22102 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
22103
22104 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
22105
22106 PR target/40657
22107 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
22108 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
22109 here to determine which regs to push and how much stack to reserve.
22110
22111 2010-04-27 Jie Zhang <jie@codesourcery.com>
22112
22113 * doc/gimple.texi (gimple_statement_with_ops): Remove
22114 addresses_taken field.
22115 (gimple_statement_with_memory_ops): Likewise.
22116
22117 2010-04-27 Jan Hubicka <jh@suse.cz>
22118
22119 * tree-inline.c (eni_inlining_weights): Remove.
22120 (estimate_num_insns): Special case more builtins.
22121
22122 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
22123
22124 PR c/32207
22125 * c-typeck.c (build_binary_op): Move forward check for comparison
22126 pointer with null pointer constant and adjust the diagnostic message.
22127
22128 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
22129
22130 PR lto/42776
22131 * configure.ac (gcc_cv_as_section_has_align): Set if installed
22132 binutils supports extended .section directive needed by LTO, or
22133 warn if older binutils found.
22134 (LTO_BINARY_READER): New AC_SUBST'd variable.
22135 (LTO_USE_LIBELF): Likewise.
22136 * config.gcc (lto_binary_reader): New target-specific configure
22137 variable.
22138 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
22139 (LTO_USE_LIBELF): Likewise.
22140 * configure: Regenerate.
22141
22142 * collect2.c (is_elf): Rename from this ...
22143 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
22144 object files in addition to ELF-formatted ones.
22145 (scan_prog_file): Caller updated. Also allow for LTO info marker
22146 symbol to be prefixed or not by an extra underscore.
22147
22148 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
22149 * config/i386/winnt.c: Also #include lto-streamer.h
22150 (i386_pe_asm_named_section): Specify 1-byte section alignment for
22151 LTO named sections.
22152 (i386_pe_asm_output_aligned_decl_common): Add comment.
22153 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
22154
22155 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
22156
22157 PR target/43889
22158 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
22159 Add missing earlyclobber for second alternative.
22160
22161 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
22162
22163 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
22164 bits for artificial defs at the top of the block.
22165 * fwprop.c (single_def_use_enter_block): Don't call it.
22166
22167 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
22168
22169 PR 43715
22170 * configure.ac: Use "$gcc_cv_nm -g" on darwin
22171 instead of "$gcc_cv_objdump -T".
22172 Use "-undefined dynamic_lookup" on darwin.
22173 * configure: Regenerate.
22174
22175 2010-04-26 Jakub Jelinek <jakub@redhat.com>
22176
22177 PR c/43893
22178 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
22179
22180 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
22181
22182 * c-parser.c (struct c_token): Move location field up.
22183 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
22184 (struct c_declspecs): Convert typespec_word, storage_class, and
22185 default_int_p into bitfields.
22186 (struct c_declarator): Move loc field up.
22187
22188 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
22189
22190 * cfgloop.h (struct loop): Move can_be_parallel field up.
22191 * ipa-prop.h (struct ip_node_params): Move bitfields up.
22192 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
22193 down.
22194 (struct iv_cand): Convert pos field into a bitfield.
22195 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
22196 field up.
22197 (struct _stmt_vec_info): Shuffle fields for better packing.
22198
22199 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
22200
22201 * varasm.c (IN_NAMED_SECTION): Remove guard.
22202 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
22203 (IN_NAMED_SECTION_P): ...this.
22204 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
22205 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
22206
22207 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
22208
22209 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
22210 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
22211 of shadowing it. Fix comments.
22212
22213 2010-04-26 Jan Hubicka <jh@suse.cz>
22214
22215 * cgraph.c (cgraph_create_node): Set node frequency to normal.
22216 (cgraph_clone_node): Copy function frequency.
22217 * cgraph.h (node_frequency): New enum
22218 (struct cgraph_node): Add.
22219 * final.c (rest_of_clean_state): Update.
22220 * lto-cgraph.c (lto_output_node): Output node frequency.
22221 (input_overwrite_node): Input node frequency.
22222 * tre-ssa-loop-ivopts (computation_cost): Update.
22223 * lto-streamer-out.c (output_function): Do not output function
22224 frequency.
22225 * predict.c (maybe_hot_frequency_p): Update and handle functions
22226 executed once.
22227 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
22228 attribute lookup.
22229 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
22230 (compute_function_frequency): Set noreturn functions to be executed
22231 once.
22232 (choose_function_section): Update.
22233 * lto-streamer-in.c (input_function): Do not input function frequency.
22234 * function.c (allocate_struct_function): Do not initialize function
22235 frequency.
22236 * function.h (function_frequency): Remove.
22237 (struct function): Remove function frequency.
22238 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
22239 (try_update): Update.
22240 * tree-inline.c (initialize_cfun): Do not update function frequency.
22241 * passes.c (pass_init_dump_file): Update.
22242 * i386.c (ix86_compute_frame_layout): Update.
22243 (ix86_pad_returns): Update.
22244
22245 2010-04-26 Jie Zhang <jie@codesourcery.com>
22246
22247 PR tree-optimization/43833
22248 * tree-vrp.c (range_int_cst_p): New.
22249 (range_int_cst_singleton_p): New.
22250 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
22251 when both operands are constants. Use range_int_cst_p in
22252 BIT_IOR_EXPR case.
22253
22254 2010-04-26 Jan Hubicka <jh@suse.cz>
22255
22256 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
22257
22258 2010-04-26 Richard Guenther <rguenther@suse.de>
22259
22260 PR lto/43080
22261 * gimple.c (gimple_decl_printable_name): Deal gracefully
22262 with a NULL DECL_NAME.
22263
22264 2010-04-26 Richard Guenther <rguenther@suse.de>
22265
22266 PR lto/42425
22267 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
22268 if emitting debug information and it is either a function
22269 or a namespace decl.
22270
22271 2010-04-26 Ira Rosen <irar@il.ibm.com>
22272
22273 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
22274 determine if the statement is vectorizable, and a macro to access it.
22275 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22276 Skip statements that can't be vectorized. If the analysis fails,
22277 mark the statement as unvectorizable if vectorizing basic block.
22278 (vect_compute_data_refs_alignment): Likewise.
22279 (vect_verify_datarefs_alignment): Skip statements marked as
22280 unvectorizable. Add print.
22281 (vect_analyze_group_access): Skip statements that can't be
22282 vectorized. If the analysis fails, mark the statement as
22283 unvectorizable if vectorizing basic block.
22284 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
22285 * tree-vect-stmts.c (vectorizable_store): Fix the number of
22286 generated stmts for SLP.
22287 (new_stmt_vec_info): Initialize the new field.
22288 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
22289 statements marked as unvectorizable.
22290
22291 2010-04-25 Joseph Myers <joseph@codesourcery.com>
22292
22293 * c-common.c (flag_isoc1x): New.
22294 (flag_isoc99): Update comment.
22295 * c-common.h (flag_isoc1x): New.
22296 (flag_isoc99): Update comment.
22297 * c-cppbuiltin.c (builtin_define_float_constants): Also define
22298 __<type>_DECIMAL_DIG__.
22299 * c-opts.c (set_std_c1x): New.
22300 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
22301 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
22302 * c.opt (-std=c1x, -std=gnu1x): New options.
22303 * doc/cpp.texi: Mention -std=c1x.
22304 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
22305 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
22306 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
22307 * doc/standards.texi: Mention C1X.
22308 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
22309 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
22310 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
22311 Define for C1X.
22312
22313 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
22314
22315 * config/i386/gmon-sol2.c (_mcleanup): Change format string
22316 placeholder from 0x%x to %#x.
22317 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
22318 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
22319 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
22320 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
22321 * config/i386/i386.c (ix86_target_string): Ditto.
22322 (output_pic_addr_const): Ditto.
22323 (print_operand): Ditto.
22324
22325 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
22326
22327 * combine.c (find_split_point): Add third argument. Use it
22328 to find nested multiply-accumulate instructions. Adjust calls.
22329 (try_combine): Adjust call to find_split_point.
22330
22331 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
22332
22333 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
22334
22335 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
22336
22337 PR tree-optimization/41442
22338 * fold-const.c (merge_truthop_with_opposite_arm): New function.
22339 (fold_binary_loc): Call it.
22340
22341 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
22342
22343 * toplev.c (general_init): Set default for fdiagnostics-show-option.
22344 * opts.c (common_handle_option): Allow disabling it.
22345 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
22346
22347 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
22348
22349 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
22350 between modes if both types are integral.
22351
22352 2010-04-23 Richard Guenther <rguenther@suse.de>
22353
22354 PR tree-optimization/43572
22355 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
22356
22357 2010-04-23 Richard Guenther <rguenther@suse.de>
22358
22359 PR lto/43455
22360 * tree-inline.c (tree_can_inline_p): Also check compatibility
22361 of return types.
22362
22363 2010-04-23 Martin Jambor <mjambor@suse.cz>
22364
22365 PR tree-optimization/43846
22366 * tree-sra.c (struct access): New flag grp_assignment_read.
22367 (build_accesses_from_assign): Set grp_assignment_read.
22368 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
22369 (enum mark_read_status): New type.
22370 (analyze_access_subtree): Propagate grp_assignment_read, create
22371 accesses also if both direct_read and root->grp_assignment_read.
22372
22373 2010-04-23 Martin Jambor <mjambor@suse.cz>
22374
22375 PR middle-end/43835
22376 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
22377 function does not have type attributes.
22378
22379 2010-04-23 Richard Guenther <rguenther@suse.de>
22380
22381 PR lto/42653
22382 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
22383 of FUNCTION_DECLs.
22384
22385 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22386
22387 * sese.h (create_if_region_on_edge): Remove.
22388
22389 * sese.c (create_if_region_on_edge): Make static.
22390
22391 * tree-inline.c: Do not include ggc.h.
22392
22393 * expr.c: Do not include ggc.h.
22394
22395 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
22396 dependencies.
22397
22398 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
22399
22400 PR target/43744
22401 * config/sh/sh.c (find_barrier): Don't emit a constant pool
22402 in the middle of insns for casesi_worker_2.
22403
22404 2010-04-22 David Edelsohn <edelsohn@gnu.org>
22405
22406 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
22407
22408 2010-04-22 Ira Rosen <irar@il.ibm.com>
22409
22410 PR tree-optimization/43842
22411 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
22412 loop unrolling in update of exit phis. Fix comment.
22413 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
22414 least two reduction statements in the loop before starting SLP
22415 analysis.
22416
22417 2010-04-22 Nick Clifton <nickc@redhat.com>
22418
22419 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
22420
22421 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
22422
22423 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
22424 to simplify a + ~a.
22425
22426 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22427
22428 * tree-parloops.c (loop_parallel_p): New argument
22429 parloop_obstack. Pass it down.
22430 (parallelize_loops): New variable parloop_obstack. Initialize it,
22431 pass it down, free it.
22432
22433 * tree-loop-linear.c (linear_transform_loops): Pass down
22434 lambda_obstack.
22435
22436 * tree-data-ref.h (lambda_compute_access_matrices): New argument
22437 of type struct obstack *.
22438
22439 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
22440 scratch_obstack. Initialize it, pass down, free it.
22441
22442 * lambda.h (lambda_loop_new): Remove.
22443 (lambda_matrix_new, lambda_matrix_inverse)
22444 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
22445 argument of type struct obstack *.
22446
22447 * lambda-trans.c (lambda_trans_matrix_new): New argument
22448 lambda_obstack. Pass it down, use obstack allocation for ret.
22449 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
22450 it down.
22451
22452 * lambda-mat.c (lambda_matrix_get_column)
22453 (lambda_matrix_project_to_null): Remove.
22454 (lambda_matrix_new): New argument lambda_obstack. Use obstack
22455 allocation for mat.
22456 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
22457 lambda_obstack.
22458
22459 * lambda-code.c (lambda_loop_new): New function.
22460 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
22461 (lambda_compute_auxillary_space, lambda_compute_target_space)
22462 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
22463 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
22464 (build_access_matrix): New argument lambda_obstack. Use obstack
22465 allocation for am.
22466 (lambda_compute_step_signs, lambda_compute_access_matrices): New
22467 argument lambda_obstack. Pass it down.
22468
22469 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
22470
22471 * optabs.h (expand_widening_mult): Declare.
22472
22473 2010-04-22 Richard Guenther <rguenther@suse.de>
22474
22475 PR tree-optimization/43845
22476 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
22477 lookup the CALL_EXPR function and arguments.
22478
22479 2010-04-22 Nick Clifton <nickc@redhat.com>
22480
22481 * config/stormy16/stormy16.c
22482 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
22483 * config/stormy16/stormy16.h: Tidy up formatting.
22484 (DONT_USE_BUILTIN_SETJMP): Remove definition.
22485 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
22486 (ineqbranchsi): Delete pattern.
22487 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
22488 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
22489 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
22490 stormy16-lib2-ucmpsi2.c.
22491
22492 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
22493
22494 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
22495 df_simulate_find_noclobber_defs as appropriate. Keep track of an
22496 extra set merge_set_noclobber, and use it to relax the final test
22497 slightly.
22498 * df.h (df_simulate_find_noclobber_defs): Declare.
22499 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
22500 conditional defs.
22501 (df_simulate_find_noclobber_defs): New function.
22502
22503 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
22504
22505 * config/i386/i386.md: Use {} around multi-line preparation statements.
22506
22507 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22508
22509 * c-tree.h (push_init_level, pop_init_level, set_init_index)
22510 (process_init_element): New argument of type struct obstack *.
22511
22512 * c-typeck.c (push_init_level, pop_init_level, set_designator)
22513 (set_init_index, set_init_label, set_nonincremental_init)
22514 (set_nonincremental_init_from_string, find_init_member)
22515 (output_init_element, output_pending_init_elements)
22516 (process_init_element): New argument braced_init_obstack. Pass it
22517 down.
22518 (push_range_stack, add_pending_init): New argument
22519 braced_init_obstack. Use obstack allocation.
22520
22521 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
22522 braced_init_obstack. Pass it down.
22523 (c_parser_braced_init): New variables ret, braced_init_obstack.
22524 Initialize obstack, pass it down and finally free it.
22525
22526 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
22527
22528 PR middle-end/29274
22529 * tree-pass.h (pass_optimize_widening_mul): Declare.
22530 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
22531 gate_optimize_widening_mul): New static functions.
22532 (pass_optimize_widening_mul): New.
22533 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
22534 <case MULT_EXPR>: Remove support for widening multiplies.
22535 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
22536 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
22537 simplify_gen_unary rather than directly building extensions.
22538 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
22539 WIDEN_MULT_EXPR.
22540 * expmed.c (expand_widening_mult): New function.
22541 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
22542
22543 2010-04-21 Jan Hubicka <jh@suse.cz>
22544
22545 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
22546 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
22547 * lto-wpa-fixup.c: Remove.
22548 * Makefile.in (lto-wpa-fixup.o): Remove.
22549 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
22550 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
22551 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
22552
22553 2010-04-21 Jan Hubicka <jh@suse.cz>
22554
22555 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
22556 add write_optimization_summary, read_optimization_summary.
22557 (ipa_write_summaries_of_cgraph_node_set): Remove.
22558 (ipa_write_optimization_summaries): Declare.
22559 (ipa_read_optimization_summaries): Declare.
22560 * ipa-cp.c (pass_ipa_cp): Update.
22561 * ipa-reference.c (pass_ipa_reference): Update.
22562 * ipa-pure-const.c (pass_ipa_pure_const): Update.
22563 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
22564 Update.
22565 * ipa-inline.c (pass_ipa_inline): Update.
22566 * ipa.c (pass_ipa_whole_program): Update.
22567 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
22568 * passes.c (ipa_write_summaries_1): Do not test wpa.
22569 (ipa_write_optimization_summaries_1): New.
22570 (ipa_write_optimization_summaries): New.
22571 (ipa_read_summaries): Do not test ltrans.
22572 (ipa_read_optimization_summaries_1): New.
22573 (ipa_read_optimization_summaries): New.
22574
22575 2010-04-21 Jan Hubicka <jh@suse.cz>
22576
22577 * lto-cgraph.c (lto_output_node): Do not output comdat groups
22578 for boundary nodes.
22579 (output_cgraph): Do not arrange comdat groups for boundary nodes.
22580
22581 2010-04-21 Jakub Jelinek <jakub@redhat.com>
22582
22583 PR debug/40040
22584 * dwarf2out.c (add_name_and_src_coords_attributes): Add
22585 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
22586
22587 2010-04-21 Jan Hubicka <jh@suse.cz>
22588
22589 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
22590
22591 2010-04-21 Jan Hubicka <jh@suse.cz>
22592
22593 * varpool.c (decide_is_variable_needed): Variable is always needed
22594 during ltrans.
22595
22596 2010-04-21 Jan Hubicka <jh@suse.cz>
22597
22598 * opts.c (decode_options): Enable pure-const pass for whopr.
22599
22600 2010-04-21 Jan Hubicka <jh@suse.cz>
22601
22602 * cgraph.c (dump_cgraph_node): Dump also assembler name.
22603 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
22604 at WPA dumping.
22605 (cgraph_decide_inlining): Do not expect callee to be removed in all
22606 cases.
22607
22608 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
22609
22610 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
22611
22612 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
22613
22614 * config/i386/i386.md (x86_shrd): Add athlon_decode and
22615 amdfam10_decode attributes.
22616
22617 2010-04-21 Jakub Jelinek <jakub@redhat.com>
22618
22619 PR middle-end/43570
22620 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
22621 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
22622 (lower_copyprivate_clauses): Use private var in outer
22623 context instead of original var. Make sure the types
22624 are correct for VLAs.
22625
22626 2010-04-21 Richard Guenther <rguenther@suse.de>
22627
22628 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
22629 to non-pointer objects.
22630
22631 2010-04-21 Jakub Jelinek <jakub@redhat.com>
22632
22633 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
22634 last chain entry if it starts with the still current label.
22635 (add_location_or_const_value_attribute): Check that
22636 loc_list->first->next is NULL instead of comparing ->first with ->last.
22637 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
22638 to add_var_loc_to_decl.
22639
22640 * dwarf2out.c (output_call_frame_info): For dw_cie_version
22641 >= 4 add also address size and segment size fields into CIE header.
22642
22643 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
22644 long as address size is the same as sizeof (void *) and
22645 segment size is 0.
22646 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
22647 address size or segment size is unexpected, return DW_EH_PE_omit.
22648 (classify_object_over_fdes): If get_cie_encoding returned
22649 DW_EH_PE_omit, return -1.
22650 (init_object): If classify_object_over_fdes returned -1,
22651 pretend there were no FDEs at all.
22652
22653 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
22654
22655 * config/i386/i386.md (bswap<mode>2): Macroize expander from
22656 bswap{si,di}2 using SWI48 mode iterator.
22657 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
22658 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
22659 set modrm attribute of bswap insn to 0 and remove length attribute.
22660 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
22661 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
22662 set mode attribute to <MODE> and remove length attribute.
22663
22664 2010-04-20 James E. Wilson <wilson@codesourcery.com>
22665
22666 PR rtl-optimization/43520
22667 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
22668 zero available registers.
22669
22670 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22671
22672 * builtins.c (fold_builtin_cproj): Fold more cases.
22673
22674 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22675
22676 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22677 (fold_builtin_1): Fold builtin cproj.
22678 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22679 Use ATTR_CONST_NOTHROW_LIST.
22680
22681 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
22682
22683 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22684 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
22685 ffsi2_no_cmove for !TARGET_CMOVE.
22686 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
22687 (ffssi2): Remove expander.
22688 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22689 mode iterator.
22690 (ctz<mode>2): Ditto from ctz{si,di}2.
22691 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22692 mode iterator.
22693 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22694 mode iterator.
22695
22696 2010-04-20 Jakub Jelinek <jakub@redhat.com>
22697
22698 * dwarf2out.c (AT_linkage_name): Define.
22699 (clone_as_declaration): Handle DW_AT_linkage_name.
22700 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22701 of DW_AT_MIPS_linkage_name.
22702 (move_linkage_attr): Likewise.
22703 (dwarf2out_finish): Likewise.
22704
22705 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
22706
22707 PR middle-end/41952
22708 * fold-const.c (fold_comparison): New folding rule.
22709
22710 2010-04-20 Anatoly Sokolov <aesok@post.ru>
22711
22712 * double-int.h (double_int_setbit): Declare.
22713 * double-int.c (double_int_setbit): New function.
22714 * rtl.h (immed_double_int_const): Declare.
22715 * emit-rtl.c (immed_double_int_const): New function.
22716 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22717 and immed_double_int_const functions.
22718 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22719 expand_copysign_bit): (Ditto.).
22720 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22721 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22722 * dojump.c (prefer_and_bit_test): (Ditto.).
22723 * expr.c (convert_modes, reduce_to_bit_field_precision,
22724 const_vector_from_tree): (Ditto.).
22725 * expmed.c (mask_rtx, lshift_value): (Ditto.).
22726
22727 2010-04-20 Jan Hubicka <jh@suse.cz>
22728
22729 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22730 (dump_cgraph_node): Dump new flags.
22731 * cgraph.h (struct cgraph_node): Add flags
22732 reachable_from_other_partition and in_other_partition.
22733 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22734 other partition can not be removed.
22735 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22736 the other partition must be output; silence sanity checking on
22737 leaking functions bodies from other paritition.
22738 * lto-cgraph.c (reachable_from_other_partition_p): New function.
22739 (lto_output_node): Output new flags; do not sanity check that inline
22740 clones are output; drop lto_forced_extern_inline_p code; do not mock
22741 visibility flags at partition boundaries.
22742 (add_node_to): New function.
22743 (output_cgraph): Use it to sort functions so masters appear before
22744 clones.
22745 (input_overwrite_node): Input new flags.
22746 * passes.c (ipa_write_summaries): Do not call
22747 lto_new_extern_inline_states.
22748 * lto-section-out.c (forced_extern_inline,
22749 lto_new_extern_inline_states lto_delete_extern_inline_states,
22750 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22751 * lto-streamer.h (lto_new_extern_inline_states,
22752 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22753 lto_forced_extern_inline_p): Kill.
22754
22755 2010-04-20 Richard Guenther <rguenther@suse.de>
22756
22757 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22758 from vars that can have pointers.
22759 (process_constraint): Dump useless constraints.
22760
22761 2010-04-20 Richard Guenther <rguenther@suse.de>
22762
22763 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22764 (dump_sa_points_to_info): Remove asserts.
22765 (init_base_vars): nothing_id isn't an escape point nor does it
22766 have pointers.
22767
22768 2010-04-20 Jakub Jelinek <jakub@redhat.com>
22769
22770 * tree.h (TYPE_REF_IS_RVALUE): Define.
22771 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22772 should_move_die_to_comdat, prune_unused_types_walk): Handle
22773 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22774 (modified_type_die, gen_reference_type_die): Emit
22775 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22776 if TYPE_REF_IS_RVALUE and -gdwarf-4.
22777
22778 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22779
22780 PR target/43635
22781 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22782 calls for -fpic -m31 if they have been sibcall optimized.
22783
22784 2010-04-19 James E. Wilson <wilson@codesourcery.com>
22785
22786 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22787 ar.lc fixed and call-used.
22788
22789 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22790
22791 2010-04-19 Jan Hubicka <jh@suse.cz>
22792
22793 * opts.c (decode_options): Disable whpr incompatible passes.
22794 * lto/lto.c (lto_1_to_1_map): Skip clones.
22795 (read_cgraph_and_symbols): Do not mark everything as needed.
22796 (do_whole_program_analysis): Do map only after optimizing;
22797 set proper cgraph_state; use passmanager.
22798
22799 2010-04-19 DJ Delorie <dj@redhat.com>
22800
22801 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22802 POINTER_PLUS_EXPR and fix them.
22803
22804 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
22805
22806 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22807 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22808 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22809 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22810 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22811 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22812 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22813 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22814 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22815 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22816 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22817
22818 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
22819
22820 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22821 (check_cond_move_block): Likewise.
22822 (cond_move_process_if_block): Likewise.
22823 (noce_find_if_block): Improve formatting.
22824 (find_if_header): Pass 0 to memset and tweak conditions.
22825 (cond_exec_find_if_block): Fix long lines and tweak conditions.
22826
22827 2010-04-19 Jakub Jelinek <jakub@redhat.com>
22828
22829 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22830 for -gdwarf-4.
22831
22832 PR middle-end/43337
22833 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
22834 with non-local decl doesn't need chain.
22835
22836 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
22837
22838 * ira-color.c (allocno_reload_assign): Avoid accumulating
22839 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
22840
22841 2010-04-19 Martin Jambor <mjambor@suse.cz>
22842
22843 * gimple.h (create_tmp_reg): Declare.
22844 * gimplify.c (create_tmp_reg): New function.
22845 (gimplify_return_expr): Use create_tmp_reg.
22846 (gimplify_omp_atomic): Likewise.
22847 (gimple_regimplify_operands): Likewise.
22848 * tree-dfa.c (make_rename_temp): Likewise.
22849 * tree-predcom.c (predcom_tmp_var): Likewise.
22850 (reassociate_to_the_same_stmt): Likewise.
22851 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
22852 (get_replaced_param_substitute): Likewise.
22853 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
22854 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
22855 * tree-ssa-pre.c (get_representative_for): Likewise.
22856 (create_expression_by_pieces): Likewise.
22857 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
22858 (create_tailcall_accumulator): Likewise.
22859
22860 2010-04-19 Martin Jambor <mjambor@suse.cz>
22861
22862 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
22863 new_stmt.
22864 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
22865
22866 2010-04-19 Richard Guenther <rguenther@suse.de>
22867
22868 PR tree-optimization/43796
22869 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
22870 from SCEV in the lattice.
22871 (vrp_visit_phi_node): Dump change.
22872
22873 2010-04-19 Richard Guenther <rguenther@suse.de>
22874
22875 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
22876 * configure: Re-generated.
22877
22878 2010-04-19 Richard Guenther <rguenther@suse.de>
22879
22880 PR tree-optimization/43783
22881 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
22882 constant ARRAY_REF operands two and three if possible.
22883
22884 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
22885
22886 PR target/43766
22887 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
22888
22889 2010-04-19 Jie Zhang <jie@codesourcery.com>
22890
22891 PR target/43662
22892 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
22893
22894 2010-04-19 Ira Rosen <irar@il.ibm.com>
22895
22896 PR tree-optimization/37027
22897 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
22898 and macro to access it.
22899 (vectorizable_reduction): Add argument.
22900 (vect_get_slp_defs): Likewise.
22901 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
22902 statements for possible use in SLP.
22903 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
22904 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
22905 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
22906 add new argument.
22907 (vectorizable_reduction): Likewise.
22908 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
22909 vect_get_slp_defs.
22910 (vectorizable_type_demotion, vectorizable_type_promotion,
22911 vectorizable_store): Likewise.
22912 (vect_analyze_stmt): Update call to vectorizable_reduction.
22913 (vect_transform_stmt): Likewise.
22914 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
22915 (vect_build_slp_tree): Fix indentation. Check that there are no loads
22916 from different interleaving chains in same node.
22917 (vect_slp_rearrange_stmts): New function.
22918 (vect_supported_load_permutation_p): Allow load permutations for
22919 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
22920 inside SLP nodes if necessary.
22921 (vect_analyze_slp_instance): Handle reductions.
22922 (vect_analyze_slp): Try to build SLP instances originating from groups
22923 of reductions.
22924 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
22925 (vect_get_constant_vectors): Create initial vectors for reductions
22926 according to reduction code. Add new argument.
22927 (vect_get_slp_defs): Add new argument, pass it to
22928 vect_get_constant_vectors.
22929 (vect_schedule_slp_instance): Remove SLP tree root statements.
22930
22931 2010-04-19 Jakub Jelinek <jakub@redhat.com>
22932
22933 * tree.h (ENUM_IS_SCOPED): Define.
22934 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
22935 for ENUM_IS_SCOPED enums.
22936
22937 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
22938
22939 * fold-const.c (fold_comparison): Use ssizetype.
22940 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22941 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
22942 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
22943 * tree-object-size.c (compute_object_sizes): Use size_type_node.
22944
22945 * tree.h (initialize_sizetypes): Remove parameter.
22946 (build_common_tree_nodes): Remove second parameter.
22947 * stor-layout.c (initialize_sizetypes): Remove parameter.
22948 Always create an unsigned type.
22949 (set_sizetype): Assert that the passed type is unsigned and simplify.
22950 * tree.c (build_common_tree_nodes): Remove second parameter.
22951 Adjust call to initialize_sizetypes.
22952 * c-decl.c (c_init_decl_processing): Remove second argument in call to
22953 build_common_tree_nodes.
22954
22955 2010-04-18 Matthias Klose <doko@ubuntu.com>
22956
22957 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
22958
22959 2010-04-18 Ira Rosen <irar@il.ibm.com>
22960
22961 PR tree-optimization/43771
22962 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
22963 load permutation doesn't have gaps.
22964
22965 2010-04-18 Jan Hubicka <jh@suse.cz>
22966
22967 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
22968 (sse_prologue_save_insn expander): Use new pattern.
22969 (sse_prologue_save_insn1): New pattern and splitter.
22970 (sse_prologue_save_insn): Update to deal also with 64bit aligned
22971 blocks.
22972 * i386.c (setup_incoming_varargs_64): Do not compute jump
22973 destination here.
22974 (ix86_gimplify_va_arg): Update alignment needed.
22975 (ix86_local_alignment): Do not align all local arrays to 128bit.
22976
22977 2010-04-17 Jan Hubicka <jh@suse.cz>
22978
22979 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
22980
22981 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
22982
22983 * arm.md (negdi2): Remove redundant code to force values into a
22984 register.
22985
22986 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
22987
22988 * arm/bpabi.S: Add EABI alignment attributes to objects.
22989 * arm/bpabi-v6m.S: Likewise.
22990 * arm/crti.asm: Likewise.
22991 * arm/crtn.asm: Likewise.
22992 * arm/lib1funcs.asm: Likewise.
22993 * arm/libunwind.S: Likewise.
22994
22995 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
22996
22997 * arm-protos.h (tune_params): New structure.
22998 * arm.c (current_tune): New variable.
22999 (arm_constant_limit): Delete.
23000 (struct processors): Add pointer to the tune parameters.
23001 (arm_slowmul_tune): New tuning option.
23002 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
23003 (all_cores): Adjust to pick up the tuning model.
23004 (arm_constant_limit): New function.
23005 (arm_override_options): Select the appropriate tuning model. Delete
23006 initialization of arm_const_limit.
23007 (arm_split_constant): Use the new constant-limit model.
23008 (arm_rtx_costs): Pick up the current tuning model.
23009 * arm.md (is_strongarm, is_xscale): Delete.
23010 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
23011 for Xscale variant architectures.
23012 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
23013
23014 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23015
23016 * config/arm/arm.c (arm_gen_constant): Remove unused variable
23017 can_shift.
23018 (arm_rtx_costs_1): Remove unused variable extra_cost.
23019 (arm_unwind_emit_set): Use variable offset.
23020 (thumb1_output_casesi): Remove unused variable flags.
23021
23022 2010-04-16 Jeff Law <law@redhat.com>
23023
23024 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
23025 needing assignment rather than doing a two-phase assignment. Remove
23026 unused variable 'm'.
23027
23028 2010-04-16 Jakub Jelinek <jakub@redhat.com>
23029
23030 PR bootstrap/43767
23031 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
23032
23033 2010-04-16 Doug Kwan <dougkwan@google.com>
23034
23035 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
23036 (next_operand_entry_id): New static variable.
23037 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
23038 (add_to_ops_vec): Assigned unique ID to operand entry.
23039 (struct oecount_s): New field ID.
23040 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
23041 (undistribute_ops_list): Assign unique IDs to oecounts.
23042 (init_reassoc): reset next_operand_entry_id.
23043
23044 2010-04-16 Doug Kwan <dougkwan@google.com>
23045
23046 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
23047 missing left parenthesis.
23048
23049 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
23050
23051 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
23052 *btdi_rex64 using SWI48 mode iterator.
23053 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
23054 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
23055 *jcc_btdi_mask_rex64.
23056
23057 2010-04-16 Anatoly Sokolov <aesok@post.ru>
23058
23059 * double-int.h (tree_to_double_int): Convert to macro.
23060 * double-int.c (tree_to_double_int): Remove.
23061
23062 2010-04-16 Jakub Jelinek <jakub@redhat.com>
23063
23064 PR debug/43762
23065 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
23066 with want_address 2 and in case a single element list might be
23067 possible, call it again with want_address 0.
23068
23069 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23070
23071 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
23072 case 'W' print operands for HI mode.
23073 * config/h8300/h8300.h (Y0, Y2) : New constraints.
23074 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
23075 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
23076 * config/h8300/predicate.md (bit_register_indirect_operand): New.
23077
23078 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
23079
23080 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
23081 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
23082 #xx:3 and #xx:4 mode.
23083
23084 * config/h8300/h8300.md (inverted load with HImode dest): Add
23085 support for H8300SX.
23086
23087 * config/h8300/predicate.md (bit_operand): Allow immediate values that
23088 satisfy 'U' constraint.
23089
23090 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23091
23092 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
23093 * configure: Regenerate.
23094 * config.in: Regenerate.
23095 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
23096 works.
23097
23098 2010-04-16 Richard Guenther <rguenther@suse.de>
23099
23100 * tree.h (struct tree_decl_minimal): Move pt_uid ...
23101 (struct tree_decl_common): ... here.
23102 (DECL_PT_UID): Adjust.
23103 (SET_DECL_PT_UID): Likewise.
23104 (DECL_PT_UID_SET_P): Likewise.
23105
23106 2010-04-16 Richard Guenther <rguenther@suse.de>
23107
23108 PR tree-optimization/43572
23109 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
23110 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
23111 * tree-flow.h (is_call_clobbered): Remove.
23112 * tree-flow-inline.h (is_call_clobbered): Likewise.
23113 * tree-dfa.c (dump_variable): Do not dump call clobber state.
23114 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
23115 (execute_return_slot_opt): Adjust.
23116 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
23117 check for call clobbered vars here.
23118 (find_tail_calls): Move tailcall verification to the
23119 proper place.
23120
23121 2010-04-16 Diego Novillo <dnovillo@google.com>
23122
23123 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
23124
23125 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
23126
23127 PR target/40603
23128 * config/arm/arm.md (cbranchqi4): New pattern.
23129 * config/arm/predicates.md (const0_operand,
23130 cbranchqi4_comparison_operator): New predicates.
23131
23132 2010-04-16 Richard Guenther <rguenther@suse.de>
23133
23134 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
23135 (dump_gimple_stmt): Likewise.
23136
23137 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
23138
23139 * recog.h (struct recog_data): New field is_operator.
23140 (struct insn_operand_data): New field is_operator.
23141 * recog.c (extract_insn): Set recog_data.is_operator.
23142 * genoutput.c (output_operand_data): Emit code to set the
23143 is_operator field.
23144 * reload.c (find_reloads): Use it rather than testing for an
23145 empty constraint string.
23146
23147 PR target/41514
23148 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
23149 If the previous insn is a cbranchsi4_insn with the same arguments,
23150 omit the compare instruction.
23151
23152 * config/arm/arm.md (addsi3_cbranch): If destination is a high
23153 register, inputs must be low registers and we need a low register
23154 scratch. Handle alternative 2 like alternative 3.
23155
23156 2010-04-16 Jakub Jelinek <jakub@redhat.com>
23157
23158 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
23159 don't call get_addr on both. If one expression is a VALUE and
23160 the other a REG, check VALUE's locs if the REG isn't among them.
23161
23162 2010-04-16 Christian Bruel <christian.bruel@st.com>
23163
23164 * config/sh/sh.h (sh_frame_pointer_required): New function.
23165 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
23166 (flag_omit_frame_pointer) Set.
23167 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
23168 (rounded_frame_size): Adjust size with outgoing_args_size.
23169 (sh_set_return_address): Must return from stack pointer.
23170 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
23171 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
23172 (ACCUMULATE_OUTGOING_ARGS): Define.
23173 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
23174 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
23175
23176 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
23177
23178 PR target/43471
23179 * config/sh/sh.c (sh_legitimize_reload_address): Use
23180 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
23181 Remove a unneeded check for offset_base.
23182
23183 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
23184
23185 * configure: Regenerated.
23186
23187 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23188
23189 * config/s390/s390.c (s390_call_save_register_used): Switch back
23190 to HARD_REGNO_NREGS.
23191
23192 2010-04-15 Richard Guenther <rguenther@suse.de>
23193
23194 * alias.c (alias_set_subset_of): Handle alias-set zero
23195 child properly.
23196
23197 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
23198 Julian Brown <julian@codesourcery.com>
23199
23200 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
23201 alternatives according to use of high and low regs.
23202 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
23203 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
23204 optimizing for size on Thumb-2.
23205
23206 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
23207
23208 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
23209
23210 2010-04-15 Richard Guenther <rguenther@suse.de>
23211
23212 * tree-ssa-structalias.c (struct variable_info): Add
23213 is_fn_info flag.
23214 (new_var_info): Initialize it.
23215 (dump_constraints): Support printing last added constraints.
23216 (debug_constraints): Adjust.
23217 (dump_constraint_graph): Likewise.
23218 (make_heapvar_for): Check for NULL cfun.
23219 (get_function_part_constraint): New function.
23220 (get_fi_for_callee): Likewise.
23221 (find_func_aliases): Properly implement IPA PTA constraints.
23222 (process_ipa_clobber): New function.
23223 (find_func_clobbers): Likewise.
23224 (insert_into_field_list_sorted): Remove.
23225 (create_function_info_for): Properly allocate vars for IPA mode.
23226 Do not use insert_into_field_list_sorted.
23227 (create_variable_info_for): Properly generate constraints for
23228 global vars in IPA mode.
23229 (dump_solution_for_var): Always dump the solution.
23230 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
23231 (find_what_var_points_to): Adjust.
23232 (pt_solution_set): Change.
23233 (pt_solution_ior_into): New function.
23234 (pt_solution_empty_p): Export.
23235 (pt_solution_includes_global): Adjust.
23236 (pt_solution_includes_1): Likewise.
23237 (pt_solutions_intersect_1): Likewise.
23238 (dump_sa_points_to_info): Check some invariants.
23239 (solve_constraints): Move constraint dumping ...
23240 (compute_points_to_sets): ... here.
23241 (ipa_pta_execute): ... and here.
23242 (compute_may_aliases): Do not re-compute points-to info
23243 locally if IPA info is available.
23244 (ipa_escaped_pt): New global var.
23245 (ipa_pta_execute): Properly implement IPA PTA.
23246 * tree-into-ssa.c (dump_decl_set): Support dumping
23247 decls not in referenced-vars.
23248 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
23249 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
23250 (dump_points_to_solution): Likewise.
23251 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
23252 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
23253 (remap_gimple_stmt): Reset call clobber/use information if necessary.
23254 (copy_decl_to_var): Copy DECL_PT_UID.
23255 (copy_result_decl_to_var): Likewise.
23256 * tree.c (make_node_stat): Initialize DECL_PT_UID.
23257 (copy_node_stat): Copy it.
23258 * tree.h (DECL_PT_UID): New macro.
23259 (SET_DECL_PT_UID): Likewise.
23260 (DECL_PT_UID_SET_P): Likewise.
23261 (struct tree_decl_minimal): Add pt_uid member.
23262 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
23263 (pt_solution_empty_p): Declare.
23264 (pt_solution_set): Adjust.
23265 (ipa_escaped_pt): Declare.
23266 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
23267 * gimple-pretty-print.c (pp_points_to_solution): New function.
23268 (dump_gimple_call): Dump call clobber/use information.
23269 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
23270 * tree-pass.h (TDF_ALIAS): New dump option.
23271 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
23272 * doc/invoke.texi (-fipa-pta): Update documentation.
23273
23274 2010-04-15 Richard Guenther <rguenther@suse.de>
23275
23276 * Makefile.in (OBJS-common): Add gimple-fold.o.
23277 (gimple-fold.o): New rule.
23278 * tree.h (maybe_fold_offset_to_reference,
23279 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
23280 prototypes ...
23281 * gimple.h: ... here.
23282 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
23283 may_propagate_address_into_dereference): Move prototypes ...
23284 * gimple.h: ... here.
23285 * tree-ssa-ccp.c (get_symbol_constant_value,
23286 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
23287 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
23288 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
23289 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
23290 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
23291 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
23292 gimplify_and_update_call_from_tree): Move ...
23293 * gimple-fold.c: ... here. New file.
23294 (ccp_fold_builtin): Rename to ...
23295 (gimple_fold_builtin): ... this.
23296 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
23297
23298 2010-04-15 Richard Guenther <rguenther@suse.de>
23299
23300 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
23301 fit_double_type, force_fit_type_double, add_double_with_sign,
23302 neg_double, mul_double_with_sign, lshift_double, rshift_double,
23303 lrotate_double, rrotate_double, div_and_round_double): Move ...
23304 * double-int.c: ... here.
23305 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
23306 add_double, neg_double, mul_double_with_sign, mul_double,
23307 lshift_double, rshift_double, lrotate_double, rrotate_double,
23308 div_and_round_double): Move prototypes ...
23309 * double-int.h: ... here.
23310
23311 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
23312
23313 PR target/43742
23314 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
23315 matching constraints to ensure inputs match the output.
23316
23317 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
23318
23319 PR target/43742
23320 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
23321 in an input-only operand.
23322
23323 2010-04-15 Anatoly Sokolov <aesok@post.ru>
23324
23325 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
23326 (double_int_not, double_int_lshift, double_int_rshift): Declare.
23327 (double_int_negative_p): Convert to static inline function.
23328 * double-int.c (double_int_lshift, double_int_lshift): New functions.
23329 (double_int_negative_p): Remove.
23330 * tree.h (lshift_double, rshift_double):
23331 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
23332 * fold-const.c (fold_convert_const_int_from_real,
23333 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
23334 (lshift_double): Change type of arith argument to bool.
23335 (rshift_double): Change type of arith argument to bool. Correct
23336 comment.
23337 * expmed.c (mask_rtx, lshift_value): (Ditto.).
23338
23339 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
23340
23341 PR target/21803
23342 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
23343 at the start and end of the then/else blocks, and omit them from the
23344 conversion.
23345 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
23346 argument; all callers changed. Pass zero to old_insns_match_p instead.
23347 (flow_find_head_matching_sequence): New function.
23348 (old_insns_match_p): Check REG_EH_REGION notes for calls.
23349 * basic-block.h (flow_find_cross_jump,
23350 flow_find_head_matching_sequence): Declare functions.
23351
23352 2010-04-14 Jason Merrill <jason@redhat.com>
23353
23354 PR c++/36625
23355 * c-common.c (attribute_takes_identifier_p): New fn.
23356 * c-common.h: Declare it.
23357
23358 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23359
23360 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
23361 splitter condition.
23362 (*udivmod<mode>4): Ditto.
23363
23364 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23365
23366 * config/i386/i386.md (maxmin_int): Rename code attribute from
23367 maxminiprefix and update all users.
23368 (maxmin_float): Ditto from maxminfprefix.
23369 (logic): Ditto from logicprefix.
23370 (absneg_mnemonic): Ditto from absnegprefix.
23371 * config/i386/mmx.md: Update all users of maxminiprefix,
23372 maxminfprefix and logicprefix for rename.
23373 * config/i386/sse.md: Ditto.
23374 * config/i386/sync.md (sync_<code><mode>): Update for
23375 logicprefix rename.
23376
23377 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
23378
23379 PR 42966
23380 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
23381 warnings converted to errors.
23382
23383 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23384
23385 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
23386 used insn_type variable.
23387 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
23388 to avoid set-but-not-used warning.
23389
23390 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23391
23392 * df-core.c (df_ref_debug): Change format string placeholder
23393 from 0x%x to %#x.
23394 * dwarf2asm.c (dw2_asm_output_data_raw,
23395 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
23396 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
23397 * dwarf2out.c (output_cfi, output_cfi_directive,
23398 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
23399 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
23400 Ditto.
23401 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
23402 * print-rtl.c (print_rtx): Ditto.
23403
23404 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23405
23406 PR middle-end/42694
23407 * builtins.c (expand_builtin_pow_root): New function to expand pow
23408 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
23409 series of sqrt and cbrt calls under -ffast-math.
23410 (expand_builtin_pow): Call it.
23411
23412 2010-04-14 Michael Matz <matz@suse.de>
23413
23414 PR tree-optimization/42963
23415 * tree-cfg.c (touched_switch_bbs): New static variable.
23416 (group_case_labels_stmt): New function broken out from ...
23417 (group_case_labels): ... here, use the above.
23418 (start_recording_case_labels): Allocate touched_switch_bbs.
23419 (end_recording_case_labels): Deallocate it, call
23420 group_case_labels_stmt.
23421 (gimple_redirect_edge_and_branch): Remember index of affected BB.
23422
23423 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23424
23425 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
23426 from insn template.
23427
23428 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
23429
23430 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
23431
23432 2010-04-13 Jan Hubicka <jh@suse.cz>
23433
23434 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
23435 of optimized out static functions.
23436 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
23437 cost computation. Also sanity check for overflows.
23438 (update_caller_keys): Update cgraph_edge_badness call; properly
23439 update fibheap and sanity check that it is up to date.
23440 (add_new_edges_to_heap): Update cgraph_edge_badness.
23441 (cgraph_decide_inlining_of_small_function): Likewise;
23442 add sanity checking that badness in heap is up to date;
23443 improve dumping of reason; Update badness of calls to the
23444 offline copy of function currently inlined; dump badness
23445 of functions not inlined because of unit growth limits.
23446
23447 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
23448
23449 PR middle-end/32628
23450 * c-common.c (pointer_int_sum): Disregard overflow that occured only
23451 because of sign-extension change when converting to sizetype here...
23452 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
23453
23454 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
23455 the folding to constants. Remove redundant final conversion.
23456 (fold_binary) <associate>: Do not associate if the re-association of
23457 constants alone overflows.
23458 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
23459 to the end of the list.
23460 (multiple_of_p) <COND_EXPR>: New case.
23461
23462 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
23463
23464 * opt-functions.awk (opt_sanitized_name): New.
23465 (opt_enum): New.
23466 * optc-gen.awk: Use it
23467 * opth-gen.awk: Use it.
23468
23469 2010-04-13 Martin Jambor <mjambor@suse.cz>
23470
23471 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
23472 (sra_modify_assign): Delete stmts loading dead data even if racc has no
23473 children. Call replace_uses_with_default_def_ssa_name to handle
23474 SSA_NAES on lhs.
23475
23476 2010-04-13 Michael Matz <matz@suse.de>
23477
23478 PR middle-end/43730
23479 * builtins.c (expand_builtin_interclass_mathfn): Also create
23480 a register if the predicate doesn't match.
23481
23482 2010-04-13 Diego Novillo <dnovillo@google.com>
23483
23484 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
23485 * c-pch.c: Include timevar.h.
23486 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
23487 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
23488 * ggc-common.c: Include timevar.h.
23489 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
23490 * timevar.def (TV_PCH_SAVE): Define.
23491 (TV_PCH_CPP_SAVE): Define.
23492 (TV_PCH_PTR_REALLOC): Define.
23493 (TV_PCH_PTR_SORT): Define.
23494 (TV_PCH_RESTORE): Define.
23495 (TV_PCH_CPP_RESTORE): Define.
23496
23497 2010-04-13 Michael Matz <matz@suse.de>
23498
23499 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
23500 into MINUS_EXPRs.
23501 (can_reassociate_p): New function.
23502 (break_up_subtract_bb, reassociate_bb): Use it.
23503
23504 2010-04-13 Richard Guenther <rguenther@suse.de>
23505
23506 PR bootstrap/43737
23507 * builtins.c (c_readstr): Fix assert.
23508
23509 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
23510
23511 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
23512 when generating cltd insn.
23513
23514 (*ashl<mode>3_1): Remove special handling for register operand 2.
23515 (*ashlsi3_1_zext): Ditto.
23516 (*ashlhi3_1): Ditto.
23517 (*ashlhi3_1_lea): Ditto.
23518 (*ashlqi3_1): Ditto.
23519 (*ashlqi3_1_lea): Ditto.
23520 (*<shiftrt_insn><mode>3_1): Ditto.
23521 (*<shiftrt_insn>si3_1_zext): Ditto.
23522 (*<shiftrt_insn>qi3_1_slp): Ditto.
23523 (*<rotate_insn><mode>3_1): Ditto.
23524 (*<rotate_insn>si3_1_zext): Ditto.
23525 (*<rotate_insn>qi3_1_slp): Ditto.
23526
23527 2010-04-13 Richard Guenther <rguenther@suse.de>
23528
23529 * tree-ssa-structalias.c (callused_id): Remove.
23530 (call_stmt_vars): New.
23531 (get_call_vi): Likewise.
23532 (lookup_call_use_vi): Likewise.
23533 (lookup_call_clobber_vi): Likewise.
23534 (get_call_use_vi): Likewise.
23535 (get_call_clobber_vi): Likewise.
23536 (make_transitive_closure_constraints): Likewise.
23537 (handle_const_call): Adjust to do per-call call-used handling.
23538 (handle_pure_call): Likewise.
23539 (find_what_var_points_to): Remove general callused handling.
23540 (init_base_vars): Likewise.
23541 (init_alias_vars): Initialize call_stmt_vars.
23542 (compute_points_to_sets): Process call-used and call-clobbered
23543 vars for call statements.
23544 (delete_points_to_sets): Free call_stmt_vars.
23545
23546 2010-04-13 Richard Guenther <rguenther@suse.de>
23547
23548 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23549 Only add RW dependence for dependence distance zero.
23550 Adjust maximal vectorization factor according to dependences.
23551 Move alignment handling ...
23552 (vect_find_same_alignment_drs): ... here. New function.
23553 (vect_analyze_data_ref_dependences): Adjust.
23554 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
23555 (vect_analyze_data_refs): Adjust minimal vectorization factor
23556 according to data references.
23557 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
23558 dependences before determining the vectorization factor.
23559 Analyze alignment after determining the vectorization factor.
23560 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
23561 dependences before alignment.
23562 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
23563 Adjust prototype.
23564 (vect_analyze_data_refs): Likewise.
23565 (MAX_VECTORIZATION_FACTOR): New define.
23566
23567 2010-04-13 Duncan Sands <baldrick@free.fr>
23568
23569 * except.h (lang_eh_type_covers): Remove.
23570 * except.c (lang_eh_type_covers): Likewise.
23571
23572 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23573 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23574
23575 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
23576 * config/s390/s390.c: Replace UNTIS_PER_WORD with
23577 UNITS_PER_LONG where it is ABI relevant.
23578 (s390_return_addr_rtx): Likewise.
23579 (s390_back_chain_rtx): Likewise.
23580 (s390_frame_area): Likewise.
23581 (s390_frame_info): Likewise.
23582 (s390_initial_elimination_offset): Likewise.
23583 (save_gprs): Likewise.
23584 (s390_emit_prologue): Likewise.
23585 (s390_emit_epilogue): Likewise.
23586 (s390_function_arg_advance): Likewise.
23587 (s390_function_arg): Likewise.
23588 (s390_va_start): Likewise.
23589 (s390_gimplify_va_arg): Likewise.
23590 (s390_function_profiler): Likewise.
23591 (s390_optimize_prologue): Likewise.
23592 (s390_rtx_costs): Likewise.
23593 (s390_secondary_reload): Likewise.
23594 (s390_promote_function_mode): Likewise.
23595 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
23596 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
23597 registers available.
23598 (s390_unwind_word_mode): New function.
23599 (s390_function_value): Split 64 bit values into register pair if
23600 used as return value.
23601 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
23602 function call parameters. Handle parallels.
23603 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
23604 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
23605 (DWARF_CIE_DATA_ALIGNMENT): New macro.
23606 (s390_expand_setmem): Remove unused variable src_addr.
23607 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
23608 deal with 64 bit registers.
23609 * config/s390/s390.h: Define __zarch__ predefined macro.
23610 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
23611 (UNITS_PER_LONG): New macro.
23612 * libjava/include/s390-signal.h: Define extended ucontext
23613 structure containing the upper halfs of the 64 bit registers.
23614
23615 2010-04-13 Simon Baldwin <simonb@google.com>
23616
23617 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
23618
23619 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
23620
23621 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
23622 rvalue on the RHS if the LHS is of a non-renamable type.
23623 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
23624
23625 2010-04-13 Matthias Klose <doko@ubuntu.com>
23626
23627 * gcc.c (cc1_options): Handle -iplugindir before processing
23628 the cc1 spec. Only add -iplugindir once.
23629 (cpp_unique_options): Add -iplugindir option if -fplugin* options
23630 found.
23631 * common.opt (iplugindir): Remove `Separate' property, initialize.
23632 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
23633 option.
23634 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
23635 (distclean): Remove plugin dir.
23636 * doc/invoke.texi: Document -iplugindir.
23637
23638 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
23639
23640 * doc/plugins.texi (Loading Plugins): Document short
23641 -fplugin=foo option.
23642 (Plugin API): Mention default_plugin_dir_name function.
23643
23644 * gcc.c (find_file_spec_function): Add new declaration.
23645 (static_spec_func): Use it for "find-file".
23646 (find_file_spec_function): Add new function.
23647 (cc1_options): Add -iplugindir option if -fplugin* options found.
23648
23649 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
23650
23651 * plugin.c (add_new_plugin): Updated comment, and handle short
23652 plugin name.
23653 (default_plugin_dir_name): Added new function.
23654
23655 * common.opt (iplugindir): New option to set the plugin directory.
23656
23657 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
23658
23659 * config/i386/i386.md (any_rotate): New code iterator.
23660 (rotate_insn): New code attribute.
23661 (rotate): Ditto.
23662 (SWIM124): New mode iterator.
23663 (<rotate_insn>ti3): New expander.
23664 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
23665 any_rotate code iterator.
23666 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
23667 using any_rotate code iterator and SWIM124 mode iterator.
23668 (ix86_rotlti3): New insn_and_split pattern.
23669 (ix86_rotrti3): Ditto.
23670 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
23671 ix86_rotl{di,ti}3 patterns.
23672 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
23673 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
23674 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
23675 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23676 code iterator and SWI mode iterator.
23677 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23678 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23679 code iterator.
23680 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23681 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23682 (bswap rotatert splitter): Add splitter.
23683 (bswap splitter): Macroize splitter using any_rotate code iterator.
23684 Add insn predicate to split only for TARGET_USE_XCHGB or when
23685 optimizing function for size.
23686
23687 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23688
23689 * config/pa/pa.c (emit_move_sequence): Remove use of
23690 deleted variable flag_argument_noalias.
23691
23692 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23693
23694 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23695 configurations.
23696 Add to unsupported targets list.
23697 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23698 sparc*-sun-solaris2.[567]* from target lists.
23699 * configure: Regenerate.
23700 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23701 removal.
23702 Remove Solaris 7 patch references.
23703 (Specific, sparc-sun-solaris2.7): Removed.
23704 (sparc-sun-solaris2*): Update Solaris 7 example.
23705 (sparc64-*-solaris2*): Likewise.
23706
23707 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23708
23709 * config.build (alpha*-dec-osf4*): Remove.
23710 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23711 of obsolete configurations.
23712 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23713 support.
23714 * config/alpha/t-osf4: Renamed to ...
23715 * config/alpha/t-osf5: ... this.
23716 * config/alpha/osf.h: Renamed to ...
23717 * config/alpha/osf5.h: ... this.
23718 Merged old osf5.h contents.
23719 Update comments.
23720 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23721 (EXTRA_SPECS): Removed.
23722 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23723 reflect removal of Tru64 UNIX V4.0/V5.0 support.
23724 Document that.
23725
23726 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23727
23728 * doc/contrib.texi (Contributors, Rainer Orth): Update.
23729
23730 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
23731
23732 PR/43702
23733 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23734 __thiscall convention.
23735
23736 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23737
23738 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23739 orig_base.
23740 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23741
23742 2010-04-12 Steve Ellcey <sje@cup.hp.com>
23743
23744 * function.c (assign_parms_initialize_all): Add unused attribute
23745 to fntype.
23746
23747 2010-04-12 Richard Guenther <rguenther@suse.de>
23748
23749 * gsstruct.def (GSS_CALL): New.
23750 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23751 * gimple.h: Include tree-ssa-alias.h.
23752 (struct gimple_statement_call): New.
23753 (union gimple_statement_struct_d): Add gimple_call member.
23754 (gimple_call_reset_alias_info): Declare.
23755 (gimple_call_use_set): New function.
23756 (gimple_call_clobber_set): Likewise.
23757 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23758 * gimple.c (gimple_call_reset_alias_info): New function.
23759 (gimple_build_call_1): Call it.
23760 * lto-streamer-in.c (input_gimple_stmt): Likewise.
23761 * tree-inline.c (remap_gimple_stmt): Likewise.
23762 (expand_call_inline): Remove callused handling.
23763 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23764 * tree-dfa.c (dump_variable): Likewise.
23765 * tree-parloops.c (parallelize_loops): Likewise.
23766 * tree-ssa.c (init_tree_ssa): Likewise.
23767 (delete_tree_ssa): Likewise.
23768 * tree-flow-inline.h (is_call_used): Remove.
23769 * tree-flow.h (struct gimple_df): Remove callused member.
23770 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23771 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23772 (ref_maybe_used_by_call_p_1): Simplify.
23773 (call_may_clobber_ref_p_1): Likewise.
23774 * tree-ssa-structalias.c (compute_points_to_sets): Set
23775 the call stmt used and clobbered sets.
23776 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23777 (find_tail_calls): Verify the tail call.
23778
23779 2010-04-12 Richard Guenther <rguenther@suse.de>
23780
23781 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23782 single-iteration always-inline inlining.
23783 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23784 (cgraph_decide_inlining): Do not handle always-inline specially.
23785 (try_inline): Remove always-inline cycle detection special case.
23786 Do not recurse on always-inlines.
23787 (cgraph_early_inlining): Do not iterate if not optimizing.
23788 (cgraph_gate_early_inlining): remove.
23789 (pass_early_inline): Run unconditionally.
23790 (gate_cgraph_decide_inlining): New function.
23791 (pass_ipa_inline): Use it. Do not run the IPA inliner if
23792 not inlining or optimizing.
23793 (cgraph_decide_inlining_of_small_functions): Also consider
23794 always-inline functions.
23795 (cgraph_default_inline_p): Return true for nodes which should
23796 disregard inline limits.
23797 (estimate_function_body_sizes): Assume zero size and time for
23798 nodes which are marked as disregarding inline limits.
23799 (cgraph_decide_recursive_inlining): Do not perform recursive
23800 inlining on always-inline nodes.
23801
23802 2010-04-12 Jakub Jelinek <jakub@redhat.com>
23803
23804 PR bootstrap/43699
23805 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23806 for exprs satisfying handled_component_p.
23807
23808 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
23809
23810 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23811 non-constant aggregate elements.
23812
23813 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23814 is a real initialization.
23815
23816 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
23817
23818 PR c/36774
23819 * c-decl.c (start_function): Move forward check for nested function.
23820
23821 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
23822
23823 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23824 * config/sh/sh.c: Include reload.h.
23825 (sh_legitimize_reload_address): New.
23826 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23827 sh_legitimize_reload_address.
23828
23829 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23830
23831 * config/sh/sh.md (*movqi_pop): New insn pattern.
23832 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23833
23834 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23835
23836 * config/i386/i386.md (any_shiftrt): New code iterator.
23837 (shiftrt_insn): New code attribute.
23838 (shiftrt): Ditto.
23839 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
23840 using any_shiftrt code iterator.
23841 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
23842 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
23843 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
23844 pattern from corresponding peephole2 patterns.
23845 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
23846 using any_shiftrt code iterator.
23847 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
23848 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
23849 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
23850 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
23851 *{ashr,lshr}<mode>3_cmp_zext.
23852 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
23853
23854 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23855
23856 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
23857 scratch register.
23858 (*lshr<mode>3_cconly): Ditto.
23859
23860 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
23861
23862 * config/i386/i386.md (lshr<mode>3): Macroize expander from
23863 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23864 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
23865 pattern from *lshr{di,ti}3_1 and corresponding splitters using
23866 DWI mode iterator.
23867 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23868 from corresponding peephole2 patterns.
23869 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
23870 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
23871 and *lshrdi3_1_rex64 using SWI mode iterator.
23872 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
23873 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
23874 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
23875 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
23876 and *lshrdi3_cmp_rex64 using SWI mode iterator.
23877 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
23878 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
23879 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
23880 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
23881 SWI mode iterator.
23882
23883 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
23884
23885 * config/i386/i386.md (ashr<mode>3): Macroize expander from
23886 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23887 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
23888 pattern from *ashr{di,ti}3_1 and corresponding splitters using
23889 DWI mode iterator.
23890 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23891 from corresponding peephole2 patterns.
23892 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
23893 (ashrsi3_cvt): Rename from ashrsi3_31.
23894 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
23895 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
23896 and x86_64_shift_adj_3 using SWI48 mode iterator.
23897 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
23898 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
23899 and *ashrdi3_1_rex64 using SWI mode iterator.
23900 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
23901 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
23902 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
23903 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
23904 and *ashrdi3_cmp_rex64 using SWI mode iterator.
23905 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
23906 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
23907 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
23908 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
23909 SWI mode iterator.
23910 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
23911 * config/i386/i386.c (ix86_split_ashr): Update for renamed
23912 x86_shift<mode>_adj_3 expanders.
23913
23914 2010-04-10 Wei Guozhi <carrot@google.com>
23915
23916 PR target/42601
23917 * config/arm/arm.c (arm_pic_static_addr): New function.
23918 (legitimize_pic_address): Call arm_pic_static_addr when it detects
23919 a static symbol.
23920 (arm_output_addr_const_extra): Output expression for new pattern.
23921 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
23922
23923 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
23924
23925 * ira-costs.c (record_reg_classes): Ignore alternatives that are
23926 not enabled.
23927
23928 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
23929 * web.c: Include "insn-config.h" and "recog.h".
23930 (union_match_dups): New function.
23931 (web_main): Call it.
23932 (union_defs): Don't try to recognize match_dups.
23933
23934 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
23935 if doing so would replace the entire pattern.
23936
23937 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
23938
23939 PR target/43707
23940 PR target/43709
23941 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
23942 and splitter pattern. Change splitter operand 1 predicate to
23943 nonmemory_operand.
23944
23945 2010-04-09 Martin Jambor <mjambor@suse.cz>
23946
23947 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
23948 lattices are addresses of CONST_DECLs with the same initial value.
23949 (ipcp_print_all_lattices): Print values of CONST_DECLs.
23950 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
23951
23952 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
23953 Bernd Schmidt <bernds@codesourcery.com>
23954
23955 * loop-invariant.c (replace_uses): New static function.
23956 (move_invariant_reg): Use it to ensure we can replace the uses.
23957
23958 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
23959
23960 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
23961 function template.
23962 (picochip_override_options): Enable section anchors only above -O1.
23963 (picochip_reorg): Fixed a couple of build warnings.
23964
23965 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23966
23967 * configure.ac (plugin -rdynamic test): Log result.
23968 * configure: Regenerate.
23969 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
23970 (RDYNAMIC_SPEC): Define.
23971 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
23972
23973 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23974
23975 * configure.ac: Determine Sun ld version numbers.
23976 (comdat_group): Restrict GNU ld version checks to gld.
23977 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
23978 (enable_comdat): Support --enable-comdat.
23979 * configure: Regenerate.
23980 * doc/install.texi (Configuration): Document --enable-comdat.
23981
23982 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23983
23984 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
23985 * config/sol2-gld.h: ... here.
23986 * config.gcc (sparc*-*-solaris2*): Reflect this.
23987 (i[34567]86-*-solaris2*): Use it.
23988
23989 2010-04-09 Steve Ellcey <sje@cup.hp.com>
23990
23991 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
23992 setup_clocks_p.
23993 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
23994
23995 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
23996
23997 PR 42965
23998 * diagnostic.c (diagnostic_initialize): Initialize
23999 some_warnings_are_errors.
24000 (diagnostic_finish): New.
24001 (diagnostic_action_after_output): Call it before exiting.
24002 (diagnostic_report_diagnostic): Do not print message here. Set
24003 some_warnings_are_errors.
24004 * diagnostic.h (diagnostic_context): Delete
24005 issue_warnings_are_errors_message. Add some_warnings_are_errors.
24006 (diagnostic_finish): Declare.
24007 * toplev.c (toplev_main): Call it before exit.
24008
24009 2010-04-09 Jason Merrill <jason@redhat.com>
24010
24011 PR c++/42623
24012 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
24013 for incomplete type.
24014
24015 PR c++/41788
24016 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
24017 based on a warning flag.
24018
24019 2010-04-09 Richard Guenther <rguenther@suse.de>
24020
24021 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
24022
24023 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
24024
24025 PR bootstrap/43684
24026 * varasm.c (default_assemble_visibility): Wrap vars that are
24027 set, but unused, by targets without GAS.
24028 * config/rs6000/rs6000.c (paired_emit_vector_compare):
24029 Remove set, but unused, vars.
24030 (rs6000_legitimize_tls_address): Likewise.
24031 (altivec_expand_dst_builtin): Likewise.
24032 * config/darwin.c (machopic_classify_symbol): Likewise.
24033 (machopic_indirection_name): Likewise.
24034
24035 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
24036
24037 * config/i386/i386.md (DWI): New mode iterator.
24038 (S): New mode attribute.
24039 (shift_operand): Ditto.
24040 (shift_immediate_operand): Ditto.
24041 (ashl_input_operand): Ditto.
24042 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
24043 using SDWIM mode iterator.
24044 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
24045 pattern from *ashl{di,ti}3_1 and corresponding splitters using
24046 DWI mode iterator.
24047 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
24048 from corresponding peephole2 patterns.
24049 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
24050 and x86_64_shift_adj_1 using SWI48 mode iterator.
24051 (x86_shift<mode>_adj_2): Ditto.
24052 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
24053 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
24054 using SWI48 mode iterator.
24055 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
24056 *ashldi3_cmp_rex64 using SWI mode iterator.
24057 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
24058 *ashldi3_cconly_rex64 using SWI mode iterator.
24059 * config/i386/i386.c (ix86_split_ashl): Update for renamed
24060 x86_shift<mode>_adj_{1,2}.
24061 (ix86_split_ashr): Ditto.
24062 (ix86_split_lshr): Ditto.
24063
24064 2010-04-09 Richard Guenther <rguenther@suse.de>
24065
24066 * target.h (builtin_conversion): Pass in input and output types.
24067 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
24068 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
24069 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
24070 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
24071
24072 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
24073 Handle AVX modes.
24074 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
24075
24076 2010-04-09 Richard Guenther <rguenther@suse.de>
24077
24078 PR target/43152
24079 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
24080
24081 2010-04-09 Richard Guenther <rguenther@suse.de>
24082
24083 * tree-vectorizer.h (struct _stmt_vec_info): Document
24084 that vectype is the type of the LHS.
24085 (supportable_widening_operation, supportable_narrowing_operation):
24086 Get both input and output vector types as arguments.
24087 (vect_is_simple_use_1): Declare.
24088 (get_same_sized_vectype): Likewise.
24089 * tree-vect-loop.c (vect_determine_vectorization_factor):
24090 Set STMT_VINFO_VECTYPE to the vector type of the def.
24091 (vectorizable_reduction): Adjust.
24092 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
24093 Adjust. Specify the output vector type.
24094 (vect_pattern_recog_1): Adjust.
24095 * tree-vect-stmts.c (get_same_sized_vectype): New function.
24096 (vectorizable_call): Adjust.
24097 (vectorizable_conversion): Likewise.
24098 (vectorizable_operation): Likewise.
24099 (vectorizable_type_demotion): Likewise.
24100 (vectorizable_type_promotion): Likewise.
24101 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
24102 the def.
24103 (vect_is_simple_use_1): New function.
24104 (supportable_widening_operation): Get both input and output
24105 vector types.
24106 (supportable_narrowing_operation): Likewise.
24107 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
24108
24109 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
24110
24111 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
24112 __thiscall and _thiscall as predefined macros.
24113 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
24114 thiscall attribute handling.
24115 (ix86_comp_type_attributes): Likewise.
24116 (ix86_function_regparm): Likewise.
24117 (ix86_return_pops_args): Likewise.
24118 (init_cumulative_args): Likewise.
24119 (find_drap_reg): Likewise.
24120 (ix86_static_chain): Likewise.
24121 (x86_this_parameter): Likewise.
24122 (x86_output_mi_thunk): Likewise.
24123 (ix86_attribute_table): Add description for thiscall attribute.
24124 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
24125 * doc/extend.texi: Add documentation for thiscall.
24126
24127 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
24128
24129 PR c++/28584
24130 * c.opt (Wint-to-pointer-cast): Available in C++.
24131 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
24132
24133 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
24134
24135 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
24136 * calls.c (expand_call): Pass the function type to aggregate_value_p.
24137 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
24138 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
24139 function type instead. Reorder and simplify checks.
24140
24141 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
24142
24143 2010-04-08 Jing Yu <jingyu@google.com>
24144 Zdenek Dvorak <ook@ucw.cz>
24145
24146 PR tree-optimization/42720
24147 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
24148 loop unswitch conditions here from ...
24149 (tree_unswitch_single_loop): ... here.
24150
24151 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
24152
24153 * tree-if-conv.c: Fix comments and simplify logic.
24154
24155 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
24156
24157 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
24158 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
24159 (main_tree_if_conversion): Update call to tree_if_conversion.
24160
24161 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
24162
24163 PR 42485
24164 * doc/invoke.texi (-b,-V): Delete.
24165 * doc/tm.texi: Do not mention -b.
24166 * gcc.c (display_help): Delete -b and -V.
24167 (process_command): Delete -b and -V.
24168 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
24169
24170 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
24171 Wolfgang Gellerich <gellerich@de.ibm.com>
24172
24173 Implement target hook for loop unrolling
24174 * target.h (loop_unroll_adjust): Add a new target hook function.
24175 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
24176 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
24177 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
24178 (s390_loop_unroll_adjust): Implement the new target hook for s390.
24179 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
24180 target hook.
24181 (decide_unroll_stupid): Likewise.
24182
24183 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24184
24185 PR target/43643
24186 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
24187
24188 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24189
24190 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
24191 (Specific, *-*-solaris2*): Likewise.
24192 Don't prefer Sun as over GNU as.
24193
24194 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
24195
24196 * config/s390/s390.c (override_options): Adjust the z10 defaults
24197 for max-unroll-times, max-completely-peeled-insns
24198 and max-completely-peel-times.
24199
24200 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24201
24202 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
24203 instructions for z10.
24204 (s390_expand_setmem): Likewise.
24205 (s390_expand_cmpmem): Likewise.
24206
24207 2010-04-08 Richard Guenther <rguenther@suse.de>
24208
24209 PR tree-optimization/43679
24210 * tree-ssa-pre.c (eliminate): Only propagate copies.
24211
24212 2010-04-08 Jakub Jelinek <jakub@redhat.com>
24213
24214 PR bootstrap/43681
24215 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
24216 set but not used variable warning.
24217
24218 2010-04-08 Wei Guozhi <carrot@google.com>
24219
24220 PR target/41653
24221 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
24222 (arm_size_rtx_costs): Call the new function when optimized for size.
24223
24224 2010-04-08 Jakub Jelinek <jakub@redhat.com>
24225
24226 PR debug/43670
24227 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
24228 op0 is not a MEM, just return NULL instead of assertion
24229 failure.
24230 (discover_nonconstant_array_refs): Don't walk debug stmts.
24231
24232 2010-04-08 Doug Kwan <dougkwan@google.com>
24233
24234 * configure.ac: Recognize gold and do not use its version number
24235 to test ld features.
24236 * configure: Regenerate.
24237
24238 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
24239
24240 PR middle-end/40815
24241 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
24242 (negate_value): Move code to push elements to broken_up_substracts ...
24243 (eliminate_plus_minus_pair): ... here. Push operands that have no
24244 negative pair to plus_negates.
24245 (repropagate_negates, init_reassoc, fini_reassoc): Update.
24246
24247 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24248
24249 * doc/install.texi (Configuration): Move description of
24250 --enable-lto, --with-libelf*, --enable-gold from Java section to
24251 general section.
24252
24253 * doc/generic.texi (Working with declarations)
24254 (Function Properties, C and C++ Trees): Fix typos.
24255 * doc/sourcebuild.texi (Top Level): Likewise.
24256
24257 2010-04-07 Jakub Jelinek <jakub@redhat.com>
24258
24259 PR c/18624
24260 * tree.h (DECL_READ_P): Define.
24261 (struct tree_decl_common): Add decl_read_flag.
24262 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
24263 a set but not used warning.
24264 (merge_decls): Merge DECL_READ_P flag.
24265 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
24266 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
24267 * c-common.c (handle_used_attribute, handle_unused_attribute):
24268 Likewise.
24269 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
24270 New prototypes.
24271 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
24272 New functions.
24273 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
24274 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
24275 c_parser_binary_expression, c_parser_cast_expression,
24276 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
24277 Call default_function_array_read_conversion instead of
24278 default_function_array_conversion where needed.
24279 (c_parser_unary_expression, c_parser_conditional_expression,
24280 c_parser_postfix_expression_after_primary, c_parser_initelt):
24281 Likewise. Call mark_exp_read where needed.
24282 (c_parser_statement_after_labels, c_parser_asm_operands,
24283 c_parser_typeof_specifier, c_parser_sizeof_expression,
24284 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
24285 where needed.
24286 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
24287 New.
24288 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
24289 (warn_unused_but_set_parameter): Default to warn_unused
24290 && extra_warnings.
24291 * doc/invoke.texi: Document -Wunused-but-set-variable and
24292 -Wunused-but-set-parameter.
24293
24294 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
24295 used count variable.
24296 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
24297 when operandN variables aren't used in the body of the expander
24298 or splitter.
24299 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
24300 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
24301 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
24302 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
24303 FOR_EACH_IMM_USE_ON_STMT): Likewise.
24304 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
24305 * tree.c (PROCESS_ARG): Likewise.
24306
24307 2010-04-07 Simon Baldwin <simonb@google.com>
24308
24309 * diagnostic.h (diagnostic_override_option_index): New macro to
24310 set a diagnostic's option_index.
24311 * c-tree.h (c_cpp_error): Add warning reason argument.
24312 * opts.c (_warning_as_error_callback): New.
24313 (register_warning_as_error_callback): Store callback for
24314 warnings enabled via enable_warning_as_error.
24315 (enable_warning_as_error): Call callback, minor code tidy.
24316 * opts.h (register_warning_as_error_callback): Declare.
24317 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
24318 response to -Werror=.
24319 (c_common_init_options): Register warning_as_error_callback in opts.c.
24320 * common.opt: Add -Wno-cpp option.
24321 * c-common.c (struct reason_option_codes_t): Map cpp warning
24322 reason codes to gcc option indexes.
24323 * (c_option_controlling_cpp_error): New function, lookup the gcc
24324 option index for a cpp warning reason code.
24325 * (c_cpp_error): Add warning reason argument, call
24326 c_option_controlling_cpp_error for diagnostic_override_option_index.
24327 * doc/invoke.texi: Document -Wno-cpp.
24328
24329 2010-04-07 Richard Guenther <rguenther@suse.de>
24330
24331 * ipa-reference.c (mark_load): Use get_base_address.
24332 (mark_store): Likewise.
24333
24334 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
24335 inserting GIMPLE_NOPs into the IL.
24336 * tree-ssa-structalias.c (get_constraint_for_component_ref):
24337 Explicitly strip handled components and indirect references.
24338
24339 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
24340 folding address expressions.
24341 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
24342 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
24343 operand_equal_p to compare decls.
24344 (ptr_deref_may_alias_decl_p): Likewise.
24345 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
24346 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
24347 Handle reversed comparison ops.
24348 * tree-sra.c (asm_visit_addr): Use get_base_address.
24349 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
24350 * ipa-reference.c (mark_address): Use get_base_address.
24351
24352 2010-04-07 Richard Guenther <rguenther@suse.de>
24353
24354 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
24355 Propagate constants everywhere.
24356
24357 2010-04-07 Jakub Jelinek <jakub@redhat.com>
24358
24359 PR debug/43516
24360 * tree.c (MAX_INT_CACHED_PREC): Define.
24361 (nonstandard_integer_type_cache): New array.
24362 (build_nonstandard_integer_type): Cache results for precision
24363 <= MAX_INT_CACHED_PREC.
24364
24365 2010-04-07 Richard Guenther <rguenther@suse.de>
24366
24367 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
24368 -fargument-noalias-global, -fargument-noalias-anything): Remove.
24369 * common.opt: Likewise.
24370 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
24371 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
24372 (nonoverlapping_memrefs_p): Likewise.
24373 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
24374 * opts.c (common_handle_option): Handle OPT_fargument_alias,
24375 OPT_fargument_noalias, OPT_fargument_noalias_anything and
24376 OPT_fargument_noalias_global for backward compatibility.
24377
24378 2010-04-07 Richard Guenther <rguenther@suse.de>
24379
24380 PR tree-optimization/43270
24381 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
24382 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
24383 * tree-ssa-pre.c (phi_translate_1): Adjust.
24384 (fully_constant_expression): Split out vn_reference handling to ...
24385 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
24386 Fold reads from constant strings.
24387 (vn_reference_lookup): Handle fully constant references.
24388 (vn_reference_lookup_pieces): Likewise.
24389 * Makefile.in (expmed.o-warn): Add -Wno-error.
24390
24391 2010-04-07 Martin Jambor <mjambor@suse.cz>
24392
24393 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
24394
24395 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
24396
24397 PR driver/41594
24398 * gcc.c: Add -static-libstdc++ to list of recognized options.
24399
24400 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24401
24402 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
24403
24404 2010-04-07 Richard Guenther <rguenther@suse.de>
24405
24406 PR middle-end/42617
24407 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
24408 bases build simple mem attributes to retain points-to information.
24409
24410 2010-04-07 Richard Guenther <rguenther@suse.de>
24411
24412 PR middle-end/42617
24413 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
24414 preserve points-to related information.
24415
24416 2010-04-07 Richard Guenther <rguenther@suse.de>
24417
24418 PR middle-end/42617
24419 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
24420 discard plain indirect references.
24421 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
24422 * tree.c (tree_nop_conversion): Likewise.
24423
24424 2010-04-07 Dodji Seketeli <dodji@redhat.com>
24425
24426 PR debug/43628
24427 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
24428
24429 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
24430
24431 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
24432 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
24433
24434 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
24435
24436 * tree-if-conv.c: Fix indentation and comments.
24437
24438 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
24439
24440 * tree-if-conv.c: Sort static functions in topological order.
24441
24442 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
24443
24444 * tree-if-conv.c: Fix indentation and comments.
24445
24446 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24447
24448 PR middle-end/43519
24449 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
24450 lang_hooks.types.type_for_size instead of
24451 build_nonstandard_integer_type.
24452 When converting an unsigned type to signed, double its precision.
24453 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
24454 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
24455 (graphite_create_new_loop_guard): When ub + 1 wraps around,
24456 use lb <= ub.
24457
24458 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24459
24460 PR middle-end/43519
24461 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
24462 POINTER_PLUS_EXPR for pointer types.
24463
24464 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24465
24466 PR middle-end/43519
24467 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
24468 * graphite-clast-to-gimple.c: Include langhooks.h.
24469 (max_signed_precision_type): New.
24470 (max_precision_type): Takes two types as arguments.
24471 (precision_for_value): New.
24472 (precision_for_interval): New.
24473 (gcc_type_for_interval): New.
24474 (gcc_type_for_value): New.
24475 (gcc_type_for_clast_term): New.
24476 (gcc_type_for_clast_red): New.
24477 (gcc_type_for_clast_bin): New.
24478 (gcc_type_for_clast_expr): Split up into several functions.
24479 (gcc_type_for_clast_eq): Rewritten.
24480 (compute_bounds_for_level): New.
24481 (compute_type_for_level_1): New.
24482 (compute_type_for_level): New.
24483 (gcc_type_for_cloog_iv): Removed.
24484 (gcc_type_for_iv_of_clast_loop): Rewritten.
24485 (graphite_create_new_loop): Compute the lower and upper bound types
24486 with gcc_type_for_clast_expr.
24487 (graphite_create_new_loop_guard): Same.
24488 (find_cloog_iv_in_expr): Removed.
24489 (compute_cloog_iv_types_1): Removed.
24490 (compute_cloog_iv_types): Removed.
24491 (gloog): Do not call compute_cloog_iv_types.
24492 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
24493 GBB_CLOOG_IV_TYPES.
24494 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
24495 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
24496 (GBB_CLOOG_IV_TYPES): Removed.
24497
24498 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24499
24500 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
24501 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
24502 (detect_commutative_reduction): Same.
24503
24504 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24505
24506 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
24507 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
24508 argument.
24509 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
24510 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
24511 (rewrite_commutative_reductions_out_of_ssa): Same.
24512 * passes.c (execute_function_todo): Call verify_ssa for every pass
24513 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
24514 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
24515 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
24516 with an extra argument.
24517 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
24518 verify_ssa only when the extra argument is true.
24519 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
24520 with an extra argument.
24521 (tree_transform_and_unroll_loop): Same.
24522
24523 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
24524
24525 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
24526 for all the passes of the LNO having LOOP_CLOSED_SSA.
24527 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
24528 * tree-loop-distribution.c (pass_loop_distribution): Same.
24529 * tree-pass.h (TODO_verify_loops): Removed.
24530 * tree-ssa-loop.c (pass_tree_loop_init): Same.
24531 (pass_lim): Same.
24532 (pass_tree_unswitch): Same.
24533 (pass_predcom): Same.
24534 (pass_vectorize): Same.
24535 (pass_linear_transform): Same.
24536 (pass_graphite_transforms): Same.
24537 (pass_iv_canon): Same.
24538 (pass_complete_unroll): Same.
24539 (pass_complete_unrolli): Same.
24540 (pass_parallelize_loops): Same.
24541 (pass_loop_prefetch): Same.
24542 (pass_iv_optimize): Same.
24543
24544 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
24545
24546 PR middle-end/32824
24547 * passes.c (init_optimization_passes): Move pass_lim before
24548 pass_copy_prop and pass_dce_loop.
24549
24550 2010-04-06 Jakub Jelinek <jakub@redhat.com>
24551
24552 PR target/43667
24553 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
24554 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
24555 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
24556 MULTI_* defines for 4 argument vpermil2p* builtins.
24557
24558 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
24559
24560 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
24561 * config/i386/i386.c (x86_maybe_negate_const_int): New.
24562 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
24563 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
24564 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
24565 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
24566 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
24567 Use x86_maybe_negate_const_int to output insn mnemonic.
24568 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
24569 check from instruction predicate. Update comments.
24570 * config/i386/sync.md (sync_add<mode>): Use
24571 x86_maybe_negate_const_int to output insn mnemonic.
24572
24573 2010-04-06 Jan Hubicka <jh@suse.cz>
24574
24575 PR tree-optimization/42906
24576 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
24577 IGNORE_SELF argument. Set visited_control_parents for fully
24578 processed BBs.
24579 (find_obviously_necessary_stmts): Update call of
24580 mark_control_dependent_edges_necessary.
24581 (propagate_necessity): Likewise. Handle PHI edges more curefully.
24582
24583 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
24584
24585 * config/i386/i386.md: Remove comment about 'e' and 'E'
24586 operand modifier.
24587
24588 2010-04-06 Richard Guenther <rguenther@suse.de>
24589
24590 PR tree-optimization/43627
24591 * tree-vrp.c (extract_range_from_unary_expr): Widenings
24592 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
24593 not varying.
24594
24595 2010-04-06 Jakub Jelinek <jakub@redhat.com>
24596
24597 * BASE-VER: Change to 4.6.0.
24598
24599 PR target/43638
24600 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
24601 handling.
24602
24603 2010-04-06 Richard Guenther <rguenther@suse.de>
24604
24605 PR middle-end/43661
24606 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
24607
24608 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24609
24610 * doc/invoke.texi (Optimize Options): Document that LTO
24611 won't remove object access purely due to incompatible
24612 declarations.
24613
24614 2010-04-04 Matthias Klose <doko@ubuntu.com>
24615
24616 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
24617 Initialize variable.
24618
24619 2010-04-03 Richard Guenther <rguenther@suse.de>
24620
24621 PR middle-end/42509
24622 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
24623 require a non-NULL MEM_OFFSET.
24624
24625 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
24626
24627 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
24628 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
24629 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
24630 config/alpha/predicates.md, config/arm/arm.md,
24631 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
24632 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
24633 config/darwin9.h, config/darwin.c, config/darwin.h,
24634 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
24635 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
24636 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
24637 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
24638 config/mips/mips.md, config/mn10300/mn10300.c,
24639 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
24640 config/rs6000/aix.h, config/rs6000/dfp.md,
24641 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
24642 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
24643 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
24644 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
24645 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
24646 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
24647 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
24648 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
24649 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
24650 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
24651 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
24652 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
24653 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
24654 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
24655 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
24656 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
24657 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
24658 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
24659 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
24660 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
24661 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
24662 opt-functions.awk, opth-gen.awk, params.def, passes.c,
24663 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
24664 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
24665 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
24666 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
24667 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
24668 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24669 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
24670 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
24671 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
24672 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
24673 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
24674 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
24675 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24676 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24677
24678 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24679
24680 PR other/43620
24681 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24682 * aclocal.m4: Regenerate.
24683
24684 2010-04-02 Richard Guenther <rguenther@suse.de>
24685
24686 PR tree-optimization/43629
24687 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24688 if we have seen a constant value.
24689
24690 2010-04-02 Joseph Myers <joseph@codesourcery.com>
24691
24692 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24693
24694 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
24695
24696 PR target/43469
24697 * arm.c (legitimize_tls_address): Adjust call to
24698 gen_tls_load_dot_plus_four.
24699 (arm_note_pic_base): New function.
24700 (arm_cannot_copy_insn_p): Use it.
24701 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24702 constraint.
24703
24704 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24705
24706 PR bootstrap/43531
24707
24708 Revert:
24709 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24710
24711 * Makefile.in ($(out_object_file)): Depend on
24712 gt-$(basename $(notdir $(out_file))).h.
24713
24714 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
24715
24716 * config.gcc (lm32-*-rtems*): Add t-lm32.
24717
24718 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
24719
24720 * config.gcc: Add lm32-*-rtems*.
24721 * config/lm32/rtems.h: New file.
24722
24723 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
24724
24725 PR target/42609
24726 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24727
24728 2010-04-01 Jakub Jelinek <jakub@redhat.com>
24729
24730 * dwarf2out.c (output_compilation_unit_header): For
24731 -gdwarf-4 use version 4 instead of version 3.
24732 (output_line_info): For version 4 and above emit additional
24733 maximum ops per insn header field.
24734 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24735
24736 * dwarf2out.c (is_c_family, is_java): Remove.
24737 (lower_bound_default): New function.
24738 (add_bound_info, gen_descr_array_type_die): Use it.
24739
24740 2010-04-01 Dodji Seketeli <dodji@redhat.com>
24741
24742 PR debug/43325
24743 * dwarf2out.c (gen_variable_die): Allow debug info for variable
24744 re-declaration when it happens in a function.
24745
24746 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
24747
24748 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24749 (cgraph_remove_function_insertion_hook): Same.
24750 (cgraph_call_function_insertion_hooks): Same.
24751
24752 2010-04-01 Richard Guenther <rguenther@suse.de>
24753
24754 PR middle-end/43614
24755 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24756 and TREE_THIS_VOLATILE.
24757 (copy_ref_info): Likewise.
24758 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24759 * tree.c (build6_stat): Ignore side-effects of all but arg5
24760 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
24761 TARGET_MEM_REF.
24762
24763 2010-04-01 Richard Guenther <rguenther@suse.de>
24764
24765 PR tree-optimization/43607
24766 * ipa-type-escape.c (check_call): Do not access non-existing
24767 arguments.
24768
24769 2010-04-01 Richard Guenther <rguenther@suse.de>
24770
24771 PR middle-end/43602
24772 Revert
24773 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
24774 Jack Howarth <howarth@bromo.med.uc.edu>
24775
24776 * tree-profile.c (tree_init_ic_make_global_vars): Make static
24777 variables TLS.
24778
24779 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24780
24781 * doc/install.texi (Prerequisites): Document libelf usability on
24782 IRIX 5/6 and Solaris 2.
24783 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24784 Update GNU as, GNU ld requirements.
24785 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24786 Document Sun Studio compiler download.
24787 Update and simplify as, ld recommendations.
24788 (Specific, *-*-solaris2.7): Note obsoletion, removal.
24789
24790 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24791
24792 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24793 with_tune_32 to pentium4.
24794
24795 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
24796
24797 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24798
24799 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24800
24801 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24802 obsoletion, removal.
24803 Update IDO URL.
24804 Document GNU as requirement.
24805 Update configure requirements.
24806 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24807 Recomment IRIX 6.5.18+.
24808 Document IDF/IDL requirement.
24809 Document GNU as requirement.
24810 Document GNU ld bootstrap failure.
24811 Remove freeware.sgi.com reference.
24812
24813 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24814
24815 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24816 UNIX V4.0, V5.0 obsoletion, removal.
24817 Remove --with-gc=simple reference.
24818 Update VM requirements during bootstrap.
24819 Remove -oldas bootstrap description.
24820 Update binutils reference.
24821 Remove comparison failure note.
24822
24823 2010-03-31 Richard Guenther <rguenther@suse.de>
24824 Zdenek Dvorak <ook@ucw.cz>
24825 Sebastian Pop <sebastian.pop@amd.com>
24826
24827 PR middle-end/43464
24828 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24829 with multiple arguments.
24830 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24831
24832 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24833
24834 * graphite-dependences.c (print_pddr): Call print_pdr with an
24835 extra argument.
24836 * graphite-poly.c (debug_pdr): Add an extra argument for the
24837 verbosity level.
24838 (print_pdr): Same.
24839 (print_pbb_domain): Same.
24840 (print_pbb): Same.
24841 (print_scop_context): Same.
24842 (print_scop): Same.
24843 (print_cloog): Same.
24844 (debug_pbb_domain): Same.
24845 (debug_pbb): Same.
24846 (print_pdrs): Same.
24847 (debug_pdrs): Same.
24848 (debug_scop_context): Same.
24849 (debug_scop): Same.
24850 (debug_cloog): Same.
24851 (print_scop_params): Same.
24852 (debug_scop_params): Same.
24853 (print_iteration_domain): Same.
24854 (print_iteration_domains): Same.
24855 (debug_iteration_domain): Same.
24856 (debug_iteration_domains): Same.
24857 (print_scattering_function): Same.
24858 (print_scattering_functions): Same.
24859 (debug_scattering_function): Same.
24860 (debug_scattering_functions): Same.
24861 * graphite-poly.h (debug_pdr): Update declaration.
24862 (print_pdr): Same.
24863 (print_pbb_domain): Same.
24864 (print_pbb): Same.
24865 (print_scop_context): Same.
24866 (print_scop): Same.
24867 (print_cloog): Same.
24868 (debug_pbb_domain): Same.
24869 (debug_pbb): Same.
24870 (print_pdrs): Same.
24871 (debug_pdrs): Same.
24872 (debug_scop_context): Same.
24873 (debug_scop): Same.
24874 (debug_cloog): Same.
24875 (print_scop_params): Same.
24876 (debug_scop_params): Same.
24877 (print_iteration_domain): Same.
24878 (print_iteration_domains): Same.
24879 (debug_iteration_domain): Same.
24880 (debug_iteration_domains): Same.
24881 (print_scattering_function): Same.
24882 (print_scattering_functions): Same.
24883 (debug_scattering_function): Same.
24884 (debug_scattering_functions): Same.
24885
24886 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24887
24888 * graphite-poly.c (print_scattering_function_1): New.
24889 (print_scattering_function): Call it.
24890 (print_scop_params): Remove spaces at the end of lines.
24891 (print_cloog): New.
24892 (debug_cloog): New.
24893 * graphite-poly.h (print_cloog): Declared.
24894 (debug_cloog): Declared.
24895
24896 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24897
24898 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
24899 in loop->header.
24900 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
24901 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
24902 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
24903 to switch between adding the IV bump in loop->latch or in loop->header.
24904
24905 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
24906
24907 * graphite-poly.c (print_scattering_function): Pretty print following
24908 the scoplib format.
24909 (print_pdr): Same.
24910 (print_pbb_domain): Same.
24911 (dump_gbb_cases): Same.
24912 (dump_gbb_conditions): Same.
24913 (print_pdrs): Same.
24914 (print_pbb): Same.
24915 (print_scop_params): Same.
24916 (print_scop_context): Same.
24917 (print_scop): Same.
24918 (print_pbb_body): New.
24919 (lst_indent_to): New.
24920 (print_lst): Start new lines with a #.
24921 * graphite-poly.h (pbb_bb): New.
24922 (pbb_index): Use pbb_bb.
24923 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
24924 disjuncts.
24925 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
24926
24927 2010-03-31 Jakub Jelinek <jakub@redhat.com>
24928
24929 * dwarf2out.c (size_of_die): For -gdwarf-4 use
24930 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
24931 and 0 instead of 1 for dw_val_class_flag.
24932 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
24933 dw_val_class_range_list, dw_val_class_loc_list,
24934 dw_val_class_lineptr and dw_val_class_macptr, use
24935 DW_FORM_flag_present for dw_val_class_flag and
24936 DW_FORM_exprloc for dw_val_class_loc.
24937 (output_die): For -gdwarf-4 print dw_val_class_loc
24938 size as uleb128 instead of 1 or 2 bytes and don't print
24939 anything for dw_val_class_flag.
24940
24941 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
24942 instead of cselib_lookup following by tweaking locs->setting_insn.
24943
24944 PR bootstrap/43596
24945 * cselib.c (cselib_process_insn): Clear cselib_current_insn
24946 even before returning from label, setjmp call or volatile asm
24947 handling.
24948
24949 2010-03-31 Richard Guenther <rguenther@suse.de>
24950
24951 PR middle-end/43600
24952 * cgraphunit.c (cgraph_output_in_order): Do not allocate
24953 temporary data on stack.
24954
24955 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24956
24957 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
24958 (PUSHSECTION_ASM_OP): Remove.
24959 (POPSECTION_ASM_OP): Remove.
24960 (PUSHSECTION_FORMAT): Remove.
24961 * config/sol2.h (PUSHSECTION_FORMAT): Define.
24962 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
24963 * config/sol2.c (solaris_output_init_fini): Use it.
24964
24965 2010-03-31 Jie Zhang <jie@codesourcery.com>
24966
24967 PR 43574
24968 * opt-functions.awk (var_type_struct): Use signed char type
24969 for simple variables.
24970
24971 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24972
24973 * config/sol2.c: Include output.h.
24974 (solaris_assemble_visibility): New function.
24975 * config/t-sol2 (sol2.o): Add output.h dependency.
24976 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
24977 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
24978 Redefine.
24979
24980 2010-03-31 Jakub Jelinek <jakub@redhat.com>
24981
24982 PR target/43580
24983 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
24984 V2SImode or XFmode on PRE_DEC.
24985
24986 PR debug/43557
24987 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
24988 BLKmode.
24989
24990 2010-03-31 Jie Zhang <jie@codesourcery.com>
24991
24992 PR 43562
24993 * reload.h (caller_save_initialized_p): Declare.
24994 * toplev.c (backend_init_target): Don't call
24995 init_caller_save but set caller_save_initialized_p to false.
24996 * caller-save.c (caller_save_initialized_p): Define.
24997 (init_caller_save): Check caller_save_initialized_p.
24998 * ira.c (ira): Call init_caller_save if flag_caller_saves.
24999
25000 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25001
25002 PR target/39048
25003 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
25004 and soft-fp/t-softfp to tmake_file.
25005 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
25006 (LIBGCC2_TF_CEXT): Define.
25007 (TF_SIZE): Define.
25008
25009 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
25010
25011 PR debug/42977
25012 * cselib.c (n_useless_values): Document handling of debug locs.
25013 (n_useless_debug_values, n_debug_values): New variables.
25014 (new_elt_loc_list): Don't add to debug values, keep count.
25015 (promote_debug_loc): New.
25016 (cselib_reset_table): Zero new variables.
25017 (entry_and_rtx_equal_p): Promote debug locs.
25018 (discard_useless_locs): Increment n_useless_debug_values for
25019 debug values.
25020 (remove_useless_values): Adjust n_useless_values and n_debug_values
25021 with n_useless_debug_values.
25022 (add_mem_for_addr): Promote debug locs.
25023 (cselib_lookup_mem): Likewise.
25024 (cselib_lookup_addr): Renamed to...
25025 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
25026 (cselib_log_lookup): ... this. Turn into...
25027 (cselib_lookup_addr): ... new wrapper.
25028 (cselib_lookup_from_insn): New.
25029 (cselib_invalidate_regno): Increment n_useless_debug_values for
25030 debug values.
25031 (cselib_invalidate_mem): Likewise.
25032 (cselib_process_insn): Take n_deleted and n_debug_values into
25033 account to guard remove_useless_value call.
25034 (cselib_finish): Zero n_useless_debug_values.
25035 * cselib.h (cselib_lookup_from_insn): Declare.
25036 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
25037 (sched_analyze_2): Likewise.
25038
25039 2010-03-30 Jakub Jelinek <jakub@redhat.com>
25040
25041 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
25042 functions.
25043 (adjust_mems): Replace narrowing SUBREG of expression containing
25044 just PLUS, MINUS, MULT and ASHIFT of registers and constants
25045 with operations in the narrower mode.
25046
25047 PR debug/43593
25048 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
25049 regs_invalidated_by_call instead all call_used_reg_set registers.
25050
25051 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
25052
25053 PR middle-end/43430
25054 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
25055 pointer comparisons with types_compatible_p.
25056 * tree-vect-stmts.c (vectorizable_call): Same.
25057 (vectorizable_condition): Same.
25058
25059 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25060
25061 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
25062 stack check if the mask would be zero.
25063
25064 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
25065 Jack Howarth <howarth@bromo.med.uc.edu>
25066
25067 * tree-profile.c (tree_init_ic_make_global_vars): Make static
25068 variables TLS.
25069
25070 2010-03-30 Joseph Myers <joseph@codesourcery.com>
25071
25072 PR other/25232
25073 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
25074 and __unordtf2.
25075 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
25076 Include ___unordxf2 and ___unordtf2.
25077 * config/i386/libgcc-glibc.ver: Do not define inheritance from
25078 GCC_4.4.0 here.
25079
25080 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
25081
25082 * config/lm32/t-lm32: New file.
25083 * config.gcc: Use the above file when targetting lm32.
25084
25085 2010-03-28 Duncan Sands <baldrick@free.fr>
25086
25087 * Makefile.in (PLUGIN_HEADERS): Add except.h.
25088
25089 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
25090
25091 PR middle-end/43431
25092 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
25093 Improve vectorization cost model diagnostic.
25094
25095 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
25096
25097 PR middle-end/43436
25098 * tree-vect-data-refs.c (vect_analyze_data_refs): When
25099 compute_data_dependences_for_loop returns false, early exit
25100 and output an extra diagnostic for the failed data reference
25101 analysis.
25102
25103 2010-03-29 Richard Guenther <rguenther@suse.de>
25104
25105 PR tree-optimization/43560
25106 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
25107 (can_sm_ref_p): Treat stores to readonly locations as trapping.
25108
25109 2010-03-29 Jie Zhang <jie@codesourcery.com>
25110
25111 PR 43564
25112 * toplev.c (process_options): Set optimization_default_node
25113 and optimization_current_node.
25114 * opts.c (decode_options): Don't set optimization_default_node
25115 and optimization_current_node.
25116
25117 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
25118
25119 * config/rtems.h: Abandon -qrtems_debug.
25120
25121 2010-03-28 Jan Hubicka <jh@suse.cz>
25122
25123 PR tree-optimization/43505
25124 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
25125 map should not be copied.
25126
25127 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25128
25129 PR middle-end/41674
25130 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
25131 cdtors, set DECL_PRESERVE_P.
25132 * ipa.c (cgraph_externally_visible_p): Return true if declaration
25133 should be preseved.
25134
25135 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
25136
25137 PR tree-optimization/43528
25138 * stor-layout.c (place_field): Check that constant fits into
25139 unsigned HWI when skipping calculation of MS bitfield layout.
25140
25141 2010-03-27 Jan Hubicka <jh@suse.cz>
25142
25143 PR middle-end/43391
25144 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
25145 notice_global_symbol work.
25146
25147 2010-03-27 Jakub Jelinek <jakub@redhat.com>
25148
25149 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
25150 instead of dwarf2out_decl.
25151 (struct var_loc_node): Remove section_label field.
25152 (dwarf2out_function_decl): New function.
25153 (dwarf2out_var_location): Don't set section_label field.
25154 (dwarf2out_begin_function): Don't empty decl_loc_table here.
25155
25156 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
25157
25158 PR tree-optimization/43544
25159 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
25160 First argument for builtin vectorized function hook is now a
25161 tree to be able to distinguish between machine specific and
25162 standard builtins.
25163 * targhooks.c (default_builtin_vectorized_function): Ditto.
25164 * targhooks.h (default_builtin_vectorized_function): Ditto.
25165 * target.h (struct gcc_target): Ditto.
25166 * tree-vect-stmts.c (vectorizable_function): Ditto.
25167 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
25168 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
25169 Ditto.
25170
25171 2010-03-26 Joseph Myers <joseph@codesourcery.com>
25172
25173 PR c/43381
25174 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
25175 nested binding iff it is a FUNCTION_DECL.
25176 (store_parm_decls_newstyle): Pass nested=true to bind for
25177 FUNCTION_DECLs amongst parameters.
25178
25179 2010-03-26 Jakub Jelinek <jakub@redhat.com>
25180
25181 * var-tracking.c (vt_expand_loc_callback): Don't run
25182 cselib_expand_value_rtx_cb in dummy mode if
25183 cselib_dummy_expand_value_rtx_cb returned false.
25184
25185 * var-tracking.c (emit_note_insn_var_location): For one part
25186 notes with offset 0, don't add EXPR_LIST around the location.
25187 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
25188 add_location_or_const_value_attribute): Adjust for that change.
25189
25190 PR debug/43540
25191 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
25192 into first operand and location into second.
25193 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
25194 dw_cfi_oprnd_loc for DW_CFA_expression.
25195 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
25196 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
25197 assume first argument is regnum and second argument is location.
25198
25199 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
25200
25201 PR target/42113
25202 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
25203 of scratch register to DImode. Split to DImode comparison operator.
25204 Use SImode subreg of scratch register in the multiplication.
25205 (*cmp_sadd_sidi): Ditto.
25206 (*cmp_ssub_si): Ditto.
25207 (*cmp_ssub_sidi): Ditto.
25208
25209 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
25210
25211 PR target/43524
25212 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
25213 Remove invalid assert and wrong comment.
25214
25215 2010-03-26 Jakub Jelinek <jakub@redhat.com>
25216
25217 PR debug/43516
25218 * flags.h (final_insns_dump_p): New extern.
25219 * final.c (final_insns_dump_p): New variable.
25220 (rest_of_clean_state): Set it before -fdump-final-insns=
25221 dumping, clear afterwards.
25222 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
25223 MEM_ALIAS_SET on MEMs.
25224
25225 2010-03-26 David S. Miller <davem@davemloft.net>
25226
25227 * configure.ac: Fix sparc GOTDATA_OP bug check.
25228 * configure: Rebuild.
25229
25230 2010-03-26 Alan Modra <amodra@gmail.com>
25231
25232 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
25233
25234 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25235
25236 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
25237 TLS_SECTION_ASM_FLAG.
25238
25239 2010-03-25 Jakub Jelinek <jakub@redhat.com>
25240
25241 PR bootstrap/43511
25242 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
25243 Clear first_function_block_is_cold.
25244
25245 PR c/43385
25246 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
25247 argument if the argument is truth_value_p.
25248
25249 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25250
25251 * config/rs6000/constraints.md: Update copyright year for my changes.
25252
25253 PR target/43484
25254 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
25255 used in reg+reg addressing, swap registers.
25256
25257 2010-03-24 Jakub Jelinek <jakub@redhat.com>
25258
25259 PR debug/43293
25260 * target.h (struct gcc_target): Add code_end hook.
25261 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
25262 if not yet defined.
25263 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
25264 * toplev.c (compile_file): Call targetm.asm_out.code_end
25265 hook before unwind info/debug info output.
25266 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
25267 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
25268 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25269 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
25270 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25271 * config/i386/i386.c (ix86_file_end): Renamed to...
25272 (ix86_code_end): ... this. Make static. Don't call
25273 file_end_indicate_exec_stack. Emit unwind info using
25274 final_start_function/final_end_function.
25275 (darwin_x86_file_end): Remove.
25276 (TARGET_ASM_CODE_END): Define.
25277 * config/i386/i386.h (TARGET_ASM_FILE_END,
25278 NEED_INDICATE_EXEC_STACK): Don't define.
25279 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
25280 (TARGET_ASM_FILE_END): Define to darwin_file_end.
25281 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
25282 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
25283
25284 PR target/43498
25285 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
25286 at the beginning and final_end_function at the end.
25287 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25288
25289 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25290
25291 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
25292 and Sun as TLS syntax.
25293 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
25294 * configure: Regenerate.
25295 * config.in: Regenerate.
25296 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
25297 (default_elf_asm_named_section): Use it.
25298 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
25299 (i386_output_dwarf_dtprel): Likewise.
25300 (output_addr_const_extra): Likewise.
25301 (output_pic_addr_const): Lowercase @GOTTPOFF.
25302 (output_addr_const_extra): Likewise.
25303 (output_pic_addr_const): Lowercase @GOTNTPOFF.
25304 (output_addr_const_extra): Likewise.
25305 (output_pic_addr_const): Lowercase @INDNTPOFF.
25306 (output_addr_const_extra): Likewise.
25307 (output_pic_addr_const): Lowercase @NTPOFF.
25308 (output_addr_const_extra): Likewise.
25309 (output_pic_addr_const): Lowercase @TPOFF.
25310 (output_addr_const_extra): Likewise.
25311 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
25312 (*tls_global_dynamic_64): Likewise.
25313 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
25314 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
25315
25316 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
25317 (ASM_OUTPUT_TLS_COMMON): Use it.
25318 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
25319
25320 PR target/38118
25321 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
25322 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
25323 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
25324 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
25325 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25326 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
25327
25328 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25329
25330 * config/i386/i386.c (override_options): Don't accept
25331 -mtls-dialect=sun any longer.
25332 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
25333 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
25334 (*tls_local_dynamic_base_32_sun): Likewise.
25335 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25336
25337 2010-03-24 Jakub Jelinek <jakub@redhat.com>
25338
25339 PR debug/43508
25340 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25341 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
25342
25343 PR debug/43479
25344 * ira.c (adjust_cleared_regs): New function.
25345 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
25346
25347 PR debug/19192
25348 PR debug/43479
25349 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
25350 from gimple_block.
25351 * expr.c (expand_expr_real): Restore previous
25352 curr_insn_source_location and curr_insn_block after
25353 expand_expr_real_1 call.
25354 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
25355 instead of expand_expr_real_1.
25356
25357 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
25358
25359 PR rtl-optimization/43413
25360 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
25361 hard regs too.
25362
25363 2010-03-22 James E. Wilson <wilson@codesourcery.com>
25364
25365 PR target/43348
25366 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
25367 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
25368
25369 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
25370
25371 * config/i386/i386.c (ix86_target_string): Add -mfma.
25372 Fix a typo in comment.
25373
25374 2010-03-22 Mike Stump <mikestump@comcast.net>
25375
25376 PR target/23071
25377 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
25378 Don't overly align based upon packed packed fields.
25379
25380 2010-03-22 Jason Merrill <jason@redhat.com>
25381
25382 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
25383 Use () rather than [], and move before the element type.
25384
25385 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25386
25387 * doc/configfiles.texi (Configuration Files): Removed
25388 fixinc/Makefile*, intl/Makefile.*.
25389 * doc/makefile.texi: Fixed markup. Abstract from version
25390 control system used.
25391 (Makefile): Removed obsolete java/parse.y example.
25392 * doc/sourcebuild.texi: Likewise.
25393 (Top Level): Added config, gnattools, libdecnumber, libgcc,
25394 libgomp, libssp. Removed fastjar.
25395 (Miscellaneous Docs): Clarify location.
25396 Added COPYING3, COPYING3.LIB.
25397 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
25398
25399 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25400
25401 PR target/38085
25402 * config/i386/i386.c (x86_function_profiler)
25403 [!NO_PROFILE_COUNTERS]: Fix typo.
25404 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
25405 instead of callq.
25406
25407 2010-03-22 Janis Johnson <janis187@us.ibm.com>
25408 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25409
25410 * doc/sourcebuild.texi (Test Directives): Split into six
25411 subsections, with most of the current text in new subsections
25412 Directives, Selectors, and Final Actions.
25413 (Directives): Split list of test directives into multiple
25414 subsubsections.
25415 (Selectors): Describe use and syntax of selectors.
25416 (Effective-Target Keywords): Describe all existing keywords.
25417 (Add Options): Describe features for dg-add-options.
25418 (Require Support): Describe variants of dg-require-support.
25419 (Final Actions): Describe commands to use in dg-final.
25420
25421 2010-03-22 Michael Matz <matz@suse.de>
25422
25423 PR middle-end/43475
25424 * recog.c (validate_replace_rtx_group): Replace also in
25425 REG_EQUAL and REG_EQUIV notes.
25426
25427 2010-03-22 Richard Guenther <rguenther@suse.de>
25428
25429 PR tree-optimization/43390
25430 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
25431 sure vector extracts are type correct.
25432
25433 2010-03-22 Richard Guenther <rguenther@suse.de>
25434
25435 PR middle-end/40106
25436 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
25437 x * sqrt (x) even when optimizing for size if the target
25438 has native support for sqrt.
25439
25440 2010-03-22 Jakub Jelinek <jakub@redhat.com>
25441
25442 * varasm.c (make_decl_rtl_for_debug): Also clear
25443 flag_mudflap for the duration of make_decl_rtl call.
25444
25445 PR debug/43443
25446 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
25447 locs from preserved VALUEs.
25448
25449 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25450
25451 PR middle-end/42718
25452 * pa.md (movmemsi): Set align to one if zero.
25453 (movmemdi): Likewise.
25454
25455 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
25456
25457 PR target/42321
25458 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
25459 with their corresponding prologue pushes.
25460
25461 2010-03-20 Andrew Pinski <pinskia@gmail.com>
25462
25463 PR target/43156
25464 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
25465 at the begining or end.
25466 (spu_expand_epilogue): Likewise.
25467
25468 2010-03-20 Richard Guenther <rguenther@suse.de>
25469
25470 PR rtl-optimization/43438
25471 * combine.c (make_extraction): Properly zero-/sign-extend an
25472 extraction of the low part of a CONST_INT. Also handle
25473 CONST_DOUBLE.
25474
25475 2010-03-19 Mike Stump <mikestump@comcast.net>
25476
25477 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
25478 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
25479 (override_options): Use SUBTARGET32_DEFAULT_CPU.
25480
25481 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
25482
25483 PR c/43211
25484 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
25485 an error.
25486
25487 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
25488
25489 PR rtl-optimization/42258
25490 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
25491 use that may match DEF.
25492
25493 PR target/40697
25494 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
25495 the cost of loading the constant rather than assuming
25496 COSTS_N_INSNS (1).
25497 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
25498 outer code is AND, do the same tests as the andsi3 expander and
25499 return COSTS_N_INSNS (1) if and is cheap.
25500
25501 * optabs.c (avoid_expensive_constant): Fix formatting.
25502
25503 2010-03-19 Michael Matz <matz@suse.de>
25504
25505 PR c++/43116
25506 * attribs.c (decl_attributes): When rebuilding a function pointer
25507 type use the same qualifiers as the original pointer type.
25508
25509 2010-03-19 Martin Jambor <mjambor@suse.cz>
25510
25511 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
25512 and is_gimple_ip_invariant_address.
25513
25514 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25515
25516 Revert
25517 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25518
25519 * config/arm/arm.c (arm_override_options): Turn off
25520 flag_dwarf2_cfi_asm for AAPCS variants.
25521
25522 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25523
25524 PR target/43399
25525 * config/arm/arm.c (emit_multi_reg_push): Update comments.
25526 Use PRE_MODIFY instead of PRE_DEC.
25527 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
25528 (vfp_emit_fstmd): Likewise.
25529
25530 2010-03-19 Michael Matz <matz@suse.de>
25531
25532 PR target/43305
25533 * builtins.c (expand_builtin_interclass_mathfn,
25534 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
25535 if that fails.
25536
25537 2010-03-19 Richard Guenther <rguenther@suse.de>
25538
25539 PR tree-optimization/43415
25540 * tree-ssa-pre.c (phi_translate): Split out worker to ...
25541 (phi_translate_1): ... this.
25542 (phi_translate): Move all caching here. Cache all NARY
25543 and REFERENCE translations.
25544
25545 2010-03-19 David S. Miller <davem@davemloft.net>
25546
25547 With help from Eric Botcazou.
25548 * config/sparc/sparc.c: Include dwarf2out.h.
25549 (emit_pic_helper): Delete.
25550 (pic_helper_symbol_name): Delete.
25551 (pic_helper_emitted_p): Delete.
25552 (pic_helper_needed): New.
25553 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
25554 (get_pc_thunk_name): New.
25555 (load_pic_register): Remove 'delay_pic_helper' arg. Use
25556 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
25557 Set pic_helper_needed to true. Don't call emit_pic_helper.
25558 (sparc_expand_prologue): Update load_pic_register call.
25559 (sparc_output_mi_thunk): Likewise.
25560 (sparc_file_end): Emit a hidden comdat symbol for the PIC
25561 thunk if possible. Output CFI information as needed.
25562
25563 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
25564 Jack Howarth <howarth@bromo.med.uc.edu>
25565
25566 PR target/36399
25567 * config/i386/i386.h: Fix ABI on darwin x86-32.
25568
25569 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
25570
25571 * tree.h: Declare make_decl_rtl_for_debug.
25572 * varasm.c (make_decl_rtl_for_debug): New.
25573 * dwarf2out.c (rtl_for_decl_location): Call it.
25574 * cfgexpand.c (expand_debug_expr): Call it.
25575
25576 2010-03-18 Jakub Jelinek <jakub@redhat.com>
25577
25578 PR bootstrap/43399
25579 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
25580 mem_mode.
25581
25582 PR bootstrap/43403
25583 * var-tracking.c (vt_init_cfa_base): Do nothing if
25584 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
25585
25586 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
25587
25588 PR debug/42873
25589 * var-tracking.c (canonicalize_vars_star): New.
25590 (dataflow_post_merge_adjust): Use it.
25591
25592 2010-03-18 Jakub Jelinek <jakub@redhat.com>
25593
25594 PR debug/43058
25595 * var-tracking.c (non_suitable_const): New function.
25596 (add_uses): For DEBUG_INSNs with constants, don't record any
25597 value, instead just the constant value itself.
25598 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
25599 is not VAR_LOC_UNKNOWN_P, set var to the constant.
25600 (emit_notes_in_bb): Likewise.
25601 (emit_note_insn_var_location): For onepart variables if
25602 cur_loc is a VOIDmode constant, use DECL_MODE.
25603
25604 2010-03-18 Martin Jambor <mjambor@suse.cz>
25605
25606 PR middle-end/42450
25607 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
25608 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
25609 all non-clones. Moved call redirection...
25610 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
25611 (cgraph_materialize_all_clones): Dispose of all
25612 combined_args_to_skip bitmaps.
25613 (verify_cgraph_node): Do not check for edges pointing to wrong
25614 nodes in inline clones.
25615 * tree-inline.c (copy_bb): Call
25616 cgraph_redirect_edge_call_stmt_to_callee.
25617 * ipa.c (cgraph_remove_unreachable_nodes): Call
25618 cgraph_node_remove_callees even when there are used clones.
25619
25620 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
25621
25622 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
25623
25624 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
25625
25626 PR target/43383
25627 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
25628 for 32bit.
25629
25630 2010-03-18 Michael Matz <matz@suse.de>
25631
25632 PR middle-end/43419
25633 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
25634 into sqrt(x) if we need to preserve signed zeros.
25635
25636 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
25637 Eric Botcazou <ebotcazou@adacore.com>
25638
25639 PR rtl-optimization/43360
25640 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
25641 note if we don't know its invariant status.
25642
25643 2010-03-18 Michael Matz <matz@suse.de>
25644
25645 PR tree-optimization/43402
25646 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
25647 PHI chains of ssa names registered for update.
25648
25649 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
25650
25651 PR target/42427
25652 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
25653 non-offsettable and pre_modify update addressing.
25654 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
25655 and "2" alternatives "#".
25656 (*movdd_softfloat32): Make all alternatives "#";
25657 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
25658 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
25659 (*movdf_softfloat32): Make all alternatives "#";
25660 (movdi): Use the new DIFD mode iterator to create a common splitter
25661 for movdi, movdf and movdd patterns.
25662
25663 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
25664
25665 * common.opt (dumpdir): Remove redundant tab.
25666
25667 2010-03-17 Martin Jambor <mjambor@suse.cz>
25668
25669 PR tree-optimization/43347
25670 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
25671 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
25672
25673 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
25674
25675 PR rtl-optimization/42216
25676 * regrename.c (create_new_chain): New function, broken out from...
25677 (scan_rtx_reg): ... here. Call it. Handle the case where we are
25678 appending a use to an empty chain.
25679 (build_def_use): Remove previous changes that convert OP_INOUT to
25680 OP_OUT operands; instead detect the case where an OP_INOUT operand
25681 uses a previously untracked register and create an empty chain for it.
25682
25683 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25684
25685 * doc/extend.texi (Function Attributes): Rewrite unfinished
25686 sentence in ms_abi documentation.
25687
25688 2010-03-17 Alan Modra <amodra@gmail.com>
25689
25690 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25691 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25692 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25693 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25694
25695 2010-03-16 Richard Henderson <rth@redhat.com>
25696
25697 PR middle-end/43365
25698 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25699 (lower_try_finally): Save and restore eh_seq around the expansion
25700 of the try-finally.
25701
25702 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
25703
25704 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25705 statements before splitting block.
25706
25707 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25708
25709 * doc/sourcebuild.texi (Testsuites): Fix markup.
25710 Use pathnames relative to gcc/testsuite.
25711 (Test Directives): Move description of how timeout is determined.
25712 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25713 (C Tests): Correct gcc.misc-tests directory.
25714 Framework tests now live in gcc.test-framework.
25715
25716 2010-03-16 Richard Guenther <rguenther@suse.de>
25717
25718 PR middle-end/43379
25719 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25720 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25721
25722 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
25723 Alexandre Oliva <aoliva@redhat.com>
25724
25725 PR tree-optimization/42917
25726 * lambda-code.c (remove_iv): Skip debug statements.
25727 (lambda_loopnest_to_gcc_loopnest): Likewise.
25728 (not_interesting_stmt): Debug statements are not interesting.
25729
25730 2010-03-16 Jakub Jelinek <jakub@redhat.com>
25731
25732 PR debug/43051
25733 PR debug/43092
25734 * cselib.c (cselib_preserve_constants,
25735 cfa_base_preserved_val): New static variables.
25736 (preserve_only_constants): New function.
25737 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25738 clear its REG_VALUES. If cselib_preserve_constants, don't
25739 empty the whole hash table, but preserve there VALUEs with constants,
25740 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25741 (cselib_preserve_cfa_base_value): New function.
25742 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25743 (cselib_init): Change argument to int bitfield. Set
25744 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25745 is in it.
25746 (cselib_finish): Clear cselib_preserve_constants and
25747 cfa_base_preserved_val.
25748 * cselib.h (enum cselib_record_what): New enum.
25749 (cselib_init): Change argument to int.
25750 (cselib_preserve_cfa_base_value): New prototype.
25751 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25752 * dse.c (dse_step1): Likewise.
25753 * cfgcleanup.c (thread_jump): Likewise.
25754 * sched-deps.c (sched_analyze): Likewise.
25755 * gcse.c (local_cprop_pass): Likewise.
25756 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25757 If FN is non-NULL, call the callback always and whenever it returns
25758 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
25759 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25760 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25761 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25762 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25763 * var-tracking.c: Include recog.h.
25764 (bb_stack_adjust_offset): Remove.
25765 (vt_stack_adjustments): Don't call it, instead just gather the
25766 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25767 (adjust_stack_reference): Remove.
25768 (compute_cfa_pointer): New function.
25769 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25770 (struct adjust_mem_data): New type.
25771 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25772 functions.
25773 (get_address_mode): New function.
25774 (replace_expr_with_values): Use it.
25775 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25776 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
25777 (adjust_sets): Remove.
25778 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25779 Use get_address_mode.
25780 (get_adjusted_src): Remove.
25781 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
25782 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
25783 (add_with_sets): Don't call adjust_sets.
25784 (fp_setter, vt_init_cfa_base): New functions.
25785 (vt_initialize): Change return type to bool. Move most of pool etc.
25786 initialization to the beginning of the function from end. Pass
25787 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25788 If !frame_pointer_needed, call vt_stack_adjustment before mos
25789 vector is filled, call vt_init_cfa_base if argp/framep has been
25790 eliminated to sp. If frame_pointer_needed and argp/framep has
25791 been eliminated to hard frame pointer, set
25792 hard_frame_pointer_adjustment and call vt_init_cfa_base after
25793 encountering fp setter in the prologue. For MO_ADJUST, call
25794 log_op_type before pusing the op into mos vector, not afterwards.
25795 Call adjust_insn before cselib_process_insn/add_with_sets,
25796 call cancel_changes (0) afterwards.
25797 (variable_tracking_main_1): Adjust for vt_initialize calling
25798 vt_stack_adjustments and returning whether it succeeded or not.
25799
25800 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
25801
25802 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25803 debug statements.
25804
25805 2010-03-15 Jakub Jelinek <jakub@redhat.com>
25806
25807 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25808 has been set.
25809 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25810 drap_reg has not been set.
25811
25812 2010-03-15 Michael Matz <matz@suse.de>
25813
25814 PR middle-end/43300
25815 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25816 use it to expand block copies.
25817 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25818 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25819 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25820
25821 2010-03-15 Richard Guenther <rguenther@suse.de>
25822
25823 PR tree-optimization/43367
25824 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25825 elimination check.
25826
25827 2010-03-15 Richard Guenther <rguenther@suse.de>
25828
25829 PR tree-optimization/43317
25830 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25831
25832 2010-03-15 Martin Jambor <mjambor@suse.cz>
25833
25834 PR tree-optimization/43141
25835 * tree-sra.c (create_abstract_origin): New function.
25836 (modify_function): Call create_abstract_origin.
25837
25838 2010-03-15 Chris Demetriou <cgd@google.com>
25839
25840 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
25841 wasn't copied.
25842
25843 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25844
25845 PR middle-end/43354
25846 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
25847 call insert_out_of_ssa_copy for default definitions.
25848
25849 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25850
25851 * graphite-clast-to-gimple.c (my_long_long): Defined.
25852 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
25853 * graphite-sese-to-poly.c (my_long_long): Defined.
25854 (scop_ivs_can_be_represented): Use it.
25855
25856 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25857
25858 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
25859 graphite-max-bbs-per-function, and loop-block-tile-size.
25860 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
25861 with "maximum".
25862 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
25863
25864 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25865
25866 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
25867 forward declaration.
25868 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
25869 (add_upper_bounds_from_estimated_nit): New.
25870 (build_loop_iteration_domains): Use it.
25871
25872 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25873
25874 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
25875
25876 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25877
25878 PR middle-end/43306
25879 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
25880 should be an INTEGER_CST. Also handle CASE_CONVERT.
25881
25882 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25883
25884 * graphite.c (graphite_initialize): To bound the number of bbs per
25885 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
25886 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
25887 * doc/invoke.texi: Document it.
25888
25889 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25890
25891 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
25892 * graphite-sese-to-poly.h (build_poly_scop): Same.
25893
25894 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
25895
25896 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
25897 the number of parameters in the scop. Use as an upper bound
25898 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
25899 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
25900 * doc/invoke.texi: Document it.
25901
25902 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
25903
25904 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
25905 * doc/c-tree.texi: Remove.
25906 * doc/generic.texi: Merge c-tree.texi here.
25907 * doc/gccint.texi (Trees): Remove menu entry.
25908 (c-tree.texi): Remove @include.
25909 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
25910 * doc/languages.texi (Reading RTL): Ditto.
25911
25912 2010-03-12 Steve Ellcey <sje@cup.hp.com>
25913
25914 PR target/42869
25915 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
25916
25917 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25918
25919 PR middle-end/42431
25920 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
25921 code added to work around reload clobbering CONST insns.
25922
25923 2010-03-12 Jakub Jelinek <jakub@redhat.com>
25924
25925 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
25926 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
25927 (cselib_preserve_only_values): Remove retain argument, don't
25928 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
25929 * cselib.h (cselib_preserve_only_values): Remove retain argument.
25930 * var-tracking.c (micro_operation): Move insn field before union.
25931 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
25932 (struct variable_tracking_info_def): Remove n_mos field, change
25933 mos into a vector of micro_operations.
25934 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
25935 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
25936 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
25937 changing into a vector.
25938 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
25939 come before all other uops generated by add_stores.
25940 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
25941 argument removal.
25942 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
25943 a vector. Run just one pass over the bbs instead of separate counting
25944 and computation phase.
25945 (vt_finalize): Free VTI (bb)->mos vector instead of array.
25946
25947 PR debug/43329
25948 * tree-inline.c (remap_decls): Put old_var rather than origin_var
25949 into *nonlocalized_list vector.
25950 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
25951 even if origin is non-NULL.
25952 (gen_variable_die): Likewise.
25953 (process_scope_var): Don't change origin.
25954 (gen_decl_die): Likewise.
25955 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
25956 before adding new edges instead of after it, fix moving over
25957 debug stmts.
25958
25959 2010-03-11 David S. Miller <davem@davemloft.net>
25960
25961 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
25962 of four.
25963 * configure: Rebuild.
25964
25965 2010-03-11 Martin Jambor <mjambor@suse.cz>
25966
25967 PR tree-optimization/43257
25968 * tree.c (assign_assembler_name_if_neeeded): New function.
25969 (free_lang_data_in_cgraph): Assembler name assignment moved to the
25970 above new function.
25971 * tree.h (assign_assembler_name_if_neeeded): Declare.
25972 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
25973 the function if needed.
25974
25975 2010-03-11 Chris Demetriou <cgd@google.com>
25976
25977 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
25978 include/stdint-gcc.h, and include/stdint.h world-readable.
25979
25980 2010-03-11 Richard Guenther <rguenther@suse.de>
25981
25982 PR tree-optimization/43255
25983 * tree-vrp.c (process_assert_insertions_for): Do not insert
25984 asserts for trivial conditions.
25985
25986 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25987
25988 PR tree-optimization/43280
25989 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
25990 generation. Move calculation of size out of the if branch.
25991 (find_bswap): Modify compare number generation.
25992
25993 2010-03-11 Richard Guenther <rguenther@suse.de>
25994
25995 PR lto/43200
25996 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
25997 (input_gimple_stmt): Fixup handled component types during
25998 operand read. Also fix up decls in ADDR_EXPRs.
25999
26000 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
26001
26002 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
26003 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
26004
26005 2010-03-10 Jan Hubicka <jh@suse.cz>
26006
26007 PR c/43288
26008 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
26009 * varasm.c (get_variable_section): Don't do that here...
26010 (make_decl_rtl): ... and here.
26011 (do_assemble_alias): Produce decl RTL.
26012 (assemble_alias): Likewise.
26013
26014 2010-03-10 Jakub Jelinek <jakub@redhat.com>
26015
26016 PR debug/43290
26017 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
26018 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
26019 of fde->vdrap_reg.
26020 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
26021 (based_loc_descr): Only express drap or vdrap regno based expressions
26022 using DW_OP_fbreg when not optimizing.
26023 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
26024 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
26025 REG_CFA_SET_VDRAP note.
26026
26027 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
26028
26029 PR tree-optimization/43236
26030 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
26031 error in calculation of base address in reverse iteration case.
26032 (generate_builtin): Take number of latch executions if the statement
26033 is in the latch.
26034
26035 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
26036
26037 PR middle-end/42859
26038 * tree-eh.c: Include pointer-set.h.
26039 (lower_eh_dispatch): Filter out duplicate case labels and
26040 remove the unneeded edge when the label is unused. Return
26041 true when some edges are removed.
26042 (execute_lower_eh_dispatch): When any lowering resulted in
26043 removing an edge, also delete unreachable blocks.
26044
26045 2010-03-10 Jakub Jelinek <jakub@redhat.com>
26046
26047 PR bootstrap/43287
26048 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26049 UNSPEC_MACHOPIC_OFFSET.
26050
26051 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
26052
26053 PR target/43294
26054 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
26055 (m68k_delegitimize_address): New function.
26056
26057 2010-03-09 Jakub Jelinek <jakub@redhat.com>
26058
26059 PR debug/43299
26060 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
26061
26062 PR debug/43299
26063 * var-tracking.c (adjust_sets): New function.
26064 (count_with_sets, add_with_sets): Use it.
26065 (get_adjusted_src): New inline function.
26066 (add_stores): Use it.
26067
26068 PR debug/43304
26069 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
26070 call cselib_dummy_expand_value_rtx_cb instead of
26071 cselib_expand_value_rtx_cb.
26072
26073 PR debug/43293
26074 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
26075 * config/i386/i386.c: Include debug.h and dwarf2out.h.
26076 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
26077 and .cfi_endproc around the pic thunks.
26078 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
26079 all queued unwind info register saves are saved before the call.
26080 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
26081 considered as sp-=4 for unwind info and the pop as sp+=4 which
26082 also clobbers dest, but doesn't actually restore it.
26083
26084 PR debug/43290
26085 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
26086 RTX_FRAME_RELATED_P.
26087
26088 2010-03-09 Jie Zhang <jie@codesourcery.com>
26089
26090 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
26091 whitespaces in output template.
26092
26093 2010-03-09 Jie Zhang <jie@codesourcery.com>
26094
26095 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
26096 out array boundary.
26097
26098 2010-03-08 Jakub Jelinek <jakub@redhat.com>
26099
26100 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
26101 builtins.exp in a separate job.
26102
26103 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26104
26105 * graphite-sese-to-poly.c (add_param_constraints): Use
26106 lower_bound_in_type and upper_bound_in_type.
26107
26108 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26109
26110 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
26111 instead of unsigned_type_node.
26112
26113 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26114 Reza Yazdani <reza.yazdani@amd.com>
26115
26116 PR middle-end/43065
26117 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
26118 on pointer type parameters.
26119
26120 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
26121
26122 PR middle-end/42644
26123 PR middle-end/42130
26124 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
26125 handle conversions from pointer to integers.
26126 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
26127 induction variable, to be able to work with code generated by CLooG.
26128 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
26129 (build_poly_scop): Bail out if we cannot codegen a loop.
26130
26131 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
26132
26133 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
26134 code generation with gloog_error.
26135
26136 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26137
26138 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
26139 Call fold_convert on all the returned values.
26140 (expand_scalar_variables_expr): Pass to
26141 expand_scalar_variables_ssa_name the type of the resulting expression.
26142
26143 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26144
26145 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
26146 ppl_min_for_le_pointset.
26147 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
26148 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
26149
26150 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26151
26152 * graphite-dependences.c (map_into_dep_poly): Removed.
26153 (dependence_polyhedron_1): Use combine_context_id_scat.
26154
26155 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26156
26157 * graphite-poly.h (struct poly_scattering): Add layout documentation.
26158 (struct poly_bb): Same.
26159 (combine_context_id_scat): New.
26160
26161 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26162
26163 PR middle-end/42326
26164 * sese.c (name_defined_in_loop_p): Return false for default
26165 definitions.
26166
26167 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26168
26169 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
26170 and clean up the logic.
26171
26172 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
26173
26174 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
26175 early return.
26176
26177 2010-03-08 Jakub Jelinek <jakub@redhat.com>
26178
26179 * var-tracking.c (remove_cselib_value_chains): Define only for
26180 ENABLE_CHECKING.
26181 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
26182 delete_slot_part, emit_notes_for_differences_1): Don't call
26183 remove_cselib_value_chains here.
26184 (set_slot_part, emit_notes_for_differences_2): Don't call
26185 add_cselib_value_chains here.
26186 (preserved_values): New vector.
26187 (preserve_value): New function.
26188 (add_uses, add_stores, vt_add_function_parameters): Use it
26189 instead of cselib_preserve_value.
26190 (changed_values_stack): New vector.
26191 (check_changed_vars_0): New function.
26192 (check_changed_vars_1, check_changed_vars_2): Use it.
26193 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
26194 changed_values_stack VALUEs.
26195 (vt_emit_notes): For all preserved_values call
26196 add_cselib_value_chains. If ENABLE_CHECKING call
26197 remove_cselib_value_chains before verifying value_chains is empty.
26198 Initialize and free changed_values_stack.
26199 (vt_initialize): Initialize preserved_values.
26200 (vt_finalize): Free preserved_values.
26201
26202 2010-03-08 Richard Guenther <rguenther@suse.de>
26203
26204 PR tree-optimization/43269
26205 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
26206 region detection.
26207
26208 2010-03-08 Martin Jambor <mjambor@suse.cz>
26209
26210 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
26211 (ipa_is_param_called): Removed.
26212 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
26213 (ipa_print_node_params): Do not print the called flag.
26214 (ipa_write_node_info): Do not stream the called flag.
26215 (ipa_read_node_info): Likewise.
26216
26217 2010-03-07 Jakub Jelinek <jakub@redhat.com>
26218
26219 PR debug/43176
26220 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
26221 * cselib.c (struct expand_value_data): Add dummy field.
26222 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
26223 dummy to false.
26224 (cselib_dummy_expand_value_rtx_cb): New function.
26225 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
26226 any rtl.
26227 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
26228 * var-tracking.c: Include pointer-set.h.
26229 (variable): Change n_var_parts to char from int. Add
26230 cur_loc_changed and in_changed_variables fields.
26231 (variable_canonicalize): Remove.
26232 (shared_var_p): New inline function.
26233 (unshare_variable): Maintain cur_loc_changed and
26234 in_changed_variables fields. If var was in changed_variables,
26235 replace it there with new_var. Just copy cur_loc instead of
26236 resetting it to something else.
26237 (variable_union): Don't recompute cur_loc. Use shared_var_p.
26238 (dataflow_set_union): Don't call variable_canonicalize.
26239 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
26240 of their DEBUG_EXPR_TREE_DECLs.
26241 (canonicalize_loc_order_check): Verify that cur_loc is NULL
26242 and in_changed_variables and cur_loc_changed is false.
26243 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
26244 and cur_loc_changed. Don't update cur_loc here.
26245 (variable_merge_over_src): Don't call variable_canonicalize.
26246 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
26247 removing loc that is equal to cur_loc, clear cur_loc,
26248 set cur_loc_changed and ensure variable_was_changed is called.
26249 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
26250 compare pointers in cur_loc check, if it is equal to loc,
26251 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
26252 (variable_different_p): Remove compare_current_location argument,
26253 don't compare cur_loc.
26254 (dataflow_set_different_1): Adjust variable_different_p caller.
26255 (variable_was_changed): If dv had some var in changed_variables
26256 already, reset in_changed_variables flag for it and propagate
26257 cur_loc_changed over to the new variable. On empty var
26258 always set cur_loc_changed. Set in_changed_variables on whatever
26259 var is added to changed_variables.
26260 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
26261 Use shared_var_p. When removing loc that is equal to cur_loc,
26262 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
26263 end, don't set it to something else, just call variable_was_changed.
26264 (delete_slot_part): Use shared_var_p. When cur_loc equals to
26265 loc being removed, clear cur_loc and set cur_loc_changed.
26266 Set cur_loc_changed if all locations have been removed.
26267 (struct expand_loc_callback_data): New type.
26268 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
26269 allocated. Always create SUBREGs if simplify_subreg failed.
26270 Prefer to use cur_loc, when that fails and still in
26271 changed_variables (and seen first time) recompute it. Set
26272 cur_loc_changed of variables which had to change cur_loc and
26273 compute elcd->cur_loc_changed if any of the subexpressions used
26274 had to change cur_loc.
26275 (vt_expand_loc): Adjust to pass arguments in
26276 expand_loc_callback_data structure.
26277 (vt_expand_loc_dummy): New function.
26278 (emitted_notes): New variable.
26279 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
26280 that weren't used for any other decl in current
26281 emit_notes_for_changes call call vt_expand_loc_dummy to update
26282 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
26283 first loc_chain location if NULL before. Always use just
26284 cur_loc instead of first loc_chain location. When cur_loc_changed
26285 is false, when not --enable-checking=rtl just don't emit any note.
26286 When rtl checking, compute the note and assert it is the same
26287 as previous note. Clear cur_loc_changed and in_changed_variables
26288 at the end before removing from changed_variables.
26289 (check_changed_vars_3): New function.
26290 (emit_notes_for_changes): Traverse changed_vars to call
26291 check_changed_vars_3 on each changed var.
26292 (emit_notes_for_differences_1): Clear cur_loc_changed and
26293 in_changed_variables. Recompute cur_loc of new_var.
26294 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
26295 (vt_emit_notes): Initialize and destroy emitted_notes.
26296
26297 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
26298
26299 PR rtl-optimization/42220
26300 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
26301 Use verify_reg_tracked to determine if we should use OP_OUT rather
26302 than OP_INOUT.
26303 (build_def_use): If we see an in-out operand for a register that we
26304 know nothing about, treat is an output if possible, fail the block if
26305 not.
26306
26307 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
26308
26309 PR debug/42897
26310 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
26311 permanently.
26312
26313 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
26314
26315 PR debug/42897
26316 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
26317 uses of relevant DEFs that are dead outside the loop too.
26318
26319 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
26320
26321 * var-tracking.c (dataflow_set_merge): Swap src and src2.
26322 Reverted:
26323 2010-01-13 Jakub Jelinek <jakub@redhat.com>
26324 PR debug/41371
26325 * var-tracking.c (values_to_unmark): New variable.
26326 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26327 values_to_unmark vector. Moved body to...
26328 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
26329 instead queue it into values_to_unmark vector.
26330 (vt_find_locations): Free values_to_unmark vector.
26331
26332 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
26333
26334 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
26335 (site.exp): Export them when plugins are enabled.
26336
26337 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
26338
26339 PR middle-end/42326
26340 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
26341 that contain scevs.
26342 (chrec_fold_multiply): Same.
26343
26344 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
26345
26346 PR c/43248
26347 * c-decl.c (build_compound_literal): Return early if init is
26348 an error_mark_node.
26349
26350 2010-03-04 Martin Jambor <mjambor@suse.cz>
26351
26352 PR tree-optimization/43164
26353 PR tree-optimization/43191
26354 * tree-sra.c (type_consists_of_records_p): Reject records with
26355 zero-size bit-fields at the end.
26356
26357 2010-03-04 Mike Stump <mikestump@comcast.net>
26358
26359 * Makefile.in (TAGS): Remove *.y.
26360
26361 2010-03-04 Richard Guenther <rguenther@suse.de>
26362
26363 PR tree-optimization/40761
26364 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
26365 in reverse order.
26366 (my_rev_post_order_compute): New function.
26367 (init_pre): Call it.
26368
26369 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
26370
26371 PR middle-end/43209
26372 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
26373 decrease the cost of an IV candidate when the cost is infinite.
26374
26375 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26376
26377 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
26378 Use '3DNow!' for the extension of that name, ensure normal space
26379 after the string.
26380 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
26381
26382 2010-03-03 Jeff Law <law@redhat.com>
26383
26384 * PR middle-end/32693
26385 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
26386 than gen_rtx_SUBREG.
26387 (extract_bit_field_1): Likewise.
26388
26389 2010-03-03 Janis Johnson <janis187@us.ibm.com>
26390
26391 * doc/sourcebuild.texi (Test directives): Document that arguments
26392 include-opts and exclude-opts are now optional for dg-skip-if,
26393 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
26394
26395 2010-03-03 Jason Merrill <jason@redhat.com>
26396
26397 PR c++/12909
26398 * cgraph.h (varpool_node): Add extra_name field.
26399 * varpool.c (varpool_extra_name_alias): New.
26400 (varpool_assemble_decl): Emit extra name aliases.
26401 (varpool_mark_needed_node): Look past an extra name alias.
26402 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
26403 * lto-streamer-in.c (lto_input_tree): Read it.
26404 * lto-streamer-out.c (output_unreferenced_globals): Write it.
26405
26406 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
26407
26408 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
26409 (sparc*-*-solaris2*): ...this.
26410
26411 2010-03-03 Jakub Jelinek <jakub@redhat.com>
26412
26413 PR debug/43229
26414 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
26415 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
26416 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
26417 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
26418
26419 PR debug/43237
26420 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
26421 fallthrough to default handling, just with want_address 0 instead of 2.
26422 For single element lists, add_AT_loc directly, otherwise create an
26423 artificial variable DIE and stick location list to it.
26424
26425 PR debug/43177
26426 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
26427 (VAL_EXPR_HAS_REVERSE): Define.
26428 (reverse_op): New function.
26429 (add_stores): For reversible operations add an extra MO_VAL_USE.
26430
26431 2010-03-02 Jason Merrill <jason@redhat.com>
26432
26433 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
26434
26435 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
26436
26437 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
26438 (sparc64-*-linux*): Likewise.
26439 (sparc64-*-solaris2*): Include assembler files before linker ones.
26440 (sparc-*-solaris2*): Simplify and reorder to match previous case.
26441 * config/sparc/gas.h: Delete.
26442 * config/sparc/sol2-64.h: Add copyright notice.
26443 * config/sparc/sol2-gas-bi.h: Likewise.
26444 * config/sparc/sol2-gld.h: Likewise.
26445 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
26446 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
26447 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
26448 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
26449 (sparc_elf_asm_named_section): Rename into...
26450 (sparc_solaris_elf_asm_named_section): ...this. Always define.
26451
26452 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
26453
26454 * config/alpha/alpha.c (override_options): Fix -mtune error message.
26455
26456 2010-03-02 Jeff Law <law@redhat.com>
26457
26458 PR middle-end/42431
26459 * reload1.c (rtx_p, substitute_stack): Declare.
26460 (substitute): Record addresses of changed rtxs.
26461 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
26462 Restore the original rtx when complete.
26463 (reload): Free subsitute_stack when complete.
26464
26465 2010-03-02 Janis Johnson <janis187@us.ibm.com>
26466
26467 * doc/gccint.texi (menu): Add Testsuites as a chapter.
26468 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
26469 new chapter.
26470 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
26471 LTO Testing, gcov Testing, profopt Testing, compat Testing,
26472 Torture Tests): Change from subsection to section.
26473
26474 2010-03-02 Jakub Jelinek <jakub@redhat.com>
26475 Steven Bosscher <steven@gcc.gnu.org>
26476
26477 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
26478 instead of bb.
26479
26480 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
26481
26482 PR middle-end/42640
26483 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
26484 the assignment from the new induction variable to the assignment
26485 of the value from the original loop PHI function.
26486
26487 2010-03-01 Janis Johnson <janis187@us.ibm.com>
26488 Daniel Jacobowitz <dan@codesourcery.com>
26489
26490 * doc/sourcebuild.texi (Test directives): Clarify options to
26491 dg-skip-if.
26492
26493 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26494
26495 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
26496 Disable cfi directives unless GCC and gas agree on using read-only
26497 .eh_frame sections for 64-bit.
26498 * configure: Regenerate.
26499
26500 2010-03-01 Richard Guenther <rguenther@suse.de>
26501
26502 PR tree-optimization/43220
26503 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
26504 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
26505
26506 2010-03-01 Richard Guenther <rguenther@suse.de>
26507 Martin Jambor <mjambor@suse.cz>
26508
26509 PR middle-end/41250
26510 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
26511 gimplified parameters.
26512
26513 2010-03-01 Christian Bruel <christian.bruel@st.com>
26514
26515 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
26516
26517 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
26518
26519 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
26520
26521 2010-03-01 Richard Guenther <rguenther@suse.de>
26522
26523 PR middle-end/43213
26524 * expr.c (expand_assignment): Use the alias-oracle to tell
26525 if the rhs aliases the result decl.
26526
26527 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26528
26529 PR pch/14940
26530 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
26531 to sol_gt_pch_get_address.
26532 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
26533 64-bit, SPARC and x86.
26534 (sol_gt_pch_get_address): New function.
26535
26536 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
26537
26538 * toplev.h (inform_n, error_n): Declare.
26539 * diagnostic.c (inform_n, error_n): New function.
26540
26541 2010-03-01 Jakub Jelinek <jakub@redhat.com>
26542
26543 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
26544 has no rtl yet when processing local_decls, queue it and recheck
26545 if deferred stack allocation hasn't assigned it rtl.
26546
26547 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
26548
26549 * config/sh/sh.c (unspec_bbr_uid): New.
26550 (gen_block_redirect): Use it instead of INSN_UID.
26551 (gen_far_branch): Likewise.
26552
26553 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
26554
26555 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
26556 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
26557
26558 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26559
26560 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
26561 (Warning Options): -Wno-conversion-null is valid for
26562 Objective-C++ as well.
26563 * doc/tm.texi (Named Address Spaces): Likewise.
26564 * doc/plugins.texi (Plugins): Replace TABs with spaces.
26565 * doc/tree-ssa.texi (Tree SSA): Likewise.
26566
26567 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
26568
26569 PR bootstrap/43202
26570 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
26571 by default. Don't set the default arch for
26572 i[34567]86-*-darwin*|x86_64-*-darwin*.
26573
26574 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
26575
26576 PR bootstrap/43202
26577 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
26578 default. Set the default 32bit/64bit archs with $with_arch
26579 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
26580
26581 2010-02-27 Richard Guenther <rguenther@suse.de>
26582
26583 PR tree-optimization/43186
26584 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
26585 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
26586 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
26587 unroller iterations.
26588
26589 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
26590
26591 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
26592 required and i[34567]86-*-* targets don't support 64bit ISA.
26593
26594 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
26595
26596 PR ada/43096
26597 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
26598 the same alias set.
26599
26600 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
26601
26602 * config.gcc: Set the default arch at least to Prescott for
26603 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
26604 if SSE math is enabled.
26605
26606 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
26607
26608 * diagnostic.c (diagnostic_initialize): Update.
26609 (diagnostic_report_diagnostic): Test inhibit_notes_p for
26610 informative notes.
26611 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
26612 (diagnostic_inhibit_notes): New.
26613 * toplev.c (process_options): inhibit notes with -fcompare-debug.
26614
26615 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
26616
26617 PR c/20631
26618 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
26619 * doc/standards.texi: Likewise.
26620 * doc/extend.texi: Likewise.
26621 * doc/trouble.texi: Likewise.
26622 * doc/cppopts.texi: Likewise.
26623 * doc/install.texi: Likewise.
26624 * c.opt (std=c90,std=gnu90): New options.
26625 * c-opts.c (c_common_handle_option): Handle them.
26626
26627 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
26628
26629 PR c/24577
26630 * c-decl.c (undeclared_variable): Use an informative note.
26631
26632 2010-02-26 Richard Guenther <rguenther@suse.de>
26633
26634 PR tree-optimization/43186
26635 * gimple.h (gimple_fold): Remove.
26636 * gimple.c (gimple_fold): Remove. Inline into single user ...
26637 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
26638 Try harder for conditions.
26639
26640 2010-02-26 Jakub Jelinek <jakub@redhat.com>
26641
26642 PR debug/43190
26643 * function.c (used_types_insert): Don't skip through named pointer
26644 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
26645 and it is different from the main variant's type.
26646
26647 2010-02-26 Nick Clifton <nickc@redhat.com>
26648
26649 * config/rx/rx.md (sminsi3): Remove bogus alternative.
26650
26651 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
26652
26653 * config.gcc: Support --with-fpmath=sse for x86.
26654
26655 * config/i386/ssemath.h: New.
26656
26657 * doc/install.texi (--with-fpmath=sse): Documented.
26658
26659 2010-02-26 Richard Guenther <rguenther@suse.de>
26660
26661 PR tree-optimization/43188
26662 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
26663 vector types of over-aligned element type.
26664
26665 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
26666
26667 PR target/43175
26668 * config/i386/i386.c (expand_vec_perm_blend): Use correct
26669 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
26670
26671 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
26672
26673 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
26674
26675 2010-02-26 Jakub Jelinek <jakub@redhat.com>
26676
26677 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26678 * var-tracking.c: Include diagnostic.h.
26679 (debug_dv): New function.
26680 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26681
26682 PR debug/43160
26683 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26684 (add_value_chain, add_value_chains, remove_value_chain,
26685 remove_value_chains): Handle DEBUG_EXPRs.
26686 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26687
26688 PR debug/43161
26689 * regcprop.c (struct queued_debug_insn_change): New type.
26690 (struct value_data_entry): Add debug_insn_changes field.
26691 (struct value_data): Add n_debug_insn_changes field.
26692 (debug_insn_changes_pool): New variable.
26693 (free_debug_insn_changes, apply_debug_insn_changes,
26694 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26695 (kill_value_one_regno): Call free_debug_insn_changes if needed.
26696 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26697 fields.
26698 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26699 changes for them.
26700 (copyprop_hardreg_forward_1): Don't call apply_change_group for
26701 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
26702 changes, call cprop_find_used_regs via note_stores.
26703 (copyprop_hardreg_forward): When copying vd from predecessor
26704 which has any queued DEBUG_INSN changes, make sure the pointers are
26705 cleared. At the end call df_analyze and then if there are any
26706 DEBUG_INSN changes queued at the end of some basic block for still
26707 live registers, apply them.
26708 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26709
26710 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
26711
26712 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26713 (arm*-*-*): Ditto.
26714
26715 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
26716
26717 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26718 targets. Set the default with_cpu/with_arch from arch/cpu.
26719 Allow x86-64 and native for with_cpu/with_arch.
26720
26721 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
26722
26723 * ebitmap.c: Change calls to verify_popcount with calls to
26724 sbitmap_verify_popcount.
26725 (ebitmap_clear_bit): Fixed map->cacheindex test and
26726 map>cache update when bit clearing results in an empty
26727 element.
26728
26729 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
26730
26731 PR target/43154
26732 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26733 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26734 and support both V2DF and V2DI modes.
26735 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26736 support both V2DF and V2DI modes.
26737 (general): Delete trailing whitespace from a few patterns.
26738
26739 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26740 V2DF/V2DI interleave high/low builtins.
26741
26742 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26743 new VSX builtins.
26744
26745 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26746 interleave high/low functions.
26747
26748 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
26749
26750 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26751 #pragma extern_prefix.
26752
26753 2010-02-25 Jakub Jelinek <jakub@redhat.com>
26754
26755 PR debug/43166
26756 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26757 BLKmode, assert op0 is a MEM and just adjust its mode.
26758
26759 PR debug/43165
26760 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26761 if bitpos isn't multiple of mode's bitsize.
26762
26763 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
26764
26765 * c.opt (-ftemplate-depth=): New.
26766 (-ftemplate-depth-): Deprecate.
26767 * optc-gen.awk: Handle -ftemplate-depth=.
26768 * opth-gen.awk: Likewise.
26769 * c-opts.c (c_common_handle_option): Likewise.
26770 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26771
26772 2010-02-24 Jason Merrill <jason@redhat.com>
26773
26774 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26775
26776 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26777
26778 * cfg.c (alloc_aux_for_block): Remove inline.
26779 (alloc_aux_for_edge): Likewise.
26780
26781 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26782
26783 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26784
26785 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26786
26787 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26788 * config/i386/sol2-gas.h: New file.
26789 * config.gcc (i[34567]86-*-solaris2*): Use it.
26790
26791 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
26792
26793 PR c/43128
26794 * c-typeck.c (ep_convert_and_check): New.
26795 (build_conditional_expr): Use it.
26796 (build_binary_op): Likewise.
26797
26798 2010-02-24 Jakub Jelinek <jakub@redhat.com>
26799
26800 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26801
26802 PR debug/43150
26803 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26804 bounds even for -O+.
26805 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26806 expr needs to have DECL_NAME set.
26807
26808 2010-02-24 Nick Clifton <nickc@redhat.com>
26809
26810 * config/mep/mep.c: Include gimple.h.
26811 (mep_function_uses_sp): Delete unused function.
26812 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26813 parameters. Use unsigned integers to count args. Return a
26814 NULL_RTX instead of an error_mark_node. Toidy up formatting.
26815
26816 2010-02-23 Jakub Jelinek <jakub@redhat.com>
26817
26818 PR target/43107
26819 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26820 greater or equal to nelt instead of 2 * nelt.
26821 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26822 with nelt - 1.
26823
26824 2010-02-23 Jason Merrill <jason@redhat.com>
26825
26826 PR debug/42800
26827 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26828 in cfun->local_decls even if they have register types.
26829
26830 PR c++/42837
26831 * stor-layout.c (place_field): Don't warn about unnecessary
26832 DECL_PACKED if the type is packed.
26833
26834 2010-02-23 Jakub Jelinek <jakub@redhat.com>
26835
26836 PR target/43139
26837 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
26838 GOTOFF relocs, even when the base reg isn't pic pointer.
26839
26840 2010-02-23 Michael Matz <matz@suse.de>
26841
26842 PR debug/43077
26843 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
26844 (expand_gimple_basic_block): Generate and use debug temps if there
26845 are debug uses left after the last real use of TERed ssa names.
26846 Unlink debug immediate uses when they are expanded.
26847
26848 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
26849
26850 PR 43123
26851 * config/i386/i386.c (override_options): Reorganise to provide
26852 better error messages.
26853
26854 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26855
26856 PR middle-end/43083
26857 * graphite-scop-detection.c (create_single_exit_edge): Move
26858 the call to find_single_exit_edge to....
26859 (create_sese_edges): ...here. Don't handle multiple edges
26860 exiting the function.
26861 (build_graphite_scops): Don't handle multiple edges
26862 exiting the function.
26863
26864 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26865
26866 PR middle-end/43097
26867 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
26868 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
26869
26870 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
26871
26872 PR middle-end/43026
26873 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
26874
26875 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
26876
26877 PR c++/43126
26878 * c-typeck.c (convert_arguments): Print declaration location.
26879 * c-common.c (validate_nargs): Rename as
26880 builtin_function_validate_nargs.
26881 (check_builtin_function_arguments): Update.
26882
26883 2010-02-22 Richard Guenther <rguenther@suse.de>
26884
26885 PR lto/43045
26886 * tree-inline.c (declare_return_variable): Use the type of
26887 the call stmt lhs if available.
26888
26889 2010-02-22 Duncan Sands <baldrick@free.fr>
26890
26891 * passes.c (register_pass): Always consider all pass lists when
26892 ref_pass_instance_number is zero.
26893
26894 2010-02-22 Richard Guenther <rguenther@suse.de>
26895
26896 PR tree-optimization/42749
26897 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
26898 parameter. Do arithmetic in the original type.
26899 (update_accumulator_with_ops): Likewise.
26900 (adjust_accumulator_values): Adjust.
26901
26902 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26903
26904 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
26905 (QI to BLKmode splitter): New splitter.
26906
26907 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
26908
26909 * config/i386/i386.c (initial_ix86_tune_features): Turn on
26910 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
26911
26912 2010-02-22 Richard Guenther <rguenther@suse.de>
26913
26914 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
26915
26916 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
26917
26918 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
26919 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
26920 ($(T)crti.o, $(T)crtn.o): Remove rules.
26921
26922 2010-02-21 Tobias Burnus <burnus@net-b.de>
26923
26924 PR fortran/35259
26925 * doc/invoke.texi (-fassociative-math): Document that this
26926 option is automatically enabled for Fortran.
26927
26928 2010-02-20 David S. Miller <davem@davemloft.net>
26929
26930 * configure.ac: Test if linker and assembler properly support
26931 GOTDATA_OP relocations.
26932 * configure: Rebuild.
26933 * config.in: Likewise.
26934 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
26935 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
26936 (movsi_high_pic): Likewise.
26937 (movdi_lo_sum_pic): Likewise.
26938 (movdi_high_pic): Likewise.
26939 (movsi_pic_gotdata_op): New pattern.
26940 (movdi_pic_gotdata_op): Likewise.
26941 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
26942 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
26943
26944 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
26945
26946 PR target/43067
26947 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
26948 attribute to ssemul.
26949 (xop_mulv2div2di3_high): Ditto.
26950
26951 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
26952
26953 PR c++/35669
26954 * c.opt (Wconversion-null): New option.
26955 * doc/invoke.texi (Wconversion-null): Document.
26956
26957 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
26958
26959 * common.opt (Wlarger-than-): Add Undocumented.
26960
26961 2010-02-19 Mike Stump <mikestump@comcast.net>
26962
26963 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
26964
26965 2010-02-19 Jason Merrill <jason@redhat.com>
26966
26967 PR target/40332
26968 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
26969 * configure: Likewise.
26970
26971 2010-02-20 Alan Modra <amodra@gmail.com>
26972
26973 PR middle-end/42344
26974 * cgraph.h (cgraph_make_decl_local): Declare.
26975 * cgraph.c (cgraph_make_decl_local): New function.
26976 (cgraph_make_node_local): Use it.
26977 * cgraphunit.c (cgraph_function_versioning): Likewise.
26978 * ipa.c (function_and_variable_visibility): Likewise.
26979
26980 2010-02-19 Jakub Jelinek <jakub@redhat.com>
26981
26982 PR bootstrap/43121
26983 * except.c (sjlj_emit_function_enter): Don't call
26984 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
26985 directly.
26986 * rtl.h (add_reg_br_prob_note): Remove prototype.
26987
26988 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
26989
26990 PR 41779
26991 * c-common.c (conversion_warning): Remove widening conversions
26992 before checking the conversion of integers to reals.
26993
26994 2010-02-19 Mike Stump <mikestump@comcast.net>
26995
26996 PR middle-end/43125
26997 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
26998
26999 PR objc/43061
27000 * cgraphunit.c (process_function_and_variable_attributes): Check
27001 DECL_PRESERVE_P instead of looking up attribute "used".
27002 * ipa-pure-const.c (check_decl): Likewise.
27003 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
27004 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
27005 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
27006 instead of attribute "used".
27007 * config/sol2-c.c (solaris_pragma_init): Likewise.
27008 (solaris_pragma_fini): Likewise.
27009
27010 2010-02-19 Jakub Jelinek <jakub@redhat.com>
27011
27012 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
27013 Use XCNEW instead of xcalloc.
27014 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
27015 XNEW instead of xmalloc.
27016 (get_fields): Use XNEWVEC instead of xmalloc.
27017
27018 PR debug/43084
27019 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
27020 populate vars array.
27021 (create_new_general_access): For debug stmts just reset value.
27022 (get_stmt_accesses): For accesses within debug stmts just record them
27023 using add_access_to_acc_sites instead of preventing the peeling or
27024 counting them as accesses.
27025
27026 PR middle-end/42233
27027 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
27028
27029 2010-02-19 Richard Guenther <rguenther@suse.de>
27030
27031 PR tree-optimization/42916
27032 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
27033 instructions.
27034
27035 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
27036
27037 * configure.ac: Replace all uses of changequote in macro arguments
27038 with proper quoting.
27039
27040 2010-02-19 Jakub Jelinek <jakub@redhat.com>
27041
27042 PR middle-end/42233
27043 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
27044
27045 2010-02-19 Richard Guenther <rguenther@suse.de>
27046
27047 PR tree-optimization/42944
27048 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
27049 test for aliasing with errno.
27050
27051 2010-02-19 Jakub Jelinek <jakub@redhat.com>
27052
27053 PR middle-end/42233
27054 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
27055 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
27056 * dojump.c: Include output.h.
27057 (inv): New inline function.
27058 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
27059 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
27060 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
27061 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
27062 argument, pass it down to other calls.
27063 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
27064 add REG_BR_PROB note to the conditional jump.
27065 * cfgexpand.c (add_reg_br_prob_note): Removed.
27066 (expand_gimple_cond): Don't call it, add the probability
27067 as last argument to jumpif_1/jumpifnot_1.
27068 * Makefile.in (dojump.o): Depend on output.h.
27069 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
27070 callers.
27071 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
27072 * stmt.c (do_jump_if_equal): Likewise.
27073 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
27074 * loop-unswitch.c (compare_and_jump_seq): Likewise.
27075 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
27076 Likewise.
27077 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
27078 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
27079 jumpifnot_1 callers.
27080 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
27081 callers.
27082 (store_expr): Adjust jumpifnot caller.
27083 (store_constructor): Adjust jumpif caller.
27084
27085 PR middle-end/42233
27086 * gimplify.c (gimple_boolify): For __builtin_expect call
27087 gimple_boolify also on its first argument.
27088
27089 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
27090
27091 * configure.ac (gnu-unique-object): Wrap regexps using [] in
27092 changequote block.
27093 (__stack_chk_fail): Ditto. Remove quadrigraphs.
27094 * configure: Regenerated.
27095
27096 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27097
27098 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
27099 lang_hooks.types_compatible_p instead of comptypes.
27100
27101 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
27102
27103 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
27104 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
27105 if __prefer_thumb__ is defined.
27106
27107 2010-02-18 Martin Jambor <mjambor@suse.cz>
27108
27109 PR tree-optimization/43066
27110 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
27111 array with zero-sized element type.
27112
27113 2010-02-18 Jakub Jelinek <jakub@redhat.com>
27114
27115 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
27116 rtx, allocate struct var_loc_node here and return it to the
27117 caller, and only if it is actually needed.
27118 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
27119 move it earlier and return immediately if it returns NULL.
27120
27121 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
27122
27123 * config/sparc/gas.h: New file. Restore
27124 TARGET_ASM_NAMED_SECTION to its ELF default.
27125 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
27126 check !HAVE_GNU_AS.
27127 * config/sparc/sparc.c (sparc_elf_asm_named_section):
27128 Likewise. Add ATTRIBUTE_UNUSED to prototype.
27129 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
27130 after sparc/sysv4.h.
27131
27132 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
27133
27134 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
27135
27136 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
27137
27138 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
27139 patterns from predicated pattern.
27140
27141 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
27142
27143 PR target/43103
27144 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
27145 for insn mnemonic suffix.
27146
27147 2010-02-17 Richard Guenther <rguenther@suse.de>
27148
27149 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
27150 to loop PHI nodes.
27151
27152 2010-02-17 Jakub Jelinek <jakub@redhat.com>
27153
27154 PR debug/42918
27155 * caller-save.c (save_call_clobbered_regs): If BB ends with
27156 a DEBUG_INSN, move any notes in between last real insn and the last
27157 DEBUG_INSN after the last DEBUG_INSN.
27158
27159 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
27160
27161 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
27162 Fix return type. Fix argument type. Explain meaning of return value.
27163
27164 2010-02-16 Richard Guenther <rguenther@suse.de>
27165
27166 PR tree-optimization/41043
27167 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
27168 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
27169 statements ...
27170 (vrp_visit_phi_node): ... but only for loop PHI nodes.
27171
27172 2010-02-16 Ira Rosen <irar@il.ibm.com>
27173
27174 PR tree-optimization/43074
27175 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
27176 * tree-vect-loop.c (vect_analyze_loop_operations): Add
27177 vectorizable cycles in hybrid SLP check.
27178 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
27179
27180 2010-02-16 Richard Guenther <rguenther@suse.de>
27181
27182 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
27183 (true_dependence): If memrefs_conflict_p computes must-alias
27184 trust it. Move TBAA check after offset-based disambiguation.
27185 (canon_true_dependence): Likewise.
27186
27187 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
27188
27189 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
27190 * doc/invoke.texi: Document it.
27191 * var-tracking.c: Include toplev.h and params.h.
27192 (vt_find_locations): Return bool indicating success. Compute
27193 hash sizes unconditionally. Check new parameter, report.
27194 (variable_tracking_main_1): Check vt_find_locations results and
27195 retry. Renamed from...
27196 (variable_tracking_main): ... this. New wrapper to preserve
27197 flag_var_tracking_assignments.
27198 * Makefile.in (var-tracking.o): Adjust dependencies.
27199
27200 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
27201 Jakub Jelinek <jakub@redhat.com>
27202
27203 PR target/42854
27204 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
27205 if weak_import attribute is present.
27206 * config/darwin.c (machopic_select_section): Likewise.
27207
27208 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
27209
27210 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
27211 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
27212 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
27213 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
27214
27215 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
27216 types.
27217
27218 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
27219 Fix argument types.
27220
27221 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
27222 Rewrite text to refer to the names.
27223
27224 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
27225
27226 * config/i386/i386-builtin-types.def
27227 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
27228 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
27229 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
27230 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
27231 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
27232 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
27233 IX86_BUILTIN_VPERMIL2PS256.
27234 (MULTI_ARG_4_DF2_DI_I): Defined.
27235 (MULTI_ARG_4_DF2_DI_I1): Defined.
27236 (MULTI_ARG_4_SF2_SI_I): Defined.
27237 (MULTI_ARG_4_SF2_SI_I1): Defined.
27238 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
27239 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
27240 __builtin_ia32_vpermil2ps256.
27241 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27242 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27243 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
27244 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27245 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27246 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
27247 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
27248 CODE_FOR_xop_vpermil2v8sf3.
27249 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
27250 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
27251 * config/i386/xopintrin.h (_mm_permute2_pd): New.
27252 (_mm256_permute2_pd): New.
27253 (_mm_permute2_ps): New.
27254 (_mm256_permute2_ps): New.
27255
27256 2010-02-15 Nick Clifton <nickc@redhat.com>
27257
27258 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
27259 boolean parameters. Use emit_jump_insn when emitting a pop
27260 instruction containing a return insn.
27261 (push): Use 'true' rather than '1' as second parameter to F.
27262 (h8300_expand_prologue): Likewise.
27263 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
27264 (h8300_expand_epilogue): Likewise.
27265
27266 2010-02-15 Richard Guenther <rguenther@suse.de>
27267
27268 PR middle-end/43068
27269 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
27270 if that is zero.
27271
27272 2010-02-15 Nick Clifton <nickc@redhat.com>
27273
27274 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
27275 delta.
27276
27277 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
27278
27279 * intl.c (fake_ngettext): New function.
27280 * intl.h (fake_ngettext): Declare.
27281 (ngettext): Define macro.
27282 * collect2.c (notice_translated): New function.
27283 (main): Use notice_translated and ngettext.
27284 * collect2.h (notice_translated): Declare.
27285
27286 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
27287
27288 * reorg.c (delete_computation): Comment fixes.
27289 * caller-save.c (setup_save_areas): Idem.
27290 * sel-sched-dump.c (dump_lv_set): Idem.
27291 * rtl.def: Idem.
27292
27293 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27294
27295 * config/s390/s390.c (s390_sched_init): New function.
27296 (TARGET_SCHED_INIT): Target hook defined.
27297
27298 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
27299 Jack Howarth <howarth@bromo.med.uc.edu>
27300 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
27301
27302 PR target/42982
27303 Partial revert of unintended change in fix for PR41605.
27304 * config/darwin.h: Fix typo.
27305 * config/darwin9.h: Same.
27306
27307 2010-02-11 Jakub Jelinek <jakub@redhat.com>
27308
27309 * c-pch.c (pch_init): Clear v.
27310
27311 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
27312
27313 PR middle-end/42930
27314 * graphite-scop-detection.c (graphite_can_represent_scev): Call
27315 graphite_can_represent_init for MULT_EXPR.
27316
27317 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
27318
27319 PR middle-end/42914
27320 PR middle-end/42530
27321 * graphite-sese-to-poly.c (remove_phi): New.
27322 (translate_scalar_reduction_to_array): Call remove_phi.
27323
27324 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
27325
27326 PR middle-end/42771
27327 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
27328 * graphite-clast-to-gimple.h (gloog): Update declaration.
27329 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
27330 * graphite-poly.h (struct poly_bb): Add missing comments.
27331 (struct scop): Add poly_scop_p field.
27332 (POLY_SCOP_P): New.
27333 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
27334 * graphite.c (graphite_transform_loops): Build the polyhedral
27335 representation for each scop before code generation.
27336 * sese.c (rename_variables_in_operand): Removed.
27337 (rename_variables_in_expr): Return the renamed expression.
27338 (rename_sese_parameters): New.
27339 * sese.h (rename_sese_parameters): Declared.
27340
27341 2010-02-11 Richard Guenther <rguenther@suse.de>
27342
27343 PR tree-optimization/42998
27344 * tree-ssa-pre.c (create_expression_by_pieces): Treat
27345 POINTER_PLUS_EXPR properly.
27346
27347 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
27348 Changpeng Fang <changpeng.fang@amd.com>
27349
27350 PR middle-end/40886
27351 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
27352 the cost of an IV candidate when the IV is used in a test against zero.
27353
27354 * gcc.dg/tree-ssa/ivopts-3.c: New.
27355
27356 2010-02-11 Richard Guenther <rguenther@suse.de>
27357
27358 PR lto/41664
27359 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
27360 pointer-vs-decl case by swapping refs. Handle some cases
27361 of pointer-vs-decl disambiguations more conservatively.
27362 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
27363 to false after expanding.
27364
27365 2010-02-11 Richard Guenther <rguenther@suse.de>
27366
27367 PR driver/43021
27368 * gcc.c (process_command): Handle LTO file@offset case more
27369 appropriately.
27370
27371 2010-02-11 Jakub Jelinek <jakub@redhat.com>
27372
27373 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
27374 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
27375 of DEBUG_INSNs.
27376 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
27377
27378 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
27379 if MEM's mode size isn't DWARF2_ADDR_SIZE.
27380 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
27381 Optimize eq/ne comparisons when both arguments are known to be
27382 zero-extended.
27383 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
27384 Don't mask operands unnecessarily if they are known to be already
27385 zero-extended.
27386
27387 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
27388
27389 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
27390 instead of loop.
27391
27392 2010-02-10 Richard Guenther <rguenther@suse.de>
27393
27394 PR tree-optimization/43017
27395 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
27396 for wrapping signed arithmetic.
27397
27398 2010-02-10 Jakub Jelinek <jakub@redhat.com>
27399
27400 PR debug/43010
27401 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
27402 if no debug info should be emitted for it.
27403
27404 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
27405
27406 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
27407 note when flag_exceptions is set.
27408
27409 2010-02-10 Duncan Sands <baldrick@free.fr>
27410
27411 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
27412
27413 2010-02-10 Richard Guenther <rguenther@suse.de>
27414
27415 PR c/43007
27416 * tree.c (get_unwidened): Handle constants.
27417 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
27418
27419 2010-02-10 Martin Jambor <mjambor@suse.cz>
27420
27421 PR lto/42985
27422 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
27423 check for variable argument counts independently.
27424
27425 2010-02-10 Christian Bruel <christian.bruel@st.com>
27426
27427 PR target/42841
27428 * config/sh/sh.c (find_barrier): Increase length for non delayed
27429 conditional branches.
27430
27431 2010-02-10 Christian Bruel <christian.bruel@st.com>
27432
27433 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
27434
27435 2010-02-10 Jakub Jelinek <jakub@redhat.com>
27436
27437 * builtins.c (set_builtin_user_assembler_name): Also handle
27438 ffs if int is smaller than word.
27439
27440 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
27441
27442 PR middle-end/42973
27443 * ira-conflicts.c (get_dup): Remove.
27444 (process_reg_shuffles): Add new parameter. Use it as an
27445 additional guard for copy generation.
27446 (add_insn_allocno_copies): Rewrite.
27447
27448 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
27449
27450 * common.opt (fsched2-use-traces): Preserved for backward
27451 compatibility.
27452 * doc/invoke.texi: Remove the documentation about option
27453 -fsched2-use-traces.
27454 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
27455 flag_sched2_use_traces.
27456 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
27457 the backward compatibility flag section.
27458
27459 2010-02-09 Richard Guenther <rguenther@suse.de>
27460
27461 PR tree-optimization/43008
27462 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
27463 make HEAP variables initialized from global memory if they
27464 are not known builtin functions.
27465 (find_func_aliases): Adjust.
27466
27467 2010-02-09 Richard Guenther <rguenther@suse.de>
27468
27469 PR tree-optimization/43000
27470 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
27471 arithmetic manually.
27472
27473 2010-02-08 Jakub Jelinek <jakub@redhat.com>
27474
27475 PR tree-optimization/42931
27476 * tree-loop-linear.c (try_interchange_loops): Don't call
27477 double_int_mul if estimated_loop_iterations failed.
27478
27479 2010-02-08 Martin Jambor <mjambor@suse.cz>
27480
27481 PR middle-end/42898
27482 * tree-sra.c (build_accesses_from_assign): Do not mark in
27483 should_scalarize_away_bitmap if stmt has volatile ops.
27484 (sra_modify_assign): Do not process assigns piecemeal if if stmt
27485 has volatile ops.
27486
27487 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
27488
27489 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
27490
27491 2010-02-07 Adam Nemet <adambnmet@gmail.com>
27492
27493 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
27494 before the pattern.
27495
27496 2010-02-07 Andrew Pinski <pinskia@gmail.com>
27497
27498 PR middle-end/42946
27499 * df-core.c (df_finish_pass): Change type of saved_flags to int.
27500
27501 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
27502
27503 PR middle-end/42988
27504 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
27505 to unknown_dependence.
27506 (graphite_legal_transform_dr): Handle the unknown_dependence.
27507 (graphite_carried_dependence_level_k): Same.
27508
27509 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
27510
27511 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
27512
27513 2010-02-07 Richard Guenther <rguenther@suse.de>
27514
27515 PR middle-end/42991
27516 * expr.c (get_inner_reference): Always initialize *pbitsize.
27517
27518 2010-02-07 Richard Guenther <rguenther@suse.de>
27519
27520 PR middle-end/42956
27521 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
27522 new ARRAY_REFs on variable size element or minimal index arrays.
27523 Complete.
27524 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
27525 gimple_fold_indirect_ref.
27526
27527 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
27528
27529 PR target/42957
27530 * arm.c (arm_override_options): Just return if the user has specified
27531 an invalid fpu name.
27532
27533 2010-02-03 Jason Merrill <jason@redhat.com>
27534
27535 PR c++/42870
27536 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
27537 i386_pe_maybe_record_exported_symbol.
27538
27539 2010-02-05 Steve Ellcey <sje@cup.hp.com>
27540
27541 PR target/42924
27542 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27543 (pa_delegitimize_address): New function.
27544
27545 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
27546
27547 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
27548 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
27549
27550 2010-02-05 Richard Guenther <rguenther@suse.de>
27551
27552 PR lto/42762
27553 * lto-streamer-in.c (get_resolution): Deal with references
27554 to undefined functions.
27555
27556 2010-02-05 Richard Guenther <rguenther@suse.de>
27557
27558 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
27559 (fold_const_aggregate_ref): Likewise.
27560 (ccp_fold_stmt): Substitute loads.
27561 (maybe_fold_reference): Verify types before substituting.
27562 Unshare properly.
27563 (fold_gimple_assign): Unshare properly.
27564 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
27565
27566 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
27567
27568 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
27569 for rs6000_gen_cell_microcode.
27570
27571 2010-02-04 Richard Guenther <rguenther@suse.de>
27572
27573 PR rtl-optimization/42952
27574 * dse.c (const_or_frame_p): Remove MEM handling.
27575
27576 2010-02-04 Nick Clifton <nickc@redhat.com>
27577
27578 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27579 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27580 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
27581 (mn10300_asm_output_mi_thunk): New function.
27582 (mn10300_can_output_mu_thunk): New function.
27583 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
27584 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
27585 (FUNCTION_ARG): Delete incorrect comment.
27586
27587 2010-02-03 Jason Merrill <jason@redhat.com>
27588
27589 PR c++/40138
27590 * fold-const.c (operand_equal_p): Handle erroneous types.
27591
27592 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27593
27594 * config/h8300/h8300.md (can_delay): Fix attibute condition.
27595
27596 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
27597
27598 PR rtl-optimization/42941
27599 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
27600 of xmalloc.
27601
27602 2010-02-03 Jason Merrill <jason@redhat.com>
27603
27604 PR c++/35652
27605 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
27606
27607 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
27608
27609 PR debug/42896
27610 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
27611 (cselib_reset_table): Renamed from...
27612 (cselib_reset_table_with_next_value): ... this.
27613 (cselib_get_next_uid): Renamed from...
27614 (cselib_get_next_unknown_value): ... this.
27615 * cselib.c (next_uid): Renamed from...
27616 (next_unknown_value): ... this.
27617 (cselib_clear_table): Adjust.
27618 (cselib_reset_table): Adjust. Renamed from...
27619 (cselib_reset_table_with_next_value): ... this.
27620 (cselib_get_next_uid): Adjust. Renamed from...
27621 (cselib_get_next_unknown_value): ... this.
27622 (get_value_hash): Use hash.
27623 (cselib_hash_rtx): Likewise.
27624 (new_cselib_val): Adjust. Set and dump uid.
27625 (cselib_lookup_mem): Pass next_uid as hash.
27626 (cselib_subst_to_values): Likewise.
27627 (cselib_log_lookup): Dump uid.
27628 (cselib_lookup): Pass next_uid as hash. Adjust.
27629 (cselib_process_insn): Adjust.
27630 (cselib_init): Initialize next_uid.
27631 (cselib_finish): Adjust.
27632 (dump_cselib_table): Likewise.
27633 * dse.c (canon_address): Dump value uid.
27634 * print-rtl.c (print_rtx): Print value uid.
27635 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
27636 (dvuid): New type.
27637 (dv_uid): New function, sort of renamed from...
27638 (dv_htab_hash): ... this, reimplemented in terms of it and...
27639 (dv_uid2hash): ... this. New.
27640 (variable_htab_eq): Drop excess assertions.
27641 (tie_break_pointers): Removed.
27642 (canon_value_cmp): Compare uids.
27643 (variable_post_merge_New_vals): Print uids.
27644 (vt_add_function_parameters): Adjust.
27645 (vt_initialize): Reset table. Adjust.
27646
27647 2010-02-03 Richard Guenther <rguenther@suse.de>
27648
27649 PR tree-optimization/42944
27650 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
27651 (call_may_clobber_ref_p_1): Likewise. Properly handle
27652 malloc and calloc clobbering errno.
27653
27654 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
27655
27656 * doc/invoke.texi: Fix name of sched1 dump.
27657
27658 * opts.c (decode_options): Set flag_tree_switch_conversion
27659 only conditionally on optimize >= 2.
27660
27661 * gcse.c: Assorted comment fixes in pass description.
27662
27663 2010-02-03 Anthony Green <green@moxielogic.com>
27664
27665 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
27666 nop padding in order to maintain alignment of storage location of
27667 target function address.
27668 (moxie_trampoline_init): Store target function address at newly
27669 aligned location.
27670 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
27671 to 32.
27672 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
27673
27674 2010-02-03 Richard Guenther <rguenther@suse.de>
27675
27676 PR middle-end/42927
27677 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27678
27679 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27680
27681 * config.gcc: Reenable check for obsolete targets.
27682 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27683 mips-sgi-irix6.[0-4]*.
27684
27685 2010-02-02 Nick Clifton <nickc@redhat.com>
27686
27687 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27688 constant size of 4 as being the same as 0.
27689 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27690 can take values in the range 0..4.
27691
27692 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
27693
27694 PR java/41991
27695 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27696 as _darwin10_Unwind_FindEnclosingFunction().
27697 * libgcc-libsystem.ver: New.
27698
27699 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
27700
27701 PR target/41399
27702 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27703 implicitly set registers.
27704
27705 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
27706
27707 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27708 (arm_override_options): Allow automatic selection of the thread
27709 pointer register if thumb2.
27710 (legitimize_pic_address): Improve code sequences for Thumb2.
27711 (arm_call_tls_get_addr): Likewise.
27712 (legitimize_tls_address): Likewise.
27713 * arm.md (pic_load_addr_arm): Delete. Replace with ...
27714 (pic_load_addr_32bit): ... this. New named pattern.
27715 * thumb2.md (pic_load_addr_thumb2): Delete.
27716 (pic_load_dot_plus_four): Delete.
27717 (tls_load_dot_plus_four): New named pattern.
27718
27719 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27720
27721 PR libgomp/29986
27722 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27723 Document fix for TLS bug.
27724
27725 2010-01-31 Richard Guenther <rguenther@suse.de>
27726
27727 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27728 conservatively correct.
27729
27730 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27731
27732 PR target/42850
27733 Revert:
27734 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27735
27736 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27737
27738 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27739
27740 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27741
27742 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
27743
27744 * config.gcc: Adjust order of makefile fragments for mingw targets.
27745
27746 2010-01-31 Richard Guenther <rguenther@suse.de>
27747
27748 PR middle-end/42898
27749 * gimplify.c (gimplify_init_constructor): For volatile LHS
27750 initialize a temporary.
27751
27752 2010-01-31 Matthias Klose <doko@ubuntu.com>
27753
27754 * configure.ac: Fix __stack_chk_fail check for cross builds configured
27755 --with-headers
27756 * configure: Regenerate.
27757
27758 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
27759
27760 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27761 the same alias set and their sizes different constantness.
27762 (aliasing_component_refs_p): Revert 2009-10-24 change.
27763
27764 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27765
27766 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27767 unused.
27768
27769 2010-01-29 Richard Guenther <rguenther@suse.de>
27770
27771 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27772 Assert we successfully updated the call.
27773
27774 2010-01-29 Jakub Jelinek <jakub@redhat.com>
27775
27776 PR rtl-optimization/42889
27777 * df.h (df_set_bb_dirty_nonlr): New prototype.
27778 * df-core.c (df_set_bb_dirty_nonlr): New function.
27779 * df-scan.c (df_insn_rescan): Call it instead of
27780 df_set_bb_dirty for DEBUG_INSNs.
27781
27782 2010-01-29 Richard Guenther <rguenther@suse.de>
27783
27784 PR middle-end/37448
27785 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27786 quadratic behavior in most cases.
27787
27788 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
27789
27790 PR target/42891
27791 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27792 in the call to gen_x86_movsicc_0_m1.
27793
27794 2010-01-28 Richard Guenther <rguenther@suse.de>
27795
27796 PR tree-optimization/42871
27797 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27798
27799 2010-01-28 Richard Guenther <rguenther@suse.de>
27800
27801 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27802 into call arguments.
27803
27804 2010-01-28 Richard Guenther <rguenther@suse.de>
27805
27806 PR middle-end/42883
27807 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27808 the forwarder if the destination is an EH landing pad.
27809
27810 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
27811
27812 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27813 block list passed to gimple_duplicate_sese_tail.
27814 (parallelize_loops): Avoid parallelization when the function
27815 has_nonlocal_label.
27816 Avoid parallelization when the preheader is IRREDUCIBLE.
27817 Try to optimize when estimated_loop_iterations_int is unresolved.
27818 Add the loop's location to the dump file.
27819 * tree-cfg.c (add_phi_args_after_redirect): Remove.
27820 (gimple_duplicate_sese_tail): Remove the check for the latch.
27821 Redirect nexits to the exit block.
27822 Remove handling of the incoming edges to the latch.
27823 Redirect the backedge from the copied latch to the exit bb.
27824
27825 2010-01-28 Michael Matz <matz@suse.de>
27826
27827 PR target/42881
27828 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27829 Wrap force_reg into a sequence, emit it before user.
27830
27831 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
27832
27833 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
27834 (arm_rev): New.
27835 (arm_legacy_rev): Likewise.
27836 (thumb_legacy_rev): Likewise.
27837
27838 2010-01-27 Jakub Jelinek <jakub@redhat.com>
27839
27840 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
27841 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
27842 on MEM's address failed, try avoid_constant_pool_reference and
27843 recurse if it returned something different.
27844 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
27845 address, try avoid_constant_pool_reference and recurse if it
27846 returned something different.
27847 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
27848 address and avoid_constant_pool_reference returned something
27849 different, don't set have_address.
27850
27851 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
27852
27853 PR debug/42861
27854 * var-tracking.c (val_store): Add modified argument, obey it.
27855 Adjust callers.
27856 (count_uses): Move down logging of main.
27857 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
27858 don't need resolution.
27859 (emit_notes_in_bb): Likewise.
27860
27861 2010-01-27 Richard Guenther <rguenther@suse.de>
27862
27863 PR middle-end/42878
27864 * tree-inline.c (remap_decl): Delay remapping of SSA name
27865 default definitions until we need them.
27866
27867 2010-01-27 Jakub Jelinek <jakub@redhat.com>
27868
27869 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27870 (rs6000_delegitimize_address): New function.
27871
27872 * config/s390/s390.c (s390_delegitimize_address): Call
27873 delegitimize_mem_from_attrs.
27874
27875 PR middle-end/42874
27876 * tree-inline.c (cannot_copy_type_1): Removed.
27877 (copy_forbidden): Don't forbid copying of functions containing
27878 records/unions with variable length fields.
27879
27880 2010-01-27 Christian Bruel <christian.bruel@st.com>
27881
27882 Revert:
27883 PR target/42841
27884 * config/sh/sh.c (find_barrier): Increase length for non delayed
27885 conditional branches.
27886
27887 2010-01-27 Matthias Klose <doko@ubuntu.com>
27888
27889 * configure.ac (gnu-unique-object): Fix ldd version check.
27890 * configure: Regenerate.
27891
27892 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27893
27894 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
27895 HAVE_GNU_AS value.
27896 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
27897 Test for HAVE_GNU_AS value.
27898
27899 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27900
27901 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
27902 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
27903 INT64_TYPE): Define.
27904 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
27905 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27906 INT_LEAST64_TYPE): Define.
27907 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
27908 UINT_LEAST64_TYPE): Define.
27909 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
27910 INT_FAST64_TYPE): Define.
27911 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27912 UINT_FAST64_TYPE): Define.
27913 (INTMAX_TYPE, UINTMAX_TYPE): Define.
27914 (INTPTR_TYPE, UINTPTR_TYPE): Define.
27915 (SIG_ATOMIC_TYPE): Define.
27916
27917 2010-01-26 Richard Guenther <rguenther@suse.de>
27918
27919 * df-scan.c (df_scan_set_bb_info): Remove assert.
27920 (df_insn_rescan_debug_internal): Merge asserts.
27921 (df_install_ref): Likewise.
27922 (df_mark_reg): Use bitmap_set_range.
27923 (df_hard_reg_used_p): Remove assert.
27924 (df_hard_reg_used_count): Likewise.
27925
27926 2010-01-26 Richard Guenther <rguenther@suse.de>
27927
27928 PR rtl-optimization/42685
27929 * web.c (web_main): Ignore DEBUG_INSNs.
27930
27931 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
27932
27933 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
27934
27935 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
27936 Fix types of fndecl and arglist parameters.
27937
27938 2010-01-26 Richard Guenther <rguenther@suse.de>
27939
27940 PR middle-end/42806
27941 * tree-eh.c (unsplit_eh): Skip debug insns.
27942
27943 2010-01-26 Richard Guenther <rguenther@suse.de>
27944
27945 PR tree-optimization/42250
27946 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
27947
27948 2010-01-26 Jakub Jelinek <jakub@redhat.com>
27949
27950 PR fortran/42866
27951 * omp-low.c (expand_omp_sections): Only use single_pred if
27952 l2_bb is single_pred_p.
27953
27954 2010-01-25 Christian Bruel <christian.bruel@st.com>
27955
27956 PR target/42841
27957 * config/sh/sh.c (find_barrier): Increase length for non delayed
27958 conditional branches.
27959 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
27960
27961 2010-01-24 David S. Miller <davem@davemloft.net>
27962
27963 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
27964 define if not using GAS.
27965 * config/sparc/sparc.c (sparc_elf_asm_named_section):
27966 Likewise. Delete SECTION_MERGE code, which is only applicable
27967 when using GAS.
27968
27969 2010-01-24 Mark Mitchell <mark@codesourcery.com>
27970
27971 PR c++/42748
27972 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
27973 mangling of va_list in system headers.
27974
27975 2010-01-23 Toon Moene <toon@moene.org>
27976
27977 * tree-predcom.c (combine_chains): Return NULL, not false.
27978
27979 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
27980
27981 * tree-loop-distribution.c (distribute_loop): Fix declaration and
27982 initialization of variable res to agree with return type.
27983
27984 2010-01-22 Steve Ellcey <sje@cup.hp.com>
27985
27986 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
27987 * tree-sra.c: Add include of expr.h.
27988
27989 2010-01-22 Jakub Jelinek <jakub@redhat.com>
27990
27991 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
27992 insert the debug stmt on the single non-EH edge from the stmt.
27993
27994 2010-01-22 Richard Henderson <rth@redhat.com>
27995
27996 PR tree-opt/42833
27997 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
27998 the RHS until after generate_subtree_copies has insertted its
27999 code before the current statement.
28000
28001 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
28002
28003 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
28004
28005 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
28006
28007 2010-01-21 Martin Jambor <mjambor@suse.cz>
28008
28009 PR tree-optimization/42585
28010 * tree-sra.c (struct access): New field grp_total_scalarization.
28011 (dump_access): Dump the new field.
28012 (should_scalarize_away_bitmap): New variable.
28013 (cannot_scalarize_away_bitmap): Likewise.
28014 (sra_initialize): Allocate new bitmaps.
28015 (sra_deinitialize): Free new bitmaps.
28016 (create_access_1): New function.
28017 (create_access): Parts moved to create_access_1.
28018 (type_consists_of_records_p): New function.
28019 (completely_scalarize_record): Likewise.
28020 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
28021 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
28022 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
28023 access.
28024 (analyze_all_variable_accesses): Completely scalarize small eligible
28025 records.
28026
28027 2010-01-21 Martin Jambor <mjambor@suse.cz>
28028
28029 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
28030
28031 2010-01-21 Andrew Haley <aph@redhat.com>
28032
28033 * gcc.c (process_command): Move lang_specific_driver before
28034 setting cc_libexec_prefix.
28035
28036 2010-01-21 Richard Guenther <rguenther@suse.de>
28037
28038 PR middle-end/19988
28039 * fold-const.c (negate_expr_p): Pretend only negative
28040 real constants are easily negatable.
28041
28042 2010-01-20 Janis Johnson <janis187@us.ibm.com>
28043 Jason Merrill <jason@redhat.com>
28044
28045 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
28046 (TYPE_TRANSPARENT_AGGR): this, for union and record.
28047 * calls.c (initialize argument_information): Handle it.
28048 * c-common.c (handle_transparent_union_attribute): Use new name.
28049 * c-decl.c (finish_struct): Ditto.
28050 * c-typeck.c (type_lists_compatible_p): Ditto.
28051 (convert_for_assignment): Use new name and also handle record.
28052 * function.c (aggregate_value_p): Handle it.
28053 (pass_by_reference): Ditto.
28054 (assign_parm_data_types): Ditto.
28055 * print-tree.c (print_node): Ditto.
28056 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
28057 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
28058 * tree.c (first_field): New fn.
28059
28060 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
28061
28062 PR target/42818
28063 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
28064 even when linking statically, for now.
28065
28066 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
28067
28068 PR debug/42715
28069 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
28070 without a cselib val.
28071 (count_uses): Accept MO_VAL_SET with no val on stores.
28072 (add_stores): Likewise.
28073
28074 2010-01-20 Jakub Jelinek <jakub@redhat.com>
28075
28076 * var-tracking.c (check_value_val): Add a compile time assertion.
28077 (dv_is_decl_p): Simplify.
28078 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
28079 gcc_assert if ENABLE_CHECKING.
28080
28081 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
28082
28083 PR debug/42782
28084 * var-tracking.c: Include tree-flow.h.
28085 (mem_dies_at_call): New.
28086 (dataflow_set_preserve_mem_locs): Use it.
28087 (dataflow_set_remove_mem_locs): Likewise.
28088 (dump_var): Renamed from dump_variable. Adjust all callers.
28089 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
28090 * Makefile.in (var-tracking.o): Adjust deps.
28091
28092 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
28093
28094 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
28095
28096 2010-01-20 Richard Guenther <rguenther@suse.de>
28097
28098 PR tree-optimization/42717
28099 * tree-ssa-dce.c (get_live_post_dom): Remove.
28100 (forward_edge_to_pdom): Take an arbitrary edge to copy
28101 degenerate PHI args from.
28102 (remove_dead_stmt): Use the first post-dominator even if it
28103 does not contain live statements as redirection destination.
28104
28105 2010-01-20 Richard Guenther <rguenther@suse.de>
28106
28107 * tree-inline.c (estimate_num_insns): Handle EH builtins.
28108
28109 2010-01-20 Jakub Jelinek <jakub@redhat.com>
28110
28111 * sel-sched.c (create_speculation_check): Remove set but not used
28112 variable twin.
28113 (try_transformation_cache): Remove set but not used variable ds.
28114 (calculate_privileged_insns): Remove set but not used variables
28115 cur_insn and min_spec_insn.
28116 (find_best_expr): Remove set but not used variable avail_n.
28117 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
28118 variable e.
28119 * cgraphunit.c (assemble_thunk): Remove set but not used variable
28120 false_label.
28121 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
28122 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
28123 new_scop_exit_edge.
28124
28125 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
28126
28127 PR bootstrap/42786
28128 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
28129 cpu types. Add support for *-sse3 cpu types.
28130 (x86_64-*-*): Ditto.
28131
28132 2010-01-20 Jakub Jelinek <jakub@redhat.com>
28133
28134 PR middle-end/42803
28135 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
28136 argument, call initializer_constant_valid_p_1 instead of
28137 initializer_constant_valid_p, pass CACHE to it, return NULL
28138 immediately if first call returns NULL.
28139 (initializer_constant_valid_p_1): New function.
28140 (initializer_constant_valid_p): Use it.
28141
28142 2010-01-20 Thomas Quinot <quinot@adacore.com>
28143
28144 * tree.def (PLACEHOLDER_EXPR): Fix comment.
28145
28146 2010-01-20 Jakub Jelinek <jakub@redhat.com>
28147
28148 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
28149 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
28150 (loc_list_from_tree): Don't handle unsigned division. Handle
28151 signed modulo using DW_OP_{over,over,div,mul,minus}.
28152 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
28153 modulo instead of signed.
28154
28155 2010-01-20 DJ Delorie <dj@redhat.com>
28156
28157 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
28158 (Fpa): Pass it
28159 (h8300_emit_stack_adjustment): Propogate it.
28160 (push): Pass it.
28161 (h8300_expand_prologue): Likewise.
28162 (h8300_expand_epilogue): Likewise.
28163
28164 2010-01-19 Michael Matz <matz@suse.de>
28165
28166 PR tree-optimization/41783
28167 * tree-data-ref.c (toplevel): Include flags.h.
28168 (dump_data_dependence_relation): Also dump the inputs if the
28169 result will be unknown.
28170 (split_constant_offset_1): Look through some conversions.
28171 * tree-predcom.c (determine_roots_comp): Restart a new chain if
28172 the offset from last element is too large.
28173 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
28174 (reassociate_to_the_same_stmt): Handle vector registers.
28175 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
28176 (e.g. conversions).
28177 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
28178 wide_prolog_niters argument, emit widening instructions.
28179 (vect_do_peeling_for_alignment): Adjust caller, use widened
28180 variant of the iteration cound.
28181 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
28182
28183 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28184
28185 PR target/38697
28186 * config/arm/neon-testgen.m (emit_automatics): New parameter
28187 features. Adjust for Fixed_return_reg feature.
28188 (test_intrinsic): Call emit_automatics with new feature.
28189 * config/arm/neon.ml: Update copyright years.
28190 (features): New Fixed_return_reg feature.
28191 (ops): Update feature for Vget_low.
28192
28193 2010-01-19 Jakub Jelinek <jakub@redhat.com>
28194
28195 PR tree-optimization/42719
28196 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
28197 stmt uses.
28198
28199 PR debug/42728
28200 * fwprop.c (all_uses_available_at): Return false if def_set dest
28201 is a REG that is used in def_insn.
28202
28203 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
28204
28205 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
28206
28207 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
28208 Add argument names.
28209
28210 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
28211
28212 * target.h (struct gcc_target) <secondary_reload>: Change type
28213 of last argument to secondary_reload_info *.
28214
28215 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
28216
28217 PR target/42774
28218 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
28219 memory references with unaligned offsets. Remove CQImode handling.
28220 (unaligned_memory_operand): Return 1 for memory references with
28221 unaligned offsets. Remove CQImode handling.
28222
28223 2010-01-18 Richard Guenther <rguenther@suse.de>
28224
28225 PR middle-end/39954
28226 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
28227 builtin calls.
28228
28229 2010-01-18 Richard Guenther <rguenther@suse.de>
28230
28231 PR tree-optimization/42781
28232 * tree-ssa-structalias.c (find_what_var_points_to): Skip
28233 restrict processing only if the original variable was artificial.
28234
28235 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
28236
28237 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
28238 find number of popped argument bytes.
28239
28240 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
28241 Fix the text that describes the return value for invalid insns.
28242
28243 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
28244
28245 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
28246 Clarify what 'cost of the -dependence' is. Fix quoting.
28247
28248 * toplev.c (default_get_pch_validity): Rename argument to "sz".
28249 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
28250
28251 2010-01-17 Jakub Jelinek <jakub@redhat.com>
28252
28253 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
28254 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
28255
28256 2010-01-17 Richard Guenther <rguenther@suse.de>
28257
28258 PR middle-end/42248
28259 * function.c (split_complex_args): Take a VEC to modify.
28260 (assign_parms_augmented_arg_list): Build a VEC instead of
28261 a chain of PARM_DECLs.
28262 (assign_parms_unsplit_complex): Take a VEC of arguments.
28263 Do not fixup unmodified parms.
28264 (assign_parms): Deal with the VEC.
28265 (gimplify_parameters): Likewise.
28266
28267 2010-01-17 Richard Guenther <rguenther@suse.de>
28268
28269 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
28270 node existence check.
28271 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
28272 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
28273 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
28274 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
28275 (gimple_execute_on_growing_pred): Likewise.
28276
28277 2010-01-17 Richard Guenther <rguenther@suse.de>
28278
28279 PR tree-optimization/42773
28280 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
28281 (compute_antic_aux): Likewise.
28282 (compute_partial_antic_aux): Likewise.
28283
28284 2010-01-17 Jie Zhang <jie.zhang@analog.com>
28285
28286 PR debug/42767
28287 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
28288 and US_TRUNCATE.
28289
28290 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
28291
28292 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
28293 appearance.
28294
28295 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
28296 Fix markup for strict argument.
28297
28298 (TARGET_SCHED_REORDER2): Fix argument types.
28299
28300 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
28301 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
28302
28303 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
28304 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
28305
28306 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
28307 Add argument name.
28308
28309 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
28310 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
28311 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
28312 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
28313 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
28314
28315 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
28316
28317 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
28318
28319 (TARGET_ASM_RELOC_RW_MASK): Add return type.
28320 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
28321
28322 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
28323
28324 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
28325 Use prototype.
28326
28327 (TARGET_ASM_NAMED_SECTION): Fix argument list.
28328
28329 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
28330 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
28331
28332 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
28333
28334 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
28335
28336 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
28337 referring to it. Fix language.
28338
28339 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
28340
28341 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
28342
28343 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
28344
28345 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
28346
28347 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
28348 '@var{stream}. Remove stray 'and'.
28349
28350 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
28351
28352 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
28353
28354 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
28355
28356 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
28357 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
28358
28359 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
28360 Fix description of return value.
28361 Rename argument "sz" to "len."
28362
28363 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
28364 Clarify meaning of 'true' return value.
28365
28366 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
28367
28368 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
28369 rep_mode versus mode_rep.
28370
28371 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
28372
28373 (TARGET_BUILTIN_DECL): Fix name.
28374
28375 (TARGET_COMMUTATIVE_P): Fix type of first argument.
28376
28377 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
28378
28379 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
28380
28381 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
28382
28383 (TARGET_RELAXED_ORDERING): Use @deftypevr.
28384
28385 (TARGET_GET_DRAP_RTX): Note that this is a hook.
28386 Clarify language.
28387
28388 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
28389 Rename argument tm_fn to md_fn.
28390
28391 (TARGET_OPTION_PRINT): Fix argument list.
28392
28393 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
28394
28395 PR target/42664
28396 * config/i386/i386.c (ix86_fixup_binary_operands):
28397 Revert FMA4 fixup of operands.
28398
28399 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28400
28401 PR gcc/42525
28402 * Makefile.in (write_entries_to_file, install-plugin):
28403 Use \012 instead of \n with tr.
28404
28405 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
28406
28407 * configure.ac (HAVE_AS_REF): New C macro.
28408 * configure: Regenerate.
28409 * config.in: Likewise.
28410 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
28411 if HAVE_AS_REF.
28412 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
28413 if HAVE_AS_REF.
28414
28415 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
28416
28417 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
28418
28419 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
28420
28421 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
28422
28423 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
28424
28425 (TARGET_IN_SMALL_DATA_P): Fix argument type.
28426
28427 (TARGET_BINDS_LOCAL_P): Fix argument type.
28428
28429 (TARGET_ASM_FILE_END): Use prototype.
28430
28431 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
28432
28433 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
28434
28435 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
28436
28437 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
28438
28439 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
28440 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
28441
28442 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
28443 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
28444
28445 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
28446 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
28447 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
28448 (TARGET_ADDR_SPACE_CONVERT): Likewise.
28449
28450 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
28451
28452 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
28453
28454 (TARGET_INIT_BUILTINS): Use prototype.
28455
28456 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
28457 Put 'const char *' in braces. Fix parameter types.
28458 (TARGET_INVALID_CONVERSION): Fix parameter types.
28459 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
28460 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
28461
28462 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
28463 Fix argument type.
28464
28465 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
28466
28467 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
28468
28469 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
28470
28471 * doc/tm.texi (TARGET_HELP): Fix return type.
28472
28473 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
28474 in braces. Fix argument types.
28475
28476 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
28477
28478 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
28479
28480 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
28481
28482 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
28483 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
28484
28485 (TARGET_MANGLE_TYPE): Fix argument types.
28486
28487 (TARGET_IRA_COVER_CLASSES): Use prototype.
28488
28489 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
28490
28491 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
28492
28493 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
28494
28495 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
28496
28497 (TARGET_CALLEE_COPIES): Fix argument types.
28498
28499 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
28500
28501 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
28502
28503 (TARGET_FUNCTION_VALUE): Fix argument types.
28504
28505 (TARGET_RETURN_IN_MSB): Fix argument type.
28506
28507 (TARGET_RETURN_IN_MEMORY): Fix argument types.
28508
28509 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
28510
28511 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
28512
28513 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
28514 agree with return type.
28515
28516 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
28517
28518 2010-01-15 Jing Yu <jingyu@google.com>
28519
28520 PR rtl-optimization/42691
28521 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
28522 a pseudo to a constant and are merged, and adjust comments.
28523
28524 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
28525
28526 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
28527
28528 2010-01-15 Richard Guenther <rguenther@suse.de>
28529
28530 PR middle-end/42739
28531 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
28532 labels of computed or non-local gotos to the destination.
28533 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
28534 landing pad label is the first label.
28535
28536 2010-01-15 Richard Guenther <rguenther@suse.de>
28537
28538 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
28539
28540 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28541
28542 PR target/42747
28543 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
28544 to allow generation of the xssqrtdp instruction on power7.
28545 (sqrtdf2_fpr): Ditto.
28546
28547 2010-01-14 Jakub Jelinek <jakub@redhat.com>
28548
28549 PR middle-end/42674
28550 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
28551 functions with noreturn attribute.
28552
28553 PR c++/42608
28554 * varasm.c (declare_weak): Add weak attribute to decl if it
28555 doesn't have one already.
28556 (assemble_external): Only add decls to weak_decls if they also
28557 have weak attribute.
28558
28559 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
28560
28561 * var-tracking.c (var_reg_delete): Don't delete the association
28562 between REGs and values or one-part variables if the register
28563 isn't clobbered.
28564
28565 2010-01-14 Jakub Jelinek <jakub@redhat.com>
28566
28567 PR debug/42657
28568 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
28569 because its first operand is a non-localized variable.
28570
28571 2010-01-14 Martin Jambor <mjambor@suse.cz>
28572
28573 PR tree-optimization/42706
28574 * tree-sra.c (encountered_recursive_call): New variable.
28575 (encountered_unchangable_recursive_call): Likewise.
28576 (sra_initialize): Initialize both new variables.
28577 (callsite_has_enough_arguments_p): New function.
28578 (scan_function): Call decl and flags check only for IPA-SRA, check
28579 whether there is a recursive call and whether it has enough arguments.
28580 (all_callers_have_enough_arguments_p): New function.
28581 (convert_callers): Look for recursive calls only when
28582 encountered_recursive_call is set.
28583 (ipa_early_sra): Bail out either if
28584 !all_callers_have_enough_arguments_p or
28585 encountered_unchangable_recursive_call.
28586
28587 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28588
28589 * sel-sched.c: Add 2010 to copyright years.
28590 * sel-sched-ir.c: Likewise.
28591 * sel-sched-ir.h: Likewise.
28592
28593 2010-01-14 Martin Jambor <mjambor@suse.cz>
28594
28595 PR tree-optimization/42714
28596 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
28597 constructors specially.
28598
28599 2010-01-14 Andi Kleen <ak@linux.intel.com>
28600
28601 * config/i386/drivers-i386.c (detect_caches_intel):
28602 Add l2sizekb parameter and fill in.
28603 (host_detect_local_cpu): Add l2sizekb, fill in.
28604 Add Atom small cache heuristic.
28605
28606 2010-01-14 Andi Kleen <ak@linux.intel.com>
28607
28608 * config/i386/drivers-i386.c (detect_caches_cpuid4):
28609 Add level3 parameter and fill in.
28610 (detect_caches_intel): Handle level3 cache.
28611
28612 2010-01-14 Andi Kleen <ak@linux.intel.com>
28613
28614 * config/i386/drivers-i386.c (host_detect_local_cpu):
28615 Fix core duo detection.
28616
28617 2010-01-14 Andi Kleen <ak@linux.intel.com>
28618
28619 * config/i386/drivers-i386.c (host_detect_local_cpu):
28620 Fix Atom detection.
28621
28622 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28623
28624 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
28625 (rs6000_variable_issue_1): this. Use...
28626 (rs6000_variable_issue): here. Reimplement. Print debug info.
28627
28628 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28629
28630 * sel-sched-ir.c (sel_restore_other_notes): Rename to
28631 sel_restore_notes. Update all callers. Call reemit_notes
28632 for all insns.
28633
28634 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28635
28636 PR rtl-optimization/42246
28637 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
28638 loops.
28639
28640 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28641
28642 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
28643 all successors is the same as number of successors in current region.
28644
28645 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28646
28647 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
28648 to rename is not separable. Otherwise check that its LHS is not NULL.
28649
28650 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28651
28652 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
28653
28654 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28655
28656 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
28657 available registers when failed to discover LHS register class.
28658 Fix indentation. Update comment.
28659
28660 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28661 Alexander Monakov <amonakov@ispras.ru>
28662
28663 PR rtl-optimization/42389
28664 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
28665 to can_issue_more.
28666 (advance_state_on_fence): Likewise.
28667 (sel_target_adjust_priority): Print debug output only when
28668 sched_verbose >= 4, not 2.
28669 (get_expr_cost): Do not issue all unique insns on the next cycle.
28670 (fill_insns): Initialize can_issue_more from the value saved
28671 with the fence.
28672 * sel-sched-ir.c (flist_add): New parameter issue_more.
28673 Init FENCE_ISSUE_MORE with it.
28674 (merge_fences): Likewise.
28675 (init_fences): Update call to flist_add.
28676 (add_to_fences, add_clean_fence_to_fences)
28677 (add_dirty_fence_to_fences): Likewise.
28678 (move_fence_to_fences): Update call to merge_fences.
28679 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28680 sched groups.
28681 * sel-sched-ir.h (struct _fence): New field issue_more.
28682 (FENCE_ISSUE_MORE): New accessor macro.
28683
28684 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28685
28686 PR rtl-optimization/42388
28687 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28688 that have no predecessors nor successors. Do not call move_bb_info
28689 for empty blocks outside of current region.
28690
28691 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28692
28693 PR rtl-optimization/42294
28694 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28695 * sel-sched.c (move_exprs_to_boundary): Transitively add all
28696 originators' originators.
28697
28698 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
28699
28700 PR rtl-optimization/39453
28701 PR rtl-optimization/42246
28702 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28703 for pipelining_p.
28704 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28705
28706 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28707 Alexander Monakov <amonakov@ispras.ru>
28708
28709 PR middle-end/42245
28710 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
28711 (maybe_tidy_empty_bb): ... here. Make static. Add new
28712 argument. Update all callers.
28713 (tidy_control_flow): ... and here. Recompute topological order
28714 of basic blocks in region if necessary.
28715 (sel_redirect_edge_and_branch): Change return type. Return true
28716 if topological order might have been invalidated.
28717 (purge_empty_blocks): Export and move from...
28718 * sel-sched.c (purge_empty_blocks): ... here.
28719 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28720 (maybe_tidy_empty_bb): Delete prototype.
28721 (purge_empty_blocks): Declare.
28722
28723 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
28724
28725 PR rtl-optimization/42249
28726 * sel-sched.c (try_replace_dest_reg): When chosen register
28727 and original register is the same, do not bail out early, but
28728 still check all original insns for validity of replacing destination
28729 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28730 in this case.
28731
28732 2010-01-14 Jakub Jelinek <jakub@redhat.com>
28733
28734 PR c/42721
28735 Port from no-undefined-overflow branch:
28736 2009-03-09 Richard Guenther <rguenther@suse.de>
28737
28738 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28739
28740 2010-01-14 Richard Guenther <rguenther@suse.de>
28741
28742 PR lto/42665
28743 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28744
28745 2010-01-14 Ira Rosen <irar@il.ibm.com>
28746
28747 PR tree-optimization/42709
28748 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28749 as scalar type in creation of constant vector operand.
28750
28751 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28752
28753 PR testsuite/42414
28754 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28755 (check-parallel-%): Match `testsuite' directory component only
28756 at the end.
28757
28758 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
28759
28760 PR translation/39521
28761 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28762 strings with _().
28763
28764 2010-01-13 Richard Guenther <rguenther@suse.de>
28765
28766 PR tree-optimization/42730
28767 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28768 offset zero.
28769
28770 2010-01-13 Steve Ellcey <sje@cup.hp.com>
28771
28772 PR target/pr42542
28773 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28774 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28775 them signed.
28776
28777 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
28778
28779 * config/bfin/libgcc-bfin.ver: Regenerate based on current
28780 libgcc-std.ver. Add entries for ___smulsi3_highpart and
28781 ___umulsi3_highpart.
28782
28783 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28784 rather than schedule_insns if the pass is enabled.
28785
28786 2010-01-13 Martin Jambor <mjambor@suse.cz>
28787
28788 PR tree-optimization/42704
28789 * tree-sra.c (sra_modify_assign): Do not delete assignments to
28790 SSA_NAMEs.
28791
28792 2010-01-13 Martin Jambor <mjambor@suse.cz>
28793
28794 PR tree-optimization/42703
28795 * tree-sra.c (analyze_access_subtree): Check that we can build a
28796 reference to the original data within the aggregate.
28797
28798 2010-01-13 Richard Guenther <rguenther@suse.de>
28799
28800 PR tree-optimization/42705
28801 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28802
28803 2010-01-13 Richard Guenther <rguenther@suse.de>
28804
28805 PR middle-end/42716
28806 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28807
28808 2010-01-13 Jakub Jelinek <jakub@redhat.com>
28809
28810 PR debug/41371
28811 * var-tracking.c (values_to_unmark): New variable.
28812 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28813 values_to_unmark vector. Moved body to...
28814 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
28815 instead queue it into values_to_unmark vector.
28816 (vt_find_locations): Free values_to_unmark vector.
28817
28818 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
28819
28820 * config/s390/s390.c (override_options): Set
28821 default of max-pending-list-length to 256
28822
28823 2010-01-13 Richard Guenther <rguenther@suse.de>
28824
28825 PR lto/42678
28826 * tree-pass.h (PROP_gimple_lcx): New.
28827 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28828 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28829 before the final cleanup_eh.
28830 (dump_properties): Dump PROP_gimple_lcx.
28831 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28832 (tree_lower_complex_O0): Remove.
28833 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
28834 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
28835 tree_lower_complex, schedule TODO_update_ssa.
28836 * lto-streamer-out.c (output_function): Stream the functions
28837 properties.
28838 * lto-streamer-in.c (input_function): Likewise.
28839 (lto_read_body): Do not override them here.
28840
28841 2010-01-12 Joseph Myers <joseph@codesourcery.com>
28842
28843 PR c/42708
28844 * c-typeck.c (build_c_cast): Fold value cast to union type before
28845 wrapping it in a CONSTRUCTOR.
28846
28847 2010-01-12 Jakub Jelinek <jakub@redhat.com>
28848
28849 PR rtl-optimization/42699
28850 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
28851 involved.
28852
28853 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28854
28855 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28856 SUBTARGET_WARN_UNUSED_SPEC): Move ...
28857 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28858 SUBTARGET_WARN_UNUSED_SPEC): ... here
28859 * config/mips/iris5.h (LIBGCC_SPEC): Define.
28860
28861 2010-01-12 Julian Brown <julian@codesourcery.com>
28862
28863 * config/arm/neon-schedgen.ml (Utils): Don't try to
28864 open missing module.
28865 (find_with_result): New.
28866
28867 2010-01-12 Jakub Jelinek <jakub@redhat.com>
28868
28869 PR debug/42662
28870 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
28871 sharing when canonicalizing ({lt,ge}u (plus a b) b).
28872
28873 PR tree-optimization/42645
28874 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
28875 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
28876 decl_map, set processing_debug_stmt to -1 and return name without
28877 any remapping.
28878
28879 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
28880
28881 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
28882 binutils version, and reword target configuration description.
28883
28884 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
28885
28886 * config/avr/avr.h (LINKER_NAME): Remove.
28887
28888 2010-01-11 Janis Johnson <janis187@us.ibm.com>
28889
28890 PR target/42416
28891 * config/rs6000/rs6000.c (rs6000_override_options): On targets
28892 that support VSX, warn for -mno-altivec if vsx is not disabled,
28893 and disable vsx.
28894
28895 2010-01-11 Joseph Myers <joseph@codesourcery.com>
28896 Shujing Zhao <pearly.zhao@oracle.com>
28897
28898 PR translation/42469
28899 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
28900 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
28901 character between option name and help text.
28902 * c.opt (imultilib): Likewise.
28903
28904 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
28905
28906 * lto-streamer-out.c (output_unreferenced_globals): Output static
28907 variables.
28908
28909 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
28910
28911 PR rtl-optimization/42621
28912 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
28913 optimizing for size.
28914 (duplicate_computed_gotos): Remove now-redundant check.
28915
28916 2010-01-10 Steve Ellcey <sje@cup.hp.com>
28917
28918 PR target/37454
28919 * configure.ac: Save and restore LDFLAGS and LIBS
28920 * configure: Regenerate.
28921
28922 2010-01-10 Richard Guenther <rguenther@suse.de>
28923
28924 PR middle-end/42667
28925 * builtins.c (fold_builtin_strlen): Add type argument and
28926 convert the resulting length to it.
28927 (fold_builtin_1): Adjust.
28928
28929 2010-01-09 Jakub Jelinek <jakub@redhat.com>
28930
28931 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
28932 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
28933 1 insn.
28934 (num_insns_constant_wide): Adjust for that change.
28935
28936 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28937
28938 PR debug/42631
28939 * web.c (union_defs): Add used argument, to combine uses of
28940 uninitialized regs.
28941 (entry_register): Adjust type and tests of used argument.
28942 (web_main): Widen used for new use. Pass it to union_defs.
28943 * df.h (union_defs): Adjust prototype.
28944
28945 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28946
28947 PR debug/42630
28948 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
28949 uses in new incoming argument. Free body.
28950 (reset_debug_uses_in_loop): New.
28951 (analyze_insn_to_expand_var): Call the latter if the former found
28952 anything. Fix whitespace. Reject invalid dest overlaps before
28953 going through all insns in the loop.
28954
28955 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28956
28957 PR debug/42629
28958 * haifa-sched.c (dying_use_p): Debug insns don't count.
28959
28960 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28961
28962 PR middle-end/42363
28963 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
28964 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
28965 (verify_gimple_call): Reject LHS in noreturn calls.
28966
28967 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28968
28969 PR debug/42604
28970 PR debug/42395
28971 * tree-vect-loop-manip.c (adjust_info): New type.
28972 (adjust_vec): New pointer to vector.
28973 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
28974 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
28975 (slpeel_update_phis_for_duplicate_loop): Use them.
28976 (slpeel_update_phi_nodes_for_guard1): Likewise.
28977 (slpeel_update_phi_nodes_for_guard2): Likewise.
28978 (slpeel_tree_peel_loop_to_edge): Likewise.
28979 (vect_update_ivs_after_vectorizer): Likewise.
28980
28981 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28982
28983 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
28984 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
28985
28986 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
28987
28988 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
28989 bogus uninitialized warning.
28990
28991 2010-01-09 Richard Guenther <rguenther@suse.de>
28992
28993 PR middle-end/42512
28994 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
28995 the evolution is compatible with the initial condition.
28996
28997 2010-01-09 Jakub Jelinek <jakub@redhat.com>
28998
28999 * gcc.c (process_command): Update copyright notice dates.
29000 * gcov.c (print_version): Likewise.
29001 * gcov-dump.c (print_version): Likewise.
29002 * mips-tfile.c (main): Likewise.
29003 * mips-tdump.c (main): Likewise.
29004
29005 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
29006
29007 PR target/41885
29008 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
29009 (rotlhi3): Delete.
29010 (rotlhi3_8): Delete.
29011 (rotlsi3): Delete.
29012 (rotlsi3_8): Delete.
29013 (rotlsi3_16): Delete.
29014 (rotlsi3_24): Delete.
29015 (rotl<mode>3): New.
29016 (*rotw<mode>3): New.
29017 (*rotb<mode>3): New.
29018 * config/avr/avr.c (avr_rotate_bytes): New function.
29019 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
29020
29021 2010-01-08 Steve Ellcey <sje@cup.hp.com>
29022
29023 PR target/37454
29024 * configure.ac: Modify -rdynamic check.
29025 * configure: Regenerate.
29026
29027 2010-01-08 DJ Delorie <dj@redhat.com>
29028
29029 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
29030 register popping order.
29031
29032 2010-01-08 Richard Guenther <rguenther@suse.de>
29033
29034 PR lto/42528
29035 * c.opt (fsigned-char): Also let LTO handle this option.
29036 (funsigned-char): Likewise.
29037
29038 2010-01-07 Richard Guenther <rguenther@suse.de>
29039
29040 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
29041 (gimple_op): Likewise.
29042 (gimple_op_ptr): Likewise.
29043 (gimple_assign_set_lhs): Remove gcc_assert.
29044 (gimple_assign_set_rhs1): Likewise.
29045 (gimple_assign_set_rhs2): Likewise.
29046 (gimple_call_set_lhs): Likewise.
29047 (gimple_call_set_fn): Likewise.
29048 (gimple_call_set_fndecl): Likewise.
29049 (gimple_call_fndecl): Likewise.
29050 (gimple_call_return_type): Likewise.
29051 (gimple_call_set_chain): Likewise.
29052 (gimple_call_num_args): Likewise.
29053 (gimple_call_set_arg): Likewise.
29054 (gimple_cond_set_code): Likewise.
29055 (gimple_cond_set_lhs): Likewise.
29056 (gimple_cond_set_rhs): Likewise.
29057 (gimple_cond_set_true_label): Likewise.
29058 (gimple_cond_set_false_label): Likewise.
29059 (gimple_label_set_label): Likewise.
29060 (gimple_goto_set_dest): Likewise.
29061 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
29062 (gimple_debug_bind_get_value): Likewise.
29063 (gimple_debug_bind_get_value_ptr): Likewise.
29064 (gimple_debug_bind_set_var): Likewise.
29065 (gimple_debug_bind_set_value): Likewise.
29066 (gimple_debug_bind_reset_value): Likewise.
29067 (gimple_debug_bind_has_value_p): Likewise.
29068 (gimple_return_retval_ptr): Remove gcc_assert.
29069 (gimple_return_retval): Likewise.
29070 (gimple_return_set_retval): Likewise.
29071 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
29072 (safe_referenced_var_iterator): Remove.
29073 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
29074 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
29075 (fill_referenced_var_vec): Remove.
29076 (first_readonly_imm_use): Remove redundant gcc_assert.
29077 (phi_arg_index_from_use): Combine gcc_asserts.
29078 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
29079 (first_imm_use_stmt): Remove redundant gcc_assert.
29080 * tree-cfg.c (verify_gimple_call): Verify function and chain
29081 operands. Verify arguments.
29082 (verify_types_in_gimple_stmt): Verify condition code and labels.
29083
29084 2010-01-07 Richard Guenther <rguenther@suse.de>
29085
29086 PR tree-optimization/42641
29087 * sese.c (rename_map_elt_info): Use the SSA name version, do
29088 not hash pointers.
29089
29090 2010-01-07 Jakub Jelinek <jakub@redhat.com>
29091
29092 PR tree-optimization/42625
29093 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
29094 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
29095
29096 2010-01-07 Duncan Sands <baldrick@free.fr>
29097
29098 * Makefile.in (PLUGIN_HEADERS): Add version.h.
29099
29100 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
29101
29102 PR target/42511
29103 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
29104 note itself is not function_invariant_p.
29105
29106 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
29107
29108 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
29109 Do not add the DF_NOTE problem.
29110 * store-motion.c (execute_rtl_store_motion): Likewise.
29111
29112 2010-01-07 Martin Jambor <mjambor@suse.cz>
29113
29114 PR tree-optimization/42157
29115 * tree-sra.c (compare_access_positions): Stabilize sort if both
29116 accesses have integer types, return zero immediately if they are the
29117 same.
29118
29119 2010-01-06 Richard Henderson <rth@redhat.com>
29120
29121 PR middle-end/41883
29122 * haifa-sched.c (add_to_note_list): Merge into ...
29123 (concat_note_lists): ... here, and ...
29124 (unlink_other_notes, rm_other_notes): Merge into...
29125 (remove_notes): ... here. Create REG_SAVE_NOTEs for
29126 NOTE_INSN_EPILOGUE_BEG.
29127
29128 2010-01-06 Richard Guenther <rguenther@suse.de>
29129
29130 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
29131 not inline regular functions into always-inline functions.
29132
29133 2010-01-06 Nick Clifton <nickc@redhat.com>
29134
29135 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
29136 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
29137 used together.
29138 (OVERRIDE_OPTIONS): Delete.
29139 (OPTIMIZATION_OPTIONS): Define.
29140 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
29141 * config/rx/rx.c (rx_handle_option): Issue an error message if
29142 -mcpu=rx200 and -fpu are used together.
29143 (rx_set_optimization_options): New function. Issue an error
29144 message if an optimization attribute attempts to reset the FPU/
29145 math optimization pairing.
29146 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
29147 * config/rx/rx.opt: Set the default to 32-bit doubles.
29148 * config/rx/t-rx: Add multilibs for -nofpu option.
29149 * doc/invoke.texi: Update documentation of RX options.
29150
29151 2010-01-06 Richard Guenther <rguenther@suse.de>
29152
29153 * tree-ssa-pre.c (name_to_id): New global.
29154 (alloc_expression_id): Simplify SSA name handling.
29155 (lookup_expression_id): Likewise.
29156 (init_pre): Zero name_to_id.
29157 (fini_pre): Free it.
29158
29159 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
29160
29161 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
29162
29163 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
29164
29165 PR target/42542
29166 * config/i386/sse.md (smaxv2di3): New.
29167 (umaxv2di3): Likewise.
29168 (sminv2di3): Likewise.
29169 (uminv2di3): Likewise.
29170
29171 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
29172
29173 PR target/42564
29174 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
29175 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
29176 (legitimize_tls_address): Likewise.
29177 (sparc_tls_referenced_p): Likewise.
29178 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
29179 and adjust calls to legitimize_pic_address.
29180 (legitimate_constant_p) Use sparc_tls_referenced_p.
29181 (legitimate_pic_operand_p): Likewise.
29182 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
29183 (sparc_tls_symbol_ref_1): Delete.
29184 (sparc_tls_referenced_p): Make static, recognize specific patterns.
29185 (legitimize_tls_address): Make static, handle CONST patterns.
29186 (legitimize_pic_address): Make static, remove unused parameter and
29187 adjust recursive calls.
29188 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
29189 and adjust call to legitimize_pic_address.
29190 (sparc_output_mi_thunk): Likewise.
29191
29192 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
29193 H.J. Lu <hongjiu.lu@intel.com>
29194
29195 PR target/42542
29196 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
29197 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
29198 operands to make them signed.
29199
29200 Revert:
29201 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
29202
29203 PR target/42542
29204 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29205 GTU to GT for V4SI and V2DI.
29206
29207 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29208 (umin<mode>3): Removed.
29209 (uminv8hi3): New.
29210 (uminv4si3): Likewise.
29211
29212 2010-01-05 Martin Jambor <mjambor@suse.cz>
29213
29214 PR tree-optimization/42462
29215 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
29216 current_function_decl to helper functions and macros.
29217
29218 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29219
29220 PR bootstrap/41771
29221 * flags.h: Don't include real.h.
29222 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
29223 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
29224 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
29225 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
29226 * dominance.c: Update copyright.
29227 * gimple.c (walk_gimple_op): Remove inline.
29228 * tree-ssa-reassoc.c: Include real.h.
29229 * Makefile.in (FLAGS_H): Remove $(REAL_H).
29230 (tree-ssa-reassoc.o): Depend on $(REAL_H).
29231
29232 2010-01-05 Nick Clifton <nickc@redhat.com>
29233
29234 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
29235 register to push into the stack frame when the accumulator has to
29236 be saved during interrupts.
29237
29238 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
29239
29240 * doc/invoke.texi: Remove the documentation about option
29241 -Wunreachable-code.
29242 * common.opt (Wunreachable-code): Preserved for backward
29243 compatibility.
29244 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
29245 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
29246 the backward compatibility flag section.
29247
29248 2010-01-05 Richard Guenther <rguenther@suse.de>
29249
29250 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
29251
29252 2010-01-05 Jakub Jelinek <jakub@redhat.com>
29253
29254 PR other/42611
29255 * cfgexpand.c (expand_one_var): Diagnose too large variables.
29256
29257 PR tree-optimization/42508
29258 * tree-sra.c (convert_callers): Check for recursive call
29259 by comparing cgraph nodes instead of decls.
29260 (modify_function): Call ipa_modify_formal_parameters also
29261 on all same_body aliases.
29262
29263 * cgraphunit.c (cgraph_materialize_all_clones): Compare
29264 cgraph nodes when checking for same_body aliases.
29265
29266 2010-01-05 Richard Guenther <rguenther@suse.de>
29267
29268 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
29269 allocation and lookup.
29270 (get_or_alloc_expr_for_constant): Likewise.
29271 (phi_translate): Sink allocation.
29272
29273 2010-01-04 Richard Guenther <rguenther@suse.de>
29274
29275 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
29276 a new entry only if needed.
29277 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
29278 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
29279 hashtable lookup.
29280 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
29281 the result array.
29282 (phi_translate): Handle CONSTANTs early.
29283
29284 2010-01-04 Martin Jambor <mjambor@suse.cz>
29285
29286 PR tree-optimization/42398
29287 * tree-sra.c (struct access): Removed flag grp_different_types.
29288 (dump_access): Do not dump the removed flag.
29289 (sort_and_splice_var_accesses): Do not set the removed flag.
29290 (sra_modify_expr): Check for type compatibility directly.
29291
29292 2010-01-04 Martin Jambor <mjambor@suse.cz>
29293
29294 PR tree-optimization/42366
29295 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
29296 edges with variable number of parameters.
29297 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
29298 flag instead of asserting it.
29299 (ipa_read_node_info): Read uses_analysis_done flag.
29300
29301 2010-01-04 Richard Guenther <rguenther@suse.de>
29302
29303 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
29304 iterative_hash_* as intended.
29305 (vn_reference_compute_hash): Likewise. Simplify hashing
29306 SSA names.
29307 (vn_reference_lookup_2): Likewise.
29308 (vn_nary_op_compute_hash): Likewise.
29309 (vn_phi_compute_hash): Likewise.
29310 (expressions_equal_p): Remove strange code.
29311 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
29312 (pre_expr_hash): Likewise. Simplify hashing SSA names.
29313 (bitmap_insert_into_set_1): Take value-id as parameter.
29314 (add_to_value): Pass it.
29315 (bitmap_insert_into_set): Likewise.
29316 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
29317
29318 2010-01-04 Jakub Jelinek <jakub@redhat.com>
29319
29320 PR driver/42442
29321 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
29322 (do_self_spec): For switches with SWITCH_IGNORE set set also
29323 SWITCH_IGNORE_PERMANENTLY.
29324 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
29325 of SWITCH_IGNORE.
29326
29327 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
29328
29329 * lto-streamer-out.c (output_unreferenced_globals): Output the full
29330 tree of an unreferenced global var.
29331
29332 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
29333
29334 PR target/42542
29335 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29336 GTU to GT for V4SI and V2DI.
29337
29338 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29339 (umin<mode>3): Removed.
29340 (uminv8hi3): New.
29341 (uminv4si3): Likewise.
29342
29343 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
29344
29345 PR lto/42581
29346 * collect2.c (main): Turn on trace in collect2 if -v is passed
29347 to gcc with LTO.
29348
29349 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
29350
29351 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
29352 description of expression operand.
29353
29354 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
29355
29356 * configure.ac: Add install-html to target_list for Make-hooks.
29357 * configure: Regenerate.
29358 * fortran/Make-lang.in (F95_HTMLFILES): New.
29359 (fortran.html): Use it.
29360 (fortran.install-html): New.
29361 * Makefile.in (install-html): Add lang.install-html.
29362 * java/Make-lang.in (JAVA_HTMLFILES): New.
29363 (java.html): Use it.
29364 (java.install-html): New.
29365 * objc/Make-lang.in (objc.install-html): New.
29366 * objcp/Make-lang.in (obj-c++.install-html): New.
29367 * cp/Make-lang.in (c++.install-html): New.
29368 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
29369 * lto/Make-lang.in (lto.install-html): New.
29370
29371 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
29372
29373 PR lto/42520
29374 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
29375
29376 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
29377
29378 PR rtl-optimization/41862
29379 * store-motion.c (store_killed_in_insn, compute_store_table,
29380 remove_reachable_equiv_notes, replace_store_insn,
29381 build_store_vectors): Ignore all DEBUG_INSNs.
29382
29383 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
29384
29385 PR lto/41564
29386 * common.opt: Add dumpdir.
29387
29388 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
29389 isn't specified.
29390 (option_map): Add --dumpdir.
29391
29392 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
29393
29394 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
29395
29396 * opts.c (decode_options): Try dump_dir_name first if
29397 dump_base_name isn't an absolute path.
29398 (common_handle_option): Handle OPT_dumpdir.
29399
29400 * toplev.c (dump_dir_name): New.
29401 (print_switch_values): Also ignore -dumpdir.
29402
29403 * toplev.h (dump_dir_name): New.
29404
29405 2010-01-03 Richard Guenther <rguenther@suse.de>
29406
29407 PR tree-optimization/42589
29408 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
29409 double-word expansion of bswap32.
29410
29411 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
29412
29413 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
29414 with BLOCK_FOR_INSN.
29415 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
29416 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
29417 noce_process_if_block): Likewise.
29418 * gcse.c (compute_local_properties, insert_expr_in_table,
29419 insert_set_in_table, canon_list_insert, find_avail_set,
29420 pre_insert_copy_insn): Likewise.
29421
29422 * basic-block.h (BLOCK_NUM): Move from here...
29423 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
29424
29425 2010-01-03 Richard Guenther <rguenther@suse.de>
29426
29427 PR tree-optimization/42438
29428 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
29429 contains_may_not_return_call flag.
29430 (BB_MAY_NOTRETURN): New.
29431 (valid_in_sets): Trapping nary operations are not valid
29432 in blocks that may not return.
29433 (insert_into_preds_of_block): Remove check for trapping expressions.
29434 (compute_avail): Compute also BB_MAY_NOTRETURN.
29435
29436 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
29437
29438 * doc/invoke.texi: Add 2010 to copyright years.
29439
29440 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
29441
29442 * config/sparc/sparc.c: Fix formatting nits.
29443
29444 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
29445 Alexander Monakov <amonakov@ispras.ru>
29446
29447 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
29448
29449 2010-01-02 Richard Guenther <rguenther@suse.de>
29450
29451 PR middle-end/42577
29452 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
29453 (simplify_switch_using_ranges): Mark to be removed edges
29454 as non-executable.
29455
29456 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29457
29458 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29459
29460 * collect2.c (scan_libraries): Add missing argument in call to
29461 scan_prog_file.
29462
29463 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
29464
29465 PR target/42448
29466 * config/alpha/predicates.md (aligned_memory_operand): Return false
29467 for CQImode.
29468 (unaligned_memory_operand): Return true for CQImode.
29469 * config/alpha/alpha.c (get_aligned_mem): Assert that location
29470 doesn not cross aligned SImode word boundary.
29471
29472 2010-01-02 Anatoly Sokolov <aesok@post.ru>
29473
29474 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
29475 Remove.
29476 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
29477 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
29478
29479 2010-01-02 Richard Guenther <rguenther@suse.de>
29480
29481 PR lto/41597
29482 * toplev.c (compile_file): Emit LTO marker properly. Change
29483 it to __gnu_lto_v1.
29484 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
29485
29486 2010-01-01 Richard Guenther <rguenther@suse.de>
29487
29488 PR debug/42455
29489 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
29490
29491 2010-01-01 Richard Guenther <rguenther@suse.de>
29492
29493 PR c/42570
29494 * c-decl.c (grokdeclarator): For zero-size arrays force
29495 structural equality checks as layout_type does.
29496
29497 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
29498
29499 * builtins.c: Update copyright to 2010.
29500
29501 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
29502
29503 PR lto/42531
29504 * lto-streamer-out.c (produce_asm): Revert the last change.
29505 (copy_function): Likewise.
29506
29507 * lto-streamer.c (lto_get_section_name): Skip any leading
29508 asterisk in name.
29509
29510 2010-01-01 Richard Guenther <rguenther@suse.de>
29511
29512 PR middle-end/42559
29513 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
29514 for LABEL_DECLs.
29515
29516 \f
29517 Copyright (C) 2010 Free Software Foundation, Inc.
29518
29519 Copying and distribution of this file, with or without modification,
29520 are permitted in any medium without royalty provided the copyright
29521 notice and this notice are preserved.