1 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
3 * libgcov.c (create_file_directory): Enable it for win32 case.
4 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
5 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
6 (GCOV_PREFIX_SKIP): Likewise.
8 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
10 * doc/objc.texi (GNU Objective-C runtime API): New section.
11 (Modern GNU Objective-C runtime API): New section.
12 (Traditional GNU Objective-C runtime API): New section.
13 (Executing code before main): Mention that this section is
14 specific to the GNU Objective-C runtime.
15 (Garbage Collection): Same.
17 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
19 * c-parser.c (c_parser_for_statement): Move initialization of
20 cond and incr before if.
22 2010-10-17 Anatoly Sokolov <aesok@post.ru>
24 * target.def (preferred_output_reload_class): New hook.
25 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
26 * doc/tm.texi: Regenerate.
27 * targhooks.c (default_preferred_output_reload_class): New function.
28 * targhooks.h (default_preferred_output_reload_class): Declare.
29 * reload.c (find_dummy_reload): Change rclass argument type from
30 enum reg_class to reg_class_t. Change this_alternative array type
31 from enum reg_class to reg_class_t.
32 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
33 (push_reload): Change preferred_class variable type to reg_class_t.
34 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
35 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
36 argument type from enum reg_class to reg_class_t. Use
37 HARD_REGISTER_NUM_P predicate.
38 * recog.h (reg_fits_class_p): Update prototype.
40 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
41 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
43 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
44 static. Change regclass argument and result types from enum reg_class
46 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
48 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
50 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
51 visibility enum, and handle @package.
53 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
55 * doc/objc.texi (What you can and what you cannot do in +load):
56 Document that sending messages to constant string objects in +load
57 is not guaranteed to work.
59 2010-10-16 Jan Hubicka <jh@suse.cz>
62 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
63 existence of refrences before removing the function.
65 2010-10-16 Jan Hubicka <jh@suse.cz>
67 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
68 only_called_at_startup and only_called_at_exit.
69 (cgraph_propagate_frequency): Compute only_called_at_startup and
71 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
73 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
75 * predict.c (compute_function_frequency): Initialize the new flags.
77 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
79 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
80 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
81 on the bounds of its domain.
82 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
84 2010-10-16 Anatoly Sokolov <aesok@post.ru>
86 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
87 * config/avr/avr-protos.h (preferred_reload_class): Remove.
88 * config/avr/avr.c (preferred_reload_class): Remove.
89 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
90 * config/pa/pa.c (emit_move_sequence): Update comment
91 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
92 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
93 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
94 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
95 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
96 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
97 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
98 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
99 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
100 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
101 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
102 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
103 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
105 2010-10-16 Joseph Myers <joseph@codesourcery.com>
107 * opts.c (set_fast_math_flags,
108 set_unsafe_math_optimizations_flags): Make static.
109 * toplev.h (set_fast_math_flags,
110 set_unsafe_math_optimizations_flags): Remove prototypes.
112 2010-10-16 Joseph Myers <joseph@codesourcery.com>
114 * config/arm/arm.c (arm_option_optimization): Set
115 flag_section_anchors to 1 not 2.
116 * config/i386/i386.c (ix86_option_override_internal): Check
117 global_options_set.x_flag_zee and
118 global_options_set.x_flag_omit_frame_pointer.
119 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
121 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
122 global_options_set.x_flag_omit_frame_pointer.
123 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
124 opts->x_flag_section_anchors to 1 not 2.
125 * config/sh/sh.c (sh_option_optimization): Don't set
126 flag_schedule_insns to 2.
127 (sh_option_override): Check
128 global_options_set.x_flag_schedule_insns.
129 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
131 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
133 * configure.ac: Make sure inhibit_libc remains false for mingw targets
135 * configure: Regenerated.
137 2010-10-15 Xinliang David Li <davidxl@google.com>
139 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
141 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
142 into a recursive function.
144 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
146 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
149 2010-10-15 Joseph Myers <joseph@codesourcery.com>
151 * target.def (target_option.init_struct): New hook.
152 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
153 * doc/tm.texi: Regenerate.
154 * hooks.c (hook_void_gcc_optionsp): New.
155 * hooks.h (hook_void_gcc_optionsp): Declare.
156 * langhooks-def.h (lhd_init_options_struct): Remove.
157 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
158 * langhooks.c (lhd_init_options_struct): Remove.
159 * opts.c (init_options_struct): Also call
160 targetm.target_option.init_struct.
161 * config/i386/i386.c (ix86_option_init_struct,
162 TARGET_OPTION_INIT_STRUCT): New.
163 (ix86_option_optimization): Move some settings to
164 ix86_option_init_struct.
165 * config/pdp11/pdp11.c (pdp11_option_init_struct,
166 TARGET_OPTION_INIT_STRUCT): New.
167 (pdp11_option_optimization): Move some settings to
168 pdp11_option_init_struct.
169 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
170 rs6000_option_init_struct. Use options structure pointer.
171 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
172 * config/s390/s390.c (s390_option_init_struct,
173 TARGET_OPTION_INIT_STRUCT): New.
174 (s390_option_optimization): Don't set
175 flag_asynchronous_unwind_tables here.
176 * config/sh/sh.c (sh_option_init_struct,
177 TARGET_OPTION_INIT_STRUCT): New.
178 (sh_option_optimization): Don't set flag_finite_math_only here.
179 * config/spu/spu.c (spu_option_optimization): Replace by
180 spu_option_optimization. Use options structure pointer.
181 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
183 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
185 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
187 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
188 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
189 (Standard names): Document fma.
191 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
192 __FP_FAST_FMAF, __FP_FAST_FMAL.
194 * builitns.c (expand_builtin_mathfn_ternary): New function for
195 expanding ternary math functions, like fma.
196 (expand_builtin): Call it for the fma builtins.
198 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
201 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
202 vectorizable functions to support vectorizing fma.
204 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
207 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
208 (UNSPEC_VSX_MSUB): Ditto.
209 (UNSPEC_VSX_NMADD): Ditto.
210 (UNSPEC_VSX_NMSUB): Ditto.
211 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
212 of UNSPEC. Renumber combiner patterns.
213 (vsx_fmsub<mode>4*): Ditto.
214 (vsx_fnmadd<mode>4*): Ditto.
215 (vsx_fnmsub<mode>4*): Ditto.
217 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
218 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
219 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
220 (altivec_vmaddfp_1): Ditto.
221 (altivec_vmaddfp_2): Ditto.
222 (atlivec_mulv4sf3): Ditto.
223 (altivec_vnmsubfp): Ditto.
224 (altivec_vnmsubfp_1): Ditto.
225 (altivec_vnmsubfp_2): Ditto.
226 (altivec_vnmsubfp_3): Delete.
228 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
231 (fnmasf4_fpr): Ditto.
232 (fnmssf4_fpr): Ditto.
236 (fnmadf4_fpr): Ditto.
237 (fnmsdf4_fpr): Ditto.
239 * optabs.h (OTI_fma): Add fma optab.
242 * genopinit.c (optabs): Set fma optab.
244 * rtl.def (FMA): Add FMA rtl.
246 * tree.h (mode_has_fma): New function to return if MODE supports a
247 fast multiply and add instruction.
248 * builtins.c (mode_has_fma): Ditto.
250 2010-10-15 Jan Hubicka <jh@suse.cz>
252 * lto-streamer-out.c (write_symbol): Use pointer set of seen
253 objects instead of bitmap.
254 (produce_symtab): Likewise; output defined symbols first.
256 2010-10-15 Jie Zhang <jie@codesourcery.com>
258 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
259 Option Summary and Index.
261 2010-10-15 Richard Guenther <rguenther@suse.de>
263 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
264 for automatic variables again.
266 2010-10-15 Joseph Myers <joseph@codesourcery.com>
268 * doc/extend.texi (Variable Length): Don't refer to VLAs not
271 2010-10-15 Joseph Myers <joseph@codesourcery.com>
273 * config/rx/rx.c (rx_option_optimization): Change to
274 rx_override_options_after_change. Don't change
275 flag_lto_compression_level. Don't check for changes to whether
276 FPU instructions can be used. Check and set only
277 flag_finite_math_only, not other fast-math flags.
278 (rx_option_override): Call rx_override_options_after_change.
279 (TARGET_OPTION_OPTIMIZATION): Remove.
280 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
282 2010-10-15 Joseph Myers <joseph@codesourcery.com>
284 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
285 disable section anchors for lang_hooks.name[4] != 'O'.
287 2010-10-15 Joseph Myers <joseph@codesourcery.com>
289 * config/frv/frv.c (frv_option_optimization,
290 TARGET_OPTION_OPTIMIZATION): Remove.
291 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
293 2010-10-15 Michael Matz <matz@suse.de>
295 * cgraphunit.c (clone_of_p): Define unconditionally.
297 2010-10-15 Richard Guenther <rguenther@suse.de>
300 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
302 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
304 * ifcvt.c (find_active_insn_before): New function.
305 (find_active_insn_after): New function.
306 (cond_exec_process_if_block): Use new functions to replace
307 prev_active_insn() and next_active_insn().
309 2010-10-14 Yao Qi <yao@codesourcery.com>
312 * config/arm/arm.c (arm_build_builtin_va_list): Assign
313 va_list_name to TYPE_STUB_DECL (va_list_type).
315 2010-10-14 Jan Hubicka <jh@suse.cz>
318 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
319 redirected to clone, be happy.
320 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
321 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
322 former_clone_of unconditionally.
324 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
326 Merge from FSF apple 'trunk' branch.
327 2006 Fariborz Jahanian <fjahanian@apple.com>
329 Radars 4436866, 4505126, 4506903, 4517826
330 * c-parser.c (c_parser, objc_property_attr_context) New flag.
331 (c_lex_one_token): Handle property attributes.
332 (c_parser_external_declaration): Handle @property.
333 (c_parser_declaration_or_fndef): Warn on invalid attributes before
334 @alias, @class, @end and @property objc keywords.
335 (c_parser_objc_methodprotolist): Handle @property.
336 (c_parser_objc_property_attrlist): New.
337 (c_parser_objc_at_property): New.
338 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
339 (build_modify_expr): Likewise.
341 2010-10-14 Jakub Jelinek <jakub@redhat.com>
343 PR tree-optimization/46008
344 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
346 2010-10-14 Richard Guenther <rguenther@suse.de>
348 PR tree-optimization/44913
349 * tree-data-ref.c (disjoint_objects_p): Remove.
350 (dr_may_alias_p): Simplify. Only hand the base object to
352 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
353 some more trees, bail out instead of asserting.
354 (ptr_derefs_may_alias_p): Likewise. Export.
355 (refs_may_alias_p_1): Handle STRING_CSTs.
356 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
358 2010-10-14 Joseph Myers <joseph@codesourcery.com>
361 * c-typeck.c (build_binary_op): Don't try to compute a semantic
362 type with excess precision for boolean operations.
364 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
365 Basile Starynkevitch <basile@starynkevitch.net>
367 * gengtype.c: Include getopt.h and version.h.
369 (lang_bitmap, struct outf, outf_p)
370 (get_output_file_with_visibility, oprintf): Definitions moved to
372 (output_files, header_file, srcdir, srcdir_len, this_file)
373 (do_dump): No more static variables.
375 (dbgprint_count_type_at): Added new function.
376 (gengtype_long_options): New.
377 (print_usage, print_version, parse_program_options): New.
378 (main): Call parse_program_options, and removed old option
379 handling code. Added some debug output.
381 * gengtype.h: Updated copyright year.
382 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
383 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
384 Moved from gengtype.c to here.
385 (do_debug, read_state_filename, write_state_filename): New variables.
386 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
389 (REVISION): Always defined.
390 (version.o): Removed ifdef REVISION_c.
391 (s-gtype): Pass arguments to build/gengtype program.
392 (build/version.o): Added building rule.
393 (build/gengtype$(build_exeext)): Added build/version.o.
395 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
397 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
398 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
401 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
403 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
404 may_trap_or_fault_p instead of may_trap_p predicate.
405 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
406 (substitute_placeholder_in_expr): Likewise.
407 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
408 flag on MEM_REF nodes.
409 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
410 flags on INDIRECT_REF nodes.
412 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
414 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
415 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
416 (arm*-*-eabi*) <tm_file>: Likewise.
417 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
418 (frv-*-*linux*) <tm_file>: Likewise.
419 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
420 and associated helper macros.
421 * config/frv/frv-abi.h: Delete.
423 2010-10-14 Richard Guenther <rguenther@suse.de>
426 * tree.def (NULLPTR_TYPE): New tree code.
427 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
428 * dwarf2out.c (is_base_type): Likewise.
429 (gen_type_die_with_usage): Likewise.
430 * sdbout.c (plain_type_1): Likewise.
431 * tree.c (build_int_cst_wide): Likewise.
432 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
434 2010-10-14 Joseph Myers <joseph@codesourcery.com>
436 * params.c (params_finished): New.
437 (add_params): Assert !params_finished.
438 (finish_params): New.
439 (set_param_value_internal): Take params and params_set
440 parameters. Assert params_finished.
441 (set_param_value, maybe_set_param_value): Take params and
442 params_set parameters. Update calls to set_param_value_internal.
443 (set_default_param_value): Assert !params_finished. Don't use
444 set_param_value_internal.
445 (default_param_value, init_param_values): New.
446 * params.h (struct param_info): Change value to default_value.
448 (set_param_value, maybe_set_param_value): Add params and
449 params_set parameters.
450 (PARAM_VALUE): Get parameters from global_options.
451 (PARAM_SET_P): Remove.
452 (finish_params, default_param_value, init_param_values): New.
453 * common.opt (param_values): New Variable.
454 * config/arm/arm.c (arm_option_override): Pass extra arguments to
455 maybe_set_param_value.
456 * config/i386/i386.c (ix86_option_override_internal): Pass extra
457 arguments to maybe_set_param_value.
458 * config/picochip/picochip.c (picochip_option_override): Pass
459 extra arguments to maybe_set_param_value.
460 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
461 extra arguments to maybe_set_param_value.
462 * config/s390/s390.c (s390_option_override): Use
463 maybe_set_param_value instead of set_param_value. Pass extra
464 arguments to maybe_set_param_value.
465 * config/sparc/sparc.c (sparc_option_override): Pass extra
466 arguments to maybe_set_param_value.
467 * config/spu/spu.c (spu_option_override): Pass extra arguments to
468 maybe_set_param_value.
469 * opts.c (handle_param): Take opts and opts_set parameters.
470 Update call to set_param_value.
471 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
472 initial_loop_invariant_max_bbs_in_loop): Remove.
473 (init_options_once): Don't set them.
474 (init_options_struct): Initialize parameters structures.
475 (default_options_optimization): Use default_param_value when
476 restoring defaults. Update calls to maybe_set_param_value.
477 (finish_options): Update calls to maybe_set_param_value.
478 (common_handle_option): Update calls to handle_param and
480 * toplev.c (DEFPARAM): Update definition for changes to param_info.
481 (general_init): Call finish_params.
483 2010-10-14 Nick Clifton <nickc@redhat.com>
485 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
486 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
487 (FIRST_PSEUDO_REGISTER): Increase by one.
488 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
489 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
490 (MODES_TIEABLE): Call mn10300_modes_tieable.
491 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
492 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
493 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
494 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
495 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
496 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
497 (mn10300_cc_status_mdep): Delete.
498 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
499 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
500 the combine-stack-adjust pass.
501 (print_operand): Use the mode of the comparison operation to
502 select the comparison suffix.
503 (notice_update_cc): Delete.
504 (mn10300_secondary_reload_class): Remove test for stack pointer
506 (output_tst): Rename to mn10300_output_cmp.
507 (impossible_plus_operand): Move into predicates.md.
508 (mn10300_legitimize_address): Make static.
509 (mn10300_legitimate_address_p): Make static. Only allow SI sized
510 constant pic operands.
511 (mn10300_legitimate_constant_p): New function.
512 (mn10300_case_values_threshold): Make static.
513 (mn10300_hard_regno_mode_ok): New function.
514 (mn10300_modes_tieable): New function.
515 (mn10300_select_cc_mode): New function.
516 * config/mn10300/predicates.md (impossible_plus_operand): Define.
517 * config/mn10300/mn10300-protos.h: Tidy.
518 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
519 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
520 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
521 with clobbers or sets of CC_REG.
523 (mov*): Remove use of CLR instruction.
524 (cbranch_si4_<code>): New pattern/split.
525 (integer_conditional_branch): New pattern.
526 (cbranch_sf4_<code>): New pattern/split.
527 (float_conditional_branch): New pattern.
528 (casesi): Use addsi3 pattern instead of movsi pattern to add and
529 move a value at the same time.
530 (cc0 peepholes): Remove.
532 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
534 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
535 on RTX_FRAME_RELATED_P insns and the insn to which
536 NOTE_INSN_EPILOGUE_BEG is attached.
537 * sched-vis.c (print_value): Allow NULL value.
539 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
541 PR rtl-optimization/45570
542 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
543 assert that we are pipelining outer loops. Allow returning
546 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
548 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
549 (tidy_control_flow): Tidy vertical space.
550 (sel_remove_bb): New variable idx. Use it to remember the basic
551 block index before deleting the block.
552 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
553 (sel_merge_blocks): ... here.
554 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
556 2010-10-14 Jakub Jelinek <jakub@redhat.com>
558 * cse.c (is_dead_reg): Change into inline function that is not
559 called through for_each_rtx.
560 (set_live_p): Adjust caller.
561 (insn_live_p): Don't reset DEBUG_INSNs here.
562 (struct dead_debug_insn_data): New data.
563 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
564 (delete_trivially_dead_insns): If there is just one setter for the
565 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
566 and add DEBUG_INSN for it right before the removed setter and
567 use the DEBUG_EXPR instead of the dead pseudo.
569 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
571 * et-forest.c (et_nca): Return NULL immediately when
572 the dominance forest has disjoint components.
574 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
576 * ira.c (setup_class_hard_regs): Fix typo in indexing
577 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
579 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
581 * graph.c (inbb): New variable.
582 (start_bb): Set inbb to 1 if output is inside of a building block.
583 (end_bb): Check if output is inside of a building block.
585 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
587 PR rtl-optimization/45912
588 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
589 regno of registers instead of their index to compute the alignment.
591 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
593 * config/i386/i386.c (ix86_build_const_vector): Check vector
594 mode instead of scalar mode.
595 (ix86_build_signbit_mask): Likewise.
596 (ix86_expand_fp_absneg_operator): Updated.
597 (ix86_expand_copysign): Likewise.
598 (ix86_expand_int_vcond): Likewise.
599 (ix86_emit_swdivsf): Likewise.
600 (ix86_sse_copysign_to_positive): Likewise.
601 (ix86_expand_sse_fabs): Likewise.
602 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
603 * config/i386/sse.md (copysign<mode>3): Likewise.
604 (sse2_cvtudq2ps): Likewise.
605 (vec_unpacku_float_hi_v4si): Likewise.
606 (vec_unpacku_float_lo_v4si): Likewise.
608 * config/i386/i386.c (ix86_builtins): Add
609 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
610 (bdesc_args): Likewise.
611 (ix86_builtin_vectorized_function): Support
612 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
613 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
614 and IX86_BUILTIN_CVTPS2DQ256.
615 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
617 * config/i386/sse.md (STORENT_MODE): New.
618 (VEC_FLOAT_MODE): Likewise.
619 (VEC_EXTRACT_MODE): Likewise.
620 (*avx_cvtdq2pd256_2): Likewise.
621 (vec_pack_trunc_v4df): Likewise.
622 (vec_interleave_highv8sf): Likewise.
623 (vec_interleave_lowv8sf): Likewise.
624 (storent<mode>): Macroized.
625 (<code><mode>2: absneg): Likewise.
626 (copysign<mode>3): Likewise.
627 (vec_extract<mode>): Likewise.
630 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
633 2010-10-13 Richard Guenther <rguenther@suse.de>
634 H.J. Lu <hongjiu.lu@intel.com>
636 * config/i386/sse.md (reduc_splus_v8sf): Add.
637 (reduc_splus_v4df): Likewise.
638 (vec_unpacks_hi_v8sf): Likewise.
639 (vec_unpacks_lo_v8sf): Likewise.
640 (*avx_cvtps2pd256_2): Likewise.
641 (vec_unpacks_float_hi_v8si): Likewise.
642 (vec_unpacks_float_lo_v8si): Likewise.
643 (vec_interleave_highv4df): Likewise.
644 (vec_interleave_lowv4df): Likewise.
646 2010-10-13 Richard Guenther <rguenther@suse.de>
649 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
650 alone if there are no virtual methods.
652 2010-10-13 Richard Henderson <rth@redhat.com>
654 * expr.c (build_personality_function): Take parameter LANG instead
655 of parameter NAME. Build the name based on the lang prefix and the
656 unwind method in use.
657 * tree.c (lhd_gcc_personality): Update call to
658 build_personality_function.
660 2010-10-13 Richard Guenther <rguenther@suse.de>
663 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
665 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
667 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
668 Canonicalize input operands of ASM_OPERANDS insns.
670 2010-10-13 Richard Guenther <rguenther@suse.de>
672 PR tree-optimization/45788
673 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
674 EH update until fixup-cfg.
676 2010-10-13 Julian Brown <julian@codesourcery.com>
678 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
679 from CORE_REGS and GENERAL_REGS classes.
680 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
681 final constraint for register preferencing.
683 2010-10-13 Richard Guenther <rguenther@suse.de>
685 PR tree-optimization/45970
686 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
687 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
688 (stmt_kills_ref_p): Likewise.
689 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
691 2010-10-13 Richard Guenther <rguenther@suse.de>
693 PR tree-optimization/45982
694 * tree-ssa-structalias.c (make_constraints_to): New function.
695 (make_constraint_to): Implement in terms of make_constraints_to.
696 (find_func_aliases): Properly make return values of pure/const
697 functions escape if they assign to sth that is not a pointer.
699 2010-10-13 Richard Guenther <rguenther@suse.de>
702 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
703 Fixup the CFG when EH was fixed up.
705 2010-10-13 Ira Rosen <irar@il.ibm.com>
707 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
708 Use operand's type for POINTER_PLUS_EXPR.
710 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
712 * c-parser.c (c_parser_for_statement): Initialize incr.
714 2010-10-12 Xinliang David Li <davidxl@google.com>
716 PR tree-optimization/45972
717 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
718 with too many arguments.
720 2010-10-12 Jakub Jelinek <jakub@redhat.com>
723 * tree-ssa-forwprop.c: Include expr.h.
724 (constant_pointer_difference, simplify_builtin_call): New functions.
725 (tree_ssa_forward_propagate_single_use_vars): Call
726 simplify_builtin_call on builtin calls.
728 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
730 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
731 (*adddi3_extend_sp32): Likewise.
732 (*subdi3_insn_sp32): Likewise.
733 (*subdi3_extend_sp32): Likewise.
734 (*negdi2_sp32): Use negative test for consistency.
736 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
738 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
739 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
740 * config/fixed-bit.h: Likewise.
741 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
742 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
743 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
744 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
746 * doc/tm.texi: Regenerate.
748 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
750 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
751 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
752 (*isel_reversed_unsigned_<mode>): New.
753 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
754 as valid comparisons and adjust operands and output appropriately.
755 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
757 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
759 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
760 DATA_ALIGNMENT and add COND parameter. Update comments above.
761 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
762 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
764 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
767 * exec-tool.in: Support '-plugin' as the second option to the linker.
769 2010-10-12 Richard Henderson <rth@redhat.com>
772 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
773 (expand_stack_vars): Assert large base allocated when used.
775 2010-10-12 Richard Guenther <rguenther@suse.de>
777 * tree-ssa-structalias.c (get_constraint_for_1): Constants
778 only point to nonlocal, not anything.
780 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
782 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
783 unwind info for exceptions.
785 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
788 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
789 Document optional target selector.
791 2010-10-12 Joseph Myers <joseph@codesourcery.com>
794 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
795 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
798 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
800 * configure.ac (tm_include_list): Include options.h not flags.h.
801 * configure: Regenerate.
802 * flags.h: Include flag-types.h. Include options.h at top of file
804 (enum debug_info_type, enum debug_info_level, enum
805 debug_info_usage, enum symbol_visibility, struct visibility_flags,
806 enum ira_algorithm, enum ira_region, enum excess_precision, enum
807 graph_dump_types, enum stack_check_type,
808 enum warn_strict_overflow_code): Move to flag-types.h
809 * opth-gen.awk: Include flag-types.h in options.h.
811 2010-10-12 Jakub Jelinek <jakub@redhat.com>
813 * expr.c (store_expr): Share code for STRING_CST and
814 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
815 check if target is a MEM.
817 * rtl.h: Include hashtab.h.
818 (iterative_hash_rtx): New prototype.
819 * rtl.c (iterative_hash_rtx): New function.
820 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
821 (output_loc_list): Return immediately if emitted is set, set it.
822 (hash_loc_operands, hash_locs, hash_loc_list,
823 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
824 optimize_location_lists_1, optimize_location_lists): New function.
825 (dwarf2out_finish): Call optimize_location_lists.
826 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
828 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
832 * Makefile.in ($(lang_checks_parallel))
833 ($(lang_checks_parallelized)): Use single quotes for
834 $(RUNTESTFLAGS), to allow passing quoted content.
836 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
838 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
839 actual_oldval. Use __builtin_expect.
840 (SUBWORD_VAL_CAS): Likewise.
842 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
844 * recog.c (nonmemory_operand): Call immediate_operand for
847 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
849 * config/i386/i386.md (movmem<mode>): Macroize expander from
850 movmem{si,di} using SWI48 mode iterator.
851 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
852 *strmovsi_rex_1 using P mode iterator.
853 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
854 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
855 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
856 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
857 (setmem<mode>): Macroize expander from setmem{si,di} using
859 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
860 *strsetsi_rex_1 using P mode iterator.
861 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
862 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
863 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
864 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
865 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
866 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
867 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
869 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
870 *strlenqi_rex_1 using P mode iterator.
872 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
875 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
877 (mark_ref_live, mark_ref_dead): Use them.
878 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
879 Save the original reg, and use the new functions.
880 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
882 (check_and_make_def_conflict): Save the original reg.
884 2010-10-11 Martin Jambor <mjambor@suse.cz>
887 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
890 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
892 * Makefile.in ($(lang_checks_parallel))
893 ($(lang_checks_parallelized)): Use single quotes for
894 $(RUNTESTFLAGS), to allow passing quoted content.
897 * opt-functions.awk (BEGIN): New section.
898 (lower, upper, digit, alnum): New variables.
899 (static_var, opt_sanitized_name): Use alnum instead of character
900 classes, for non-C locale.
901 * optc-gen.awk: Likewise.
902 * opth-gen.awk: Likewise.
904 2010-10-11 Anatoly Sokolov <aesok@post.ru>
906 * target.def (preferred_reload_class): New hook.
907 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
908 * doc/tm.texi: Regenerate.
909 * targhooks.c (default_preferred_reload_class): New function.
910 * targhooks.h (default_preferred_reload_class): Declare.
911 * reload.c (find_dummy_reload): Change preferred_class variable type
912 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
914 (find_reloads): Change goal_alternative array type from int to
915 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
916 (push_reload, find_reloads_address_part): Use
917 TARGET_PREFERRED_RELOAD_CLASS target hook.
918 * reload1.c (emit_input_reload_insns): Ditto.
919 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
920 hook. Change rclass argument and secondary_class variable types from
921 'enum reg_class' to reg_class_t.
923 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
924 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
925 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
926 Change regclass argument and result types from enum reg_class to
928 (TARGET_PREFERRED_RELOAD_CLASS): Define.
930 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
932 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
933 in masking operations.
934 (simplify_const_unary_operation): Likewise.
935 (simplify_binary_operation_1): Likewise.
936 (simplify_const_binary_operation): Likewise.
937 (simplify_const_relational_operation): Likewise.
938 (simplify_ternary_operation): Likewise.
939 (simplify_immed_subreg): Likewise.
941 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
944 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
945 (TARGET_SUPPORTS_WEAK): New.
946 * doc/tm.texi: Regenerate.
947 * defaults.h (SUPPORTS_WEAK): Update comment.
948 (TARGET_SUPPORTS_WEAK): New.
949 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
950 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
952 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
953 make_decl_one_only): Likewise.
954 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
955 TARGET_SUPPORTS_WEAK.
956 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
957 instead of SUPPORTS_WEAK.
959 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
961 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
963 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
965 * vec.h (VEC_qsort): Define.
966 * dbxout.c (output_used_types): Use it.
967 * df-scan.c (df_sort_and_compress_refs): Likewise.
968 (df_sort_and_compress_mws): Likewise.
969 * genautomata.c (uniq_sort_alt_states): Likewise.
970 (evaluate_equiv_classes): Likewise.
971 (output_trans_table): Likewise.
972 (output_state): Likewise.
973 * gimplify.c (compare_case_labels): Likewise.
974 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
975 * ipa.c (build_cdtor_fns): Likewise.
976 * lto.c (lto_wpa_write_files): Likewise.
977 * sel-sched.c (fill_vec_av_set): Likewise.
978 * tree-predcom.c (determine_roots_comp): Likewise.
979 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
980 (splice_param_accesses): Likewise.
981 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
982 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
983 (reassociate_bb): Likewise.
984 * tree-ssa-sccvn.c (sort_scc): Likewise.
985 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
987 2010-10-11 Ian Lance Taylor <iant@google.com>
989 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
990 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
991 TREE_THIS_NOTRAP when appropriate.
992 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
993 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
994 newly created MEM_REF.
996 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
998 Nathan Froyds patch to hooks FUNCTION_ARG etc.
999 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
1000 (picochip_incoming_function_arg): Delete.
1001 (picochip_arg_advance): Delete.
1002 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
1003 (FUNCTION_INCOMING_ARG): Delete.
1004 (FUNCTION_ARG_ADVANCE): Delete.
1005 * config/picochip/picochip.c (picochip_function_arg): Take a
1006 const_tree and a bool.
1007 (picochip_incoming_function_arg): Likewise.
1008 (picochip_arg_advance): Likewise.
1009 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1010 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1012 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1015 * ipa.c (build_cdtor): Delete endless loop.
1017 2010-10-07 Andi Kleen <ak@linux.intel.com>
1019 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
1021 (checksum-options): Add.
1022 (cc1-dummy): Remove.
1023 (cc1-checksum): Change to run checksum over object files
1025 * dummy-checksum.c: Remove.
1026 * genchecksum.c: Update copyright.
1027 (usage): Allow multiple arguments.
1029 (dosum): Change for incremental checksum. Remove C output.
1030 (main): Iterate over all argument files. Add C output.
1032 2010-10-11 Joseph Myers <joseph@codesourcery.com>
1034 * params.c (set_param_value_internal): New.
1035 (set_param_value): Use set_param_value_internal.
1036 (maybe_set_param_value, set_default_param_value): New.
1037 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
1038 (maybe_set_param_value, set_default_param_value): Declare.
1039 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
1040 * config/i386/i386.c (ix86_option_override_internal): Use
1041 maybe_set_param_value.
1042 * config/ia64/ia64.c (ia64_option_default_params,
1043 TARGET_OPTION_DEFAULT_PARAMS): New.
1044 (ia64_option_optimization): Move some code to
1045 ia64_option_default_params.
1046 * config/picochip/picochip.c (picochip_option_override): Use
1047 maybe_set_param_value.
1048 * config/rs6000/rs6000.c (rs6000_option_default_params,
1049 TARGET_OPTION_DEFAULT_PARAMS): New.
1050 (rs6000_option_override_internal): Use maybe_set_param_value.
1051 (rs6000_option_optimization): Move some code to
1052 rs6000_option_default_params.
1053 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
1054 * config/sh/sh.c (sh_option_default_params,
1055 TARGET_OPTION_DEFAULT_PARAMS): New.
1056 (sh_option_optimization): Move some code to sh_option_default_params.
1057 * config/sparc/sparc.c (sparc_option_override): Use
1058 maybe_set_param_value.
1059 * config/spu/spu.c (spu_option_default_params,
1060 TARGET_OPTION_DEFAULT_PARAMS): New.
1061 (spu_option_optimization): Move some code to spu_option_default_params.
1062 (spu_option_override): Use maybe_set_param_value.
1063 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
1064 * doc/tm.texi: Regenerate.
1065 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
1066 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
1068 (default_options_optimization): Use maybe_set_param_value.
1069 (finish_options): Use maybe_set_param_value.
1070 * target.def (target_option.default_params): New hook.
1071 * toplev.c (general_init): Call targetm.target_option.default_params.
1073 2010-10-11 Ira Rosen <irar@il.ibm.com>
1075 PR tree-optimization/45902
1076 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
1077 vector type for constants, unless it's a pointer.
1079 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1081 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
1083 2010-10-11 Jakub Jelinek <jakub@redhat.com>
1086 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
1087 (ix86_delegitimize_address): Use it.
1089 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
1091 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
1093 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
1095 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
1096 to cum struct in the call to function_arg_advance.
1097 (alpha_function_arg_advance): Mark named as unused.
1099 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
1101 * config/mips/mips.c (mips_handle_option): Make "value" with
1104 2010-10-09 Richard Henderson <rth@redhat.com>
1107 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
1108 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
1109 required_align, tidy the code a bit. Emit split_stack code in the
1110 right place. Mark the return value with the alignment properly.
1111 * expr.h (allocate_dynamic_stack_space): Update decl.
1112 * builtins.c (expand_builtin_apply): Update call to
1113 allocate_dynamic_stack_space.
1114 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
1115 * calls.c (initialize_argument_information): Update call to
1116 allocate_dynamic_stack_space.
1117 (expand_call): Likewise.
1119 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
1120 Don't update_stack_alignment here.
1121 (alloc_stack_frame_space): Make ALIGN unsigned.
1122 (stack_var_cmp): Sort by alignment too.
1123 (partition_stack_vars): Don't merge large and small alignment vars.
1124 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
1125 Take care when BASE is not virtual_stack_vars_rtx.
1126 (expand_stack_vars): Allocate dynamic stack space for large
1127 alignment variables.
1128 (expand_one_stack_var): Update all to expand_one_stack_var_at.
1129 (defer_stack_allocation): True for large alignment vars.
1130 (update_stack_alignment): Merge into ...
1131 (expand_one_var): ... here.
1132 (gimple_expand_cfg): Place code from expand_stack_vars.
1134 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1136 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1137 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
1138 (pdp11_function_arg_advance): New function.
1139 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1141 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1143 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
1144 * libgcc2.c: Likewise.
1146 2010-10-09 Richard Guenther <rguenther@suse.de>
1149 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
1150 Properly check if a decl is an automatic var.
1152 2010-10-09 Richard Guenther <rguenther@suse.de>
1155 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
1157 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1159 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
1160 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1161 * config/mmix/mmix.c (mmix_function_arg): Rename to...
1162 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
1164 (mmix_function_arg): New function.
1165 (mmix_function_incoming_arg): New function.
1166 (mmix_function_arg_advance): New function.
1167 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1168 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1170 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1172 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1173 * config/vax/vax.c (vax_function_arg): New function.
1174 (vax_function_arg_advance): New function.
1175 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1177 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1179 * config/pa/pa-protos.h (function_arg): Delete.
1180 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1181 * config/pa/pa.c (function_arg): Rename to...
1182 (pa_function_arg): ...this. Make static. Take a const_tree and
1184 (pa_function_arg_advance): New function.
1185 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1187 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1189 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1190 * config/m68k/m68k.c (m68k_function_arg): New function.
1191 (m68k_function_arg_advance): New function.
1192 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1194 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1196 * config/avr/avr-protos.h (function_arg): Delete.
1197 (function_arg_advance): Delete.
1198 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1199 * config/avr/avr.c (function_arg): Rename to...
1200 (avr_function_arg): ...this. Make static. Take a const_tree and
1202 (function_arg_advance): Rename to...
1203 (avr_function_arg_advance): ...this. Make static. Take a
1204 const_tree and a bool.
1205 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1207 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1209 * config/alpha/alpha-protos.h (function_arg): Delete.
1210 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1211 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
1212 * config/alpha/alpha.c (function_arg): Rename to...
1213 (alpha_function_arg): ...this. Make static. Take a const_tree and
1214 a bool. Delete TARGET_ABI_UNICOSMK code.
1215 (alpha_function_arg_advance): New function.
1216 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1218 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1220 * config/mep/mep-protos.h (mep_function_arg): Delete.
1221 (mep_function_arg_advance): Delete.
1222 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1223 * config/mep/mep.c (mep_function_arg): Make static. Take a
1224 const_tree and a bool.
1225 (mep_function_arg_advance): Likewise.
1226 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1228 2010-10-09 Richard Guenther <rguenther@suse.de>
1230 PR tree-optimization/45945
1231 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
1233 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
1235 PR tree-optimization/45612
1236 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
1237 Test LABEL_DECLs as well. Fix formatting issues.
1238 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
1239 whose label is present in NON_SSA_VARS.
1240 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
1241 as well. Fix formatting issues.
1242 (visit_bb): Fix typos and formatting issue.
1244 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1246 PR tree-optimization/45950
1247 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
1248 before initializing vno->op.
1250 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
1252 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
1253 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
1255 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
1258 * config/i386/i386.c (ix86_binary_operator_ok): Support
1259 "andhi/andsi/anddi" as a zero-extending move.
1261 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1263 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
1264 into a temporary array.
1266 2010-10-08 Jakub Jelinek <jakub@redhat.com>
1268 PR tree-optimization/45903
1269 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
1270 of {A,L}SHIFTRT of MEM.
1272 2010-10-08 Richard Guenther <rguenther@suse.de>
1274 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
1275 Re-construct BLOCK_VARS.
1276 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
1277 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
1278 * tree.c (free_lang_data_in_block): Remove.
1279 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
1280 Do not touch the BLOCK tree.
1281 * expr.c (expand_expr_real_1): Allow externals.
1283 2010-10-08 Richard Guenther <rguenther@suse.de>
1285 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
1286 Do not output BLOCK_SUBBLOCKS.
1287 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
1288 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
1289 Re-construct BLOCK_SUBBLOCKS of parent block.
1290 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
1291 for BINFO_BASE_ACCESSES.
1293 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1295 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
1296 (TREE_H): Include $(FLAGS_H) instead of options.h.
1297 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
1298 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1299 * common.opt (flag_complex_method, flag_evaluation_order,
1300 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
1301 Variable declarations.
1302 * configure.ac (tm_include_list): Include flags.h instead of options.h.
1303 * configure: Regenerate.
1304 * flags.h: Condition out contents for target libraries. Include
1305 options.h at end of file.
1306 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
1307 flag_evaluation_order, flag_warn_unused_result): Remove.
1308 * gcc.c (main): Intialize global_options with global_options_init.
1309 * langhooks-def.h (lhd_init_options_struct): Declare.
1310 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1311 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
1312 * langhooks.c (lhd_init_options_struct): New.
1313 * langhooks.h (struct lang_hooks): Add init_options_struct.
1314 Update comment on init_options.
1315 * optc-gen.awk: Generate initializer for global_options_init, not
1317 * opth-gen.awk: Condition out structure declarations for target
1318 libraries. Declare global_options_init.
1319 * opts-common.c: Include flags.h instead of options.h.
1320 * opts.c (flag_warn_unused_result): Remove.
1321 (read_cmdline_options): Take gcc_options parameters. Pass them to
1322 read_cmdline_option.
1323 (initial_lang_mask, initial_min_crossjump_insns,
1324 initial_max_fields_for_field_sensitive,
1325 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
1326 (init_options_once): New. Split out of decode_options.
1327 (init_options_struct): New. Split out of decode_options.
1328 (decode_cmdline_options_to_array_default_mask): New.
1329 (default_options_optimization): New. Split out of decode_options.
1330 (decode_options): Move most code to other functions. Update call
1331 to read_cmdline_options.
1332 (finish_options): New. Split out of decode_options.
1333 * opts.h (decode_options): Add gcc_options parameters.
1334 (init_options_once, init_options_struct,
1335 decode_cmdline_options_to_array_default_mask): New.
1336 * toplev.c (flag_complex_method, flag_ira_algorithm,
1337 flag_ira_region, flag_evaluation_order): Remove.
1338 (general_init): Use global_options_init for initial flag values
1340 (toplev_main): Call init_options_once, init_options_struct,
1341 lang_hooks.init_options_struct,
1342 decode_cmdline_options_to_array_default_mask and
1343 lang_hooks.init_option before decode_options. Update arguments to
1345 * tree.h: Include flags.h instead of options.h.
1347 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1349 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1351 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1353 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
1355 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
1356 (FUNCTION_INCOMING_ARG): Delete.
1357 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
1358 (function_arg_slotno): Likewise. Take bool arguments.
1359 (sparc_arg_partial_bytes): Update call to it.
1360 (function_arg): Rename to...
1361 (sparc_function_arg_1): ...this. Take bool arguments.
1362 (sparc_function_arg, sparc_function_incoming_arg): New functions.
1363 (function_arg_advance): Rename to...
1364 (sparc_function_arg_advance): ...this. Take bool argument.
1365 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
1366 (TARGET_FUNCTION_INCOMING_ARG): Define.
1368 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1370 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
1372 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1373 * config/bfin/bfin.c (function_arg_advance): Rename to...
1374 (bfin_function_arg_advance): ...this. Make static. Take const_tree
1376 (function_arg): Rename to...
1377 (bfin_function_arg): ...this. Make static. Take const_tree and bool
1379 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1381 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1383 * config/score/score-protos.h (score_function_arg): Delete.
1384 (score_function_arg_advance): Delete.
1385 * config/score/score3.h (score3_function_arg_advance): Take a
1386 const_tree and a bool.
1387 (score3_function_arg): Likewise.
1388 * config/score/score7.h (score7_function_arg_advance): Likewise.
1389 (score7_function_arg): Likewise.
1390 * config/score/score3.c (score3_classify_arg): Likewise.
1391 (score3_function_arg_advance, score3_function_arg): Likewise.
1392 * config/score/score7.c (score7_classify_arg): Likewise.
1393 (score7_function_arg_advance, score7_function_arg): Likewise.
1394 * config/score/score.c (score_function_arg_advance): Likewise.
1395 (score_function_arg): Likewise. De-const-ify `cum' argument.
1396 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1398 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1400 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
1401 (s390_function_arg): Delete.
1402 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1403 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
1404 (s390_function_arg_integer): Likewise.
1405 (s390_function_arg_advance): Make static. Take a const_tree and
1407 (s390_function_arg): Likewise.
1408 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1410 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1412 * config/spu/spu-protos.h (spu_function_arg): Delete.
1413 * config/spu/spu.h (FUNCTION_ARG): Delete.
1414 (FUNCTION_ARG_ADVANCE): Move code to ...
1415 * config/spu/spu.c (spu_function_arg_advance): New function.
1416 (spu_function_arg): Make static. Take a const_tree and a bool.
1417 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
1418 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1420 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1422 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1424 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1426 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
1427 (init_vn_nary_op_from_op): New function.
1428 (init_vn_nary_op_from_stmt): New function.
1429 (vn_nary_op_lookup_1): New function.
1430 (sizeof_vn_nary_op): New function.
1431 (alloc_vn_nary_op_noinit): New function.
1432 (alloc_vn_nary_op): New function.
1433 (vn_nary_op_insert_into): New function.
1434 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
1435 (vn_nary_op_lookup): Likewise.
1436 (vn_nary_op_lookup_stmt): Likewise.
1437 (vn_nary_op_insert_pieces): Likewise.
1438 (vn_nary_op_insert): Likewise.
1439 (vn_nary_op_insert_stmt): Likewise.
1440 (copy_nary): Likewise.
1441 (set_value_id_for_result): New function.
1442 (set_hashtable_value_ids): Call it.
1444 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1446 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1447 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
1449 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1451 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
1452 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1454 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
1457 * cse.c (cse_extended_basic_block): Preserve cc0 info across
1458 debug isnsn. Skip them when searching for cc0 setter.
1459 (set_live_p): Skip debug insns when searching for cc0 user.
1461 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
1467 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
1468 type of MEM_REFs to INTEGER_CSTs.
1470 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
1472 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
1473 m68hc11_print_operand_address.
1475 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
1477 * builtins.c (rewrite_call_expr): Move code to...
1478 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
1479 (rewrite_call_expr_array): New function.
1480 (fold_builtin_sprintf_chk_1): New function.
1481 (fold_builtin_sprintf_chk): Call it.
1482 (gimple_fold_builtin_sprintf_chk): Likewise.
1483 (fold_builtin_snprintf_chk_1): New function.
1484 (fold_builtin_snprintf_chk): Call it.
1485 (gimple_fold_builtin_snprintf_chk): Likewise.
1486 (gimple_rewrite_call_expr): Delete.
1488 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
1490 * config.host: Update copyright year.
1492 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
1494 * config.host (host_lto_plugin_soname): New shell variable.
1495 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
1496 * config.in: Regenerate.
1497 * configure: Regenerate.
1498 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
1499 LTO plugin shared library.
1501 2010-10-07 Richard Henderson <rth@redhat.com>
1503 * target.h (enum unwind_info_type): Move ...
1504 * coretypes.h: ... here.
1506 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
1508 * doc/objc.texi (Fast enumeration protocol): Mention that
1509 'unsigned int' can also be used instead of 'unsigned long' in
1510 countByEnumeratingWithState:objects:count:.
1512 2010-10-07 Martin Jambor <mjambor@suse.cz>
1514 * tree-sra.c (struct access): New field grp_assignment_write.
1515 (dump_access): Dump grp_assignment_write.
1516 (build_accesses_from_assign): Set grp_assignment_write.
1517 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
1518 (mark_read_status): Renamed to mark_rw_status, individual values
1520 (analyze_access_subtree): Changed type of mark_write to
1521 mark_read_status. Fixed propagating of mark_read and
1522 mark_write. Changed benefit estimate. Updated comment.
1524 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
1527 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
1528 check for vectype_out returned by get_vectype_for_scalar_type().
1530 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
1533 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
1534 constraint, add register specifier in instruction template.
1535 (neon_vec_pack_trunc_<mode>): Likewise.
1536 (neon_vec_<US>mult_<mode>): Add register specifier to
1537 instruction template.
1539 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
1541 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
1543 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
1544 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
1545 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
1546 (cygwin2.o): Likewise.
1547 * config/i386/cygwin1.c: Delete file.
1548 * config/i386/cygwin2.c: Likewise.
1549 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
1550 make all {%!mno-cygwin} ones unconditional.
1551 (STARTFILE_SPEC): Likewise.
1552 (REAL_LIBGCC_SPEC): Likewise.
1553 (LIB_SPEC): Likewise.
1554 (CXX_WRAP_SPEC): Likewise.
1555 (LINK_SPEC): Likewise.
1556 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
1557 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
1558 (cygwin_gplusplus_include_dir): Delete now-unused array.
1559 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
1560 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
1561 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
1562 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
1563 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
1564 (cygwin_local_include_dir): Delete now-unused array.
1565 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
1566 (cygwin_cross_include_dir): Delete now-unused array.
1567 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
1568 (cygwin_tool_include_dir): Delete now-unused array.
1569 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
1570 (cygwin_standard_include_dir): Delete now-unused array.
1571 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
1572 (GEN_CVT_ARRAY): Delete now-unused macro definition.
1573 (cvt_to_mingw): Delete now-unused array.
1574 (mingw_scan): Remove prototype of deleted function.
1575 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
1576 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
1577 * doc/invoke.texi (-mcygwin): Don't document removed option.
1578 (-mno-cygwin): Likewise.
1580 2010-10-07 Richard Guenther <rguenther@suse.de>
1582 * machmode.h (mode_for_vector): Declare.
1583 * stor-layout.c (mode_for_vector): New function, split out from ...
1584 (layout_type): ... here.
1585 * tree-vectorizer.h (current_vector_size): Declare.
1586 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
1587 mask vector type is available.
1588 (get_vectype_for_scalar_type): Rename to ...
1589 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
1591 (get_vectype_for_scalar_type): New wrapper around
1592 get_vectype_for_scalar_type_and_size using current_vector_size.
1593 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
1594 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
1595 of vect_analyze_loop here.
1596 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
1597 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
1599 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
1600 V8SF to V8SI conversion builtin.
1602 2010-10-07 Richard Guenther <rguenther@suse.de>
1604 * target.def (autovectorize_vector_sizes): New target hook.
1605 * targhooks.c (default_autovectorize_vector_sizes): New function.
1606 * targhooks.h (default_autovectorize_vector_sizes): Declare.
1607 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
1609 * doc/tm.texi: Update.
1610 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
1611 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1613 2010-10-07 Richard Guenther <rguenther@suse.de>
1615 * target.def (units_per_simd_word): Rename to ...
1616 (preferred_simd_mode): ... this. Return mode instead of size.
1617 * targhooks.c (default_units_per_simd_word): Rename to ...
1618 (default_preferred_simd_mode): ... this. Return word_mode.
1619 * targhooks.h (default_preferred_simd_mode): Declare.
1620 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
1621 (arm_preferred_simd_mode): ... this. Re-implement.
1622 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
1623 (ix86_preferred_simd_mode): ... this. Re-implement.
1624 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
1625 (sparc_preferred_simd_mode): ... this. Re-implement.
1626 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
1627 (mips_preferred_simd_mode): ... this. Re-implement.
1628 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
1629 (rs6000_preferred_simd_mode): ... this. Re-implement.
1630 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
1631 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
1632 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
1633 * doc/tm.texi: Update.
1635 2010-10-07 Richard Guenther <rguenther@suse.de>
1638 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
1641 2010-10-07 Alan Modra <amodra@gmail.com>
1643 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
1644 rather than sign extension by hand.
1646 2010-10-07 Jan Hubicka <jh@suse.cz>
1649 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
1651 2010-10-07 Richard Guenther <rguenther@suse.de>
1654 * configure.ac: Fix typo.
1655 * configure: Regenerated.
1657 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1659 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
1660 define_builtin_std where it's unnecessary.
1661 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
1663 2010-10-06 Anatoly Sokolov <aesok@post.ru>
1665 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
1666 * doc/tm.texi.in: Regenerate.
1667 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
1668 * targhooks.c (default_class_likely_spilled_p): Don't use the
1669 CLASS_LIKELY_SPILLED_P macro.
1671 * config/arm/arm.md: Update comment.
1673 2010-10-06 Jan Hubicka <jh@suse.cz>
1675 * ipa.c (cgraph_remove_unreachable_nodes): External references can
1677 (cgraph_externally_visible_p): We can not bring local comdats that
1678 are known to linker; fix handling of internal visibility.
1679 (function_and_variable_visibility): Likewise.
1681 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
1683 PR rtl-optimization/45394
1684 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
1685 (struct rtx_subst_pair): Remove AFTER field.
1686 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
1687 (propagate_for_debug): Remove MOVE parameter and adjust.
1688 (try_combine): In the special case where I2 is a PARALLEL, combine only
1689 destinations of SETs and set I2SRC to the I2 source.
1690 Adjust calls to propagate_for_debug throughout.
1691 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
1694 2010-10-06 Olivier Hainque <hainque@adacore.com>
1696 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
1697 switch on insn codes as sequence of ifs.
1699 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
1701 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
1702 be UI_NONE for picochip.
1703 (picochip_option_override): Do not disable exception flags.
1704 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1707 2010-10-06 Richard Guenther <rguenther@suse.de>
1709 * Makefile.in (regmove.o): Depend on $(TARGET_H).
1711 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1713 Implemented fast enumeration for Objective-C.
1714 * c-parser.c (objc_could_be_foreach_context): New.
1715 (c_lex_one_token): Recognize RID_IN keyword in a potential
1716 Objective-C foreach context.
1717 (c_parser_declaration_or_fndef): Added parameter. Accept
1718 Objective-C RID_IN keyword as terminating a declaration; in that
1719 case, return the declaration in the new parameter.
1720 (c_parser_extenral_declaration): Updated calls to
1721 c_parser_declaration_or_fndef.
1722 (c_parser_declaration_or_fndef): Same change.
1723 (c_parser_compound_statement_nostart): Same change.
1724 (c_parser_label): Same change.
1725 (c_parser_objc_methodprotolist): Same change.
1726 (c_parser_omp_for_loop): Same change.
1727 (c_parser_for_statement): Detect and parse Objective-C foreach
1729 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
1730 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
1731 fast enumeration parsing code to turn off the c99 error but still
1732 perform checks on the loop declarations.
1733 * c-tree.h (check_for_loop_decls): Updated declaration.
1734 * doc/objc.texi: Document fast enumeration.
1736 2010-10-06 Nick Clifton <nickc@redhat.com>
1738 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
1739 (MDR_REGNUM): Define.
1740 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
1741 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
1742 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
1743 (REGISTER_NAMES): Add MDR.
1744 (DWARF2_DEBUGGING_INFO): Define to 1.
1745 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1746 (F): New function. Sets RTX_FRAME_RELATED_P.
1747 (mn10300_gen_multiple_store): Use F.
1748 (expand_prologue): Use F. Use gen_movsf() to push floating
1750 (expand_epilogue): Use gen_movsf() to pop floating point registers.
1751 (mn10300_option_override): Disable combine stack adjust pass.
1753 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
1756 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
1757 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
1759 2010-10-06 Jakub Jelinek <jakub@redhat.com>
1761 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
1762 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
1763 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
1764 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
1765 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
1766 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
1767 BUILT_IN_TOUPPER): Mark as leaf.
1770 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
1771 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
1772 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
1773 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
1774 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
1775 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
1776 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
1778 2010-10-05 Anatoly Sokolov <aesok@post.ru>
1780 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
1781 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1782 (m68hc11_class_likely_spilled_p): New function.
1784 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
1786 * c-parser.c (c_parser_objc_method_definition): Updated comment.
1788 2010-10-05 Jan Hubicka <jh@suse.cz>
1790 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
1792 * opts.c (decode_options): Handle lto partitions.
1793 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
1794 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
1796 2010-10-05 Jan Hubicka <jh@suse.cz>
1798 * cgraphunit.c (assemble_function): Output thunks and aliases before
1799 the function itself.
1801 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
1803 * config/picochip/picochip.c (picochip_option_override): Disable
1804 exception flags for picochip.
1806 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1808 * opts-common.c (handle_option, handle_generated_option,
1809 read_cmdline_option, set_option): Add diagnostic_context
1810 parameter. Update calls among these functions.
1811 (set_option): Don't use global_dc.
1812 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
1813 (decode_options): Pass global_dc to enable_warning_as_error.
1814 (common_handle_option): Pass global_dc to enable_warning_as_error.
1815 (enable_warning_as_error): Add diagnostic_context parameter.
1816 Document parameters. Don't use global_dc. Pass
1817 diagnostic_context parameter to handle_generated_option.
1818 * opts.h (set_option, handle_option, handle_generated_option,
1819 read_cmdline_option, enable_warning_as_error): Add
1820 diagnostic_context parameter.
1821 * Makefile.in (lto-opts.o): Update dependencies.
1822 * coretypes.h (struct diagnostic_context, diagnostic_context):
1824 * diagnostic.h (diagnostic_context): Don't declare typedef here.
1825 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
1826 * langhooks-def.h (struct diagnostic_context): Don't declare here.
1827 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
1828 using diagnostic_context typedef.
1829 * langhooks.c (lhd_initialize_diagnostics): Declare using
1830 diagnostic_context typedef.
1831 * langhooks.h (struct diagnostic_context): Don't declare here.
1832 (initialize_diagnostics, print_error_function): Declare using
1833 diagnostic_context typedef.
1834 * lto-opts.c: Include diagnostic.h.
1835 (lto_reissue_options): Pass global_dc to set_option. Pass
1836 DK_UNSPECIFIED not 0.
1837 * plugin.c (plugins_internal_error_function): Declare using
1838 diagnostic_context typedef.
1839 * plugin.h (struct diagnostic_context): Don't declare here.
1840 (plugins_internal_error_function): Declare using
1841 diagnostic_context typedef.
1843 2010-10-05 Olivier Hainque <hainque@adacore.com>
1844 Nicolas Roche <roche@adacore.com>
1846 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
1847 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
1849 2010-10-05 Ira Rosen <irar@il.ibm.com>
1851 PR tree-optimization/45752
1852 * tree-vect-slp.c (vect_get_mask_element): Remove static
1853 variables, make them function arguments.
1854 (vect_transform_slp_perm_load): Pass new arguments to
1855 vect_get_mask_element.
1857 2010-10-05 Richard Guenther <rguenther@suse.de>
1859 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
1860 (gimple_mod_pow2): Likewise.
1861 (gimple_mod_subtract): Likewise.
1862 (gimple_ic): Likewise.
1863 (gimple_stringop_fixed_value): Likewise.
1864 * tree-profile.c (tree_init_edge_profiler): Mark profile
1865 functions nothrow and leaf.
1866 (add_abnormal_goto_call_edges): Remove.
1867 (tree_gen_edge_profiler): Work on SSA form.
1868 (tree_gen_ic_profiler): Likewise. Simplify.
1869 (do_tree_profiling): Update SSA form.
1870 (pass_tree_profile): Remove.
1871 (do_tree_profiling): Likewise.
1872 (gate_tree_profile_ipa): New function.
1873 (pass_ipa_tree_profile): New.
1874 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
1875 state of instrumented functions.
1876 * passes.c (init_optimization_passes): Remove early non-SSA
1877 inlining. Move profiling after early optimizations.
1878 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
1879 (pass_ipa_early_inline): Likewise.
1880 * tree-pass.h (pass_ipa_early_inline): Remove.
1881 (pass_tree_profile): Likewise.
1882 (pass_ipa_tree_profile): Declare.
1884 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1885 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
1887 * gcc/config/s390/s390.c (z196_cost): New.
1888 (s390_handle_arch_option): Add -march=z196.
1889 (s390_option_override): Use the new cost function and use the z10
1890 defaults also for z196.
1891 (legitimate_reload_constant_p): Adjust comment.
1892 (legitimate_reload_fp_constant_p): New function.
1893 (s390_preferred_reload_class): Distingiush between FP and Int constants.
1894 (preferred_la_operand_p): Avoid la with index on z196.
1895 (s390_adjust_priority): Trigger also for z196.
1896 (s390_issue_rate): Issue rate for z196 is 3.
1897 (s390_z10_fix_long_loop_prediction): Rename to ...
1898 (s390_fix_long_loop_prediction): ... this.
1899 (s390_reorg): Apply the z10 adjustments also for z196.
1900 (s390_loop_unroll_adjust): Do this also for z196.
1901 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
1902 (enum processor_flags): Add PF_Z196.
1903 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
1904 (TARGET_CPU_Z196, TARGET_Z196): New macros.
1905 * gcc/config.gcc: Enable z196 for --with-arch.
1906 * gcc/config/s390/2817.md: New file.
1907 * gcc/config/s390/2084.md: New type for multiply and add.
1908 * gcc/config/s390/2097.md: Likewise.
1909 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
1910 (UNSPECV_ATOMIC_OP): New constants.
1911 (fmadddf, fmaddsf): New values for type attribute.
1912 (z196prop): New insn attribute.
1913 (cpu, cpu_facility): Add z196.
1914 (ATOMIC_Z196): New code iterator.
1915 (noxa): New code attribute.
1916 (gk): New mode attribute.
1917 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
1918 Support load zero for fp constants.
1919 (fixuns_truncdddi2, fixuns_trunctddi2)
1920 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
1922 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
1923 (popcounthi2, popcountqi2): New expander.
1924 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
1925 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
1926 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
1928 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
1929 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
1930 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
1931 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
1932 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
1933 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
1934 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
1935 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
1936 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
1937 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
1938 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
1939 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
1940 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
1941 Support new z196 instructions.
1943 2010-10-05 Richard Guenther <rguenther@suse.de>
1946 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
1947 case where gimplification optimizes away the stmt.
1949 2010-10-04 Jakub Jelinek <jakub@redhat.com>
1952 * var-tracking.c (strip_pointer_flags): New function.
1953 (emit_note_insn_var_location): If rtx_equal_p check failed,
1954 retry on locations simplified with simplify_replace_fn_rtx
1955 and strip_pointer_flags as its callback.
1957 2010-10-04 Jan Hubicka <jh@suse.cz>
1959 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
1960 (can_refer_decl_in_current_unit_p): ... this one; reverse return
1961 value; handle comdats too.
1962 (canonicalize_constructor_val): Use it; handle function_decls
1964 (gimple_fold_obj_type_ref_known_binfo): Likewise.
1965 * gimple.c (get_base_address): Accept all kinds of decls.
1967 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1969 * flags.h (g_switch_value, g_switch_set): Remove.
1970 * opts.c (g_switch_value, g_switch_set): Remove.
1971 * config/g.opt (G): Add Var(g_switch_value).
1972 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
1973 (alpha_option_override): Check global_options_set.x_g_switch_value
1974 instead of g_switch_set.
1975 (alpha_in_small_data_p): Remove cast in comparison with
1977 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
1978 g_switch_value to unsigned HOST_WIDE_INT.
1979 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
1980 with g_switch_value.
1981 (frv_handle_option): Don't handle -G here.
1982 (frv_option_override): Check global_options_set.x_g_switch_value
1983 instead of g_switch_set. Don't modify g_switch_set.
1984 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
1985 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
1986 g_switch_value to unsigned HOST_WIDE_INT.
1987 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
1988 (ia64_option_override): Check global_options_set.x_g_switch_value
1989 instead of g_switch_set.
1990 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
1992 (lm32_in_small_data_p): Remove cast in comparison with
1994 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
1995 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
1997 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
1998 (m32r_init): Check global_options_set.x_g_switch_value instead of
2000 (m32r_in_small_data_p): Remove cast in comparison with
2002 (m32r_file_start): Format g_switch_value with %d.
2003 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
2004 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
2005 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
2007 (microblaze_option_override): Check
2008 global_options_set.x_g_switch_value instead of g_switch_set.
2009 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
2010 (mips_option_override): Check global_options_set.x_g_switch_value
2011 instead of g_switch_set.
2012 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
2013 (rs6000_file_start): Format g_switch_value with %d.
2014 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
2015 comparisons with g_switch_value.
2016 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2017 global_options_set.x_g_switch_value instead of g_switch_set.
2018 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2019 global_options_set.x_g_switch_value instead of g_switch_set.
2020 * config/score/score.c (score_handle_option): Don't handle -G here.
2021 * config/score/score3.c (score3_option_override): Check
2022 global_options_set.x_g_switch_value instead of g_switch_set.
2023 * config/score/score7.c (score7_option_override): Check
2024 global_options_set.x_g_switch_value instead of g_switch_set.
2026 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
2028 * common.opt (fira-coalesce): Remove.
2030 * doc/invoke.texi (flag_ira_coalesce): Remove.
2032 * ira-color.c (allocno_coalesced_p): Move before
2033 copy_freq_compare_func.
2034 processed_coalesced_allocno_bitmap): Ditto.
2035 (update_conflict_hard_regno_costs): Don't use
2036 ALLOCNO_FIRST_COALESCED_ALLOCNO.
2037 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
2038 (assign_hard_reg): Assume no coalesced allocnos.
2039 (get_coalesced_allocnos_attributes): Remove.
2040 (bucket_allocno_compare_func): Assume no coalesced allocnos.
2041 (push_allocno_to_stack): Ditto.
2042 (remove_allocno_from_bucket_and_push): Use
2043 ira_print_expanded_allocno instead of print_coalesced_allocno.
2044 (push_allocnos_to_stack): Assume uncoalesced allocnos.
2045 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
2046 all_conflicting_hard_regs.
2047 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
2048 (setup_allocno_left_conflicts_size): Ditto.
2049 (put_allocno_into_bucket): Ditto.
2050 (copy_freq_compare_func): Remove.
2051 (copy_freq_compare_func, merge_allocnos): Move before
2052 coalesced_pseudo_reg_freq_compare.
2053 coalesced_allocno_conflict_p): Ditto.
2054 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
2055 parameter. Assume it true.
2056 (color_allocnos): Assume uncoalesced allocnos. Use
2057 ira_print_expanded_allocno instead of print_coalesced_allocno.
2058 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
2061 * ira.c: Remove comment about coalescing.
2063 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2065 * config/mips/mips.h (target_flags_explicit): Declare for
2068 2010-10-04 Andi Kleen <ak@linux.intel.com>
2070 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
2071 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
2073 2010-10-04 Matthias Klose <doko@ubuntu.com>
2075 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
2076 multilib osdirname if it exists.
2077 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
2079 2010-10-04 Jakub Jelinek <jakub@redhat.com>
2082 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
2083 arg0's type or its unsigned counterpart as utype. Convert
2084 arg1 to utype unconditionally.
2086 2010-10-04 Julian Brown <julian@codesourcery.com>
2088 * expr.c (expand_assignment): Add assertion to prevent emitting
2089 null rtx for movmisalign pattern.
2090 (expand_expr_real_1): Likewise.
2091 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
2092 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
2093 (arm_vector_alignment_reachable): New.
2094 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
2095 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
2096 (arm_print_operand): Include alignment qualifier in %A.
2097 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
2098 (movmisalign<mode>): New expander.
2099 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
2102 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2104 * optc-gen.awk: Define global_options_set. Don't define
2105 target_flags_explicit.
2106 * opth-gen.awk: Declare global_options_set. Define
2107 target_flags_explicit as macro.
2108 * opts-common.c (handle_option): Take opts_set and generated_p
2110 (handle_generated_option, read_cmdline_option, set_option): Take
2112 (set_option): Use opts_set instead of hardcoding target_flags and
2113 target_flags_explicit.
2114 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
2115 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
2116 flag_value_profile_transformations_set, flag_peel_loops_set,
2117 flag_branch_probabilities_set, flag_inline_functions_set,
2118 flag_ipa_cp_set, flag_ipa_cp_clone_set,
2119 flag_predictive_commoning_set, flag_unswitch_loops_set,
2120 flag_gcse_after_reload_set): Remove.
2121 (common_handle_option, lang_handle_option, target_handle_option):
2122 Take opts_set parameter. Assert that it is &global_options_set.
2123 (common_handle_option): Don't set _set variables. Check opts_set
2124 instead of such variables.
2125 (enable_warning_as_error): Pass &global_options_set to
2126 handle_generated_option.
2127 * opts.h (cl_option_handler_func.handler, set_option,
2128 handle_option, handle_generated_option, read_cmdline_option): Add
2129 opts_set parameters.
2130 (handle_option): Add generated_p parameter.
2131 * config/i386/i386.c (ix86_function_specific_save,
2132 ix86_function_specific_restore): Updat for renaming of
2133 target_flags_explicit field.
2134 * config/i386/i386.opt (target_flags_explicit): Rename to
2135 ix86_target_flags_explicit.
2136 * config/ia64/ia64.c (ia64_override_options_after_change): Check
2137 global_options_set.x_flag_selective_scheduling and
2138 global_options_set.x_flag_selective_scheduling2, not
2139 sel_sched_switch_set.
2140 * flags.h (sel_sched_switch_set,
2141 flag_speculative_prefetching_set): Remove.
2142 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
2143 that it is &global_options_set.
2144 (process_command): Pass &global_options_set to read_cmdline_option.
2145 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
2147 * toplev.c (target_flags_explicit): Remove.
2149 2010-10-04 Jan Hubicka <jh@suse.cz>
2152 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
2153 use get_ref_base_and_offset to handle references.
2154 (fold_const_aggregate_ref): Update.
2156 2010-10-04 Martin Jambor <mjambor@suse.cz>
2158 PR tree-optimization/45572
2159 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
2160 ipa_check_create_node_params.
2161 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
2163 2010-10-04 Yao Qi <yao@codesourcery.com>
2165 * doc/passes.texi: Clean up.
2167 2010-10-03 Ian Lance Taylor <iant@google.com>
2169 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
2170 referring to a field using a typedef name.
2171 (find_anonymous_field_with_type): New static function.
2172 (convert_to_anonymous_field): New static function.
2173 (convert_for_assignment): If -fplan9-extensions, permit converting
2174 pointer to struct to pointer to anonymous field.
2175 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
2176 (is_duplicate_field): New static function.
2177 (detect_field_duplicates_hash): If -fplan9-extensions, check for
2178 typedef names duplicating field names.
2179 (detect_field_duplicates): Likewise.
2180 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
2181 (C Dialect Options): Document -fplan9-extensions.
2182 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
2184 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
2186 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
2188 (vect_create_data_ref_ptr): Likewise.
2189 * tree-vect-stmts.c (vectorizable_store): Likewise.
2190 (perm_mask_for_reverse): Likewise.
2191 (reverse_vec_elements): Likewise.
2192 (vectorizable_load): Likewise.
2194 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2196 * cppbuiltin.c: New file.
2197 * cppbuiltin.h: New file.
2198 * Makefile.in: Take into account cppbuiltin.{h,c}.
2200 2010-10-03 Andi Kleen <ak@linux.intel.com>
2202 * lto-cgraph.c (input_cgraph): Check for missing sections.
2204 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
2206 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
2207 to nonimmediate_operand. Force operand 2 to register when allowed.
2208 (*<shiftrt_insn><mode>3_mask): Ditto.
2209 (*<rotate_insn><mode>3_mask): Ditto.
2211 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
2213 PR tree-optimization/45720
2214 PR tree-optimization/45764
2215 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2216 Don't accept backwards consecutive accesses.
2217 (vect_create_data_ref_ptr): Disallow negative steps.
2219 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
2220 (perm_mask_for_reverse): Removed.
2221 (reverse_vec_elements): Likewise.
2222 (vectorizable_load): Don't handle negative steps.
2224 2010-10-02 Jan Hubicka <jh@suse.cz>
2226 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
2227 call destination is known.
2229 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2232 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
2235 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2237 * doc/install.texi (Configuration): Document build_configargs,
2238 host_configargs, target_configargs.
2240 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
2242 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
2243 (*<shiftrt_insn><mode>3_mask): Ditto.
2244 (*<rotate_insn><mode>3_mask): Ditto.
2246 2010-10-01 Steve Ellcey <sje@cup.hp.com>
2248 PR tree-optimization/44716
2249 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2250 (HOT_TEXT_SECTION_NAME): Define.
2252 2010-10-01 Nick Clifton <nickc@redhat.com>
2254 * common.opt: Add -fcombine-stack-adjustments.
2255 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
2256 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
2257 flag_combine_stack_adjustments.
2258 * doc/invoke.texi: Document the new option.
2260 2010-10-01 Richard Guenther <rguenther@suse.de>
2262 PR tree-optimization/45854
2263 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
2265 2010-10-01 Anthony Green <green@moxielogic.com>
2267 * config.gcc: Fix moxie-*-rtems* configuration.
2269 2010-10-01 Richard Guenther <rguenther@suse.de>
2271 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
2272 (gen_decl_die): Likewise.
2274 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2276 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
2277 to the function code for SPU MD builtins.
2278 (spu_expand_builtin): Update.
2279 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
2281 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2283 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
2284 sjlj_except_unwind_info.
2286 2010-10-01 Tristan Gingold <gingold@adacore.com>
2288 * configure.ac: Define the nop insn for avr*-*-*
2289 * configure: Regenerate.
2291 2010-10-01 Alan Modra <amodra@gmail.com>
2294 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
2295 extend toc_restore_insn.
2297 2010-09-30 Richard Guenther <rguenther@suse.de>
2299 PR tree-optimization/43959
2300 * function.c (gimplify_parameters): Use create_tmp_reg instead of
2303 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
2305 * config/sh/sh.c (sh_expand_prologue): Set
2306 current_function_static_stack_size.
2308 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2310 * configure.ac: Check for Solaris 8 ld with .hidden support.
2311 * configure: Regenerate.
2313 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2316 * graphite.c (graphite_initialize): Call scev_reset.
2318 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2320 * sese.h (scev_analyzable_p): Return false for real or floating
2321 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
2323 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2325 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
2327 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
2329 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
2330 Do not allocate ub_expr, it is passed in initialized.
2332 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2334 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
2335 (build_cloog_prog): Dump CLooG input file when
2336 flag_graphite_dump_cloog is set. This is disabled on trunk.
2337 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
2339 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2341 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
2342 verify_dominators for CDI_POST_DOMINATORS.
2343 * sese.h: Remove comment about CDI_POST_DOMINATORS.
2344 (recompute_all_dominators): Remove call to free_dominance_info
2345 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
2346 for CDI_POST_DOMINATORS.
2348 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2350 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
2351 over pbb_dim_iter_domain.
2353 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2355 * graphite-flattening.c: Fix comments.
2357 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2359 * Makefile.in (OBJS-common): Add graphite-flattening.o.
2360 (graphite-flattening.o): New rule.
2361 * common.opt (floop-flatten): New flag.
2362 * doc/invoke.texi (-floop-flatten): Documented.
2363 * graphite-flattening.c: New.
2364 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
2365 * graphite-poly.h (flatten_all_loops): Declared.
2366 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
2367 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
2368 is set, also set flag_graphite.
2370 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2372 * graphite-poly.c (cloog_checksum): New.
2373 * graphite-poly.h (cloog_checksum): Declared.
2375 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2377 * graphite-poly.c (pbb_number_of_iterations): Removed.
2378 (pbb_number_of_iterations_at_time): Correctly compute the number
2379 of iterations in the transformed loop.
2380 * graphite-poly.h (pbb_number_of_iterations): Removed.
2382 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2384 * graphite-poly.h (lst_update_scattering_seq): Removed.
2385 (lst_update_scattering): Correctly handle outermost loop dewey
2388 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2390 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
2391 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
2392 * graphite-poly.h (lst_niter_for_loop): New.
2394 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2396 * graphite-poly.c (apply_poly_transforms): Do not abort when the
2397 transform read from disk is not legal. Call fatal_error instead.
2399 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2401 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
2402 (print_scop_header): Removed. Inlined in the only call place...
2403 (print_scop): ... here.
2405 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2407 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
2409 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2411 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
2413 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2415 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
2416 (dot_deps_stmt): Same.
2417 * graphite-poly.c (dot_lst): Same.
2419 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2421 * graphite-blocking.c (scop_do_strip_mine): Do not call
2422 graphite_legal_transform.
2423 (scop_do_block): Same.
2425 2010-09-30 Vladimir Kargov <kargov@gmail.com>
2427 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
2430 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2432 * tree-scalar-evolution.c (instantiate_array_ref): New.
2433 (instantiate_scev_r): Also handle ARRAY_REFs.
2435 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2437 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2438 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
2439 RESULT_DECL, and FIELD_DECL. Return false for an
2440 SSA_NAME_IS_DEFAULT_DEF.
2441 (compute_scalar_evolution_in_loop): Do not further analyze the
2442 scalar evolution when no_evolution_in_loop_p returns true.
2444 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2446 * tree-chrec.h (evolution_function_is_affine_p): Do not check
2447 whether CHREC_LEFT is invariant. A function is affine when
2448 CHREC_RIGHT is invariant.
2450 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2452 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
2454 (rewrite_degenerate_phi): Same.
2455 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
2457 2010-09-30 Vladimir Kargov <kargov@gmail.com>
2459 * graphite-scop-detection.c (graphite_can_represent_scev,
2460 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
2461 graphite_can_represent_loop): Remove outermost_loop.
2463 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2466 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
2467 handle GIMPLE_CALLs with no LHS.
2469 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2471 * graphite-poly.c (init_graphite_out_file): New.
2472 (init_graphite_in_file): New.
2473 (apply_poly_transforms): Updated to enable reading and writing of
2474 multiple scop files.
2476 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
2478 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
2481 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2483 * graphite-clast-to-gimple.c (precision_for_value): Adjust
2484 computation of precision by 1.
2486 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2488 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
2489 (openscop_read_polyhedron_matrix): New.
2490 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
2491 (openscop_read_N_int): Same.
2492 * graphite-poly.c (openscop_read_N_int): New.
2493 (openscop_read_one_int): New.
2494 (openscop_read_N_string): New.
2495 (openscop_read_one_string): New.
2496 (openscop_read_powerset_matrix): New.
2497 (graphite_read_transforms): Remove.
2498 (graphite_read_scatt): New.
2499 (graphite_read_scop_file): New.
2500 (apply_poly_transforms): Updated to call graphite_read_scop_file.
2502 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2504 * graphite-poly.c: Change include order.
2506 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2508 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
2509 (cloog_matrix_nrows): New.
2511 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2513 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
2515 * graphite-poly.c (openscop_print_scattering_function_1): Same.
2516 (print_scattering_function_1): Same.
2517 (openscop_print_pbb_domain): Same.
2518 (openscop_print_scop_context): Same.
2519 (print_scop_context): Same.
2521 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2523 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
2524 (openscop_print_pdr_polyhedron): Print pph.
2526 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2528 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
2529 priority signed types.
2531 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2533 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
2534 the call to lang_hooks.types.type_for_size. Call
2535 build_nonstandard_integer_type.
2537 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2539 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
2540 (openscop_print_polyhedron_matrix): New.
2541 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
2542 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
2543 (openscop_print_pdr_powerset): New.
2544 (openscop_print_powerset_matrix): New.
2545 (openscop_print_scattering_function_1): New.
2546 (print_scattering_function): Add support for scattering names and
2548 (graphite_write_transforms): Remove.
2549 (print_pdr_access_layout): Updated to support OpenScop format.
2551 (openscop_print_pbb_domain): New.
2552 (print_pbb_body): Added a parameter to allow indicating that pbb_body
2554 (print_pbb): Updated to call the new print_pbb_body.
2555 (openscop_print_scop_context): New.
2556 (print_scop_header): New.
2557 (print_scop): Updated to call print_scop_header.
2558 * graphite-poly.h: Document OpenScop format.
2560 2010-09-30 Anatoly Sokolov <aesok@post.ru>
2562 * config/cris/m32c.c (cris_memory_move_cost): New.
2563 (cris_register_move_cost): Make static. Change arguments type from
2564 enum reg_class to reg_class_t.
2565 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2566 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2567 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
2569 2010-09-30 Jakub Jelinek <jakub@redhat.com>
2572 * config/i386/i386.c (ix86_gimplify_va_arg): Use
2573 INTVAL (XEXP (slot, 1)) as prev_size.
2575 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2578 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
2579 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
2581 * config/rs6000/option-defaults.h (toplevel): Change #if
2582 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
2583 global option changes.
2585 2010-09-30 Jakub Jelinek <jakub@redhat.com>
2587 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
2589 PR tree-optimization/31261
2590 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
2591 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
2593 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2596 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
2597 special-casing for generators and turn into ...
2598 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
2599 rule, for better error messages in case of toplevel dependency errors.
2600 (genprog): Add hooks, rename to ...
2601 (genprogerr): ... this, and let genprog also contain check,
2603 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
2604 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
2605 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
2607 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
2608 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2610 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
2611 for GMP, MPFR and MPC.
2613 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2615 * config/sparc/sparc.opt (mimpure-text): Move ...
2616 * config/sol2.opt: ... here. Correct description.
2617 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
2618 * doc/invoke.texi (Option Summary, SPARC Options): Move
2619 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
2620 (Option Summary, Solaris 2 Options): ... here.
2621 (Submodel Options, Solaris 2 Options): New menu entry.
2622 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
2623 (Solaris 2 Options): ... here.
2625 2010-09-30 Michael Eager <eager@eagercon.com>
2627 * extend.texi (interrupt_handler): Add MicroBlaze to list.
2628 (save_volatiles): Describe option for MicroBlaze.
2629 * invoke.texi: Add MicroBlaze Options.
2630 * contrib.texi: Add acknowledgment.
2631 * md.texi: Add MicroBlaze d and z constraints.
2632 * install.texi: Add microblaze-*-elf.
2633 * configure.ac: Add microblaze-*-* to target list.
2634 * configure: Regenerate.
2635 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
2636 * config/microblaze/microblaze-protos.h: New.
2637 * config/microblaze/crti.s: New.
2638 * config/microblaze/predicates.md: New.
2639 * config/microblaze/linux.h: New.
2640 * config/microblaze/microblaze.md: New.
2641 * config/microblaze/constraints.md: New.
2642 * config/microblaze/crtn.s: New.
2643 * config/microblaze/microblaze.opt: New.
2644 * config/microblaze/microblaze-c.c: New.
2645 * config/microblaze/t-microblaze: New.
2646 * config/microblaze/microblaze.c: New.
2647 * config/microblaze/microblaze.h: New.
2649 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2651 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
2652 parse @optional/@required and set the flags as appropriate.
2654 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
2656 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
2658 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2660 * opt-functions.awk (static_var): Update comment.
2661 (var_ref): Return offsetof expression or -1, not variable address.
2662 * optc-gen.awk: Generate structure field initializers instead of
2663 static variables. Expect -1 for missing variables instead of null
2664 pointer. Add gcc_options parameters to generated functions.
2665 * opth-gen.awk: Generate structure fields for static variables.
2666 Add gcc_options parameters to generated functions.
2667 * common.opt (optimize, optimize_size): Add variables.
2668 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
2669 &global_options to cl_target_option_restore.
2670 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
2671 &global_options to cl_optimization_restore, cl_target_option_save
2672 and cl_target_option_restore.
2673 (ix86_set_current_function): Pass &global_options to
2674 cl_target_option_restore.
2675 * config/pdp11/pdp11.h (optimize): Remove.
2676 * config/rs6000/rs6000.h (optimize): Remove.
2677 * config/sh/sh.h (optimize): Remove.
2678 * config/xtensa/xtensa.h (optimize): Remove.
2679 * coretypes.h (struct gcc_options): Declare.
2680 * diagnostic.c (diagnostic_initialize): Initialize
2681 context->option_state.
2682 (diagnostic_report_diagnostic): Pass option_state to
2683 option_enabled hook.
2684 * diagnostic.h (diagnostic_context.option_enabled): Add void *
2686 (diagnostic_context.option_state): New field.
2687 * final.c (final_start_function, final, final_scan_insn): Rename
2688 optimize parameter to optimize_p.
2689 * flags.h (optimize, optimize_size): Remove.
2690 * function.c (invoke_set_current_function_hook): Pass
2691 &global_options to cl_optimization_restore.
2692 * gcc.c (driver_handle_option): Take gcc_options parameter.
2693 Assert that it is &global_options.
2694 (process_command): Pass &global_options to read_cmdline_option.
2695 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
2697 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
2698 &global_options to set_option.
2699 * opts-common.c (handle_option, handle_generated_option,
2700 read_cmdline_option, set_option): Take explicit gcc_options
2701 parameters. Use option_flag_var.
2702 (option_flag_var): New.
2703 * opts.c (common_handle_option, lang_handle_option,
2704 target_handle_option): Take gcc_options parameter. Assert that it
2706 (read_cmdline_options): Pass &global_options to read_cmdline_option.
2707 (print_filtered_help): Use option_flag_var. Pass &global_options
2709 (common_handle_option): Use option_flag_var.
2710 (option_enabled): Take opts parameter. Use option_flag_var.
2711 (get_option_state): Take gcc_options parameter. Use
2712 option_flag_var. Pass gcc_options parameter to option_enabled.
2713 (enable_warning_as_error): Pass &global_options to
2714 handle_generated_option.
2715 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
2716 (cl_option_handler_func.handler): Take gcc_options parameter.
2717 (option_enabled, get_option_state, set_option, handle_option,
2718 handle_generated_option, read_cmdline_option): Take gcc_options
2720 * toplev.c (optimize, optimize_size): Remove.
2721 (print_switch_values): Pass &global_options to option_enabled.
2722 (option_affects_pch_p): Use option_flag_var. Pass &global_options
2723 to get_option_state.
2724 (general_init): Initialize global_dc->option_state.
2725 * tree.c (build_optimization_node): Pass &global_options to
2726 cl_optimization_save.
2727 (build_target_option_node): Pass &global_options to
2728 cl_target_option_save.
2730 2010-09-30 Martin Jambor <mjambor@suse.cz>
2732 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
2733 zero sized bit-fields.
2735 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2737 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
2738 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
2739 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
2740 (c_parser_objc_class_declaration): Same change.
2741 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
2742 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
2743 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
2744 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
2745 and RID_AT_PUBLIC instead of RID_PUBLIC.
2746 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
2747 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
2749 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
2751 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
2752 Add links to current providers of packages for Solaris and IRIX.
2754 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2756 Merge from 'apple/trunk' branch on FSF servers.
2757 * c-parser.c: Applied change originally in c-parse.in.
2759 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2762 * c-decl.c (start_decl): Check for redeclaration of class name.
2763 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
2765 2010-09-29 Steve Ellcey <sje@cup.hp.com>
2767 * config/ia64/ia64.c (ia64_builtin_decl): New.
2768 (TARGET_BUILTIN_DECL): Define.
2769 (ia64_builtins): New.
2770 (ia64_init_builtins): Save decls in ia64_builtins.
2772 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
2775 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
2776 (move2add_use_add3_insn): Likewise.
2777 (reload_cse_move2add): Likewise.
2778 * rtlanal.c (get_full_rtx_cost): New function.
2779 * rtl.h (struct full_rtx_costs): New.
2780 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
2781 costs_add_n_insns): New inline functions.
2782 (get_full_rtx_cost): Declare.
2785 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
2786 invariants. Check for reg_equiv_invariant.
2787 (reload): Assert that spilled_pseudos is empty when returning.
2789 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
2791 * config/i386/mingw32.h (TARGET_64BIT): replaced by
2792 TARGET_64BIT_DEFAULT in #if check.
2794 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
2796 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
2798 2010-09-29 Mike Stump <mikestump@comcast.net>
2800 * config/darwin.h (flag_mkernel): Remove.
2801 (flag_apple_kext): Likewise.
2803 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2804 Jack Howarth <howarth@bromo.med.uc.edu>
2806 * config/darwin.opt (undefined): Add.
2808 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
2811 * configure.ac: Add --enable-indirect-function option.
2812 * config.gcc: Add default_gnu_indirect_function.
2813 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
2814 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
2815 * varasm.c (do_assemble_alias): Adjust for macro name change.
2816 * configure: Rebuilt.
2817 * doc/install.texi: Document --enable-indirect-function.
2819 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2821 * doc/options.texi (Variable, Var, Init): Update documentation
2822 without reference to VarExists.
2823 (VarExists): Remove.
2824 * common.opt, config/i386/i386.opt, config/linux.opt,
2825 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
2826 Don't use VarExists.
2828 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2830 * optc-gen.awk: Generate global_options initializer instead of
2831 individual variables. Add x_ prefix to names of structure members.
2832 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
2833 names of structure members.
2834 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2835 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
2836 * doc/tm.texi: Regenerate.
2837 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
2838 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
2839 * c-parser.c (disable_extension_diagnostics,
2840 restore_extension_diagnostics): Update names of cpp_options members.
2841 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
2842 * common.opt (fcompare-debug-second): Don't use Var.
2843 * config/alpha/alpha.h (target_flags): Remove.
2844 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2845 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
2846 * config/bfin/bfin.h (target_flags): Remove.
2847 * config/cris/cris.h (target_flags): Remove.
2848 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
2849 cl_target_option members.
2850 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
2851 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
2852 ix86_can_inline_p): Update names of cl_target_option members.
2853 * config/i386/i386.h (ix86_isa_flags): Remove.
2854 * config/lm32/lm32.h (target_flags): Remove.
2855 * config/mcore/mcore.h (mcore_stack_increment): Remove.
2856 * config/mcore/mcore.md (addsi3): Remove extern declaration of
2857 flag_omit_frame_pointer.
2858 * config/mep/mep.h (target_flags): Remove.
2859 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2860 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
2861 * config/mmix/mmix.h (target_flags): Remove.
2862 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
2863 flag_expensive_optimizations): Remove.
2864 * config/s390/s390.h (flag_pic): Remove.
2865 * config/score/score-conv.h (target_flags): Remove.
2866 * config/sh/sh.h (sh_fixed_range_str): Remove.
2867 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
2868 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
2869 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2870 * diagnostic.c (diagnostic_initialize): Update names of
2871 diagnostic_context members.
2872 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
2873 warn_system_headers.
2874 (diagnostic_report_warnings_p): Update for new names.
2875 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
2876 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
2877 HARD_FRAME_POINTER_IS_ARG_POINTER.
2878 * flags.h (flag_compare_debug): Declare.
2879 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
2880 * opts.c (flag_compare_debug): Define.
2881 (common_handle_option): Update names of diagnostic_context
2882 members. Handle -fcompare-debug-second.
2883 (fast_math_flags_struct_set_p): Update names of cl_optimization
2885 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2886 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2887 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2888 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2889 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2890 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2891 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
2892 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
2893 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
2895 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
2897 * config/picochip/picochip.c (picochip_output_internal_label):
2898 This function can now be called for debug CFI labels, which can come
2899 in the middle of a vliw instruction. Postpone until end of vliw.
2901 2010-09-29 Richard Guenther <rguenther@suse.de>
2903 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
2904 (DECL_FILE_SCOPE_P): Use it.
2905 (TYPE_FILE_SCOPE_P): New macro.
2907 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2909 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
2910 a CPP_NAME which is a reserved word, clearly separate cases for
2911 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
2913 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2915 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
2916 token->value with the canonical spelling. Do exactly like C and
2917 C++ and leave it as it is.
2919 2010-09-28 Richard Henderson <rth@redhat.com>
2921 * config/alpha/alpha.c (alpha_builtins): New.
2922 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
2923 (alpha_builtin_function): New.
2924 (alpha_add_builtins, alpha_init_builtins): Use it.
2926 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
2928 * doc/standards.texi (Standards): Expanded the section on
2929 Objective-C and Objective-C++.
2931 2010-09-28 DJ Delorie <dj@redhat.com>
2934 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
2937 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2939 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
2940 attributes on methods.
2941 (c_parser_objc_method_definition): Handle attributes.
2942 (c_parser_objc_methodproto): Likewise.
2943 (c_parser_objc_maybe_method_attributes): New.
2944 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
2945 missing definition, similar to that in ObjC++.
2947 2010-09-28 Richard Henderson <rth@redhat.com>
2949 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
2950 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
2951 (CONFIG_SJLJ_EXCEPTIONS): Remove.
2952 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
2953 (STACK_CHECK_PROTECT): Likewise.
2954 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
2955 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
2956 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
2957 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
2958 (dwarf2out_assembly_start): Likewise.
2959 * except.c (init_eh): Use targetm.except_unwind_info.
2960 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
2961 (output_one_function_exception_table): Likewise.
2962 * final.c: Unconditionally include dwarf2out.h.
2963 (final_start_function): Unconditionally call dwarf2out routines.
2964 (final_end_function, final_scan_insn): Likewise.
2965 * function.c (expand_function_end): Use targetm.except_unwind_info.
2966 * opts.c (decode_options): Use targetm.except_unwind_info.
2967 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
2968 * target.def (debug_unwind_info, except_unwind_info): New.
2969 * target.h (enum unwind_info_type): New.
2970 * targhooks.c (default_debug_unwind_info): New.
2971 (default_except_unwind_info): New.
2972 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
2973 * targhooks.h: Declare them.
2974 * tree-tailcall.c: Include "target.h"
2975 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
2976 * Makefile.in (tree-tailcall.o): Update.
2977 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
2978 (lhd_gcc_personality): Likewise.
2980 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
2981 (TARGET_EXCEPT_UNWIND_INFO): New.
2982 (DWARF2_UNWIND_INFO): Update.
2983 (TARGET_DEBUG_UNWIND_INFO): New.
2984 * doc/tm.texi: Rebuild.
2986 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
2987 targetm.except_unwind_info.
2989 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
2990 (arm_except_unwind_info): New.
2991 (arm_compute_func_type): Use it.
2992 (arm_expand_prologue, thumb_pushpop): Likewise.
2993 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
2994 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
2995 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
2996 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
2997 (DWARF2_UNWIND_INFO): Remove.
2998 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
2999 (ARM_EABI_UNWIND_TABLES): Remove.
3001 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
3002 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
3003 (ia64_except_unwind_info): New.
3004 (ia64_output_function_prologue): Use it.
3005 (ia64_add_bundle_selector_before): Likewise.
3006 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
3007 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
3008 (TARGET_UNWIND_INFO): Remove.
3010 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
3012 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3014 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
3015 (c_parser_objc_protocol_definition): Likewise.
3016 (c_parser_external_declaration): Provide dummy attribute arguments.
3017 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
3018 (c_parser_objc_class_definition): Handle attributes.
3019 (c_parser_objc_protocol_definition): Likewise.
3021 2010-09-28 Tobias Burnus <burnus@net-b.de>
3025 * toplev.h (save_decoded_options, save_decoded_options_count):
3026 New global variables.
3027 * toplev.c (save_decoded_options, save_decoded_options_count):
3030 2010-09-28 Ian Lance Taylor <iant@google.com>
3032 * config/i386/i386.c (ix86_supports_split_stack): Test
3033 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
3035 2010-09-28 Ian Lance Taylor <iant@google.com>
3038 * opts.c (decode_options): Don't test whether the target supports
3039 split stack if flag_split_stack == 0.
3041 2010-09-28 Jan Hubicka <jh@suse.cz>
3043 * builtin-attrs.def (ATTR_LEAF): New attribute.
3044 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
3045 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
3046 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
3047 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
3048 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
3049 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
3050 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
3051 * sync-builtins.def: Annotate all builtins by leaf.
3052 * omp-builtins.def: Annotate all builtins by leaf.
3053 * builtins.def: Annotate relevant builtins with leaf attribute.
3054 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
3055 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
3058 2010-09-28 Jan Hubicka <jh@suse.cz>
3060 * tree-ssa-ccp.c (fold_ctor_reference): New function.
3061 (fold_const_aggregate_ref): Use it.
3062 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
3063 into external static.
3065 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3068 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
3069 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
3070 (ix86_solaris_return_in_memory): Remove.
3071 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
3072 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3073 (TARGET_SUBTARGET_DEFAULT): Redefine.
3074 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
3075 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3076 (TARGET_SUBTARGET_DEFAULT): Redefine.
3077 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
3079 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
3081 2010-09-29 Alan Modra <amodra@gmail.com>
3084 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
3085 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
3086 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
3088 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
3089 (rs6000_emit_prologue): Don't just create frame save info for r2,
3092 2010-09-28 Richard Henderson <rth@redhat.com>
3094 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
3095 when 8 bytes are requested.
3097 2010-09-28 Tristan Gingold <gingold@adacore.com>
3099 * config/avr/avr.c (expand_prologue): Set
3100 current_function_static_stack_size.
3102 2010-09-28 Tristan Gingold <gingold@adacore.com>
3104 * config/alpha/alpha.md: Change the initial condition of the
3107 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
3109 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
3110 Split from *avx_<maxmin:code><mode>3.
3111 (*avx_<smaxmin:code><mode>3): Ditto.
3112 * config/i386/i386.md (maxmin): Remove code iterator.
3114 2010-09-27 Ian Lance Taylor <iant@google.com>
3116 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
3117 requires assembler support for CFI directives.
3119 2010-09-27 Richard Henderson <rth@redhat.com>
3121 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
3123 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
3125 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
3126 that AFTER is not in the range FROM..TO, inclusive.
3128 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
3129 Bernd Schmidt <bernds@codesourcery.com>
3131 PR rtl-optimization/45792
3132 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
3133 If not all insns are to be merged, for each edge, stash the
3134 next candidate after the to-be-merged insns before doing the
3135 merge, and use them for the retry at the new insertion point.
3136 Handle CC0 targets when retrying.
3138 2010-09-27 Ian Lance Taylor <iant@google.com>
3140 * common.opt (fsplit-stack): New option.
3141 * opts.c (decode_options): Set flag_split_stack to final value.
3142 * target.def (supports_split_stack): New hook.
3143 * gcc.c (STACK_SPLIT_SPEC): Define.
3144 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
3145 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
3146 (Code Gen Options): Document -fsplit-stack.
3147 * doc/extend.texi (Function Attributes): Mention no_split_stack.
3148 (Function Attributes): Document no_split_stack.
3149 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
3150 TARGET_SUPPORTS_SPLIT_STACK.
3151 * doc/tm.texi: Rebuild.
3152 * function.c (thread_prologue_and_epilogue_insns): If
3153 flag_split_stack, add split stack prologue.
3154 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
3155 * varasm.c (saw_no_split_stack): New static variable.
3156 (assemble_start_function): Set saw_no_split_stack if the function
3157 has the no_split_stack attribute.
3158 (file_end_indicate_split_stack): New function.
3159 * output.h (file_end_indicate_split_stack): Declare.
3160 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
3162 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
3164 * config/i386/i386.c (ix86_option_override_internal): Don't set
3165 expand_builtin_va_start to NULL if -fsplit-stack.
3166 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
3168 (ix86_va_start): If -fsplit-stack, get overflow pointer from
3169 scratch register set by prologue.
3170 (ix86_code_end): If -fsplit-stack, call
3171 file_end_indicate_split_stack.
3172 (ix86_supports_split_stack): New static function.
3173 (SPLIT_STACK_AVAILABLE): Define.
3174 (split_stack_prologue_scratch_regno): New static function.
3175 (split_stack_fn): New static variable.
3176 (ix86_expand_split_stack_prologue): New function.
3177 (ix86_live_on_entry): New static function.
3178 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
3179 (output_pic_addr_const): Likewise.
3180 (i386_asm_output_addr_const_extra): Likewise.
3181 (ix86_expand_call): Change return type to rtx. Return the new
3183 (TARGET_SUPPORTS_SPLIT_STACK): Define.
3184 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3185 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
3186 (split_stack_prologue, split_stack_return): New insns.
3187 (split_stack_space_check): New insn.
3188 * config/i386/i386.h (struct machine_function): Add
3189 split_stack_varargs_pointer field.
3190 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
3191 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3192 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
3193 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3194 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
3196 (ix86_expand_call): Update declaration.
3198 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3200 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
3201 code. Added byref, which was missing in the list of codes.
3202 Explain that enumeration values are encoded as the integer type
3203 that the compiler uses to store them. Explain and make examples
3204 of how 'const' interacts with pointers, and the complication of
3205 the encoding of 'const char *'.
3206 (Legacy type encoding): New subsection, explaining that GCC emits
3207 incorrect type encodings for the NeXT runtime for compatibility
3209 (@@encode): New subsection, explaining @encode and particularly
3210 that protocol qualifiers are not recognized inside an @encode()
3212 (Method signatures): New subsection, explaining how method
3213 signatures are encoded.
3215 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3217 Merge from 'apple/trunk' branch on FSF servers. Removed small
3218 change in build_conditional_expr that had been added when fixing
3219 PR objc/27377 and which did the same check in a less complete way.
3221 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3224 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
3225 looking for objective-c common pointer types.
3227 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3230 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
3231 use their ObjC common type.
3233 2010-09-27 Richard Guenther <rguenther@suse.de>
3235 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
3237 2010-09-27 Jie Zhang <jie@codesourcery.com>
3239 * print-tree.c (print_node): Print in-constant-pool.
3241 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
3243 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
3244 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
3245 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
3246 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
3248 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
3250 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
3251 from pro_epilogue_adjust_stack_<mode>_{1,2}.
3252 (pro_epilogue_adjust_stack_<mode>_add): Rename from
3253 pro_epilogue_adjust_stack_<mode>_3.
3254 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
3255 renamed pro_epilogue_adjust_stack_{si,di}_add.
3256 (ix86_expand_prologue): Use indirect functions. Update for renamed
3257 pro_epilogue_adjust_stack_{si,di}_sub.
3259 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
3261 * config/i386/i386.md (movmsk_df): New insn.
3262 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
3263 sequence for TARGET_SSE_MATH.
3265 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
3267 * config/mips/mips.c (mips_builtin_decls): Declare.
3268 (mips_init_builtins): Store function declarations in
3270 (mips_builtin_decl): New function.
3271 (TARGET_BUILTIN_DECL): Define.
3273 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
3274 Richard Henderson <rth@redhat.com>
3276 * config/i386/cygwin.asm: Include auto-host.h.
3277 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
3278 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
3279 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
3280 alignment code from the 64-bit path. Use gas local labels.
3281 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
3282 from _di_2. Remove the useless constant integer argument.
3283 (pro_epilogue_adjust_stack_<mode>_3): New.
3284 (allocate_stack_worker_probe_<mode>): Macroize from
3285 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
3286 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
3287 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
3288 (__chkstk_ms): New function.
3289 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
3290 * gcc/config/i386/t-interix: Likewise.
3291 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
3292 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
3293 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
3294 * configure, config.in: Rebuild.
3296 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
3298 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
3299 statements because of the return slot optimization.
3301 2010-09-25 Anatoly Sokolov <aesok@post.ru>
3303 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
3304 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
3305 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3306 (class_likely_spilled_p): Rename to...
3307 (avr_class_likely_spilled_p): ...this. Make static. Change argument
3308 type to reg_class_t.
3310 2010-09-24 Jan Hubicka <jh@suse.cz>
3312 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
3313 (lto_symtab_resolve_symbols): Set it.
3314 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
3315 store resolution field in cgraph/varpool.
3316 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
3317 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
3318 (cgraph_dump_node): Drop used_from_object_file.
3319 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
3320 (cgraph_function_body_availability): Use decl_replaceable_p.
3321 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
3322 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
3323 cgraph_used_from_object_file_p.
3324 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
3325 cgraph_used_from_object_file_p.
3326 (resolution_used_from_other_file_p): New functoin.
3327 (cgraph_used_from_object_file_p): New predicate.
3328 * cgraph.h: Include plugin-api.h
3329 (struct cgraph_local_info): Remove used_from_object_file.
3330 (struct cgraph_node): Add resolution field.
3331 (struct varpool_node): Likewise; remove used_from_object_file;
3332 reove const_value_known.
3333 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
3334 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
3335 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3336 varpool_used_from_object_file_p): Declare.
3337 (varpool_get_node, varpool_extra_name_alias): Update prototype.
3338 * tree.h (DECL_REPLACEABLE_P): Remove.
3339 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
3340 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
3341 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3342 input_overwrite_node, input_node, input_varpool_node): Stream
3344 * expr.c (expand_expr_real_1): Use const_value_known_p
3345 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
3347 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
3348 (function_and_variable_visibility): Set resolution for local vars
3349 and functions; use varpool_used_from_object_file_p.
3350 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
3352 (default_binds_local_p_1): Use resolutoin info.
3353 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
3354 * varpool.c (varpool_get_node): Constify.
3355 (const_value_known_p): Do not use vnode->const_value_known;
3356 use decl_replaceable_p.
3357 (varpool_finalize_decl): Do not set const_value_known.
3358 (cgraph_variable_initializer_availability): Use decl_replaceable_p
3359 (varpool_extra_name_alias): Return new node.
3360 (varpool_used_from_object_file_p): New function.
3362 2010-09-24 Richard Henderson <rth@redhat.com>
3364 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
3365 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
3366 (do_spill): Use REG_CFA_OFFSET.
3367 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
3369 (ia64_expand_epilogue): Likewise.
3370 (process_set): Split into ...
3371 (process_cfa_adjust_cfa): this,
3372 (process_cfa_register): this,
3373 (process_cfa_offset): and this new function.
3374 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
3375 instead of REG_FRAME_RELATED_EXPR.
3377 2010-09-24 Olivier Hainque <hainque@adacore.com>
3379 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
3381 2010-09-24 Jan Hubicka <jh@suse.cz>
3383 * doc/extend.texi: (attribute leaf): Document.
3384 * tree.c (local_define_builtin): Handle ECF_LEAF.
3385 (build_common_builtin_nodes): Set ECF_LEAF where needed.
3386 * tree.h (ECF_LEAF): New.
3387 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
3388 overwrittable and unavailable functions.
3389 (ipa_init): Put all_module_statics into optimization_summary_obstack.
3390 (copy_global_bitmap): Do not copy all_module_statics.
3391 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
3392 (propagate): Handle overwritable and unavailable leaf functions;
3393 initialize global info for overwritable and unavailable leaf functions;
3394 do not free all module statics.
3395 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
3397 * calls.c (flags_from_decl_or_type): Handle leaf.
3398 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
3401 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
3403 * gengtype.c: Reindented.
3404 * gengtype.h: Reindented.
3405 * gengtype-parse.c: Reindented.
3407 2010-09-24 Jan Hubicka <jh@suse.cz>
3409 PR tree-optimization/45738
3410 PR tree-optimization/45741
3411 * expr.c (string_constant): Allow CONST_DECL too;
3412 check that DECL_INITIAL is set.
3413 * varpool.c (const_value_known_p): Only look into VAR_DECL
3416 2010-09-24 Joseph Myers <joseph@codesourcery.com>
3418 * common.opt (undef): New.
3420 2010-09-24 Jakub Jelinek <jakub@redhat.com>
3423 * rtl.h (enum global_rtl_index): Add
3424 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
3425 (LAST_VIRTUAL_POINTER_REGISTER): Define.
3426 (virtual_preferred_stack_boundary_rtx,
3427 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
3428 (LAST_VIRTUAL_REGISTER): Increase by one.
3429 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
3430 instead of LAST_VIRTUAL_REGISTER.
3431 * function.c (instantiate_new_reg): Handle
3432 virtual_preferred_stack_boundary_rtx.
3433 * emit-rtl.c (init_virtual_regs): Handle
3434 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
3435 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
3436 * explow.c (round_push): If crtl->preferred_stack_boundary
3437 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
3438 virtual_preferred_stack_boundary_rtx alignment instead of
3439 crtl->preferred_stack_boundary alignment.
3440 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
3441 macros. Never decrease crtl->preferred_stack_boundary,
3442 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
3443 instead of PREFERRED_STACK_BOUNDARY. Don't modify
3444 stack_pointer_delta in dynamic allocation, even when size
3446 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
3448 * print-rtl.c (print_rtx): Handle
3449 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
3450 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
3451 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
3452 * config/frv/frv.c (frv_emit_movsi): Likewise.
3453 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
3454 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
3458 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
3461 * calls.c (expand_call): Make sure that all variable sized
3462 adjustments are multiple of preferred stack boundary after
3465 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
3466 Dominique Dhumieres <dominiq@lps.ens.fr>
3469 * gcc/config/darwin-driver.c (darwin_default_min_version):
3470 Adjust size passed to memcpy in two places.
3472 2010-09-24 Richard Guenther <rguenther@suse.de>
3474 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
3475 Make sure to not call set_type_context with error_mark_node.
3476 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
3478 2010-09-24 Richard Guenther <rguenther@suse.de>
3480 * Makefile.in (OBJS-onestep): Remove.
3481 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
3482 (libbackend.a): Remove onestep support.
3483 (libbackend.o): Remove.
3484 * configure.ac (--enable-intermodule): Remove.
3485 * configure: Regenerate.
3487 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
3489 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
3490 reaching the end of a block if it occurs at a DEBUG_INSN.
3492 2010-09-09 Tristan Gingold <gingold@adacore.com>
3495 * config/vms/vms-crt0-64.c: Removed.
3496 * config/vms/vms-crt0.c: Removed.
3497 * config/vms/vms-psxcrt0-64.c: Removed.
3498 * config/vms/vms-psxcrt0.c: Removed.
3499 * config/vms/vms-ucrt0.c: New file.
3500 * config/vms/t-vms64: Removed.
3501 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
3502 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
3503 * config.gcc (alpha-dec-vms): Use t-vms.
3505 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
3507 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
3508 underfull hbox in DVI output.
3509 (-fobjc-class-cxx-cdtors): Same change.
3510 (-fobjc-exceptions): Tidied up documentation. Explain what the
3511 option does, but moved the (lenghty) description of the exception
3512 syntax into objc.texi.
3513 (-fobjc-gc): Explain that the option is not useful with the GNU
3515 (-fzero-link): Explain that the GNU runtime always works in
3517 * doc/objc.texi: All sections: simplified @node declarations
3518 removing specification of next, previous, up node.
3519 (Objective-C): Updated introduction.
3520 (Garbage Collection): Updated. The bohem-gc library is now
3521 included in gcc itself. Mention that this section only applies to
3522 the GNU Objective-C runtime.
3523 (compatibility_alias): Small tidy up.
3524 (Exceptions): New section mostly containing text previously in the
3525 description of the -fobjc-exception command-line option.
3526 (Synchronization): Same.
3528 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
3530 * config/i386/i386.md (ix86_code_end): Move the initialization of
3531 xops array near the consumer. Use AX_REG and SP_REG instead of
3532 numerical constants.
3534 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
3536 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
3537 method [methodname]' for an Objective-C method instead of the less
3538 satisfactory 'too many arguments to function' (with no method name).
3540 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
3542 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
3543 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
3544 (execute_update_addresses_taken): Remove parameter. Execute the
3545 optimization unconditionally.
3546 * passes.c (execute_function_todo): Call execute_update_addresses_taken
3547 unconditionally if TODO_rebuild_alias is set, else only when optimizing
3548 if TODO_update_address_taken is set.
3550 2010-09-23 Anatoly Sokolov <aesok@post.ru>
3552 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3553 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
3554 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3555 (arm_output_addr_const_extra): Make static.
3557 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
3559 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
3560 define as unspec_volatile.
3561 ("nops"): Define as unspec_volatile. Use fputs to write to
3562 asm_out_file directly. Output NOPs on separate lines using while loop.
3563 * config/i386/i386.c (ix86_code_end): Use fputs to write to
3564 asm_out_file directly. Output NOPs on separate lines using while loop.
3566 2010-09-23 Richard Guenther <rguenther@suse.de>
3568 PR tree-optimization/45565
3569 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3570 Make sure to adjust the fndecl before replacing the stmt.
3572 2010-09-23 Richard Guenther <rguenther@suse.de>
3575 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
3576 gimplifying MEM_REF.
3578 2010-09-23 Alan Modra <amodra@gmail.com>
3580 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
3581 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
3583 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
3585 PR rtl-optimization/44374
3586 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
3587 * df-core.c (df_set_bb_dirty): Set it.
3588 * ifcvt.c (find_memory): Remove function.
3589 (dead_or_predicable): Use can_move_insns_across.
3590 * df.h (can_move_insns_across): Declare function.
3591 * cfgcleanup.c (block_was_dirty): New static variable.
3592 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
3593 than df_get_bb_dirty.
3594 (try_head_merge_bb): New static function.
3595 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
3597 * df-problems.c: Include "target.h"
3598 (df_simulate_find_uses): New static function.
3599 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
3600 (find_memory, find_memory_store): New static functions.
3601 (can_move_insns_across): New function.
3602 * Makefile.in (df-problems.o): Update dependencies.
3604 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
3607 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
3608 is specified and the suffix of the file isn't ".c".
3609 * config/sparc/linux64.h (ASM_SPEC): Likewise.
3611 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3613 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
3614 * doc/cppopts.texi: Fix markup of index entry.
3615 * doc/extend.texi (Constructing Calls): Fix markup of
3616 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
3617 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
3618 (Vague Linkage, C++ Attributes): Fix markup of index entries and
3620 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
3622 (C Dialect Options, C++ Dialect Options, Warning Options)
3623 (Debugging Options, Spec Files, Darwin Options)
3624 (i386 and x86-64 Options, MIPS Options)
3625 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
3626 index entries, avoid abbreviations, allow URLs to wrap, avoid
3627 long lines, avoid overlong pages from long @itemx lists.
3628 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
3629 * doc/standards.texi (Standards): Likewise.
3630 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
3632 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3634 * opts-common.c (prune_options): Make static. Work with decoded
3636 (decode_cmdline_options_to_array): Call prune_options. Don't
3637 resize option array here.
3638 * opts.h (prune_options): Remove prototype.
3639 * gcc.c (process_command): Take decoded options; don't call
3640 decode_cmdline_options_to_array here. Use decoded options for argv[0].
3641 (main): Call decode_cmdline_options_to_array here instead of
3642 prune_options. Update call to process_command.
3643 * config/darwin-driver.c: Include opts.h.
3644 (darwin_default_min_version): Work with decoded options. Don't
3645 handle -b or -V here.
3646 * config/darwin.h (darwin_default_min_version): Update prototype.
3647 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
3648 darwin_default_min_version.
3649 * config/i386/cygwin.h (mingw_scan): Update prototype.
3650 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
3651 * config/i386/cygwin1.c: Include opts.h.
3652 (mingw_scan): Work with decoded options.
3653 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
3654 * config/t-darwin (darwin-driver.o): Update dependencies.
3656 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3658 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
3659 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
3660 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
3661 -force-link, -force-link=, -language, -language=,
3662 -library-directory, -library-directory=, -no-canonical-prefixes,
3663 -no-standard-libraries, -no-warnings, -optimize, -output,
3664 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
3665 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
3666 -print-file-name=, -print-libgcc-file-name,
3667 -print-multi-directory, -print-multi-lib,
3668 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
3669 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
3670 -profile, -save-temps, -shared, -specs, -specs=, -static,
3671 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
3673 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
3674 * gcc.c (A Short Introduction to Adding a Command-Line Option):
3676 (cc1_options): Correct specs for passing down --help,
3677 --target-help and --help=*. Add spec for passing down --version.
3678 (struct option_map, option_map, target_option_translations,
3679 translate_options): Remove.
3680 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
3681 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
3682 OPT_fhelp_ and OPT_ftarget_help.
3683 (process_command): Don't call translate_options. Call
3684 decode_cmdline_options_to_array before checking for
3685 -no-canonical-prefixes using decoded options.
3686 * opts-common.c (tm.h): Update comment on #include.
3687 (find_opt): Allow abbreviations of long options.
3688 (struct option_map, option_map): New.
3689 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
3691 (target_option_translations): New.
3692 (decode_cmdline_options_to_array): Handle
3693 TARGET_OPTION_TRANSLATE_TABLE in driver.
3694 * opts.c (common_handle_option): Don't handle OPT_fhelp,
3695 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
3697 2010-09-22 Richard Guenther <rguenther@suse.de>
3699 * tree-inline.c (optimize_inline_calls): Schedule cleanups
3700 only if we inlined something. Block compaction and conditional
3701 folding are done by cfg cleanup. Schedule update-address-taken.
3702 (tree_function_versioning): Remove redundant call to number_blocks.
3703 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
3704 folding is done by cfg cleanup.
3705 * passes.c (init_optimization_passes): Remove update-address-taken
3706 pass after IPA inlining.
3708 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
3710 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
3711 to update conditions. Fix reg_mode[] check.
3713 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
3715 * config/picochip/picochip.md (movhicc): Use expand to check whether
3716 movhicc is available and split it after reload.
3718 2010-09-22 Richard Guenther <rguenther@suse.de>
3720 * tree-ssanames.c (release_dead_ssa_names): Do not remove
3722 * passes.c (init_optimization_passes): Remove early CFG cleanup.
3723 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
3724 (pass_cleanup_cfg): Likewise.
3725 (execute_fixup_cfg): Cleanup.
3726 * tree-pass.h (pass_cleanup_cfg): Remove.
3728 2010-09-22 Martin Jambor <mjambor@suse.cz>
3730 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
3731 builtins if it is true.
3732 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
3735 2010-09-22 Martin Jambor <mjambor@suse.cz>
3737 * tree-sra.c (struct access): New field grp_no_warning.
3738 (create_access_replacement): Set TREE_NO_WARNING according to
3740 (create_artificial_child_access): Use build_ref_for_model and set
3741 grp_no_warning if build_user_friendly_ref_for_offset fails.
3742 (propagate_subaccesses_across_link): Likewise.
3744 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
3747 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
3750 2010-09-22 Tristan Gingold <gingold@adacore.com>
3752 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
3754 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
3756 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
3757 * config/i386/i386.c (decide_alg): Update for rename.
3759 2010-09-22 Jakub Jelinek <jakub@redhat.com>
3761 PR rtl-optimization/45739
3762 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
3763 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
3765 2010-09-21 Anatoly Sokolov <aesok@post.ru>
3767 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
3768 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
3770 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
3771 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3773 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3776 * c-parser.c (c_parser_objc_method_definition): Check the return
3777 value of objc_start_method_definition and if false is returned,
3778 parse the method definition but emit no code.
3780 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3783 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
3784 call objc_get_interface_ivars ().
3786 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
3789 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
3790 static chain-register is used for 64-bit.
3792 2010-09-21 Richard Guenther <rguenther@suse.de>
3794 * dwarf2out.c (is_cu_die): New function.
3795 (add_pubtype): Use it.
3796 (gen_subprogram_die): Likewise.
3797 (gen_struct_or_union_type_die): Likewise.
3798 (dwarf2out_finish): Likewise.
3799 (comp_unit_die): Rename to ...
3800 (single_comp_unit_die): ... this.
3801 (comp_unit_die): New function lazily constructing and
3802 returning single_comp_unit_die.
3803 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
3804 base_type_die, subrange_type_die, modified_type_die,
3805 lower_bound_default, add_bound_info, add_prototyped_attribute,
3806 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
3807 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
3808 force_decl_die, gen_namespace_die, dwarf2out_decl,
3809 dwarf2out_start_source_file, dwarf2out_end_source_file,
3810 prune_unused_types, dwarf2out_finish): Use it.
3811 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
3812 the global list of translation-unit decls.
3813 (dwarf2out_init): Do not create single_comp_unit_die here.
3814 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
3816 2010-09-21 Richard Guenther <rguenther@suse.de>
3818 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
3821 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
3823 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
3824 (qhs_extenddi_cstr): Likewise.
3825 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
3826 them for the source operand.
3828 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
3830 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
3831 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
3832 (ix86_split_ashr): Ditto.
3833 (ix86_split_lshr): Ditto.
3835 2010-09-21 Richard Guenther <rguenther@suse.de>
3837 PR tree-optimization/45580
3838 * tree-ssa-propagate.c (substitute_and_fold): Always replace
3840 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
3841 virtuals fold the call into a regular indirect one.
3843 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3845 PR rtl-optimization/42775
3846 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
3847 scheduling is enabled.
3849 2010-09-20 Jakub Jelinek <jakub@redhat.com>
3851 PR rtl-optimization/45728
3852 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
3853 gen_lowpart_common first and if that fails, force_reg first
3854 before calling gen_lowpart.
3857 * cfgexpand.c (expand_one_stack_var_at): Use
3858 crtl->max_used_stack_slot_alignment as max_align, instead
3859 of maximum of that and PREFERRED_STACK_BOUNDARY.
3860 Don't call update_stack_alignment.
3862 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3864 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
3865 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
3866 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
3867 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
3868 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
3869 (build_nonstandard_integer_type): Likewise.
3870 (build_range_type_1): New function, built from...
3871 (build_range_type): ...this. Call build_range_type_1.
3872 (build_nonshared_range_type): New function.
3873 (build_array_type_1): New function, built from...
3874 (build_array_type: ...this. Call build_array_type_1.
3875 (build_nonshared_array_type): New function.
3876 * tree.h (build_nonshared_range_type): Declare.
3877 (build_nonshared_array_type): Likewise.
3879 2010-09-20 Anatoly Sokolov <aesok@post.ru>
3881 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
3882 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3883 (arm_class_likely_spilled_p): New function.
3885 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
3887 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
3889 (ix86_split_ashl): Ditto.
3890 (ix86_split_ashr): Ditto.
3891 (ix86_split_lshr): Ditto.
3892 (ix86_adjust_counter): Ditto.
3894 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
3896 * c-family/c-common.h (constant_string_class): Documented with
3897 comment identical to the one already in c-common.c.
3899 2010-09-20 Jakub Jelinek <jakub@redhat.com>
3901 * dwarf2out.c (any_cfis_emitted): New static variable.
3902 (add_fde_cfi): Set it.
3903 (dwarf2out_frame_debug): Clear it before processing,
3904 if it is set afterwards, flush any queued reg saves.
3907 * dwarf2out.c (add_accessibility_attribute): Assume
3908 DW_ACCESS_private as the default for dwarf_version > 2
3909 and DW_TAG_class_type parent.
3910 (gen_inheritance_die): Assume DW_ACCESS_public as the default
3911 for dwarf_version > 2 and parent other than DW_TAG_class_type.
3913 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
3916 * arm.md (arm_movt): Only enable on machines with MOVT.
3918 2010-09-20 Jie Zhang <jie@codesourcery.com>
3920 * config/arm/arm.c (arm_address_offset_is_imm): New.
3921 (arm_early_store_addr_dep): New.
3922 (arm_early_load_addr_dep): New.
3923 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
3924 (arm_early_load_addr_dep): Declare.
3925 (arm_address_offset_is_imm): Declare.
3926 * config/arm/cortex-m4.md: New file.
3927 * config/arm/cortex-m4-fpu.md: New file.
3928 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
3929 (attr generic_sched): Exclude cortexm4.
3930 (attr generic_vfp): Exclude cortexm4.
3932 2010-09-20 Richard Guenther <rguenther@suse.de>
3935 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
3937 2010-09-20 Jan Hubicka <jh@suse.cz>
3939 PR tree-optimize/45605
3940 * cgraph.h (const_value_known_p): Declare.
3941 (varpool_decide_const_value_known): Remove.
3942 * tree-ssa-ccp.c (get_base_constructor): Use it.
3943 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
3944 * expr.c (string_constant): Likewise.
3945 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
3946 * ipa.c (ipa_discover_readonly_nonaddressable_var,
3947 function_and_variable_visibility): Likewise.
3948 * gimplify.c (gimplify_call_expr): Likewise.
3949 * gimple-fold.c (get_symbol_constant_value): Likewise.
3950 * varpool.c (varpool_decide_const_value_known): Replace by...
3951 (const_value_known_p): ... this one; handle other kinds of DECLs
3952 too and work for automatic vars.
3953 (varpool_finalize_decl): Use const_value_known_p.
3955 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
3958 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
3960 2010-09-20 Richard Guenther <rguenther@suse.de>
3962 PR tree-optimization/45705
3963 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
3965 2010-09-20 Jakub Jelinek <jakub@redhat.com>
3967 PR rtl-optimization/45695
3968 * combine.c (try_combine): When splitting a two set pattern,
3969 make sure the pattern which will be put into i2 doesn't use REGs
3970 or MEMs set by insns in between i2 and i3.
3972 2010-09-19 Jan Hubicka <jh@suse.cz>
3975 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
3976 processing same node twice.
3978 2010-09-19 Anatoly Sokolov <aesok@post.ru>
3980 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
3981 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3982 (bfin_class_likely_spilled_p): New function
3984 2010-09-19 Ira Rosen <irar@il.ibm.com>
3986 PR tree-optimization/45714
3987 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
3988 created in vectorizable_call instead of the original statement in
3991 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
3993 * config/i386/i386-protos.h (split_double_mode): New prototype.
3994 (split_di, split_ti): Remove prototypes.
3995 * config/i386/i386.c (split_double_mode): New function.
3996 (split_di, split_ti): Remove.
3997 (ix86_expand_branch): Use split_double_mode.
3998 (ix86_split_to_parts): Ditto.
3999 (ix86_split_ashl): Ditto.
4000 (ix86_split_ashr): Ditto.
4001 (ix86_split_lshr): Ditto.
4002 (ix86_force_to_memory): Ditto.
4003 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
4005 2010-09-18 Jan Hubicka <jh@suse.cz>
4007 PR tree-optimization/45453
4008 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
4009 virtual functions are reachable.
4010 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
4011 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
4012 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
4013 when modifying function.
4015 2010-09-18 Jan Hubicka <jh@suse.cz>
4017 PR tree-optimization/45605
4018 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
4019 * gimple-fold.c (static_object_in_other_unit_p): New function.
4020 (canonicalize_constructor_val): Use it.
4021 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
4023 (gimple_fold_obj_type_ref_known_binfo): Use
4024 static_object_in_other_unit_p.
4026 2010-09-18 Richard Guenther <rguenther@suse.de>
4028 PR tree-optimization/45709
4029 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
4030 insertions until after all PHI nodes of the block are processed.
4032 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
4034 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
4036 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
4038 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
4040 2010-09-18 Richard Guenther <rguenther@suse.de>
4042 PR tree-optimization/45709
4043 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
4045 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
4047 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
4048 (dot_deps_stmt): Same.
4049 * graphite-poly.c (dot_lst): Same.
4050 * graphite-scop-detection.c (dot_all_scops): Same.
4053 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
4056 2009-12-16 Ben Elliston <bje@au.ibm.com>
4058 * tree-data-ref.c (dot_rdg_1): Added back.
4059 (dot_rdg): Same. Added "#if 0" around system call.
4061 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
4062 Richard Henderson <rth@redhat.com>
4064 * config/i386/i386.c (initial_ix86_tune_features): Add
4065 X86_TUNE_PAD_SHORT_FUNCTION.
4066 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
4067 (ix86_count_insn): New.
4068 (ix86_pad_short_function): Likewise.
4069 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
4071 * config/i386/i386.h (ix86_tune_indices): Add
4072 X86_TUNE_PAD_SHORT_FUNCTION.
4073 (TARGET_PAD_SHORT_FUNCTION): New.
4075 * config/i386/i386.md (UNSPEC_NOPS): New.
4078 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
4081 * calls.c (expand_call): Make sure that all variable sized
4082 adjustments are multiple of preferred stack boundary after
4085 2010-09-17 DJ Delorie <dj@redhat.com>
4087 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
4088 passed an invalid value, print an error instead of ICEing.
4089 (valid_psw_flag): New.
4090 (rx_expand_builtin): Call it for setpsw/clrpsw.
4091 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
4093 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
4094 (bitclr_in_memory): Likewise.
4095 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
4097 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
4100 * cfgexpand.c (update_stack_alignment): New.
4101 (get_decl_align_unit): Use it.
4102 (expand_one_stack_var_at): Call update_stack_alignment.
4104 2010-09-17 Richard Guenther <rguenther@suse.de>
4106 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
4107 Properly copy the read string.
4109 2010-09-17 Joseph Myers <joseph@codesourcery.com>
4111 * doc/options.texi (Variable): Document.
4112 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
4113 generate target_flags declarations explicitly. Don't define
4114 VarExists variables for the driver.
4115 * common.opt (target_flags): New Variable record.
4116 (flag_dump_unnumbered, flag_dump_unnumbered_links,
4117 flag_var_tracking, flag_var_tracking_assignments,
4118 flag_var_tracking_assignments_toggle): Don't mark variables with
4120 * config/i386/i386.c (ix86_isa_flags): Don't define here.
4121 * config/i386/i386.opt (ix86_isa_flags): Define here.
4122 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
4123 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
4125 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
4126 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
4127 Only define for generator programs.
4128 * rtlanal.c (target_flags): Remove.
4129 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
4130 flag_var_tracking_assignments_toggle): Remove.
4132 2010-09-17 Michael Matz <matz@suse.de>
4134 PR tree-optimization/43432
4135 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4136 Accept backwards consecutive accesses.
4137 (vect_create_data_ref_ptr): If step is negative generate
4139 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
4140 (perm_mask_for_reverse, reverse_vec_elements): New functions.
4141 (vectorizable_load): Handle loads with negative steps when easily
4144 2010-09-03 Jan Hubicka <jh@suse.cz>
4146 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
4148 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
4150 * config/v850/v850.c (v850_function_value_regno_p): Make static.
4151 Adjust comments. Declare.
4152 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4153 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
4155 2010-09-17 Richard Guenther <rguenther@suse.de>
4157 * common.opt (combine): Remove.
4158 * gcc.c (default_compilers): Remove specs testing combine.
4159 The C compilers no longer can combine.
4160 (option_map): Remove -combine.
4161 (display_help): Remove -combine.
4162 (driver_handle_option): Remove OPT_combine handling.
4163 (compile_input_file_p): Remove.
4164 (do_spec): Remove code concerning combine.
4166 * doc/invoke.texi: Remove traces of -combine.
4167 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
4169 2010-09-17 Richard Guenther <rguenther@suse.de>
4172 * builtins.c (fold_builtin_memory_op): Always properly adjust
4173 alignment of memory accesses.
4175 2010-09-16 Jan Hubicka <jh@suse.cz>
4177 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
4180 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
4182 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
4184 * config/i386/i386.c (predict_jump): Add prototype.
4185 (flag_opts): Add -m8bit-idiv.
4186 (ix86_split_idivmod): New.
4188 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
4189 Add 2 splitters for SI/DI mode divide.
4190 (divmod<mode>4_1): New pattern.
4191 (udivmod<mode>4_1): Likewise.
4192 (testdi_ccno_1): Likewise.
4194 * config/i386/i386.opt (m8bit-idiv): New.
4196 * doc/invoke.texi: Document -m8bit-idiv.
4198 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
4201 * config/i386/i386.c (min_insn_size): Moved out of the
4202 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
4204 2010-09-16 Jan Hubicka <jh@suse.cz>
4206 * lto-cgraph.c (lto_output_node): Fix handling of clones.
4207 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
4208 unreachable clones with reachable clones.
4209 * tree-inline.c (copy_bb): Fix sanity checking when producing
4212 2010-09-16 Anatoly Sokolov <aesok@post.ru>
4214 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
4215 (TARGET_MEMORY_MOVE_COST): Define.
4216 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
4218 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
4220 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
4221 maybe_tidy_empty_bb.
4224 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
4225 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
4227 2010-09-16 Joseph Myers <joseph@codesourcery.com>
4229 * target.def (target_option.optimization): New hook.
4230 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
4231 TARGET_OPTION_OPTIMIZATION hook.
4232 * doc/tm.texi: Regenerate.
4233 * hooks.c (hook_void_int_int): New.
4234 * hooks.h (hook_void_int_int): Declare.
4235 * opts.c: Don't include tm_p.h.
4236 (decode_options): Use targetm.target_option.optimization instead
4237 of OPTIMIZATION_OPTIONS.
4238 * system.h (OPTIMIZATION_OPTIONS): Poison.
4239 * config/arm/arm-protos.h (arm_optimization_options): Remove.
4240 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
4241 (arm_optimization_options): Rename to arm_option_optimization.
4243 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
4244 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
4245 (cris_option_optimization): New.
4246 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
4247 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
4248 (crx_option_optimization): New.
4249 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
4250 * config/frv/frv-protos.h (frv_optimization_options): Remove.
4251 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
4252 (frv_optimization_options): Rename to frv_option_optimization.
4254 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
4255 * config/h8300/h8300.c (h8300_option_optimization): New.
4256 (TARGET_OPTION_OPTIMIZATION): Define.
4257 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
4258 * config/i386/i386-protos.h (optimization_options): Remove.
4259 * config/i386/i386.c (optimization_options): Rename to
4260 ix86_option_optimization. Make static.
4261 (TARGET_OPTION_OPTIMIZATION): Define.
4262 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
4263 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
4264 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
4265 (ia64_optimization_options): Rename to ia64_option_optimization.
4266 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
4267 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
4268 commented-out definition.
4269 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
4270 instead of OPTIMIZATION_OPTIONS.
4271 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
4272 (m32r_option_optimization): New.
4273 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
4274 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
4276 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
4277 (mcore_option_optimization): New.
4278 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
4279 * config/mep/mep-protos.h (mep_optimization_options): Remove.
4280 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
4281 (mep_optimization_options): Rename to mep_option_optimization.
4282 Make static. Take unused level and size parameters.
4283 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
4284 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
4285 (mmix_option_optimization): New.
4286 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
4287 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
4288 (pdp11_option_optimization): New.
4289 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
4290 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
4291 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
4292 (optimization_options): Rename to rs6000_option_optimization.
4294 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
4295 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
4296 * config/rx/rx.c (rx_set_optimization_options): Rename to
4297 rx_option_optimization. Make static. Take unused level and size
4299 (TARGET_OPTION_OPTIMIZATION): Define.
4300 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
4301 * config/s390/s390-protos.h (optimization_options): Remove.
4302 * config/s390/s390.c (optimization_options): Rename to
4303 s390_option_optimization. Make static. Don't mark size parameter
4305 (TARGET_OPTION_OPTIMIZATION): Define.
4306 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
4307 * config/sh/sh-protos.h (sh_optimization_options): Remove.
4308 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
4309 (sh_optimization_options): Rename to sh_option_optimization. Make
4310 static. Don't mark parameters unused.
4311 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
4312 * config/spu/spu-protos.h (spu_optimization_options): Remove.
4313 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
4314 (spu_optimization_options): Rename to spu_option_optimization.
4316 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
4317 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
4318 (v850_option_optimization): New.
4319 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
4320 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
4321 (xtensa_option_optimization): New.
4322 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
4324 2010-09-16 Joseph Myers <joseph@codesourcery.com>
4326 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
4327 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
4328 * doc/tm.texi: Regenerate.
4329 * system.h (OVERRIDE_OPTIONS): Poison.
4330 * target.def (override): Default to hook_void_void.
4331 * targhooks.c (default_target_option_override): Remove.
4332 * genmodes.c, machmode.def: Update comments mentioning
4334 * config/alpha/alpha-modes.def: Update comment mentioning
4335 alpha_override_options.
4336 * config/alpha/alpha-protos.h (override_options): Remove.
4337 * config/alpha/alpha.c (override_options): Rename to
4338 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
4339 (TARGET_OPTION_OVERRIDE): Define.
4340 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
4341 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
4342 of OVERRIDE_OPTIONS.
4343 * config/arc/arc-protos.h (arc_init): Remove.
4344 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
4345 (arc_init): Rename to arc_option_override. Make static.
4346 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
4347 (OVERRIDE_OPTIONS): Remove.
4348 * config/arm/arm-protos.h (arm_override_options): Remove.
4349 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
4350 (arm_override_options): Rename to arm_option_override. Make
4351 static. Call SUBTARGET_OVERRIDE_OPTIONS.
4352 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
4353 * config/arm/arm.md: Update comment referring to arm_override_options.
4354 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
4355 instead of OVERRIDE_OPTIONS.
4356 * config/avr/avr-protos.h (avr_override_options): Remove.
4357 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
4358 (avr_override_options): Rename to avr_option_override. Make static.
4359 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
4360 * config/bfin/bfin-protos.h (override_options): Remove (twice).
4361 * config/bfin/bfin.c (override_options): Rename to
4362 bfin_option_override. Make static.
4363 (TARGET_OPTION_OVERRIDE): Define.
4364 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
4365 * config/cris/cris-protos.h (cris_override_options): Remove.
4366 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
4367 (cris_override_options): Rename to cris_option_override. Make static.
4368 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
4369 * config/frv/frv-protos.h (frv_override_options): Remove.
4370 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
4371 (frv_override_options): Rename to frv_option_override. Make static.
4372 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
4373 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
4374 * config/h8300/h8300.c (h8300_init_once): Rename to
4375 h8300_option_override. Make static.
4376 (TARGET_OPTION_OVERRIDE): Define.
4377 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
4378 * config/i386/i386-protos.h (override_options): Remove.
4379 * config/i386/i386.c (override_options): Rename to
4380 ix86_option_override_internal. Make static. Comments referring
4381 to this function and callers changed.
4382 (ix86_option_override): New.
4383 (TARGET_OPTION_OVERRIDE): Define.
4384 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
4385 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
4386 * config/ia64/ia64.c (ia64_file_start): Update comment referring
4387 to ia64_override_options.
4388 * config/iq2000/iq2000-protos.h (override_options): Remove.
4389 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
4390 (override_options): Rename to iq2000_option_override. Make static.
4391 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
4392 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
4393 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
4394 (lm32_override_options): Rename to lm32_option_override. Make static.
4395 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
4396 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
4397 (m32r_option_override): New.
4398 (m32r_init): Update comment.
4399 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
4400 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
4401 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
4402 (m68hc11_override_options): Rename to m68hc11_option_override.
4403 Make static. Return void.
4404 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
4405 * config/m68k/m68k-protos.h (override_options): Remove.
4406 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
4407 (override_options): Rename to m68k_option_override. Make static.
4408 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
4409 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
4410 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
4411 (mcore_override_options): Rename to mcore_option_override. Make
4413 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
4414 * config/mep/mep-protos.h (mep_override_options): Remove.
4415 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
4416 (mep_override_options): Rename to mep_option_override. Make static.
4417 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
4418 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
4419 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
4420 (mmix_override_options): Rename to mmix_option_override. Make static.
4421 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
4422 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
4423 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
4424 (mn10300_override_options): Rename to mn10300_option_override.
4426 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
4427 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
4428 * config/moxie/moxie.c (moxie_override_options): Rename to
4429 moxie_option_override. Make static.
4430 (TARGET_OPTION_OVERRIDE): Define.
4431 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
4432 * config/picochip/picochip-protos.h (picochip_override_options):
4433 Remove. Update comment referring to picochip_override_options.
4434 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
4435 (picochip_override_options): Rename to picochip_option_override.
4436 Make static. Update comment and definition of
4437 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
4438 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
4439 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4440 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4441 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4442 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4443 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4444 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
4445 instead of OVERRIDE_OPTIONS.
4446 * config/rs6000/rs6000-modes.def: Update comment referring to
4447 rs6000_override_options.
4448 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
4449 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
4450 (rs6000_override_options): Rename to
4451 rs6000_option_override_internal. Make static. Commented
4452 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
4453 (rs6000_option_override): New.
4454 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
4455 instead of OVERRIDE_OPTIONS.
4456 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4457 * config/s390/s390-protos.h (override_options): Remove.
4458 * config/s390/s390.c (override_options): Rename to
4459 s390_option_override. Make static.
4460 (TARGET_OPTION_OVERRIDE): Define.
4461 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
4462 * config/score/score-protos.h (score_override_options): Remove.
4463 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
4464 (score_override_options): Rename to score_option_override. Make
4466 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
4467 Update comment referring to override_options.
4468 * config/score/score3.c (score3_override_options): Rename to
4469 score3_option_override.
4470 * config/score/score3.h (score3_override_options): Rename to
4471 score3_option_override.
4472 * config/score/score7.c (score7_override_options): Rename to
4473 score7_option_override.
4474 * config/score/score7.h (score7_override_options): Rename to
4475 score7_option_override.
4476 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
4477 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
4478 (sparc_override_options): Rename to sparc_option_override. Make
4479 static. Call SUBTARGET_OVERRIDE_OPTIONS.
4480 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
4481 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
4482 instead of OVERRIDE_OPTIONS.
4483 * config/spu/spu-protos.h (spu_override_options): Remove.
4484 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
4485 (spu_override_options): Rename to spu_option_override. Make
4487 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
4488 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
4490 * config/vax/vax-protos.h (override_options): Remove.
4491 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
4492 (override_options): Rename to vax_option_override. Make static.
4493 Call SUBTARGET_OVERRIDE_OPTIONS.
4494 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
4495 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
4496 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
4497 * config/xtensa/xtensa-protos.h (override_options): Remove.
4498 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
4499 (override_options): Rename to xtensa_option_override. Make static.
4500 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
4502 2010-09-16 Richard Guenther <rguenther@suse.de>
4504 PR tree-optimization/45623
4505 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
4506 (get_constraint_for_component_ref): If computing a constraint
4507 for the rhs handle type punning through unions.
4508 (get_constraint_for_address_of): Adjust.
4509 (get_constraint_for_1): Likewise.
4510 (get_constraint_for): Likewise.
4511 (get_constraint_for_rhs): New function.
4512 (do_structure_copy): Adjust.
4513 (make_constraint_to): Likewise.
4514 (handle_const_call): Likewise.
4515 (find_func_aliases): Likewise.
4516 (process_ipa_clobber): Likewise.
4517 (create_variable_info_for): Likewise.
4519 2010-09-16 Ira Rosen <irar@il.ibm.com>
4521 * tree-vectorizer.c: Fix documentation.
4522 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
4523 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
4524 is_pattern_stmt_p, is_loop_header_bb_p,
4525 stmt_vinfo_set_inside_of_loop_cost,
4526 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
4527 known_alignment_for_access_p): Likewise.
4528 * tree-vect-loop.c: Fix documentation.
4529 (vect_get_cost): Start function name from new line.
4530 * tree-vect-data-refs.c: Fix documentation.
4531 * tree-vect_stmts.c: Likewise.
4532 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
4533 (vectorizable_store): Free vec_oprnds if allocated.
4534 (vectorizable_condition): Initialize several variables to avoid
4536 * tree-vect-slp.c: Fix documentation.
4538 2010-09-16 Richard Guenther <rguenther@suse.de>
4540 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
4541 is TS_TRANSLATION_UNIT_DECL.
4542 (initialize_tree_contains_struct): Adjust.
4543 (all_translation_units): New global vector.
4544 (build_translation_unit_decl): New function.
4545 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
4546 (struct tree_translation_unit_decl): New.
4547 (all_translation_units): Declare.
4548 (union tree_node): Add translation_unit_decl member.
4549 (build_translation_unit_decl): Declare.
4550 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
4551 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
4553 (pack_value_fields): Call it.
4554 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
4555 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
4556 (lto_output_tree_pointers): Call it.
4557 * lto-streamer-in.c (lto_input_tree_ref): Handle references
4558 to TRANSLATION_UNIT_DECL.
4559 (unpack_ts_translation_unit_decl_value_fields): New function.
4560 (unpack_value_fields): Call it.
4561 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
4562 (lto_input_tree_pointers): Call it.
4563 * lto-streamer.c (check_handled_ts_structures): Adjust.
4564 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
4565 * c-decl.c (all_translation_units): Remove.
4566 (pop_scope): Use build_translation_unit_decl.
4567 (collect_all_refs): Adjust.
4568 (for_each_global_decl): Likewise.
4569 (c_write_global_declarations): Likewise.
4571 2010-09-16 Jakub Jelinek <jakub@redhat.com>
4574 * fold-const.c (fold_checksum_tree): Change slot from const void **
4575 to void **, use CONST_CAST_TREE to store into *slot.
4577 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
4579 * config/i386/i386.md: Remove unneeded empty conditions and
4580 preparation statements from expanders.
4581 * config/i386/mmx.md: Ditto.
4582 * config/i386/sse.md: Ditto.
4584 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
4586 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
4588 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
4590 PR rtl-optimization/45593
4591 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
4592 insns that were in delay slots as stand-alone insns.
4594 2010-09-15 Ian Lance Taylor <iant@google.com>
4596 * incpath.c (remove_duplicates): If name is not a directory, issue
4597 a warning rather than an error.
4599 2010-09-15 Martin Jambor <mjambor@suse.cz>
4602 * tree-sra.c (create_access): Check for bit-fields directly.
4604 2010-09-15 Jakub Jelinek <jakub@redhat.com>
4606 PR tree-optimization/45633
4607 * tree-cfg.c (verify_gimple_assign_binary): Allow
4608 MINUS_EXPR with lhs and rhs1 pointer vector and
4609 rhs2 sizetype vector.
4610 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
4611 or vector pointer use TER to optimize pointer subtraction.
4613 2010-09-15 Jie Zhang <jie@codesourcery.com>
4615 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
4618 2010-09-15 Ian Lance Taylor <iant@google.com>
4620 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
4622 2010-09-15 Ian Lance Taylor <iant@google.com>
4624 * function.c (get_arg_pointer_save_area): Set
4625 arg_pointer_save_area_init to true.
4627 2010-09-15 Martin Jambor <mjambor@suse.cz>
4629 * tree-sra.c (generate_subtree_copies): Updated comment.
4630 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
4631 obtained from the statement iterator instead.
4632 (load_assign_lhs_subreplacements): Removed parameters lhs and
4633 right_offset, which is obtained from top_racc instead. Parameter lacc
4634 is now expected to be the root of the processed tree rather than root's
4635 first child. Updated all callers.
4637 2010-09-15 Joseph Myers <joseph@codesourcery.com>
4639 * config/pdp11/pdp11.c (register_move_cost): Rename to
4640 pdp11_register_move_cost.
4641 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
4642 pdp11_register_move_cost.
4643 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
4644 pdp11_register_move_cost instead of register_move_cost.
4646 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
4648 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
4649 pattern for vmovn. Expansion in case of non
4650 -mvectorize-with-neon-quad.
4651 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
4652 non- -mvectorize-with-neon-quad case.
4653 (move_lo_quad_<mode>): New expansion to vmov into low part.
4654 (move_hi_quad_<mode>): New expansion to vmov into high part.
4655 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
4656 (move_lo_quad_v4sf): Likewise.
4657 (move_lo_quad_v8hi): Likewise.
4658 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
4660 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
4662 * config/arm/iterators.md (ANY128): New mode iterator.
4663 (V_narrow_pack): New mode attribute.
4664 (V_HALF): Add attribute.
4665 (V_DOUBLE): Add attribute.
4666 (V_mode_nunits): Add attribute.
4668 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
4670 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
4671 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
4673 2010-09-15 Olivier Hainque <hainque@adacore.com>
4674 Jose Ruiz <ruiz@adacore.com>
4676 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
4677 * config/alpha/osf5-unwind.h: New file.
4679 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
4682 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
4683 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
4684 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
4686 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4688 * c-lang.h (struct lang_type): Add variable_size GTY option.
4690 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
4693 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
4695 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
4697 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
4698 result isn't used in memory address.
4700 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
4702 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
4703 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
4704 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
4705 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
4706 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
4707 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
4709 * target.def: Add units_per_simd_word to vectorize.
4711 * targhooks.c (default_units_per_simd_word): New.
4712 * targhooks.h (default_units_per_simd_word): Likewise.
4713 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
4714 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4715 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
4716 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4717 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
4718 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4719 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
4720 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4722 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
4723 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
4725 * tree-vect-stmts.c: Don't include "tm_p.h".
4726 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
4727 with targetm.vectorize.units_per_simd_word.
4729 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
4731 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
4733 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
4734 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
4736 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
4737 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
4739 * doc/tm.texi: Regenerated.
4741 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
4743 * tree-vect-stmts.c: Include "tm_p.h".
4745 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
4748 2010-09-14 Martin Jambor <mjambor@suse.cz>
4750 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
4751 location of generated statement. Changed all callers.
4752 (build_ref_for_model): New parameter loc which used to set location of
4753 all generated expressions. Changed all callers.
4754 (generate_subtree_copies): Likewise.
4755 (init_subtree_with_zero): Likewise.
4756 (sra_modify_expr): Set locations of all generated statements and
4757 expressions to the location the original statement.
4758 (handle_unscalarized_data_in_subtree): Likewise.
4759 (load_assign_lhs_subreplacements): Likewise.
4760 (sra_modify_constructor_assign): Likewise.
4761 (sra_modify_assign): Likewise.
4763 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
4768 * doc/install.texi (sparc*-*-*): New section.
4769 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
4771 2010-09-14 Jakub Jelinek <jakub@redhat.com>
4774 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
4775 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
4776 (expand_builtin): Adjust caller.
4777 (expand_builtin_unop): Only use subtarget if it has the right mode.
4779 2010-09-14 Tristan Gingold <gingold@adacore.com>
4781 * configure.ac (plugins): Fix typos.
4782 * configure: Regenerate.
4784 2010-09-14 Jakub Jelinek <jakub@redhat.com>
4787 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
4788 gen_type_die for function/method return type.
4790 2010-09-14 Ira Rosen <irar@il.ibm.com>
4792 PR tree-optimization/45470
4793 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
4794 can throw an exception.
4795 * tree-vect-stmts.c (vectorizable_call): Likewise.
4797 2010-09-14 DJ Delorie <dj@redhat.com>
4800 * config/mep/mep-protos.h (mep_save_register_info,
4801 mep_reinit_regs, mep_init_regs): Declare.
4803 * config/mep/mep.c: Move all target definitions to the end of the
4804 file to avoid the need for duplicate declarations.
4805 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
4806 (mep_reorg_erepeat): Remove unused variables.
4807 (mep_expand_builtin): Likewise.
4809 * config/mep/mep-pragma.c: Don't include rtl.h.
4810 (INVALID_REGNUM): New.
4811 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
4813 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
4814 Avoid enum/integer math.
4816 2010-09-13 Joseph Myers <joseph@codesourcery.com>
4819 * config/mep/t-mep (GTM_H): Add insn-constants.h.
4820 * config/mep/mep.c (mep_conditional_register_usage): Take no
4822 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
4824 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
4825 call to mep_conditional_register_usage.
4827 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
4830 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
4833 2010-09-13 Jakub Jelinek <jakub@redhat.com>
4835 PR rtl-optimization/45617
4836 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
4837 even if low N bits of X aren't known to be zero.
4839 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
4841 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
4843 * config/i386/i386.c (initial_ix86_tune_features): Add
4844 X86_TUNE_VECTORIZE_DOUBLE.
4845 (ix86_units_per_simd_word): New.
4847 * config/i386/i386.h (ix86_tune_indices): Add
4848 X86_TUNE_VECTORIZE_DOUBLE.
4849 (TARGET_VECTORIZE_DOUBLE): New.
4850 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
4852 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
4854 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
4855 (new_temp_expr_table): Allocate call_cnt vector.
4856 (free_temp_expr_table): Free it.
4857 (process_replaceable): Add call_cnt parm and set in vector.
4858 (find_replaceable_in_bb): Skip replacement if def/use span a call.
4859 (debug_ter): Dump call_cnt value, remove stderr uses.
4861 2010-09-13 Jan Hubicka <jh@suse.cz>
4863 * tree.c (build_zero_cst): New.
4864 * tree.h (build_zero_cst): Declare.
4865 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
4866 (get_base_constructor): Break out from ...
4867 (fold_const_aggregate_ref): Here; handle empty constructors.
4869 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
4871 * config/arm/arm.md: (define_attr "conds"): Update comment.
4872 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
4873 conds attribute to clob.
4874 (arm_sync_compare_and_swapsi): Likewise.
4875 (arm_sync_compare_and_swap<mode>): Likewise.
4876 (arm_sync_lock_test_and_setsi): Likewise.
4877 (arm_sync_lock_test_and_set<mode>): Likewise.
4878 (arm_sync_new_<sync_optab>si): Likewise.
4879 (arm_sync_new_nandsi): Likewise.
4880 (arm_sync_new_<sync_optab><mode>): Likewise.
4881 (arm_sync_new_nand<mode>): Likewise.
4882 (arm_sync_old_<sync_optab>si): Likewise.
4883 (arm_sync_old_nandsi): Likewise.
4884 (arm_sync_old_<sync_optab><mode>): Likewise.
4885 (arm_sync_old_nand<mode>): Likewise.
4887 2010-09-13 Olivier Hainque <hainque@adacore.com>
4889 * fwprop.c (forward_propagate_and_simplify): Only attach a
4890 REG_EQUAL note to an insn if the destination is a register.
4891 * gcse.c (try_replace_reg): Likewise.
4893 2010-09-13 Richard Guenther <rguenther@suse.de>
4895 PR tree-optimization/45611
4896 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
4897 (copy_ref_info): Likewise.
4899 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
4904 * tree-pretty-print.c (dump_generic_node): Disregard top-level
4905 types of MEM_REF pointer types to the same type.
4907 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
4909 PR rtl-optimization/41087
4910 * ifcvt.c (noce_get_condition): Don't allow conditions with
4913 2010-09-12 Anatoly Sokolov <aesok@post.ru>
4915 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4916 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
4917 * config/frv/frv.c (frv_register_move_cost): Make static. Change
4918 arguments type to reg_class_t. Add mode argument.
4919 (frv_memory_move_cost): New.
4920 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
4922 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
4924 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
4925 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
4927 2010-09-10 Jan Hubicka <jh@suse.cz>
4929 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
4931 2010-09-10 Richard Guenther <rguenther@suse.de>
4933 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
4934 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
4935 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
4936 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
4937 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
4939 2010-09-10 Richard Guenther <rguenther@suse.de>
4941 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
4942 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
4943 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
4944 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
4946 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
4949 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
4950 of string folding is of integral type.
4952 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
4954 * doc/invoke.texi (-x): Fix typo.
4956 2010-09-10 Richard Guenther <rguenther@suse.de>
4959 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
4960 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4961 Output DECL_DEBUG_EXPR.
4962 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4963 Input DECL_DEBUG_EXPR.
4965 2010-09-10 Richard Guenther <rguenther@suse.de>
4967 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
4968 (build_index_type): Implement in terms of build_range_type.
4969 (build_range_type): Do not allow NULL_TREE type, improve
4970 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
4972 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
4973 create a distinct copy of the type.
4975 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
4977 * configure: Regenerated.
4978 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
4980 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4982 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
4983 * config/arm/cortex-a9-neon.md: New and partially generated.
4984 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
4986 2010-09-10 Richard Guenther <rguenther@suse.de>
4988 * tree.h (build_index_2_type): Remove.
4989 * tree.c (build_index_2_type): Remove.
4991 2010-09-10 Jakub Jelinek <jakub@redhat.com>
4994 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
4995 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
4996 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
4998 2010-09-10 Martin Jambor <mjambor@suse.cz>
5000 PR tree-optimization/44972
5001 * tree-sra.c: Include toplev.h.
5002 (build_ref_for_offset): Entirely reimplemented.
5003 (build_ref_for_model): New function.
5004 (build_user_friendly_ref_for_offset): New function.
5005 (analyze_access_subtree): Removed build_ref_for_offset check.
5006 (propagate_subaccesses_across_link): Likewise.
5007 (create_artificial_child_access): Use
5008 build_user_friendly_ref_for_offset.
5009 (propagate_subaccesses_across_link): Likewise.
5010 (ref_expr_for_all_replacements_p): Removed.
5011 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
5012 (sra_modify_expr): Use build_ref_for_model.
5013 (load_assign_lhs_subreplacements): Likewise.
5014 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
5015 checks for return values of build_ref_for_offset.
5016 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
5017 build_ref_for_offset.
5018 * ipa-prop.h: Include gimple.h
5019 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
5020 (ipa_analyze_indirect_call_uses): Update comment.
5021 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
5022 (IPA_PROP_H): Likewise.
5024 2010-09-10 Martin Jambor <mjambor@suse.cz>
5026 PR tree-optimization/44972
5027 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
5028 calling build_ref_for_offset.
5030 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5032 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
5033 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
5034 * config/arm/arm-tune.md: Regenerate.
5035 * doc/invoke.texi (ARM Options): Document it.
5037 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
5039 * config/i386/i386.c: Include sched-int.h.
5040 (TARGET_SCHED_DISPATCH): Defined.
5041 (TARGET_SCHED_DISPATCH_DO): Defined.
5042 (DISPATCH_WINDOW_SIZE): Defined.
5043 (MAX_DISPATCH_WINDOWS): Defined.
5044 (MAX_INSN): Defined.
5046 (MAX_IMM_SIZE): Defined.
5047 (MAX_IMM_32): Defined.
5048 (MAX_IMM_64): Defined.
5049 (MAX_LOAD): Defined.
5050 (MAX_STORE): Defined.
5052 (dispatch_group): New.
5053 (num_allowable_groups): New.
5055 (sched_insn_info_s): New.
5056 (dispatch_windows_s): New.
5058 (dispatch_window_list): New.
5059 (dispatch_window_list1): New.
5060 (get_mem_group): New.
5062 (dispatch_violation): New.
5066 (allocate_window): New.
5067 (init_dispatch_sched): New.
5068 (is_end_basic_block): New.
5069 (process_end_window): New.
5070 (allocate_next_window): New.
5071 (find_constant_1): New.
5072 (find_constant): New.
5073 (get_num_immediates): New.
5074 (has_immediate): New.
5075 (get_insn_path): New.
5076 (get_insn_group): New.
5077 (count_num_restricted): New.
5078 (fits_dispatch_window): New.
5079 (add_insn_window): New.
5080 (add_to_dispatch_window): New.
5081 (debug_dispatch_window_file): New.
5082 (debug_dispatch_window): New.
5083 (debug_insn_dispatch_info_file): New.
5084 (debug_ready_dispatch): New.
5086 (has_dispatch): New.
5087 * config/i386/i386.h (debug_ready_dispatch): Declared.
5088 (debug_dispatch_window): Declared.
5089 * config/i386/i386.opt (mdispatch-scheduler): New flag.
5090 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
5091 (TARGET_SCHED_DISPATCH_DO): New.
5092 * doc/tm.texi: Regererated.
5093 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
5094 ready_remove_first_dispatch
5095 (schedule_block): Call targetm.sched.dispatch and
5096 targetm.sched.dispatch_do.
5097 (sched_init): Call targetm.sched.dispatch and
5098 targetm.sched.dispatch_do.
5099 (ready_remove_first_dispatch): New.
5100 (number_in_ready): New.
5101 (get_ready_element): New.
5102 * hooks.c (hook_bool_rtx_int_false): New.
5103 (hook_void_rtx_int): New.
5104 * hooks.h (hook_bool_rtx_int_false): Declared.
5105 (hook_void_rtx_int): Declared.
5106 * sched-int.h (IS_DISPATCH_ON): Defined.
5108 (DISPATCH_VIOLATION): Defined.
5109 (FITS_DISPATCH_WINDOW): Defined.
5110 (DISPATCH_INIT): Defined.
5111 (ADD_TO_DISPATCH_WINDOW): Defined.
5112 (get_ready_element): Declared.
5113 (number_in_ready): Declared.
5114 * target.def (dispatch): Defined.
5115 (dispatch_do): Defined.
5117 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
5120 * reload1.c (merge_assigned_reloads): Remove.
5121 (reload_as_needed): Don't call it.
5123 2010-09-09 Anatoly Sokolov <aesok@post.ru>
5125 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
5126 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5127 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5129 2010-09-09 Matthias Klose <doko@ubuntu.com>
5132 * configure.ac (--enable-plugin): Enhance for cross builds.
5133 * configure: Regenerate.
5135 2010-09-09 Jan Hubicka <jh@suse.cz>
5137 PR tree-optimization/45598
5138 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
5139 string folding is of integral type.
5141 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5143 * configure.ac (gnu_indirect_function): New test.
5144 * configure: Rebuilt.
5145 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
5146 * defaults.h (IFUNC_ASM_TYPE): Provide default.
5148 * doc/extend.texi (Function Attributes): Document ifunc.
5149 * varasm.c (do_assemble_alias): Deal with ifuncs too.
5151 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
5153 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
5154 epilogue instruction move.
5156 2010-09-09 Jan Hubicka <jh@suse.cz>
5158 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
5159 command line to allow more partitions than input files.
5161 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
5164 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
5166 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
5169 * ira.c (pseudo_for_reload_consideration_p): Don't use
5170 flag_ira_share_spill_slots.
5172 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5174 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
5175 point zero operands that fit into a single GPR.
5176 (s390_preferred_reload_class): Ensure we only return general-purpose
5178 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
5179 floating-point zero operands into GPRs.
5180 ("*mov<mode>_64"): Likewise.
5181 ("mov<mode>"): Likewise using lhi.
5183 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5185 * config/s390/s390.c (s390_symref_operand_p): Return false for
5186 literal pool references.
5187 (s390_check_qrst_address): Update caller.
5189 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
5191 * config/i386/predicates.md (ext_register_operand): Check that
5192 SUBREG_REG is really a register before looking for REGNO.
5193 (reg_not_xmm0_operand): Handle SUBREGs correctly.
5194 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
5196 2010-09-09 Jakub Jelinek <jakub@redhat.com>
5198 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
5199 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
5200 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
5201 * print-rtl.c (print_rtx): Likewise.
5202 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5203 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
5204 for ADDR_EXPR with non-addressable object.
5205 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
5206 (struct dw_val_struct): Add v.val_decl_ref.
5207 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
5208 Handle DW_OP_GNU_implicit_pointer.
5209 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
5210 (get_ref_die_offset_label): New function.
5211 (implicit_ptr_descriptor): New function.
5212 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
5213 (loc_descriptor): Likewise.
5214 (gen_variable_die): Put even definitions into decl_die_table.
5215 (resolve_addr_in_expr): Resolve still unresolved
5216 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
5218 (dwarf2out_finish): Call output_location_lists after outputting
5219 .debug_info and .debug_abbrev instead of before.
5221 2010-09-09 Roland McGrath <roland@redhat.com>
5223 * dwarf2out.c (DWARF_REF_SIZE): Define.
5224 (size_of_loc_descr): Use it for DW_OP_call_ref.
5226 2010-09-09 Alan Modra <amodra@gmail.com>
5228 * doc/invoke.text: Reinstate mcmodel=medium.
5229 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5230 CMODEL_MEDIUM as default.
5231 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
5232 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
5233 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
5234 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
5236 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5239 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
5240 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
5241 (builtin_longjmp): Likewise.
5242 (allocate_stack): Use hard_frame_pointer_rtx instead of
5244 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
5245 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
5246 (pa_can_eliminate): Likewise.
5247 (TARGET_INTERNAL_ARG_POINTER): Define.
5248 (TARGET_CAN_ELIMINATE): Define.
5249 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
5251 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
5252 (pa_internal_arg_pointer, pa_can_eliminate,
5253 pa_initial_elimination_offset): New.
5254 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
5255 (HARD_FRAME_POINTER_REGNUM): Set to register three.
5256 (INITIAL_FRAME_POINTER_OFFSET): Delete.
5257 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
5259 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
5260 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
5261 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
5262 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
5263 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
5264 new soft frame pointer.
5265 * config/pa/pa64-regs.h: Likewise.
5267 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
5269 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
5271 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
5273 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
5276 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
5278 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
5282 * tree-pretty-print.c (dump_generic_node): Disregard top-level
5283 qualifiers in otherwise equal MEM_REF pointer types.
5284 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
5285 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
5287 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5290 * config/arm/arm.md (bswapsi2): Handle condition correctly
5291 for armv6 and optimize_size.
5293 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5296 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
5298 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
5300 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
5301 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
5302 ix86_expand_strlen, legitimate_pic_address_disp_p,
5303 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
5304 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
5305 ix86_check_movabs, ix86_secondary_memory_needed): Change function
5307 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
5308 return_in_memory_ms_64, ix86_check_movabs,
5309 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
5310 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
5311 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
5312 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
5313 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
5314 ix86_secondary_memory_needed): Change to bool. Return
5315 "true" and "false" values.
5316 * config/i386/i386.md: Return "true" and "false" values.
5318 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5320 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5321 run_expensive_tests.
5323 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5325 * toplev.c (output_stack_usage): Use lbasename instead of basename.
5327 2010-09-08 Martin Jambor <mjambor@suse.cz>
5330 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
5333 2010-09-08 Richard Guenther <rguenther@suse.de>
5335 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
5337 (iterative_hash_gimple_type): Likewise.
5338 (gimple_type_hash): Likewise.
5339 (gimple_register_type): Likewise.
5340 (print_gimple_types_stats): Likewise.
5341 (free_gimple_type_tables): Likewise.
5343 2010-09-08 Michael Matz <matz@suse.de>
5345 PR tree-optimization/43430
5346 * tree-vect-stmts.c (vectorizable_condition): Support multiple
5347 copies for conditional statements if it's not part of a reduction.
5349 2010-09-08 Michael Matz <matz@suse.de>
5351 PR tree-optimization/33244
5352 * tree-ssa-sink.c (statement_sink_location): Don't sink into
5355 2010-09-08 Richard Guenther <rguenther@suse.de>
5357 PR tree-optimization/45578
5358 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
5359 Be more careful when transfering alignment information to
5360 the new induction variable.
5361 (copy_ref_info): Likewise.
5363 2010-09-08 Richard Guenther <rguenther@suse.de>
5365 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
5366 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
5368 2010-09-08 Arnaud Charlet <charlet@adacore.com>
5370 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
5371 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
5373 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
5376 * doc/md.texi: Fixed modes on several standard pattern names.
5378 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
5380 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
5381 (ashl<mode>3): ...this.
5382 (loongson_psra<V_suffix>): Rename to...
5383 (ashr<mode>3): ...this.
5384 (loongson_psrl<V_suffix>): Rename to...
5385 (lshr<mode>3): ...this.
5386 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
5387 (CODE_FOR_loongson_psllw): Define.
5388 (CODE_FOR_loongson_psrlh): Define.
5389 (CODE_FOR_loongson_psrlw): Define.
5390 (CODE_FOR_loongson_psrah): Define.
5391 (CODE_FOR_loongson_psraw): Define.
5393 2010-09-07 Richard Henderson <rth@redhat.com>
5395 * tree-vect-data-refs.c: Include tm_p.h.
5396 * Makefile.in (tree-vect-data-refs.o): Update deps.
5397 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
5398 Move delarations outside #ifdef RTX_CODE.
5400 2010-09-07 Richard Henderson <rth@redhat.com>
5402 * final.c (rest_of_handle_final): Unconditionally do
5403 output_function_exception_table before assemble_end_function.
5405 2010-09-07 Jan Hubicka <jh@suse.cz>
5407 * tree-inline.c (tree_inlinable_function_p): Do not test
5409 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
5410 update_callee_keys, cgraph_decide_inlining): Test function availability.
5411 * cif-code.def (OVERWRITABLE): New code.
5413 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
5414 Jack Howarth <howarth@bromo.med.uc.edu>
5419 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
5420 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
5421 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
5424 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
5426 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
5427 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
5429 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
5431 * config.gcc: Don't append t-android for Android targets.
5433 * config/t-android: Removed.
5435 2010-09-07 Richard Henderson <rth@redhat.com>
5437 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
5438 * doc/tm.texi.in: Add doc marker.
5439 * doc/tm.texi: Rebuild.
5440 * except.c (switch_to_exception_section): Always build.
5441 (output_one_function_exception_table): Move section switch,
5442 personality output, and label output ...
5443 (output_function_exception_table): ... here. Use the new
5446 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
5447 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
5448 TARGET_ASM_INIT_SECTIONS): New.
5449 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
5451 (TARGET_ASM_UNWIND_EMIT): Update to match.
5452 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
5454 * config/arm/arm.c (arm_asm_emit_except_personality): New.
5455 (arm_asm_init_sections): New.
5456 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
5458 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5460 * config/arm/arm.md: Remove unused variable.
5462 2010-09-07 Anatoly Sokolov <aesok@post.ru>
5464 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5465 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
5466 (m32r_memory_move_cost): New function.
5468 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
5470 * config.gcc: Append t-android for Android targets.
5472 * config/t-android: New.
5474 2010-09-07 Richard Henderson <rth@redhat.com>
5476 * target.def (unwind_emit_before_insn): New hook.
5477 * doc/tm.texi.in: Add @hook marker for it.
5478 * doc/tm.texi: Rebuild.
5479 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
5481 2010-09-07 Martin Jambor <mjambor@suse.cz>
5484 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
5485 are any type attributes.
5487 2010-09-07 Jan Hubicka <jh@suse.cz>
5489 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
5490 array_ref_low_bound in string access folding.
5492 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
5495 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
5496 eh_return fixup sequence.
5498 2010-09-07 Jan Hubicka <jh@suse.cz>
5500 * gimple-fold.c (maybe_fold_reference): Verify that operand is
5501 gimple_min_invariant.
5503 2010-09-07 Richard Guenther <rguenther@suse.de>
5506 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
5507 nor CONSTRUCTOR can trap.
5508 * tree-complex.c (update_complex_assignment): Update EH info.
5510 2010-09-07 Richard Guenther <rguenther@suse.de>
5513 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
5514 * passes.c (execute_function_todo): Do not verify anything if
5517 2010-09-07 Richard Guenther <rguenther@suse.de>
5519 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
5521 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
5524 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
5525 New define_mode_attrs.
5526 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
5527 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
5528 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
5529 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
5530 Remove pool_range attribute.
5531 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
5532 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
5533 pool_range and neg_pool_range attributes.
5534 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
5535 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
5536 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
5538 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
5540 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
5543 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
5546 * config/i386/mmx.md (*mov<mode>_internal_rex64,
5547 *mov<mode>_internal_avx, *mov<mode>_internal,
5548 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
5549 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
5551 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5553 * c-typeck.c (do_warn_double_promotion): Remove.
5554 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
5557 2010-09-06 Anatoly Sokolov <aesok@post.ru>
5559 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
5560 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
5561 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
5562 argument type to reg_class_t. Change result type to bool.
5563 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5565 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
5568 * gthr-posix.h (__gthread_objc_thread_detach): Use
5569 _objc_thread_attribs when detaching a thread.
5570 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
5572 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
5575 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
5576 * configure: Regenerated.
5578 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5580 * combine.c (try_combine): Set subst_low_luid to i0.
5582 2010-09-06 Richard Guenther <rguenther@suse.de>
5584 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
5585 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
5586 (build_aligned_type): Declare.
5587 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
5588 (check_aligned_type): New function.
5589 (build_aligned_type): Likewise.
5590 * expr.c (expand_assignment): Handle misaligned stores via
5591 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
5592 (expand_expr_real_1): Likewise.
5593 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
5594 * tree-vect-stmts.c (vectorizable_store): Do not build
5595 MISALIGNED_INDIRECT_REF but initialize alignment information.
5596 (vectorizable_load): Likewise.
5597 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
5599 * cfgexpand.c (expand_debug_expr): Likewise.
5600 * dwarf2out.c (loc_list_from_tree): Likewise.
5601 * fold-const.c (maybe_lvalue_p): Likewise.
5602 (operand_equal_p): Likewise.
5603 (build_fold_addr_expr_with_type_loc): Likewise.
5604 * gimplify.c (gimplify_addr_expr): Likewise.
5605 (gimplify_expr): Likewise.
5606 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
5607 (verify_gimple_assign_single): Likewise.
5608 * tree-dump.c (dequeue_and_dump): Likewise.
5609 (tree_could_trap_p): Likewise.
5610 * tree-predcom.c (ref_at_iteration): Likewise.
5611 * tree-pretty-print.c (dump_generic_node): Likewise.
5612 (op_code_prio): Likewise.
5613 (op_symbol_code): Likewise.
5614 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
5615 * tree-ssa-loop-im.c (for_each_index): Likewise.
5616 (gen_lsm_tmp_name): Likewise.
5617 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
5618 (find_interesting_uses_address): Likewise.
5619 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
5620 * tree-ssa-operands.c (get_expr_operands): Likewise.
5621 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5622 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5623 (ao_ref_init_from_vn_reference): Likewise.
5624 * tree.c (staticp): Likewise.
5625 (build1_stat): Likewise.
5626 (reference_alias_ptr_type): Likewise.
5627 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5628 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
5629 MISALIGNED_INDIRECT_REF handling.
5631 2010-09-06 Richard Guenther <rguenther@suse.de>
5633 PR tree-optimization/45534
5634 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
5635 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
5637 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
5638 valid on the target.
5640 2010-09-06 Andreas Schwab <schwab@redhat.com>
5642 * configure.ac: Quote argument of AC_MSG_WARN.
5643 * configure: Regenerate.
5645 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
5647 * sel-sched.c (move_cond_jump): Correct arguments to
5648 maybe_tidy_empty_bb.
5649 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
5651 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
5653 PR rtl-optimization/44919
5654 * sel-sched.c (move_cond_jump): Remove assert, check that
5655 the several blocks case can only happen with mutually exclusive
5656 insns instead. Rewrite the movement code to support moving through
5657 several basic blocks.
5659 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
5661 * config/i386/i386.md (iptrsize): New mode attribute.
5663 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
5665 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
5666 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
5667 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
5668 (stack_tls_protect_set_<mode>): Ditto from
5669 stack_tls_protect_set_{si,di}. Use %@ to output segment register
5670 of thread base pointer load.
5671 (stack_tls_protect_test_<mode>): Ditto from
5672 stack_tls_protect_test_{si,di}. Use %@ to output segment register
5673 of thread base pointer load.
5674 (stack_protect_set): Rewrite using indirect functions.
5675 (stack_protect_test): Ditto.
5676 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
5677 (ix86_print_operand): Handle '@'.
5679 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
5681 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
5684 2010-09-05 Mark Mitchell <mark@codesourcery.com>
5686 * doc/invoke.texi: Document -Wdouble-promotion.
5687 * c-typeck.c (convert_arguments): Check for implicit conversions
5688 from float to double.
5689 (do_warn_double_promotion): New function.
5690 (build_conditional_expr): Use it.
5691 (build_binary_op): Likewise.
5693 2010-09-05 Richard Guenther <rguenther@suse.de>
5695 PR tree-optimization/45535
5696 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
5697 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
5699 (indirect_refs_may_alias_p): Likewise.
5701 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
5703 * config/sh/sh.c (sh_option_override): Make static.
5704 Adjust comments. Declare.
5705 (sh_function_value_regno_p): Likewise.
5706 (sh_register_move_cost): Modify the arguments, make static.
5707 Adjust comments. Declare.
5708 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
5709 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5710 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
5711 REGISTER_MOVE_COST): Delete.
5712 * config/sh/sh-protos.h (sh_override_options): Delete.
5713 (sh_register_move_cost): Delete.
5714 (sh_function_value_regno_p): Delete.
5716 2010-09-04 Anatoly Sokolov <aesok@post.ru>
5718 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
5719 m32r_function_value_regno_p): New functions.
5720 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5721 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
5722 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
5723 FUNCTION_VALUE_REGNO_P): Remove.
5725 2010-09-04 Jan Hubicka <jh@suse.cz>
5727 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
5728 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
5729 fold_read_from_constant_string.
5731 * gimple.h (canonicalize_constructor_val): Declare.
5732 * gimple-fold.c (canonicalize_constructor_val): New function.
5733 (get_symbol_constant_value):Use it.
5734 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
5736 2010-09-04 Jan Hubicka <jh@suse.cz>
5738 * tree-switch-conversion.c (build_one_array): Set constructor to be
5740 * varpool.c (varpool_finalize_decl): Compute const_value_known.
5742 2010-09-04 Richard Guenther <rguenther@suse.de>
5745 * tree-flow.h (force_gimple_operand_1): Declare.
5746 (force_gimple_operand_gsi_1): Likewise.
5747 * gimplify.c (force_gimple_operand_1): New worker taking a
5748 gimple predicate for ...
5749 (force_gimple_operand): ... which now wraps it.
5750 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
5751 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
5753 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
5754 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
5755 (create_mem_ref): Likewise.
5757 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
5759 * config/i386/predicates.md (sse_reg_operand): New predicate.
5760 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
5761 predicate for operand 1.
5762 (XFmode push splitter): Use fp_register_operand predicate
5764 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
5765 (SF-DF float_extend push splitter): Add reload_completed insn
5767 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
5768 MODEF mode macro. Add reload_completed insn predicate.
5770 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
5772 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
5773 (struct df_extract_ref): Remove.
5774 (union df_ref_d): Remove extract_ref member.
5775 (df_ref_create): Remove last three arguments.
5776 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
5777 * df-scan.c (df_ref_record): Remove last three arguments, do not
5778 pass them to df_ref_create_structure.
5779 (df_uses_record): Remove first and last three arguments. Replace
5780 first argument with DF_REF_REGULAR, adjust calls to remove the
5781 width, offset and mode. Always call recursively on the second
5782 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
5783 (df_ref_create_structure): Remove first argument.
5784 (struct df_scan_problem_data): Remove ref_extract_pool.
5785 (df_scan_free_internal): Do not free it.
5786 (df_scan_alloc): Do not allocate it.
5787 (df_ref_create): Remove last three arguments, do not pass them to
5788 df_ref_create_structure.
5789 (df_free_ref): Remove DF_REF_EXTRACT case.
5790 (df_notes_rescan): Adjust call to df_uses_record.
5791 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
5792 Remove DF_REF_EXTRACT case.
5793 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
5794 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
5795 and SUBREG definitions.
5796 (df_get_conditional_uses): Remove references to width/offset/mode,
5797 adjust call to df_ref_create_structure.
5798 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
5799 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
5800 calls to df_uses_record and df_ref_record.
5801 * fwprop.c (update_df): Remove references to width/offset/mode,
5802 adjust call to df_ref_create.
5804 2010-09-03 Jan Hubicka <jh@suse.cz>
5806 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
5807 (build_cdtor_fns): Update use of build_cdtor.
5809 2010-09-03 Joseph Myers <joseph@codesourcery.com>
5811 * doc/options.texi (SeparateAlias): Document.
5812 * opt-functions.awk (switch_flags): Handle SeparateAlias.
5813 * opth-gen.awk: Generate enumeration names for options marked
5814 SeparateAlias, but not for those marked Ignore.
5815 * opts-common.c (generate_canonical_option): Don't output separate
5816 argument for options marked CL_SEPARATE_ALIAS.
5817 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
5818 * opts.h (CL_SEPARATE_ALIAS): New.
5819 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5820 CL_COMMON): Adjust definitions.
5821 * config/i386/darwin.opt, config/mips/sde.opt: New.
5822 * common.opt (fdump-final-insns): New.
5823 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5825 (mips*-sde-elf*): Add mips/sde.opt.
5826 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
5827 -mno-data-in-code and -mcode-xonly here.
5828 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
5829 * gcc.c (option_map): Add "j" to --dump entry.
5830 (translate_options): Don't translate -d to -foutput-class-dir= here.
5832 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
5834 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
5836 (compute_all_dependences): Same.
5837 (create_rdg_edge_for_ddr): Same.
5838 * tree-data-ref.h (DR_IS_WRITE): New.
5839 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
5840 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
5841 (write_memrefs_written_at_least_once): Same.
5842 * tree-predcom.c (suitable_component_p): Same.
5843 (determine_roots_comp): Same.
5844 (execute_load_motion): Same.
5845 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
5846 (vect_enhance_data_refs_alignment): Same.
5847 (vect_analyze_group_access): Same.
5849 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
5852 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
5853 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
5855 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
5857 * dwarf2out.c (file scope): Remove #if0'd code.
5858 (gen_subprogram_die): Same.
5860 2010-09-03 Jakub Jelinek <jakub@redhat.com>
5863 * dwarf2out.c (flush_queued_reg_saves): Rename to...
5864 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
5865 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
5866 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
5867 * config/i386/i386.c (output_set_got): Call it.
5869 2010-09-03 Michael Matz <matz@suse.de>
5872 * tree-sra.c (sra_modify_assign): If we modify the statement,
5875 * tree-ssa.c (verify_ssa): Check number of operands and links
5876 per statement to agree.
5878 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
5879 Iain Sandoe <iains@gcc.gnu.org>
5882 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
5883 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
5884 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
5886 2010-09-03 Richard Guenther <rguenther@suse.de>
5888 * lto-streamer-out.c (output_function): Output function
5890 * lto-streamer-in.c (input_function): Input function start
5893 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5895 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
5896 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
5897 * configure: Regenerate.
5898 * aclocal.m4: Regenerate.
5900 2010-09-03 Jan Hubicka <jh@suse.cz>
5903 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
5904 on functions/variables in other partition.
5906 2010-09-03 Jan Hubicka <jh@suse.cz>
5908 * cgraph.h (struct varpool_node): Add const_value_known.
5909 (varpool_decide_const_value_known): Declare.
5910 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
5911 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
5912 (input_varpool_node): Restore const_value_known.
5913 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
5914 initializer folding.
5915 * ipa.c (ipa_discover_readonly_nonaddressable_var,
5916 function_and_variable_visibility): Compute const_value_known.
5917 * gimple-fold.c (get_symbol_constant_value): Use varpool for
5918 initializer folding.
5919 * varpool.c (varpool_decide_const_value_known): New function.
5921 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
5923 * config/i386/i386.md: Remove empty preparation statements
5926 2010-09-03 Jan Hubicka <jh@suse.cz>
5928 * passes.c (rest_of_decl_compilation): Do not add local vars into
5930 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
5931 static or extern vars are in varpool.
5932 (varpool_finalize_decl): Sanity check that only static vars are
5935 2010-09-03 Jakub Jelinek <jakub@redhat.com>
5938 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
5939 not just generic vectors with BLKmode.
5941 2010-09-03 Richard Guenther <rguenther@suse.de>
5943 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
5944 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
5945 * tree.h (TMR_SYMBOL): Remove.
5946 (TMR_BASE, TMR_OFFSET): Adjust.
5948 * alias.c (ao_ref_from_mem): Use TMR_BASE.
5949 * builtins.c (get_object_alignment): Merge TMR_BASE and
5950 TMR_SYMBOL handling.
5951 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
5952 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
5953 handling. Also allow TARGET_MEM_REF as base address.
5954 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
5955 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
5956 base. Gimplify TMR_INDEX2.
5957 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
5958 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5959 (get_addr_base_and_unit_offset): Likewise.
5960 * tree-eh.c (tree_could_trap_p): Likewise.
5961 * tree-pretty-print.c (dump_generic_node): Likewise.
5962 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
5963 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
5965 (get_address_description): Reconstruct addres description
5966 from merged TMR_BASE and TMR_INDEX2.
5967 (maybe_fold_tmr): Fold propagated addresses.
5968 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
5969 MEM_REF and TARGET_MEM_REF paths.
5970 (indirect_refs_may_alias_p): Likewise.
5971 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
5972 instead of TMR_SYMBOL.
5973 * tree-ssa-operands.c (get_tmr_operands): Simplify.
5974 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
5975 according to changes ...
5976 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
5977 Split TARGET_MEM_REF into two fields plus the base.
5978 * tree.c (mem_ref_offset): Simplify.
5979 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
5980 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
5981 Strip NOPs when folding MEM_REF addresses.
5982 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
5983 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
5984 (fold_gimple_assign): ... not here.
5986 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
5988 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
5989 * config/mips/mips.c (mips_shift_truncation_mask): New function.
5990 (TARGET_SHIFT_TRUNCATION_MASK): Define.
5992 2010-09-02 Richard Henderson <rth@redhat.com>
5994 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
5995 instead of readelf in the test.
5996 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
5997 in the .debug_frame section for coff targets.
5998 * configure: Rebuild.
6000 2010-09-02 Anatoly Sokolov <aesok@post.ru>
6002 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
6003 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
6004 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6005 (m32c_class_likely_spilled_p): Make static. Change argument type to
6006 reg_class_t. Change result type to bool.
6008 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6010 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
6011 to convert (double)(long) into a single FRIZ instruction or not
6012 when -ffast-math is used.
6014 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
6015 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
6016 or FRIZ instruction if -ffast-math.
6017 * config/rs6000/rs6000.md (friz): Ditto.
6019 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
6021 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6023 * opth-gen.awk (quote, comma): Remove unused variables.
6025 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
6027 * arm.c (arm_override_options): Correct fall-back code to use
6028 SUBTARGET_CPU_DEFAULT.
6030 2010-09-02 Julian Brown <julian@codesourcery.com>
6032 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
6034 (vcond<mode>, vcondu<mode>): New expanders.
6035 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
6036 comparisons with zero.
6037 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
6038 * config/arm/constraints.md (Dz): New constraint.
6040 2010-09-02 Anatoly Sokolov <aesok@post.ru>
6042 * target.def (class_likely_spilled_p): New hook.
6043 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
6044 * doc/tm.texi: Regenerate.
6045 * targhooks.c (default_class_likely_spilled_p): New function.
6046 * targhooks.h (default_class_likely_spilled_p): Declare.
6047 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
6048 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
6049 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
6050 Use fixed_reg_set instead of fixed_regs.
6051 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
6052 * calls.c (avoid_likely_spilled_reg): Ditto.
6053 * ira-conflicts.c (ira_build_conflicts): Ditto.
6054 * ira.c (update_equiv_regs): Ditto.
6055 * mode-switching.c (create_pre_exit): Ditto.
6056 * regmove.c (find_matches): Ditto.
6057 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
6058 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
6059 (small_register_class_p): New inline function.
6060 (push_secondary_reload, find_reusable_reload, find_reloads): Use
6061 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
6063 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
6064 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
6065 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6067 2010-09-02 Richard Guenther <rguenther@suse.de>
6069 PR tree-optimization/44937
6070 PR tree-optimization/45412
6071 * ipa-split.c (split_function): Properly remove PHI nodes.
6073 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6075 * opts.h (struct cl_option): Add warn_message field.
6076 (struct cl_decoded_option): Add warn_message field.
6077 * doc/options.texi (Ignore, Warn): Document.
6078 * opt-functions.awk (needs_state_p): Don't consider aliases or
6079 ignored options to need state saved.
6080 * optc-gen.awk: Handle Warn and Ignore.
6081 * opth-gen.awk: Output OPT_SPECIAL_ignore.
6082 * opts-common.c (decode_cmdline_option): Set warn_message field.
6083 Handle ignored options.
6084 (decode_cmdline_options_to_array, generate_option,
6085 generate_option_input_file): Set warn_message field.
6086 (read_cmdline_option): Generate warnings from warn_message field.
6087 Handle ignored options.
6088 * common.opt (Wunreachable-code, fargument-alias,
6089 fargument-noalias, fargument-noalias-global,
6090 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
6091 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
6092 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
6093 ftree-salias): Mark Ignore.
6094 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
6095 -mintel-syntax and -mno-intel-syntax here.
6096 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
6098 * opts.c (common_handle_option): Don't handle options marked as
6100 (enable_warning_as_error): Handle ignored options.
6102 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6105 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
6106 alias_target fields.
6107 * opt-functions.awk (opt_sanitized_name): Don't handle
6108 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
6109 * optc-gen.awk: Generate alias fields.
6110 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
6111 Don't generate such constants for aliases.
6112 * opts-common.c (generate_canonical_option): New.
6113 (decode_cmdline_option): Handle aliases. Use
6114 generate_canonical_option for known options instead of copying the
6116 * doc/options.texi (Alias): Document.
6117 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
6118 fstack-check, specs): Mark as aliases.
6119 * gcc.c (driver_handle_option): Canonicalize -L options to joined
6121 (driver_handle_option): Don't handle OPT_specs.
6122 * opts.c (common_handle_option): Don't handle options marked as
6124 (enable_warning_as_error): Handle aliases.
6125 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
6126 OPT_Wlarger_than_eq.
6127 * tree-optimize.c (tree_rest_of_compilation): Use
6128 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
6130 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
6132 * config/i386/i386.md (nonmemory_operand): New mode attribute.
6133 (push memory peephole2): Macroize peepholes using SWI mode iterator.
6134 (move immediate to memory peephole2): Macroize peepholes using
6135 SWI124 mode iterator.
6136 (non-pairable NOT peephole2): Macroize peepholes using SWI124
6138 (simple lea add peephole2): Macroize peepholes using SWI48
6140 (simple lea mult peephole2): Ditto.
6141 (imul by 3,5,9 to lea peephole2): Ditto.
6142 (mov $-1, reg peephole2): Macroize peepholes using SWI248
6144 (imul $32bit_imm,mem,reg peephole2): Ditto.
6145 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
6147 2010-09-02 Ian Bolton <ian.bolton@arm.com>
6149 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
6151 2010-09-02 Olivier Hainque <hainque@adacore.com>
6154 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
6155 (allocno_priority_compare_func): Use it instead of a straight
6156 difference computation over priorities.
6158 2010-09-02 Andi Kleen <ak@linux.intel.com>
6160 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
6162 2010-09-02 Ira Rosen <irar@il.ibm.com>
6164 * tree-vectorizer.h (get_later_stmt): New function.
6165 (vect_analyze_data_ref_dependences): Add argument.
6166 * tree-vect-loop.c (vect_analyze_loop): Update call to
6167 vect_analyze_data_ref_dependences.
6168 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
6170 (vect_analyze_data_ref_dependence): Add argument for basic block
6171 dependencies. Check dependencies in basic block vectorization.
6172 (vect_analyze_data_ref_dependences): Add argument and update call to
6173 vect_analyze_data_ref_dependences.
6174 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
6175 (vect_bb_vectorizable_with_dependencies): New.
6176 (vect_slp_analyze_bb): Check dependencies in basic block.
6177 (vect_schedule_slp_instance): Insert stores before the last store in
6180 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
6183 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
6184 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
6186 2010-09-01 Jakub Jelinek <jakub@redhat.com>
6189 * bb-reorder.c (add_labels_and_missing_jumps): Treat
6190 bbs ending with throwing insns like blocks ending with a call.
6191 (fix_up_fall_thru_edges): Likewise.
6193 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
6195 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
6196 (m32c_function_arg_advance): Delete.
6197 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6198 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
6199 comments. Take a const_tree and a bool. Declare.
6200 (m32c_function_arg_advance): Likewise.
6201 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6203 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
6206 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
6207 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
6208 * config/i386/mingw32.h: ... here.
6210 2010-09-01 Andi Kleen <ak@linux.intel.com>
6213 * lto-streamer-in.c (lto_input_ts_target_option): Add.
6214 (lto_input_tree_pointers): Call lto_input_ts_target_option.
6215 * lto-streamer-out (lto_output_ts_target_option): Add.
6216 (lto_output_tree_pointers): Call lto_output_ts_target_option.
6218 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
6221 * config/i386/cygwin.h: Change order of specified import libraries.
6222 * config/i386/mingw32.h: Likewise.
6223 * config/i386/t-cygwin: Likewise.
6224 * config/i386/t-mingw32: Likewise.
6225 * config/i386/t-mingw-w32: Likewise.
6226 * config/i386/t-mingw-w64: Likewise.
6228 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6230 * config/arm/neon-schedgen.ml (core): New type.
6231 (allCores): List of supported cores.
6232 (availability_table): Add supported cores.
6233 (collate_bypasses): Accept core as a parameter.
6234 (worst_case_latencies_and_bypasses): Accept core as a parameter.
6235 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
6236 and coreStr to get tune attribute and prefix for functional units.
6237 (emit_bypasses): Accept core name and use it.
6238 (calculate_per_core_availability_table): New.
6240 (calculate_core_availability_table): New.
6241 (main): Use calculate_core_availablity_table.
6242 * config/arm/cortex-a8-neon.md: Update copyright year.
6243 Regenerated from ml file and merged in.
6244 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
6247 2010-09-01 Ian Bolton <ian.bolton@arm.com>
6249 * Makefile.in (tree-switch-conversion.o): Update dependencies.
6251 2010-09-01 Richard Guenther <rguenther@suse.de>
6253 * alias.c (ao_ref_from_mem): Adjust.
6254 * builtins.c (get_object_alignment): Likewise.
6255 * cfgexpand.c (expand_debug_expr): Likewise.
6256 * gimple.c (get_base_address): Likewise.
6257 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6258 (get_addr_base_and_unit_offset): Likewise. Fix for
6259 both TMR_SYMBOL and TMR_BASE being set.
6260 * tree-eh.c (tree_could_trap_p): Likewise.
6261 * gimplify.c (gimplify_expr): Do not attempt to gimplify
6262 TMR_SYMBOL. Always gimplify TMR_BASE.
6263 * tree-cfg.c (verify_types_in_gimple_reference): Verify
6264 TMR_BASE if there is a TMR_SYMBOL.
6265 * tree-pretty-print.c (dump_generic_node): Adjust.
6266 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
6267 (tree_mem_ref_addr): Likewise.
6268 (create_mem_ref_raw): Likewise.
6269 (move_fixed_address_to_symbol): Likewise.
6270 (create_mem_ref): Likewise.
6271 (dump_mem_address): Likewise.
6272 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
6273 Fix for both TMR_SYMBOL and TMR_BASE being set.
6274 (indirect_refs_may_alias_p): Likewise.
6275 * tree-ssa-operands.c (get_tmr_operands): Adjust.
6276 * tree.def (TARGET_MEM_REF): Adjust documentation.
6278 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
6280 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
6281 Rename from X86_TUNE_ADD_ESP_4.
6282 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
6283 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
6284 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
6285 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
6286 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
6287 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
6288 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
6289 * config/i386/i386.c (initial_ix86_tune_features)
6290 <X86_TUNE_SINGLE_POP>: Invert members.
6291 <X86_TUNE_DOUBLE_POP>: Ditto.
6292 <X86_TUNE_SINGLE_PUSH>: Ditto.
6293 <X86_TUNE_DOUBLE_PUSH>: Ditto.
6294 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
6296 (push peephole2 patterns): Macroize peepholes using P mode iterator.
6297 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
6298 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
6299 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
6301 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
6303 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
6304 a volatile LHS if the constructor has only one element.
6306 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
6309 * tree.c (stdarg_p): Make fntype parameter const.
6310 * tree.h (stdarg_p): Likewise.
6311 (function_args_iterator): Remove unused fntype field.
6312 (function_args_iter_init): Do not initialize fntype
6313 field. Make fntype parameter const.
6315 2010-09-01 Richard Guenther <rguenther@suse.de>
6317 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
6319 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
6320 (execute_vrp): Compute number of iteration estimates.
6321 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
6322 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
6323 * tree-data-ref.c (estimated_loop_iterations): Adjust.
6324 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
6325 Infer loop bounds from undefined behavior based on a new parameter.
6326 (estimate_numbers_of_iterations): Likewise.
6327 (scev_probably_wraps_p): Adjust.
6328 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
6330 2010-09-01 Nick Clifton <nickc@redhat.com>
6332 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
6334 (xstormy16_legitimate_address_p): Use true and false instead of 1
6336 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
6337 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
6339 (xstormy16_expand_call): Fix comment at start of function.
6341 2010-09-01 Nick Clifton <nickc@redhat.com>
6343 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
6344 when pushing accumulator register.
6345 (rx_get_stack_layout): Always save call clobbered registers inside
6347 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
6349 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
6351 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
6352 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
6354 * libgcc-std.ver (GCC_4.6.0): Define version.
6356 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
6358 * tree-nested.c (convert_all_function_calls): Iterate until after the
6359 sum of static chains in the nest doesn't change.
6361 2010-08-31 Anatoly Sokolov <aesok@post.ru>
6363 * config/m32c/m32c.c (classes_intersect): Remove.
6364 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
6365 reg_classes_intersect_p instead of classes_intersect.
6366 (class_can_hold_mode): Change arguments type from enum reg_class to
6367 reg_class_t. Use reg_class_contents instead of class_contents.
6368 (m32c_register_move_cost): Make static. Change arguments type from
6369 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
6370 classes_intersect. Use reg_class_contents instead of class_contents.
6371 (m32c_memory_move_cost): Make static. Change arguments type from
6372 enum reg_class to reg_class_t.
6373 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6374 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6375 * config/m32c/m32c-protos.h (m32c_register_move_cost,
6376 m32c_memory_move_cost): Remove.
6378 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6380 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
6381 (arm_function_arg): Delete.
6382 (arm_needs_doubleword_align): Take a const_tree.
6383 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6384 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
6385 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
6386 (arm_function_arg): Make static. Take a const_tree and a bool.
6387 (arm_function_arg_advance): Likewise.
6388 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6390 2010-08-31 Andi Kleen <ak@linux.intel.com>
6392 * common.opt (fwhopr=): Update for -fwhopr=jobserver
6393 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
6394 * lto-wrapper.c (run_gcc): Add jobserver mode.
6395 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
6398 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
6400 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
6402 (*popdi1_epilogue): Ditto.
6403 (*popsi1_epilogue): Ditto.
6404 (popsi, popdi peephole2 patterns): Update peepholes for changed
6405 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
6407 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
6408 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
6410 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
6411 (override_options): Do not initialize removed ix86_gen_pop1.
6412 (gen_pop): New static function.
6413 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
6414 (release_scratch_register_on_entry): Ditto.
6415 (ix86_restore_reg_using_pop): Ditto.
6416 (ix86_expand_epilogue): Ditto.
6418 2010-08-31 Jakub Jelinek <jakub@redhat.com>
6421 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
6423 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6425 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
6428 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6430 * doc/extend.texi: Fix documentation of the return value of
6431 __builtin_choose_expr.
6433 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6435 * config/v850/v850-protos.h (function_arg): Delete.
6436 * config/v850/v850.h (FUNCTION_ARG): Delete.
6437 (FUNCTION_ARG_ADVANCE): Move code to...
6438 * config/v850/v850.c (v850_function_arg_advance): ...here.
6439 (v850_function_arg): Make static. Take a const_tree and a bool.
6440 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6442 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6444 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
6446 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
6448 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
6450 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
6452 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6454 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6456 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
6458 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6459 * config/rx/rx.c (rx_function_arg_size): Make static.
6460 (rx_function_arg): Likewise.
6461 (rx_function_arg_advance): New function.
6462 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6464 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
6466 * config/arm/arm.c (arm_override_options): Remove superfluous test.
6469 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
6471 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
6472 (dwarf2out_decl) <CONST_DECL>: Likewise.
6474 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
6477 * common.opt (-fstack-usage): New option.
6478 * doc/invoke.texi (Debugging options): Document it.
6479 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
6480 allocate_dynamic_stack_space.
6481 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
6482 and propagate it to allocate_dynamic_stack_space.
6483 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
6484 * calls.c (initialize_argument_information): Pass TRUE as 4th
6485 argument to allocate_dynamic_stack_space.
6486 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
6487 to 1 when pushing a variable-sized argument onto the stack. Pass
6488 TRUE as 4th argument to allocate_dynamic_stack_space.
6489 Update current_function_pushed_stack_size.
6490 (emit_library_call_value_1): Likewise.
6491 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
6492 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
6493 attempt to find an upper bound. Remove redundant code for the
6494 SETJMP_VIA_SAVE_AREA case.
6495 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
6496 * function.h (struct stack_usage): New structure.
6497 (current_function_static_stack_size): New macro.
6498 (current_function_dynamic_stack_size): Likewise.
6499 (current_function_pushed_stack_size): Likewise.
6500 (current_function_dynamic_alloc_count): Likewise.
6501 (current_function_has_unbounded_dynamic_stack_size): Likewise.
6502 (current_function_allocates_dynamic_stack_space): Likewise.
6503 (struct function): Add new field 'su'.
6504 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
6505 add the value of the dynamic offset to the dynamic stack usage.
6506 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
6507 for variable-sized objects.
6508 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
6509 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
6510 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
6511 BUILT_IN_ALLOCA for variable-sized objects.
6512 * output.h (output_stack_usage): Declare.
6513 * toplev.c (stack_usage_file): New file pointer.
6514 (output_stack_usage): New function.
6515 (open_auxiliary_file): Likewise.
6516 (lang_dependent_init): Open file if flag_stack_usage is set.
6517 (finalize): Close file if stack_usage_file is not null.
6518 * tree.h (ALLOCA_FOR_VAR_P): New macro.
6519 * config/alpha/alpha.c (compute_frame_size): New function.
6520 (alpha_expand_prologue): Use it.
6521 (alpha_start_function): Likewise.
6522 (alpha_expand_epilogue): Likewise. Set stack usage info.
6523 * config/i386/i386.c (ix86_expand_prologue): Likewise.
6524 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6525 * config/mips/mips.c (mips_expand_prologue): Likewise.
6526 * config/pa/pa.c (hppa_expand_prologue): Likewise.
6527 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6528 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6530 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
6532 PR tree-optimization/45427
6533 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
6534 Handle the case that the exit is never taken correctly.
6535 (number_of_iterations_ne): Pass exit_must_be_taken to
6536 number_of_iterations_ne_max.
6538 2010-08-30 Catherine Moore <clm@codesourcery.com>
6540 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
6541 Infer -mdspr2 for the the 74K.
6543 2010-08-30 Jakub Jelinek <jakub@redhat.com>
6546 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
6549 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
6550 and TRUTH_{AND,OR,XOR}_EXPR.
6551 * c-parser.c (c_parser_omp_atomic): Handle boolean
6552 {PRE,POST}_{INC,DEC}REMENT.
6554 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
6556 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
6557 (function_arg): Delete.
6558 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6559 (FUNCTION_INCOMING_ARG): Delete.
6560 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
6561 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
6563 (function_arg): Rename to...
6564 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
6566 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
6567 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6568 (TARGET_FUNCTION_INCOMING_ARG): Define.
6570 2010-08-30 Richard Guenther <rguenther@suse.de>
6572 PR tree-optimization/21602
6573 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
6574 using points-to information.
6576 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
6578 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
6580 2010-08-30 Richard Guenther <rguenther@suse.de>
6582 PR tree-optimization/45449
6583 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
6586 2010-08-30 Joseph Myers <joseph@codesourcery.com>
6588 * opts.h (CL_ERR_NEGATIVE): Define.
6589 * opts.c (unknown_option_callback): Don't postpone warnings for
6590 options marked with CL_ERR_NEGATIVE.
6591 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
6592 for negative versions of CL_REJECT_NEGATIVE options.
6594 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
6596 * config/i386/i386.md (zero_extendsidi2_1): Rename from
6597 zero_extendsidi2_32.
6598 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
6599 using SWI12 mode iterator.
6600 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
6601 to define_insn_and_split pattern.
6602 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
6603 using SWI24 mode iterator.
6604 (*zero_extendqi<mode>2_and): Macroize insn from
6605 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
6606 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
6607 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
6608 SWI24 mode iterator.
6609 (*zero_extendqi<mode>2_movzbl): Ditto from
6610 *zero_extendqi{hi,si}2_movzbl.
6611 (extendsidi2_1): Rename from extendsidi2_32.
6612 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
6613 SWI12 mode iterator.
6615 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
6617 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
6618 general purpose registers.
6619 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
6620 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
6621 with general purpose registers and memory operands. Add associated
6622 CCImode post-reload splitter.
6623 * config/ia64/div.md: Change BImode to CCImode throughout.
6625 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
6627 * config/ia64/ia64.md (cstorebi4): Fix thinko.
6629 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
6631 * config/picochip/picochip.c (reorder_var_tracking_notes): This
6632 function was dropping debug insns which caused PR45299.
6634 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
6636 * config/i386/sse.md (extsuffix): New code attribute.
6637 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
6638 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
6639 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
6640 and sse4_1_zero_extendv4qiv4si2.
6641 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
6642 and sse4_1_zero_extendv2qiv2di2.
6643 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
6644 and sse4_1_zero_extendv4hiv4si2.
6645 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
6646 and sse4_1_zero_extendv2hiv2di2.
6647 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
6648 and sse4_1_zero_extendv2siv2di2
6650 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
6651 using any_extend code iterator.
6652 (*avx_<s>mulv8hi3_highpart): Macroize insn from
6653 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
6654 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
6656 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
6657 gen_sse4_1_sign_extend* functions.
6658 (struct builtin_description bdesc_args): Ditto.
6660 2010-08-27 Xinliang David Li <davidxl@google.com>
6663 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
6664 (iv_ca_set_no_cp): Update used inv expr count.
6665 (iv_ca_set_cp): Ditto.
6666 (iv_ca_new): Initialize new member.
6667 (iv_ca_free): Free memory.
6669 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
6671 * config/sh/sh-protos.h (sh_function_arg): Delete.
6672 (sh_function_arg_advance): Delete.
6673 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6674 (PASS_IN_REG_P): Eliminate cast.
6675 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
6676 const_tree and a bool.
6677 (sh_function_arg): Likewise.
6678 (sh_output_mi_thunk): Call sh_function_arg_advance) and
6680 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6682 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
6683 Kaz Kojima <kkojima@gcc.gnu.org>
6685 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
6687 (sh_expand_epilogue): Likewise.
6688 * config/sh/sh.md (movml_push_banked): New insn.
6689 (movml_pop_banked): Likewise.
6691 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
6693 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
6694 gen_regexp_oneof, gen_regexp_sequence): Use the string found
6695 in vector element 0 rather than the original string when there's
6697 (gen_regexp): Remove extra semicolon.
6699 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
6700 thumb2_movsf_vfp): Set attribute "insn".
6701 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
6702 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
6703 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
6704 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
6705 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
6706 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
6707 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
6708 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
6709 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
6710 if_not_arith, if_arith_not, cond_move_not): Likewise.
6712 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6714 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
6716 (rs6000_allocate_stack_temp): Ditto.
6717 (rs6000_expand_convert_si_to_sfdf): Ditto.
6719 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
6720 line. Update the options set if power6 or power7 server/embedded
6721 type options are used. If we give a warning for no vsx under
6722 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
6723 (rs6000_allocate_stack_temp): New function to allocate a stack
6724 tempoary and adjust the address so it meets either REG+OFFSET or
6725 REG+REG addressing requirements.
6726 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
6727 that they can be used with the LFIWAX/LFIWZX instrucitons.
6728 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
6729 converting signed/unsigned SImode to either SFmode/DFmode.
6731 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
6732 whether certain instructions can be generated.
6733 (TARGET_FCTIDZ): Ditto.
6734 (TARGET_STFIWX): Ditto.
6735 (TARGET_LFIWAX): Ditto.
6736 (TARGET_LFIWZX): Ditto.
6737 (TARGET_FCFIDS): Ditto.
6738 (TARGET_FCFIDU): Ditto.
6739 (TARGET_FCFIDUS): Ditto.
6740 (TARGET_FCTIDUZ): Ditto.
6741 (TARGET_FCTIWUZ): Ditto.
6743 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
6744 (UNSPEC_FCTID): Ditto.
6745 (UNSPEC_LFIWAX): Ditto.
6746 (UNSPEC_LFIWZX): Ditto.
6747 (UNSPEC_FCTIWUZ): Ditto.
6748 (rreg): Use correct constraints.
6749 (SI_CONVERT_FP): New mode attribute for floating point conversion
6751 (E500_CONVERT): Ditto.
6752 (lfiwax): New insns for converting from integer to floating point
6753 utilizing newer instructions. Attempt to optimize conversions
6754 that come from memory so that we don't load the value into a GPR,
6755 spill it to the stack and reload it into a FPR.
6756 (floatsi<mode>2_lfiwax): Ditto.
6757 (floatsi<mode>2_lfiwax_mem): Ditto.
6758 (floatsi<mode>2_lfiwax_mem2): Ditto.
6760 (floatunssi<mode>2_lfiwzx): Ditto.
6761 (floatunssi<mode>2_lfiwzx_mem): Ditto.
6762 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
6763 (floatdidf2_mem): Ditto.
6764 (floatunsdidf2_fcfidu): Ditto.
6765 (floatunsdidf2_mem): Ditto.
6766 (floatunsdisf2): Ditto.
6767 (floatunsdisf2_fcfidus): Ditto.
6768 (floatunsdisf2_mem): Ditto.
6769 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
6770 Use FCFID on 32-bit hosts that support it.
6771 (floatsidf2_internal): Ditto.
6772 (floatunssisf2): Ditto.
6773 (floatunssidf2): Ditto.
6774 (floatunssidf2_internal): Ditto.
6775 (floatsisf2): Ditto.
6776 (floatdidf2): Ditto.
6777 (floatdidf2_fpr): Ditto.
6778 (floatunsdidf2): Ditto.
6779 (floatdisf2): Ditto.
6780 (floatdisf2_fcfids): Ditto.
6781 (floatdisf2_internal1): Ditto.
6782 (fixuns_truncsfsi2): Delete, merge into common pattern for both
6783 SF/DF. Add power7 support.
6784 (fix_truncsfsi2): Ditto.
6785 (fixuns_truncdfsi2): Ditto.
6786 (fixuns_truncdfdi2): Ditto.
6787 (fix_truncdfsi2): Ditto.
6788 (fix_truncdfsi2_internal): Ditto.
6789 (fix_truncdfsi2_internal_gfxopt): Ditto.
6790 (fix_truncdfsi2_mfpgpr): Ditto.
6793 (btruncdf2_fpr): Ditto.
6796 (ceildf2_fpr): Ditto.
6799 (floordf2_fpr): Ditto.
6802 (rounddf2_fpr): Ditto.
6804 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
6805 (fix_trunc<mode>di2): Ditto.
6806 (fixuns_trunc<mode>si2): Ditto.
6807 (fixuns_trunc<mode>di2): Ditto.
6808 (fctiwz_<mode>): Ditto.
6809 (btrunc<mode>2): Ditto.
6810 (btrunc<mode>2_fpr): Ditto.
6811 (ceil<mode>2): Ditto.
6812 (ceil<mode>2_fpr): Ditto.
6813 (floor<mode>2): Ditto.
6814 (float<mode>2_fpr): Ditto.
6815 (round<mode>2): Ditto.
6816 (round<mode>2_fpr): Ditto.
6817 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
6818 (fixuns_trunc<mode>si2_stfiwx): Ditto.
6819 (fix_truncdfsi2_internal): Ditto.
6820 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
6821 converted value on stack, loaded into GPR, and then stored into
6822 the final destination.
6823 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
6825 (lrint<mode>di2): New insn, provide the lrint builtin functions.
6826 (ftruncdf2): Delete, unused.
6827 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
6829 * config/rs6000/vsx.md (toplevel): Update copyright year.
6830 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
6833 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
6834 Jeremie Salvucci <jeremie.salvucci@free.fr>
6836 * gengtype.c (output_type_enum): Test the right union member.
6838 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
6841 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
6842 operands for operand 1.
6843 (sse4_1_extendv4qiv4si2): Ditto.
6844 (sse4_1_extendv2qiv2di2): Ditto.
6845 (sse4_1_extendv4hiv4si2): Ditto.
6846 (sse4_1_extendv2hiv2di2): Ditto.
6847 (sse4_1_extendv2siv2di2): Ditto.
6848 (sse4_1_zero_extendv8qiv8hi2): Ditto.
6849 (sse4_1_zero_extendv4qiv4si2): Ditto.
6850 (sse4_1_zero_extendv2qiv2di2): Ditto.
6851 (sse4_1_zero_extendv4hiv4si2): Ditto.
6852 (sse4_1_zero_extendv2hiv2di2): Ditto.
6853 (sse4_1_zero_extendv2siv2di2): Ditto.
6854 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
6855 (*sse4_1_extendv4qiv4si2): Ditto.
6856 (*sse4_1_extendv2qiv2di2): Ditto.
6857 (*sse4_1_extendv4hiv4si2): Ditto.
6858 (*sse4_1_extendv2hiv2di2): Ditto.
6859 (*sse4_1_extendv2siv2di2): Ditto.
6860 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
6861 (*sse4_1_zero_extendv4qiv4si2): Ditto.
6862 (*sse4_1_zero_extendv2qiv2di2): Ditto.
6863 (*sse4_1_zero_extendv4hiv4si2): Ditto.
6864 (*sse4_1_zero_extendv2hiv2di2): Ditto.
6865 (*sse4_1_zero_extendv2siv2di2): Ditto.
6867 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
6869 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
6870 (mips_function_arg): Delete.
6871 (mips_function_arg_boundary): Take a const_tree.
6872 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
6873 (mips_arg_info): Likewise.
6874 (mips_setup_incoming_varargs): Call mips_function_arg_advance
6875 instead of FUNCTION_ARG_ADVANCE.
6876 (mips_function_arg_advance): Adjust prototype. Make static.
6877 (mips_function_arg): Likewise.
6878 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6879 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
6881 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
6883 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6884 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
6885 (function_arg): Delete.
6886 (function_arg_boundary): Take a const_tree.
6887 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
6888 (rs6000_spe_function_arg): Likewise.
6889 (rs6000_parm_start): Likewise.
6890 (rs6000_arg_size): Likewise.
6891 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
6892 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
6893 (rs6000_mixed_function_arg): Likewise.
6894 (function_arg): Rename to...
6895 (rs6000_function_arg): ...this.
6896 (function_arg_advance): Rename to...
6897 (rs6000_function_arg_advance_1): ...this
6898 (rs6000_function_arg_advance): New function. Call it.
6899 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
6900 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
6901 (rs6000_function_value): Likewise.
6902 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6904 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6906 * config/arm/arm.md (enabled): Test the value of arch_enabled
6907 rather than just using it.
6909 2010-08-27 Olivier Hainque <hainque@adacore.com>
6910 Eric Botcazou <ebotcazou@adacore.com>
6912 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
6913 cover all the possible offsets from this base.
6914 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
6916 2010-08-26 Jakub Jelinek <jakub@redhat.com>
6918 PR tree-optimization/44485
6919 * calls.c (flags_from_decl_or_type): For const or pure
6920 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
6921 together with ECF_CONST resp. ECF_PURE.
6922 * builtins.c (expand_builtin): Use flags_from_decl_or_type
6923 instead of querying flags directly.
6924 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
6925 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
6927 2010-08-26 Richard Guenther <rguenther@suse.de>
6929 PR tree-optimization/45255
6930 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
6931 and externals are also invariant.
6933 2010-08-25 Jakub Jelinek <jakub@redhat.com>
6935 PR rtl-optimization/44858
6936 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
6937 newi2pat, make sure they don't affect newpat.
6939 PR rtl-optimization/45400
6940 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
6941 SUBREG_REG if both modes are of MODE_INT class.
6943 2010-08-25 Julian Brown <julian@codesourcery.com>
6945 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
6946 * config/arm/arm.md (generic_sched): No for Cortex-A5.
6947 (generic_vfp): Likewise.
6948 (cortex-a5.md): Include.
6949 * config/arm/cortex-a5.md: New.
6951 2010-08-25 Richard Guenther <rguenther@suse.de>
6953 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
6954 * gimple.c (gimple_get_alias_set): Remove special handling
6957 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
6960 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
6961 dead_or_set_p when computing i0_feeds_i2_n.
6963 * combine.c (find_split_point): Undo canonicalization of multiply-add
6964 to (minus x (mult)) when it seems likely that this will increase the
6967 2010-08-25 Richard Guenther <rguenther@suse.de>
6970 * lto-streamer.c (lto_record_common_node): Do not mess with
6971 TYPE_CANONICAL when not in lto.
6972 * gimple.c (gimple_register_type): Likewise.
6974 2010-08-25 Richard Guenther <rguenther@suse.de>
6976 PR tree-optimization/45316
6977 * tree-ssa-pre.c (eliminate): Properly clean EH info.
6979 2010-08-25 Richard Guenther <rguenther@suse.de>
6981 PR tree-optimization/45393
6982 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
6983 and clean EH info. Avoid SSA update.
6984 (execute_cse_sincos): Cleanup the CFG if it has changed.
6986 2010-08-25 Richard Guenther <rguenther@suse.de>
6989 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
6990 TARGET_MEM_REF in alignment computation.
6992 2010-08-25 Jakub Jelinek <jakub@redhat.com>
6994 PR tree-optimization/45059
6995 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
6996 type conversions from newop{1,2}. Assert t is a comparison and
6997 newop{1,2} after the stripping are gimple vals.
6999 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
7001 * config/arm/iterators.md (VU, SE, V_widen_l): New.
7002 (V_unpack, US): New.
7003 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
7004 (vec_unpack<US>_lo_<mode>): Likewise.
7005 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
7006 (neon_vec_unpack<US>_lo_<mode>): Likewise.
7007 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
7008 (vec_widen_<US>mult_hi_<mode>): Likewise.
7009 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
7010 (neon_vec_<US>mult_hi_<mode>"): Likewise.
7011 (neon_unpack<US>_<mode>): Widening move intermediate step for
7012 vectorizing without -mvectorize-with-neon-quad.
7013 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
7014 for vectorizing without -mvectorize-with-neon-quad.
7015 * config/arm/predicates.md (vect_par_constant_high): Check for
7016 high-half lanes of a vector.
7017 (vect_par_constant_low): Check for low-half lanes of a vector.
7019 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
7021 * tree-if-conv.c (struct ifc_dr): New.
7023 (DR_WRITTEN_AT_LEAST_ONCE): New.
7024 (DR_RW_UNCONDITIONALLY): New.
7025 (memref_read_or_written_unconditionally): Use the cached values
7027 (write_memref_written_at_least_once): Same.
7028 (if_convertible_loop_p): Initialize and free DR->aux fields.
7030 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
7032 * gimple.c (gimple_could_trap_p_1): Not static anymore.
7033 Pass an extra bool parameter include_mem.
7034 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
7035 (gimple_assign_rhs_could_trap_p): Same.
7036 * gimple.h (gimple_could_trap_p_1): Declared.
7037 * tree-data-ref.h (same_data_refs_base_objects): New.
7038 (same_data_refs): New.
7039 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
7040 (write_memrefs_written_at_least_once): New.
7041 (ifcvt_memrefs_wont_trap): New.
7042 (operations_could_trap): New.
7043 (ifcvt_could_trap_p): New.
7044 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
7045 Gets a vector of data refs.
7046 (if_convertible_stmt_p): Same.
7047 (if_convertible_loop_p_1): New.
7048 (if_convertible_loop_p): Call if_convertible_loop_p_1.
7050 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
7052 * common.opt (ftree-loop-if-convert-stores): New flag.
7053 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
7054 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
7055 the created statement before GSI.
7056 (if_convertible_phi_p): Allow virtual phi nodes when
7057 flag_loop_if_convert_stores is set.
7058 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
7059 Do not handle types that do not match is_gimple_reg_type.
7060 Remove loop and bb parameters. Call gimple_could_trap_p instead of
7061 when flag_loop_if_convert_stores is set, as LHS can contain
7063 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
7064 to if_convertible_gimple_assign_stmt_p.
7065 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
7066 (replace_phi_with_cond_gimple_assign_stmt): Renamed
7067 predicate_scalar_phi. Do not handle virtual phi nodes.
7068 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
7069 Call predicate_scalar_phi.
7070 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
7071 just after the labels for flag_loop_if_convert_stores, otherwise
7072 insert the predicate in the end of the BB.
7073 (predicate_mem_writes): New.
7074 (combine_blocks): Call predicate_all_scalar_phis. When
7075 flag_loop_if_convert_stores is set, call predicate_mem_writes.
7076 (tree_if_conversion): Call mark_sym_for_renaming when
7077 flag_loop_if_convert_stores is set.
7078 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
7079 flag_loop_if_convert_stores is set.
7081 2010-08-24 Anatoly Sokolov <aesok@post.ru>
7083 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
7084 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
7085 (pa_function_value): Make static.
7086 (override_options): Rename to...
7087 (pa_option_override): ...this. Make static.
7088 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
7089 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
7090 TARGET_OPTION_OVERRIDE): Define.
7091 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
7092 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
7094 * config/pa/pa-protos.h (override_options): Remove.
7096 2010-08-24 Richard Guenther <rguenther@suse.de>
7099 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
7100 if addr->index is NULL or zero.
7101 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
7102 TARGET_MEM_REF more properly.
7103 (indirect_ref_may_alias_decl_p): Likewise.
7104 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
7105 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
7107 2010-08-23 Anatoly Sokolov <aesok@post.ru>
7109 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
7110 (m32c_override_options): Rename to...
7111 (m32c_option_override): ...this. Make static.
7112 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
7113 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
7115 * config/m32c/m32c-protos.h (m32c_override_options,
7116 m32c_function_value_regno_p): Remove.
7118 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
7120 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
7121 Fix a typo in a previous commit.
7123 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
7125 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
7126 Pre-initialize innerloop_iters to one.
7128 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
7130 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
7131 existing static function global.
7133 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
7134 is changed to global.
7136 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
7137 may_be_nonaddressable_p on base, and don't collect this reference
7138 if the address of the base could not be taken.
7140 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7142 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
7143 enable the compiler to autovectorize mathmetical functions for
7144 power7 using the Mathematical Acceleration Subsystem library.
7146 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
7147 handle which vector math library we have.
7148 (rs6000_override_options): Add -mveclibabi=mass support.
7149 (rs6000_builtin_vectorized_libmass): New function to handle auto
7150 vectorizing math functions that are in the MASS library.
7151 (rs6000_builtin_vectorized_function): Call it.
7153 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7156 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7159 * gthr-posix.h (__gthread_active_init): Delete.
7160 (__gthread_active_p): Do activity check here.
7161 Don't include errno.h on hppa-hpux. Update comment.
7162 * gthr-posix95.h (__gthread_active_init): Delete.
7163 (__gthread_active_p): Do activity check here.
7164 Don't include errno.h on hppa-hpux. Update comment.
7165 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
7166 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
7167 add -lpthread when -mt or -pthread is specified.
7168 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
7169 (LINK_GCC_C_SEQUENCE_SPEC): Define.
7170 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
7171 (stublib.c, pthread_default_stacksize_np-stub.o,
7172 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
7173 $(T)libgcc_stub.a): Add methods.
7174 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
7175 (stublib.c, pthread_default_stacksize_np-stub.o,
7176 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
7177 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7178 pthread_mutex_unlock): New stubs.
7180 2010-08-22 Joseph Myers <joseph@codesourcery.com>
7182 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
7183 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
7185 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
7186 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
7187 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
7188 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
7189 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
7191 * cppspec.c: Include opts.h.
7192 (lang_specific_driver): Use cl_decoded_option structures.
7193 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
7194 * doc/tm.texi: Regenerate.
7195 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
7196 (driver_handle_option): Allow driver options needing no special
7198 (process_command): Decode options before call to
7199 lang_specific_driver. Pass decoded options to
7200 lang_specific_driver.
7201 * gcc.h (lang_specific_driver): Update prototype.
7202 * gccspec.c: Include opts.h.
7203 (lang_specific_driver): Use cl_decoded_option structures.
7204 * opts-common.c (option_ok_for_language, generate_option,
7205 generate_option_input_file): New.
7206 (decode_cmdline_option): Use option_ok_for_language.
7207 (decode_cmdline_options_to_array): Use generate_option_input_file.
7208 (handle_generated_option): Use generate_option.
7209 * opts.h (generate_option, generate_option_input_file): Declare.
7211 2010-08-22 Anatoly Sokolov <aesok@post.ru>
7213 * config/mips/mips.c (mips_override_options): Rename to...
7214 (mips_option_override): ...this. Make static.
7215 (TARGET_OPTION_OVERRIDE): Define.
7216 (mips_in_small_data_p): Update comment.
7217 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
7218 (FIXED_REGISTERS): Update comment.
7219 * config/mips/mips-protos.h (mips_override_options): Remove.
7221 2010-08-21 Olivier Hainque <hainque@adacore.com>
7223 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
7225 2010-08-21 Olivier Hainque <hainque@adacore.com>
7227 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
7228 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
7230 2010-08-20 Jan Hubicka <jh@suse.cz>
7232 * tree-pass.h (pass_ipa_cdtor_merge): New function.
7233 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
7235 (record_cdtor_fn): Move to ipa.c; do not test for
7237 (build_cdtor): Move to ipa.c; add code avoiding construction
7238 when target have ctors/dtors and there is only one ctor/dtor at given
7240 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
7241 sort; reverse order of constructors.
7242 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
7243 (cgraph_finalize_function): Do not call record_cdtor_fn.
7244 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
7245 (cgraph_build_static_cdtor): Move to ipa.c.
7246 * ipa.c: Include target.h and tree-iterator.h.
7247 (cgraph_build_static_cdtor, static_ctors, static_dtors,
7248 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
7249 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
7250 pass_ipa_cdtor_merge): New.
7251 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
7252 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
7255 2010-08-20 Jan Hubicka <jh@suse.cz>
7259 * cgraph.h (cgraph_only_called_directly_p,
7260 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
7262 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
7264 (cgraph_finalize_function): Static cdtors are reachable.
7265 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
7267 2010-08-20 Jan Hubicka <jh@suse.cz>
7269 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
7271 * lto-streamer-out.c (lto_output): Likewise.
7272 * passes.c (ipa_write_optimization_summaries): Initialize statement
7275 2010-08-20 Olivier Hainque <hainque@adacore.com>
7277 * tree.h (alias_diag_flags): New enum.
7278 (alias_pair): Add an 'emitted_diags' field.
7279 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
7280 (assemble_alias): Initialize emitted_diags of new pairs.
7282 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
7284 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7285 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7286 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7287 (STACK_CHECK_PROTECT): Define.
7288 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
7289 (output_probe_stack_range): Likewise.
7290 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
7291 builtin stack checking is enabled.
7292 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
7293 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7294 (probe_stack_range): New insn.
7296 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
7299 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
7302 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
7305 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7308 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
7309 to cover zero extension into 64-bit register.
7310 (*sse2_pextrw): Likewise.
7311 (*sse4_1_pextrd_zext): New insn.
7313 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
7315 revert r163410, partially revert r163267.
7316 * config/rs6000/darwin.h (LIB_SPEC): Remove.
7317 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
7320 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7323 * builtins.c (expand_builtin): Don't optimize away
7324 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
7326 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
7328 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
7329 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
7330 alternative 1 of operand 2.
7332 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7333 Paolo Bonzini <bonzini@gnu.org>
7335 * simplify-rtx.c (simplify_unary_operation_1): Optimize
7336 (sign_extend (zero_extend (...)) and
7337 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
7339 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7341 PR rtl-optimization/45353
7342 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
7343 after bb_note is a BARRIER.
7345 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
7347 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
7350 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7351 Michael Matz <matz@suse.de>
7353 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
7355 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7357 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
7358 (ggc_mark_roots): ...here.
7360 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7362 * vec.h (FOR_EACH_VEC_ELT): Define.
7364 * cfgloop.c: Likewise.
7365 * cfgloopmanip.c: Likewise.
7366 * cgraph.c: Likewise.
7367 * cgraphunit.c: Likewise.
7368 * combine.c: Likewise.
7369 * config/bfin/bfin.c: Likewise.
7370 * config/mips/mips.c: Likewise.
7371 * config/rs6000/rs6000.c: Likewise.
7372 * dbxout.c: Likewise.
7373 * df-scan.c: Likewise.
7374 * dominance.c: Likewise.
7376 * dwarf2out.c: Likewise.
7377 * except.c: Likewise.
7379 * function.c: Likewise.
7381 * genattr.c: Likewise.
7382 * ggc-common.c: Likewise.
7383 * gimplify.c: Likewise.
7384 * graphite-blocking.c: Likewise.
7385 * graphite-clast-to-gimple.c: Likewise.
7386 * graphite-dependences.c: Likewise.
7387 * graphite-interchange.c: Likewise.
7388 * graphite-poly.c: Likewise.
7389 * graphite-scop-detection.c: Likewise.
7390 * graphite-sese-to-poly.c: Likewise.
7391 * graphite.c: Likewise.
7392 * haifa-sched.c: Likewise.
7393 * ifcvt.c: Likewise.
7394 * implicit-zee.c: Likewise.
7395 * ipa-prop.c: Likewise.
7396 * ipa-struct-reorg.c: Likewise.
7398 * ira-build.c: Likewise.
7399 * ira-color.c: Likewise.
7400 * ira-emit.c: Likewise.
7401 * lambda-code.c: Likewise.
7402 * loop-invariant.c: Likewise.
7403 * loop-unroll.c: Likewise.
7404 * lower-subreg.c: Likewise.
7405 * lto-cgraph.c: Likewise.
7406 * lto-opts.c: Likewise.
7407 * lto-streamer-in.c: Likewise.
7408 * lto-streamer-out.c: Likewise.
7409 * lto-streamer.c: Likewise.
7410 * lto-symtab.c: Likewise.
7411 * matrix-reorg.c: Likewise.
7413 * predict.c: Likewise.
7414 * print-tree.c: Likewise.
7415 * sdbout.c: Likewise.
7416 * sel-sched-dump.c: Likewise.
7417 * sel-sched-ir.c: Likewise.
7418 * sel-sched.c: Likewise.
7420 * stor-layout.c: Likewise.
7421 * tree-cfg.c: Likewise.
7422 * tree-cfgcleanup.c: Likewise.
7423 * tree-chrec.c: Likewise.
7424 * tree-data-ref.c: Likewise.
7425 * tree-emutls.c: Likewise.
7426 * tree-inline.c: Likewise.
7427 * tree-into-ssa.c: Likewise.
7428 * tree-loop-distribution.c: Likewise.
7429 * tree-loop-linear.c: Likewise.
7430 * tree-mudflap.c: Likewise.
7431 * tree-outof-ssa.c: Likewise.
7432 * tree-parloops.c: Likewise.
7433 * tree-predcom.c: Likewise.
7434 * tree-pretty-print.c: Likewise.
7435 * tree-scalar-evolution.c: Likewise.
7436 * tree-ssa-live.c: Likewise.
7437 * tree-ssa-loop-im.c: Likewise.
7438 * tree-ssa-loop-ivcanon.c: Likewise.
7439 * tree-ssa-loop-ivopts.c: Likewise.
7440 * tree-ssa-loop-manip.c: Likewise.
7441 * tree-ssa-loop-niter.c: Likewise.
7442 * tree-ssa-loop-prefetch.c: Likewise.
7443 * tree-ssa-phiprop.c: Likewise.
7444 * tree-ssa-pre.c: Likewise.
7445 * tree-ssa-reassoc.c: Likewise.
7446 * tree-ssa-sccvn.c: Likewise.
7447 * tree-ssa-structalias.c: Likewise.
7448 * tree-ssa.c: Likewise.
7449 * tree-vect-data-refs.c: Likewise.
7450 * tree-vect-loop-manip.c: Likewise.
7451 * tree-vect-loop.c: Likewise.
7452 * tree-vect-patterns.c: Likewise.
7453 * tree-vect-slp.c: Likewise.
7454 * tree-vect-stmts.c: Likewise.
7455 * tree-vrp.c: Likewise.
7457 * value-prof.c: Likewise.
7458 * var-tracking.c: Likewise.
7459 * varasm.c: Likewise.
7460 * vmsdbgout.c: Likewise.
7462 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
7463 Richard Guenther <richard.guenther@gmail.com>
7465 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
7466 copy the src value and return a copy.
7467 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
7468 (C++ Volatiles): Adjust to describe C++ semantics only.
7470 2010-08-20 Joseph Myers <joseph@codesourcery.com>
7472 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
7474 * doc/tm.texi: Regenerate.
7475 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
7476 * df-scan.c (df_get_exit_block_use_set), reginfo.c
7477 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
7478 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
7479 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
7482 2010-08-20 Olivier Hainque <hainque@adacore.com>
7484 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
7485 an extra nop past a sibling call at the very end.
7487 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
7490 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
7493 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
7495 * target.def (function_arg, function_incoming_arg): Remove const
7496 qualifier on CUMULATIVE_ARGS parameter.
7497 * targhooks.h (default_function_arg, default_function_incoming_arg):
7499 * targhooks.c (default_function_arg, default_function_incoming_arg):
7501 * config/i386/i386.c (ix86_function_arg): Likewise.
7503 2010-08-19 Jakub Jelinek <jakub@redhat.com>
7506 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
7507 SIGN_EXTENDs or ZERO_EXTENDs.
7509 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
7512 * combine.c (combine_validate_cost): New arg I0. All callers changed.
7513 Take its cost into account if nonnull.
7514 (insn_a_feeds_b): New static function.
7515 (combine_instructions): Look for four-insn combinations.
7516 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
7517 them into account when computing all_adjacent and looking for other
7519 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
7520 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
7521 (try_combine): New arg I0. Handle four-insn combinations.
7522 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
7525 2010-08-19 Jason Merrill <jason@redhat.com>
7528 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
7530 (gimplify_modify_expr_rhs): Adjust.
7532 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
7534 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
7536 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
7537 * dominance.c (iterate_fix_dominators): Likewise.
7538 * dse.c (set_usage_bits): Likewise.
7539 (set_position_unneeded, record_store): Likewise.
7540 * gimple-fold.c (get_maxval_strlen): Likewise.
7541 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
7542 * ipa-inline.c (update_caller_keys): Likewise.
7543 * ipa-split.c (verify_non_ssa_vars): Likewise.
7544 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
7545 (close_type_exposed_parameter, close_type_full_escape): Likewise.
7546 (close_addressof_down): Likewise.
7547 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
7548 (setup_allocno_left_conflicts_size): Likewise.
7549 (ira_reassign_conflict_allocnos): Likewise.
7550 (ira_reassign_pseudos): Likewise.
7551 * ira-emit.c (change_loop): Likewise.
7552 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
7553 * lto-streamer-out.c (write_symbol): Likewise.
7554 * predict.c (expr_expected_value_1): Likewise.
7555 * regstat.c (regstat_bb_compute_ri): Likewise.
7556 * sel-sched.c (create_block_for_bookkeeping): Likewise.
7557 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
7558 * stmt.c (expand_case): Likewise.
7559 * tree-eh.c (emit_eh_dispatch): Likewise.
7560 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
7561 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
7563 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
7564 (rdg_build_components): Likewise.
7565 * tree-object-size.c (collect_object_sizes_for): Likewise.
7566 * tree-sra.c (convert_callers): Likewise.
7567 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
7568 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
7569 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
7571 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
7573 * config/i386/i386.md (*lea_1): Use P mode iterator.
7574 (lea add splitter): Also handle DImode operands.
7575 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
7576 predicate. Do not use ix86_lea_for_add_ok.
7577 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
7578 (lea ashift splitter): Also handle DImode operands.
7579 (DImode lea ashift splitter): Remove splitter.
7581 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
7583 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
7584 ix86_binary_operator_ok.
7586 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
7588 PR rtl-optimization/44691
7589 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
7592 2010-08-19 Ian Bolton <ian.bolton@arm.com>
7595 * config/arm/arm.c (arm_output_epilogue): Ensure that return
7596 value of size 1-3 is handled correctly.
7598 2010-08-19 Ian Bolton <ian.bolton@arm.com>
7600 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
7601 type for the conditional has wide enough range.
7603 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
7606 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
7607 ix86_binary_operator_ok.
7609 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
7611 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
7612 <default>: Swap operands 1 and 2 for alternative 2 to use existing
7613 code to output insn mnemonic. Fix comment.
7614 (*addsi_1_zext): Add r-r-0 alternative 1.
7615 <TYPE_LEA>: Split insn to lea.
7616 <default>: Handle alternative 1.
7617 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
7618 multi-level if_then_else RTX to set "type" attribute.
7619 <default>: Handle alternative 2.
7620 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
7621 Use cond RTX instead of multi-level if_then_else RTX to set
7623 <default>: Handle alternatives 2 and 4.
7624 (lea splitters): Update calls to ix86_lea_for_add_ok.
7626 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
7628 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
7630 2010-08-18 Richard Guenther <rguenther@suse.de>
7632 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
7633 use operand helpers.
7635 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
7638 * optabs.c (expand_bool_compare_and_swap): Expand pending
7639 pops before trying the optab.
7641 2010-08-18 Yao Qi <yao@codesourcery.com>
7644 * config/arm/arm.c (output_move_double): Fix typo generating
7645 instructions ('ldr'->'str').
7647 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
7649 PR rtl-optimization/42575
7650 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
7653 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
7655 * config/arm/arm-protos.h (arm_expand_sync): New.
7656 (arm_output_memory_barrier, arm_output_sync_insn): New.
7657 (arm_sync_loop_insns): New.
7658 * config/arm/arm.c (FL_ARCH7): New.
7659 (FL_FOR_ARCH7): Include FL_ARCH7.
7661 (arm_print_operand): Support %C markup.
7662 (arm_legitimize_sync_memory): New.
7663 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
7664 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
7665 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
7666 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
7667 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
7668 (arm_process_output_sync_insn, arm_output_sync_insn): New.
7669 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
7670 * config/arm/arm.h (struct arm_sync_generator): New.
7671 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
7672 (TARGET_HAVE_MEMORY_BARRIER): New.
7673 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
7674 * config/arm/arm.md: Include sync.md.
7675 (UNSPEC_MEMORY_BARRIER): New.
7676 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
7677 (VUNSPEC_SYNC_OP):New.
7678 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
7679 (sync_result, sync_memory, sync_required_value): New attributes.
7680 (sync_new_value, sync_t1, sync_t2): Likewise.
7681 (sync_release_barrier, sync_op): Likewise.
7682 (length): Add logic to length attribute defintion to call
7683 arm_sync_loop_insns when appropriate.
7684 * config/arm/sync.md: New file.
7686 2010-08-17 Jakub Jelinek <jakub@redhat.com>
7688 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
7689 ENABLE_TREE_CHECKING.
7690 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
7693 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
7695 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
7696 or optimizing for size, always avoid lea if possible.
7698 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
7700 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
7702 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
7703 Dunmmy function with NULL return unless the target is
7704 OSX >= 10.6 (Darwin10).
7706 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
7708 * gcc.c (spec_function): Add remove-outfile.
7709 (remove_outfile_spec_function): New function.
7710 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
7711 * invoke.texi (replace-outfile): Document.
7713 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
7716 * reginfo.c (globalize_reg): Reject stack registers.
7718 2010-08-17 Richard Guenther <rguenther@suse.de>
7720 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
7721 list of conditional equivalences.
7722 (free_all_edge_infos): Adjust.
7723 (record_equivalences_from_incoming_edge): Likewise.
7724 (record_cond): Likewise.
7725 (build_and_record_new_cond): Likewise.
7726 (record_conditions): Likewise.
7727 (dom_opt_leave_block): Likewise.
7729 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
7731 * doc/invoke.texi (ms-extension): Add documentation.
7733 2010-08-17 Richard Guenther <rguenther@suse.de>
7735 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
7737 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
7740 * c-decl.c (diagnose_uninitialized_cst_member): New function.
7741 (finish_decl): Use it to issue a -Wc++-compat warning about
7742 uninitialized const field in struct or union.
7744 (finish_struct): Use strip_array_types.
7746 2010-08-17 Jakub Jelinek <jakub@redhat.com>
7748 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
7750 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
7751 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
7752 call block_nreverse here.
7753 (blocks_nreverse): Rename decl temporary to block.
7755 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
7757 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
7758 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
7759 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
7760 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
7761 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
7762 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
7763 thumb2_iorsi3): Delete.
7764 (orsi_notsi_si): No longer a named pattern.
7765 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
7766 * config/arm/predicates.md (shift_amount_operand): New.
7767 (mult_operator): New.
7768 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
7770 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
7772 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
7773 (not_shiftsi_compare0): Likewise, renamed from
7774 arm_notsi_shiftsi_compare0.
7775 (not_shiftsi_compare0_scratch): Likweise, renamed from
7776 arm_notsi_shiftsi_compare0_scratch.
7777 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
7778 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
7779 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
7780 so that the register alternative is disabled when the shift_operator
7781 is MULT. Use "M" as the constraint for constants.
7782 (arith_shiftsi splitter): Enable for TARGET_32BIT.
7783 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
7784 constraint for constants.
7785 (arith_shiftsi_compare0_scratch): Likewise.
7786 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
7787 Handle Thumb2 alternative.
7789 2010-08-16 Joseph Myers <joseph@codesourcery.com>
7791 * doc/options.texi (NoDriverArg): Document.
7792 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
7794 * opt-functions.awk (switch_flags): Handle NoDriverArg.
7795 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
7796 marking for CL_NO_DRIVER_ARG options when in the driver.
7797 * opts.h (CL_NO_DRIVER_ARG): Define.
7798 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
7799 CL_COMMON): Update values.
7801 2010-08-16 Joseph Myers <joseph@codesourcery.com>
7803 * common.opt: Add driver options.
7804 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
7805 * doc/options.texi (Driver, RejectDriver): Document.
7806 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
7807 print_prog_name, print_multi_directory, print_sysroot,
7808 print_multi_os_directory, print_multi_lib,
7809 print_sysroot_headers_suffix, report_times, combine_flag,
7810 use_pipes, wrapper_string): Remove.
7811 (save_switch, driver_unknown_option_callback,
7812 driver_wrong_lang_callback, driver_post_handling_callback,
7813 driver_handle_option): New.
7814 (spec_lang, last_language_n_infiles): Make file-scope static
7815 instead of local to process_command.
7816 (process_command): Use decode_cmdline_options_to_array and
7817 read_cmdline_option for option processing. Compute have_c in
7818 prescan of decoded options.
7819 * opt-functions.awk (switch_flags): Handle Driver and
7821 (var_type, var_type_struct): Handle Separate options as generating
7822 const char * variables.
7823 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
7824 CL_TARGET to be passed by caller if required.
7825 (decode_cmdline_options_to_array): Update comment.
7826 * opts.c (complain_wrong_lang): Handle options only valid for the
7828 (decode_options): Update call to decode_cmdline_options_to_array.
7829 (print_filtered_help): Ignore driver-only options.
7830 (print_specific_help): Ignore CL_DRIVER.
7831 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
7832 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
7833 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
7836 2010-08-16 Richard Guenther <rguenther@suse.de>
7838 * tree-cfg.c (verify_types_in_gimple_reference): Verify
7839 TARGET_MEM_REF a bit.
7840 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
7841 (create_mem_ref_raw): Always create TMR_OFFSET, store the
7842 alias pointer type via it.
7843 (copy_mem_ref_info): Adjust.
7844 (maybe_fold_tmr): Likewise.
7845 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
7846 (reference_alias_ptr_type): Likewise.
7847 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
7848 adjust documentation of TMR_OFFSET operand.
7849 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
7850 use the alias pointer type.
7851 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
7852 initialize mem attrs but the TMR itself.
7853 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
7855 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
7856 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
7857 (unshare_and_remove_ssa_names): Likewise.
7858 (copy_ref_info): Adjust.
7859 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
7860 TARGET_MEM_REF case.
7861 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
7863 * tree.h (TMR_ORIGINAL): Remove.
7864 * gimple.c (get_base_address): For TARGET_MEM_REF with a
7866 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
7868 (get_addr_base_and_unit_offset): Likewise.
7869 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
7871 (indirect_ref_may_alias_decl_p): Likewise.
7872 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
7874 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
7876 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
7877 with GCC version 4.6, the default setting (when not optimizing
7878 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
7879 been changed to -fomit-frame-pointer.
7881 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
7883 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
7884 Darwin10. Do not link libgcc.a for Darwin >= 9.
7886 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
7888 * doc/invoke.texi (Warning Options): Fix terminology and markup
7889 in the description of how unknown warning options are handled.
7891 2010-08-15 Ira Rosen <irar@il.ibm.com>
7893 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
7895 (vect_supportable_dr_alignment): Check alignment for basic blocks.
7896 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
7898 (vect_bb_vectorization_profitable_p): New function.
7899 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
7900 check if it's worthwhile to vectorize the basic block.
7902 2010-08-14 Anatoly Sokolov <aesok@post.ru>
7904 * reload.h (register_move_cost, memory_move_secondary_cost,
7905 secondary_reload_class): Adjust prototype.
7906 * rtl.h (reg_class_subset_p): Adjust prototype.
7907 * reload.c (secondary_reload_class): Change arguments type from
7908 enum reg_class to reg_class_t. Change result type to reg_class_t.
7909 * reginfo.c (register_move_cost, reg_class_subset_p): Change
7910 arguments type from enum reg_class to reg_class_t.
7911 (memory_move_secondary_cost): Change arguments type from
7912 enum reg_class to reg_class_t. Change type of saved_flags to
7915 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7917 (mips_cost): Remove.
7918 (struct mips_rtx_cost_data): Moved to mips.c.
7919 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
7920 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
7921 (mips_cost): Make static.
7922 (mips_canonicalize_move_class): Change argument type to reg_class_t.
7923 Change result type to reg_class_t.
7924 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
7925 type from enum reg_class to reg_class_t.
7926 (mips_register_move_cost): Make static. Change arguments
7927 type from enum reg_class to reg_class_t.
7928 (mips_memory_move_cost): New function.
7929 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7931 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
7933 PR rtl-optimization/43358
7934 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
7935 of a single hard register, using simplify_subreg_regno to decide
7936 what that register should be.
7938 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
7940 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
7941 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
7942 (loongson_pmull<V_suffix>): Rename to...
7943 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
7945 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
7947 * configure.ac: Enable -fomit-frame-pointer on darwin
7948 which support dwarf2.
7949 * config/i386/i386.c (override_options): Same.
7951 2010-08-13 Jie Zhang <jie@codesourcery.com>
7953 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
7955 2010-08-12 Joseph Myers <joseph@codesourcery.com>
7957 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
7960 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
7962 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
7963 up dot_prod pattern searching if a stmt is outside the loop.
7965 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
7966 Uros Bizjak <ubizjak@gmail.com>
7968 * config.gcc: Handle --enable-frame-pointer.
7970 * configure.ac: Add --enable-frame-pointer.
7971 * configure: Regenerated.
7973 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
7974 (override_options): If not configured with --enable-frame-pointer,
7975 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
7976 optimizing for size), -fasynchronous-unwind-tables and
7977 -maccumulate-outgoing-args by default.
7979 2010-08-12 Jakub Jelinek <jakub@redhat.com>
7981 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
7984 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
7985 -a overflows. Normalize the range.
7987 2010-08-12 Richard Guenther <rguenther@suse.de>
7989 PR tree-optimization/45232
7990 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
7991 for types with undefined overflow.
7992 (reassociate_bb): Allow re-associating of bit and min/max
7993 operations for types with undefined overflow.
7994 * tree-ssa-forwprop.c (associate_plusminus): New function.
7995 (tree_ssa_forward_propagate_single_use_vars): Call it.
7997 2010-08-12 Richard Guenther <rguenther@suse.de>
7999 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
8000 * tree-ssa-alias.c (get_ptr_info): Move ...
8001 * tree-ssanames.c (get_ptr_info): ... here. Initialize
8002 align and misalign fields conservatively.
8003 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
8004 derive alignment information.
8005 (evaluate_stmt): Derive alignment information from memory
8006 allocation functions.
8007 * tree.h (get_pointer_alignment): Make unsigned.
8008 * builtins.c (get_object_alignment): Use alignment information we
8009 have computed for pointers.
8010 (get_pointer_alignment): Likewise. Make conservative, return
8012 (expand_builtin_strlen): Adjust.
8013 (expand_builtin_memcmp): Likewise.
8014 (expand_builtin_strcmp): Likewise.
8015 (expand_builtin_strncmp): Likewise.
8016 (get_builtin_sync_mem): Use at least mode alignment.
8017 (fold_builtin_memset): Adjust.
8018 (fold_builtin_memory_op): Likewise.
8019 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
8020 information also dump pointer alignment knowledge.
8021 (dump_gimple_stmt): Likewise.
8023 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
8025 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
8026 (EMPTY_FIELD_BOUNDARY): Remove.
8027 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
8029 2010-08-12 Jakub Jelinek <jakub@redhat.com>
8032 * caller-save.c (save_call_clobbered_regs): Only swap notes with
8033 DEBUG_INSNs if n_regs_saved.
8035 2010-08-12 Wei Guozhi <carrot@google.com>
8038 * config/arm/arm.md (andsi3): Change to zero extension if possible.
8039 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
8041 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
8043 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
8045 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
8047 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8049 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
8050 the case removed in the previous patch, when the only phi argument
8051 is defined in the same loop as the phi node itself. Handle it
8052 separately from the invariant case by both propagating it outside
8053 the region and replacing the phi node with an assign.
8055 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8057 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
8058 constant phi nodes with one argument are is_gimple_min_invariant
8059 and SSA_NAME_IS_DEFAULT_DEF.
8061 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8063 * graphite-cloog-util.c (oppose_constraint):
8064 Extend loop counter's value range (CLOOG_ORG).
8065 (cloog_matrix_to_ppl_constraint): Same.
8066 (new_Constraint_System_from_Cloog_matrix): Same.
8067 * graphite-cloog-compat.h (matrix_num_type): New.
8069 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8071 * graphite.c (graphite_initialize): Do not initialize
8072 CLooG and initialize the Parma Polyhedra Library
8073 manually when using CLOOG_ORG.
8074 (graphite_finalize): Do not finalize CLooG and finalize
8075 the Parma Polyhedra Library manually when using CLOOG_ORG.
8076 * graphite-cloog-compat.h (cloog_initialize): Hide function
8077 when using CLOOG_ORG.
8078 (cloog_finalize): Same.
8080 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8082 * graphite-clast-to-gimple.c (free_scattering): Change
8083 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
8085 (build_cloog_prog): Same.
8086 * graphite-cloog-compat.h (cloog_domain): Removed.
8087 (cloog_scattering): New.
8088 (cloog_set_domain): Removed.
8089 (cloog_set_scattering): New.
8090 (cloog_next_domain): Removed.
8091 (cloog_next_scattering): New.
8092 (cloog_set_next_domain): Removed.
8093 (cloog_set_next_scattering): New.
8094 (CloogScatteringList): New.
8095 (CloogScattering): New.
8096 (cloog_scattering_free): New.
8097 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
8098 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
8101 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8103 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
8105 (set_cloog_options): Same.
8106 (print_clast_stmt): Same.
8107 (scop_to_clast): Same.
8108 (print_generated_program): Same.
8110 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
8111 (scop_to_clast): Extend with CloogState.
8112 * graphite-cloog-util.c: Include graphite-cloog-compat.h
8113 (new_Cloog_Domain_from_ppl_Polyhedron):
8114 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
8115 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
8116 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8117 * graphite-cloog-util.h (build_cloog_prog): Same.
8118 * graphite-cloog-copat.h (build_cloog_prog): New.
8120 (cloog_state_malloc): New.
8121 (cloog_state_free): New.
8122 (cloog_loop_malloc): New.
8123 (cloog_options_malloc): New.
8124 (cloog_statement_alloc): New.
8125 (cloog_domain_from_cloog_matrix): New.
8126 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
8127 (new_Cloog_Domain_from_ppl_Polyhedron): New.
8129 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8131 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
8132 type of NAME now depends on used CLooG version.
8133 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
8134 (gcc_type_for_clast_expr): Same.
8135 (print_clast_stmt): Replace pprint with clast_pprint.
8136 * graphite-cloog-compat.h: Provide compatibility macros for
8138 (clast_name_p): New.
8139 (clast_expr_term): New.
8140 (clast_expr_red): New.
8141 (clast_expr_bin): New.
8142 (clast_pprint): New.
8144 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8146 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
8147 compatible to newer CLooG releases (CLOOG_ORG).
8148 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
8149 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
8150 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
8151 (build_cloog_prog) : New.
8152 (cloog_program_extract_scalars): New.
8153 (cloog_program_scatter): New.
8155 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8157 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
8158 conditionally (CLOOG_ORG).
8159 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
8160 (cloog_statement_usr): New.
8161 (cloog_domain): Same.
8162 (cloog_set_domain): Same.
8163 (cloog_next_domain): Same.
8164 (cloog_set_next_domain): Same.
8165 (cloog_program_nb_scattdims): Same.
8166 (cloog_program_set_nb_scattdims): Same.
8167 (cloog_program_names): Same.
8168 (cloog_program_set_names): Same.
8169 (cloog_program_set_context): Same.
8170 (cloog_program_set_loop): Same.
8171 (cloog_program_blocklist): Same.
8172 (cloog_program_set_blocklist): Same.
8173 (cloog_program_scaldims): Same.
8174 (cloog_program_set_scaldims): Same.
8175 (cloog_names_nb_parameters): Same.
8176 (cloog_names_set_nb_parameters): Same.
8177 (cloog_names_parameters): Same.
8178 (cloog_names_set_parameters): Same.
8179 (cloog_names_set_nb_iterators): Same.
8180 (cloog_names_set_iterators): Same.
8181 (cloog_names_set_nb_scattering): Same.
8182 (cloog_names_set_scattering): Same.
8183 (cloog_statement_set_usr): Same.
8184 (cloog_loop_set_next): Same.
8185 (cloog_loop_set_domain): Same.
8186 (cloog_loop_set_block): Same.
8187 (cloog_block_list_next): Same.
8188 (cloog_block_list_set_next):
8189 (cloog_block_list_set_block): Same.
8191 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8193 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
8195 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
8196 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
8197 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
8198 when something has been changed.
8199 (rewrite_commutative_reductions_out_of_ssa): Same.
8201 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8203 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
8204 handle the case when def is in the sese region.
8205 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
8206 for invariant expressions.
8207 (rewrite_cross_bb_phi_deps): Removed.
8208 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
8209 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
8210 rewrite_cross_bb_phi_deps.
8212 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8214 * graphite-sese-to-poly.c
8215 (rewrite_commutative_reductions_out_of_ssa_loop): Call
8216 scev_analyzable_p only on is_gimple_reg
8218 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8220 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
8221 (rewrite_close_phi_out_of_ssa): Propagate constant values or
8222 parametric expressions outside the scop region.
8223 (rewrite_cross_bb_scalar_deps): Same.
8224 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
8226 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8228 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
8229 SSA_NAME_DEF_STMT only on SSA_NAMEs.
8231 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8233 * tree-scalar-evolution.c (instantiate_scev_name): Do not
8234 instantiate default definitions.
8236 2010-08-11 Vladimir Kargov <kargov@gmail.com>
8237 Sebastian Pop <sebastian.pop@amd.com>
8239 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
8240 (loop_exits_from_bb_p): New.
8241 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
8242 (loop_exits_from_bb_p): Declared.
8243 * graphite-scop-detection.c (scopdet_basic_block_info): Call
8246 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8248 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
8249 extra parameter for the region. Call scev_analyzable_p.
8250 (rewrite_reductions_out_of_ssa): Update call to
8251 rewrite_close_phi_out_of_ssa.
8252 (rewrite_cross_bb_phi_deps): Same.
8253 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
8254 parameter for the region. Call scev_analyzable_p.
8255 (rewrite_commutative_reductions_out_of_ssa): Update call to
8256 rewrite_commutative_reductions_out_of_ssa_loop.
8258 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8260 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
8262 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8264 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
8265 SSA scalar phi nodes that can be scev_analyzable_p.
8267 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8269 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
8270 handle SSA_NAME_IS_DEFAULT_DEF.
8272 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8274 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
8276 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8278 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
8279 case non close-phi nodes with one argument.
8281 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8283 * sese.h (scev_analyzable_p): Scevs could be expressions without
8284 chrecs and still be scev_analyzable_p.
8286 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8288 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8290 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8292 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
8293 * cfgloop.h (struct loop): Remove single_iv field.
8294 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
8295 (scop_canonicalize_loops): Removed.
8296 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
8297 over all the loop phi nodes in loop->header.
8298 (build_poly_scop): Remove use of scop_canonicalize_loops.
8300 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8302 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
8305 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8307 * tree-chrec.c (chrec_apply): Should only apply to the specified
8308 variable. Also handle multivariate chains of recurrences that
8309 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
8311 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8313 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
8314 (debug_clast_name_indexes_1): Removed.
8315 (debug_clast_name_indexes): Removed.
8316 (pbb_to_depth_to_oldiv): Removed.
8317 (build_iv_mapping): Replace the use of rename_map with iv_map.
8318 (translate_clast_user): Remove uses of rename_map. Allocate and
8320 (translate_clast_for_loop): Remove uses of rename_map.
8321 (translate_clast_for): Same.
8322 (translate_clast_guard): Same.
8323 (translate_clast): Same.
8325 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
8326 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
8327 * sese.c (set_rename): Now static.
8328 (rename_variables_in_stmt): Removed.
8330 (is_parameter): Removed.
8332 (expand_scalar_variables_call): Removed.
8333 (expand_scalar_variables_ssa_name): Removed.
8334 (expand_scalar_variables_expr): Removed.
8335 (expand_scalar_variables_stmt): Removed.
8336 (expand_scalar_variables): Removed.
8337 (rename_variables): Removed.
8338 (remove_condition): Removed.
8339 (get_true_edge_from_guard_bb): Removed.
8340 (get_false_edge_from_guard_bb): Removed.
8341 (struct igp): Removed.
8342 (default_before_guard): Removed.
8343 (convert_for_phi_arg): Removed.
8344 (add_guard_exit_phis): Removed.
8345 (insert_guard_phis): Removed.
8346 (graphite_copy_stmts_from_block): Now also uses iv_map and a
8347 region. Do not copy conditions. Do not copy induction variables.
8349 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
8350 the translated statement. Use the iv_map for the induction
8352 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8353 (set_rename): Removed declaration.
8354 (scev_analyzable_p): ...here.
8355 * tree-chrec.c (chrec_apply_map): New.
8356 * tree-chrec.h (chrec_apply_map): Declared.
8358 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8360 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
8361 insert_loop_close_phis.
8362 * sese.c (name_defined_in_loop_p): Removed.
8363 (expr_defined_in_loop_p): Removed.
8364 (alive_after_loop): Removed.
8365 (close_phi_not_yet_inserted_p): Removed.
8366 (struct alep): Removed.
8367 (add_loop_exit_phis): Removed.
8368 (insert_loop_close_phis): Removed.
8370 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8372 * graphite-cloog-util.c
8373 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
8375 (psct_scattering_dim_for_loop_depth): Same.
8377 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8379 * graphite-cloog-util.h: Added cloog.h.
8380 * graphite-blocking.c: Removed cloog.h.
8381 * graphite-dependences.c: Same.
8382 * graphite-interchange.c: Same.
8383 * graphite-poly.c: Same.
8384 * graphite-ppl.c: Same.
8385 * graphite-scop-detection.c: Same.
8386 * graphite-sese-to-poly.c:
8388 Removed graphite-clast-to-gimple.h.
8389 (check_poly_representation): Removed (unused).
8390 * graphite-sese-to-poly.h
8391 (check_poly_representation): Removed (unused).
8393 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8395 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
8396 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
8397 (graphite-cloog-util.o): New.
8398 (graphite-ppl.o): Added graphite-cloog-util.h.
8399 * graphite-clast-to-gimple.c:
8400 Added graphite-cloog-util.h to include statements.
8401 * graphite-cloog-util.c: New.
8402 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
8403 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8404 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8405 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8406 (insert_constraint_into_matrix): Same.
8407 (ppl_Constrain_System_number_of_constraints): Same.
8408 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
8409 (oppose_constraint): Same.
8410 (cloog_matrix_to_ppl_constraint): Same.
8411 (new_Constraint_System_from_Cloog_Matrix): Same.
8412 * graphite-cloog-util.h: New.
8413 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
8414 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8415 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8416 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8417 (insert_constraint_into_matrix): Same.
8419 Added graphite-cloog-util.h to include statements.
8420 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
8421 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8422 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8423 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8424 (insert_constraint_into_matrix): Same.
8425 (ppl_Constrain_System_number_of_constraints): Same.
8426 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
8427 (oppose_constraint): Same.
8428 (cloog_matrix_to_ppl_constraint): Same.
8429 (new_Constraint_System_from_Cloog_Matrix): Same.
8431 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
8432 graphite-cloog-util.h.
8433 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8434 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8435 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8436 (insert_constraint_into_matrix): Same.
8438 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8440 * graphite-clast-to-gimple.c
8441 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
8442 (precision_for_interval): Same.
8443 (gcc_type_for_interval): Same.
8444 (compute_type_for_level): Same.
8445 * graphite-interchange.c
8446 (lst_interchange_profitable_p): Same.
8448 (psct_scattering_dim_for_loop_depth): Same.
8450 (ppl_max_for_le_pointset): Same.
8451 (ppl_min_for_le_pointset): Same.
8453 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8455 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
8456 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
8458 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8460 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
8461 rewrite_close_phi_out_of_ssa.
8463 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8465 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
8467 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8469 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
8471 * sese.c (debug_rename_map): Same.
8474 (rename_variables_in_stmt): Same.
8475 (expand_scalar_variables_call): Same.
8476 (expand_scalar_variables_ssa_name): Same.
8477 (expand_scalar_variables_expr): Same.
8478 (expand_scalar_variables_stmt): Same.
8479 (expand_scalar_variables): Same.
8480 (rename_variables): Same.
8481 (graphite_copy_stmts_from_block): Same.
8482 (copy_bb_and_scalar_dependences): Same.
8484 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8486 * graphite-clast-to-gimple.c (copy_renames): Removed.
8487 (translate_clast_for): Do not call copy_renames.
8488 (translate_clast_guard): Same.
8490 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8492 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
8493 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
8494 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
8495 before rewrite_cross_bb_scalar_deps.
8497 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8499 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
8500 Early return in when flag_associative_math is not set.
8502 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8504 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
8505 of SSA copies on edges except for loop->latch.
8507 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8509 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
8510 Split out of rewrite_reductions_out_of_ssa.
8511 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
8513 * graphite.c (graphite_transform_loops): Call it.
8515 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8517 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
8519 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
8521 * dbgcnt.def (graphite_scop): New counter.
8522 * graphite.c: Include dbgcnt.h.
8523 (graphite_transform_loops): Use new counter to limit transformations.
8524 * Makefile.in (graphite.o): Depend on DBGCNT_H.
8526 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8528 * passes.c (init_optimization_passes): Add pass_graphite.
8529 Schedule a pass_copy_prop before pass_graphite_transforms.
8530 * timevar.def (TV_GRAPHITE): Declared.
8531 * tree-pass.h (pass_graphite): Declared.
8532 * tree-ssa-loop.c (pass_graphite): New.
8534 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8536 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
8537 Remove calls to rename_nb_iterations and rename_sese_parameters.
8538 * graphite-clast-to-gimple.h (gloog): Update declaration.
8539 * graphite.c (graphite_transform_loops): Update call to gloog.
8540 * sese.c (rename_variables_in_expr): Removed.
8541 (rename_nb_iterations): Removed.
8542 (rename_sese_parameters): Removed.
8543 * sese.h (rename_nb_iterations): Removed.
8544 (rename_sese_parameters): Removed.
8546 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8548 * graphite-clast-to-gimple.c (gloog): Remove call to
8549 sese_adjust_liveout_phis.
8550 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
8551 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
8552 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
8553 rewrite_phi_out_of_ssa.
8554 * sese.c (get_vdef_before_sese): Removed.
8555 (sese_adjust_vphi): Removed.
8556 (sese_adjust_liveout_phis): Removed.
8557 * sese.h (sese_adjust_liveout_phis): Removed.
8559 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8561 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
8562 argument for the place after which to insert the out of SSA copy.
8563 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
8564 (rewrite_phi_out_of_ssa): Same.
8565 (rewrite_cross_bb_scalar_deps): Same.
8566 (insert_copyout): Removed.
8567 (insert_copyin): Removed.
8568 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
8569 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
8572 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8574 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
8575 (rewrite_reductions_out_of_ssa): Same.
8576 (rewrite_commutative_reductions_out_of_ssa): Same.
8577 (build_poly_scop): Do not call these functions.
8578 * graphite-sese-to-poly.h (build_poly_scop): Declared.
8579 (rewrite_reductions_out_of_ssa): Declared.
8580 (rewrite_commutative_reductions_out_of_ssa): Declared.
8581 * graphite.c (graphite_transform_loops): Call on every scop
8582 rewrite_commutative_reductions_out_of_ssa before calling
8583 rewrite_reductions_out_of_ssa and build_scop_bbs.
8585 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8587 * graphite-dependences.c (dot_deps): Make system call to dotty run
8589 (dot_deps_stmt): Same.
8590 * graphite-poly.c (dot_lst): Same.
8592 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8594 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
8595 phi_arg_in_outermost_loop.
8596 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
8597 (remove_invariant_phi): Same.
8599 2010-08-11 Anatoly Sokolov <aesok@post.ru>
8601 * target.def (output_addr_const_extra): New hook.
8602 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
8603 * doc/tm.texi: Regenerate.
8604 * targhooks.c (default_asm_output_addr_const_extra): New function.
8605 * targhooks.h (default_asm_output_addr_const_extra): Declare.
8606 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
8609 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8610 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
8611 * config/i386/i386.h (output_addr_const_extra): Rename to...
8612 (i386_asm_output_addr_const_extra): ...this. Make static.
8613 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8615 2010-08-11 Richard Henderson <rth@redhat.com>
8617 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
8619 2010-08-11 Nick Clifton <nickc@redhat.com>
8621 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
8622 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
8623 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
8624 stormy16-lib2-cmpsi.c.
8626 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
8629 2010-08-11 Joseph Myers <joseph@codesourcery.com>
8631 * opts.h (struct cl_option_handler_func): Make handler take
8632 cl_decoded_option structure as parameter, not individual elements.
8633 (struct cl_option_handlers): Make callbacks take cl_decoded_option
8634 structure as parameter, not individual elements.
8635 (handle_option): Take cl_decoded_option structure as parameter,
8636 not individual elements.
8637 (handle_generated_option): Declare.
8638 * opts-common.c (handle_option): Take cl_decoded_option structure
8639 as parameter, not individual elements. Update calls to callback
8640 and handler functions.
8641 (handle_generated_option): New.
8642 (read_cmdline_option): Update calls to callback functions and
8644 * opts.c (common_handle_option, complain_wrong_lang,
8645 unknown_option_callback, post_handling_callback,
8646 lang_handle_option, target_handle_option): Take cl_decoded_option
8647 structure as parameter, not individual elements.
8648 (lang_handle_option, target_handle_option, common_handle_option):
8649 Assert option has at most one argument.
8650 (enable_warning_as_error): Call handle_generated_option instead of
8651 handle_option. Do not pass -Werror argument as argument of
8654 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8656 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
8657 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
8658 (SUBWORD_BOOL_CAS): Likewise.
8659 (SUBWORD_SYNC_OP): Likewise.
8660 (SUBWORD_TEST_AND_SET): Likewise.
8661 (FETCH_AND_OP_WORD): Parenthesise INF_OP
8662 (SUBWORD_SYNC_OP): Likewise.
8663 (OP_AND_FETCH_WORD): Likewise.
8665 2010-08-10 Xinliang David Li <davidxl@google.com>
8667 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
8668 compute max/min offset in address.
8670 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
8672 * ira-live.c: Include sbitmap.h.
8673 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
8674 Compress live ranges even more.
8676 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
8678 * coverage.c (ctr_labels): Delete.
8680 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
8683 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
8684 test here from arm_gen_load_multiple_1.
8685 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
8686 multiple_operation_profitable_p.
8688 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
8690 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
8691 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
8693 2010-08-10 Richard Henderson <rth@redhat.com>
8695 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
8696 after saving registers. Assert that SSE registers are only saved
8697 with a sufficiently aligned frame.
8698 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
8699 remove stack_realign_fp handling.
8700 (ix86_expand_prologue): Save int registers before stack_realign_fp,
8701 and do not mark the stack alignment as frame related.
8702 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
8704 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
8705 saves when re-aligning the stack.
8707 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
8709 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
8710 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
8711 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
8713 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
8715 * dwarf2out.c (struct die_struct): Move die_tag to the end.
8717 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
8719 * config/arm/iterators.md: New file.
8720 * config/arm/arm.md: Include iterators.md.
8721 (QHSI): Move to new file.
8722 (LTUGEU, cnb, optab, ior_xor): Likewise.
8723 * config/arm/iwmmxt.md (VMMX): Move to new file.
8724 (VSHFT, MMX_char): Likewise.
8725 * config/arm/neon.md (VD): Move to new file.
8726 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
8727 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
8728 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
8729 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
8730 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
8731 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
8732 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
8733 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
8734 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
8735 (Is_d_reg, V_mode_nunits): Likewise.
8736 * config/arm/vec-common.md (VALL): Move to new file.
8737 (VALLW, VINT, VINTW): Likewise.
8739 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
8742 * combine.c (make_compound_operation): Don't try to convert
8743 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
8745 2010-08-10 Richard Guenther <rguenther@suse.de>
8747 * tree.h (get_object_alignment): Adjust prototype.
8748 * builtins.c (get_object_alignment): Return unsigned int,
8749 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
8750 and TARGET_MEM_REF properly.
8751 (get_pointer_alignment): Adjust.
8752 * emit-rtl.c (get_mem_align_offset): Adjust comment.
8753 (set_mem_attributes_minus_bitpos): Adjust.
8754 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
8756 2010-08-10 Richard Guenther <rguenther@suse.de>
8758 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
8759 (copy_prop_visit_assignment): Simplify.
8760 (copy_prop_visit_stmt): Also visit assignments from
8762 (copy_prop_visit_phi_node): Use operand_equal_p.
8764 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
8766 * ipa-split.c (find_split_points): Free stack.
8768 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
8770 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
8771 * tree.c (tree_node_kind): Delete corresponding entries.
8773 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
8775 * alias.c (may_alias_p): Remove unused ret.
8777 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
8779 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
8780 alias_sets_conflict_p.
8781 (walk_mems_1): Moved from alias.c.
8782 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
8784 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
8785 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
8786 * alias.c (walk_mems_2): Moved to ddg.c.
8787 (walk_mems_1): Ditto.
8788 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
8790 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
8792 *(may_alias_p): New function to check whether two memory expression
8793 may alias or not. Currently used in buidling inter-iteration memory
8795 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
8796 (insn_alias_sets_conflict_p): Removed
8797 *rtl.h (may_alias_p): New function prototype.
8799 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
8801 * tree.c (nreverse): Assert that we don't have a BLOCK.
8803 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
8805 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
8806 * config/arm/arm.c (arm_get_pcs_model): Likewise.
8807 * config/avr/avr.c (init_cumulative_args): Likewise.
8808 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
8809 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
8810 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
8811 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
8812 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
8813 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8814 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
8815 * dwarf2out.c (gen_subprogram_die): Likewise.
8816 * function.c (allocate_struct_function): Likewise.
8817 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
8818 (deserves_ellipsis): Delete.
8820 2010-08-09 Richard Guenther <rguenther@suse.de>
8822 * tree-ssa-copy.c (cached_last_copy_of): Remove.
8823 (valueize_val): New function.
8824 (get_last_copy_of): Remove.
8825 (set_copy_of_val): Simplify.
8826 (dump_copy_of): Likewise.
8827 (copy_prop_visit_cond_stmt): Use valueize_val.
8828 (copy_prop_visit_phi_node): Properly handle unvisited names.
8829 Drop code managing copy-of chains.
8830 (init_copy_prop): Adjust.
8831 (fini_copy_prop): Likewise.
8832 (execute_copy_prop): Remove obsolete comment.
8834 2010-08-09 Richard Guenther <rguenther@suse.de>
8837 * function.c (gimplify_parameters): Do not clear addressable
8838 bit of the original parameter.
8840 2010-08-09 Richard Guenther <rguenther@suse.de>
8843 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
8844 alignment from MEM_REF offset only if we took it from the
8847 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
8849 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
8851 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8853 * c-tree.h (build_arg_info): Declare.
8854 * c-decl.c (build_arg_info): Define.
8855 (get_parm_info): Call it. Delete initialization code.
8856 * c-parser.c (c_parser_parms_declarator): Likewise.
8857 (c_parser_parms_list_declaractor): Likewise.
8859 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8861 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
8862 (struct c_arg_info): Change type of tags field.
8863 * c-decl.c (grokdeclarator): Update for changed type of tags field.
8864 (get_parm_info): Likewise.
8865 (store_parm_decls_newstyle): Likewise.
8867 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
8869 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
8870 (branch_island_list): Delete.
8871 (branch_islands): Declare.
8872 (add_compiler_branch_island): Adjust for branch_islands instead of
8874 (macho_branch_islands): Likewise.
8875 (no_previous_def): Likewise.
8876 (get_prev_label): Likewise.
8878 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8881 * gthr-posix.h (__gthread_start): Delete.
8882 (__gthread_active_init): Use pthread_default_stacksize_np instead of
8883 pthread_create to determine if hpux pthreads are active.
8884 * gthr-posix95.h (__gthread_start): Delete.
8885 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
8887 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
8889 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
8890 _WIN64 not expanded.
8892 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
8893 H.J. Lu <hongjiu.lu@intel.com>
8896 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
8897 to output 32bit SFmode immediate as 8 byte sign extended value.
8899 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
8901 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
8902 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
8903 (SUBWORD_BOOL_CAS): Likewise.
8904 (SUBWORD_SYNC_OP): Likewise.
8905 (SUBWORD_TEST_AND_SET): Likewise.
8906 (FETCH_AND_OP_WORD): Parenthesise INF_OP
8907 (SUBWORD_SYNC_OP): Likewise.
8908 (OP_AND_FETCH_WORD): Likewise.
8910 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8912 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
8913 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
8914 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
8915 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
8917 (cortex_a9_sched_adjust_cost): New function.
8918 (xscale_sched_adjust_cost): New function.
8919 * config/arm/arm-protos.h (struct tune_params): New field
8921 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
8923 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
8926 * config/sparc/sparc.c (function_arg_advance): Always take into account
8927 the padding, if any.
8929 2010-08-06 Richard Guenther <rguenther@suse.de>
8931 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
8932 (dump_lattice_value): Dump it.
8933 (get_default_value): Adjust.
8934 (get_constant_value): Likewise.
8935 (set_value_varying): Likewise.
8936 (set_lattice_value): Make sure to not go up the lattice
8937 with bitwise constant values.
8938 (get_value_for_expr): Handle ADDR_EXPRs.
8939 (value_to_double_int): New function.
8940 (get_value_from_alignment): Likewise.
8941 (do_dbg_cnt): Adjust.
8942 (ccp_lattice_meet): Handle partially constant values.
8943 (bit_value_unop_1): New function.
8944 (bit_value_binop_1): Likewise.
8945 (bit_value_unop): Likewise.
8946 (bit_value_binop): Likewise.
8947 (evaluate_stmt): Track partially constant values if
8948 flag_tree_bit_ccp is set.
8949 (ccp_fold_stmt): Dump if we folded a predicate.
8950 (ccp_visit_stmt): Adjust.
8951 * common.opt (ftree-bit-ccp): New flag.
8952 * doc/invoke.texi (ftree-bit-ccp): Document.
8953 * opts.c (decode_options): Enable bit-CCP at -O1.
8955 2010-08-06 Alan Modra <amodra@gmail.com>
8957 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
8958 and -mrelocatable-lib description.
8960 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
8962 From Martin Thuresson <martint@google.com>
8963 * postreload.c (reload_cse_simplify_operands): Use
8964 SET_REGNO_RAW instead of SET_REGNO.
8965 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
8967 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
8968 instead of SET_REGNO.
8969 * rtl.h (SET_REGNO_RAW): New macro.
8971 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
8973 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
8974 computations. Fix formatting issues.
8975 (num_sign_bit_copies1): Likewise.
8976 (canonicalize_condition): Likewise.
8978 2010-08-05 Richard Henderson <rth@redhat.com>
8980 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
8981 (floor_log2): Use clz_hwi.
8982 (exact_log2): Use ctz_hwi.
8983 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
8984 * builtins.c (fold_builtin_bitop): Use them.
8985 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8986 * combine.c (get_pos_from_mask): Use ctz_hwi.
8987 * double-int.c (double_int_ctz): Likewise.
8988 * explow.c (force_reg): Likewise.
8989 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
8991 2010-08-05 Richard Henderson <rth@redhat.com>
8994 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
8995 the alignment constant is properly sign-extended.
8997 2010-08-05 Richard Guenther <rguenther@suse.de>
8999 * expr.c (store_expr): Use emit_block_move only if both
9000 source and target are MEMs. Use store_bit_field if only
9001 the target is a MEM.
9003 2010-08-05 Richard Henderson <rth@redhat.com>
9006 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
9007 (INCOMING_RETURN_ADDR_RTX): Likewise.
9008 (dwarf2out_do_frame): Remove conditional compilation.
9009 (dwarf2out_frame_init): Likewise.
9011 2010-08-05 Nicolas Setton <setton@adacore.com>
9013 * gcov.c (flag_display_progress): New static variable.
9014 (main): Display progress info on standard output if requested.
9015 (options): Add -d/--display-progress.
9016 (print_usage): Print them.
9017 (process_args): Handle them.
9018 * doc/gcov.texi: Document them.
9020 2010-08-05 Martin Jambor <mjambor@suse.cz>
9022 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
9023 (ipcp_insert_stage): Redirect only edges not flagged with
9024 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
9025 discovered constants.
9027 2010-08-05 Martin Jambor <mjambor@suse.cz>
9029 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
9030 (struct ipa_param_descriptor): New fields types and
9031 cannot_devirtualize.
9032 (ipa_param_cannot_devirtualize_p): New function.
9033 (ipa_param_types_vec_empty): Likewise.
9034 (ipa_make_edge_direct_to_target): Declare.
9035 * ipa-cp.c: Fixed first stage driver name in initial comment,
9036 described devirtualization there too.
9037 (ipcp_analyze_node): Call ipa_analyze_params_uses.
9038 (ipcp_print_all_lattices): Print devirtualization info.
9039 (ipa_set_param_cannot_devirtualize): New function.
9040 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
9042 (ipcp_init_stage): Merged into...
9043 (ipcp_generate_summary): ...its caller.
9044 (ipcp_change_tops_to_bottom): Also process type lists.
9045 (ipcp_add_param_type): New function.
9046 (ipcp_copy_types): Likewise.
9047 (ipcp_propagate_types): Likewise.
9048 (ipcp_propagate_stage): Also propagate types.
9049 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
9050 Also return true if propagated types require it.
9051 (ipcp_update_callgraph): Dump redirection info.
9052 (ipcp_process_devirtualization_opportunities): New function.
9053 (ipcp_const_param_count): Include known type information.
9054 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
9055 on new node. Fixed formatting.
9056 * ipa-prop.c (make_edge_direct_to_target): Renamed to
9057 ipa_make_edge_direct_to_target and changed all callers. Made
9059 (ipa_node_duplication_hook): Duplicate types vector.
9060 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
9061 redirect outgoing calls for which we can't get a decl from the
9062 statement. Check that we can get a decl from the call statement.
9063 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9064 ipa_analyze_params_uses only when ipa-cp is disabled.
9065 * tree-inline.c (get_indirect_callee_fndecl): Removed.
9066 (expand_call_inline): Do not call get_indirect_callee_fndecl.
9067 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
9068 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
9070 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
9072 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
9073 temporary. Emit move from temporary to accum, so REG_EQUAL note will
9074 be attached to this insn in correct mode.
9076 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
9078 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
9079 using REGNO of base_reg directly.
9081 2010-08-05 Jie Zhang <jie@codesourcery.com>
9083 PR tree-optimization/45144
9084 * tree-sra.c (type_consists_of_records_p): Return false
9085 if the record contains bit-field.
9087 2010-08-04 Richard Henderson <rth@redhat.com>
9089 * config/i386/i386.c (struct ix86_frame): Remove padding and
9090 to_allocate members.
9091 (ix86_compute_frame_layout): Don't store them.
9092 (ix86_can_use_return_insn_p): Use a more direct and more obviously
9093 correct condition for the position of the stack pointer.
9094 (ix86_expand_prologue): Compute remaining stack allocation based
9095 on the ultimate stack pointer offset.
9096 (ix86_expand_epilogue): Use more obvious expressions testing for
9097 the stack pointer already pointing to the saved registers.
9099 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
9100 duplication deconstructing the frame pointer. Simplify
9101 deallocation of the local stack frame.
9103 * reg-notes.def (CFA_EXPRESSION): New.
9104 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9105 (dwarf2out_frame_debug_cfa_expression): New.
9106 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
9108 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
9109 * config/i386/i386.c (ix86_expand_prologue): Set it.
9110 (ix86_expand_epilogue): Clear it.
9111 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
9112 context, add REG_CFA_EXPRESSION notes.
9114 * config/i386/i386.h (struct machine_frame_state): Rename from
9115 machine_cfa_state. Add members tracking SP and FP regardless
9116 of the current CFA register.
9117 (ix86_cfa_state): Remove.
9118 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
9119 and sse_reg_save_offset members.
9120 (ix86_compute_frame_layout): Set them.
9121 (gen_push): Increment sp_offset too.
9122 (choose_baseaddr_len, choose_baseaddr): New.
9123 (ix86_emit_save_reg_using_mov): New.
9124 (ix86_emit_save_regs_using_mov): Use it.
9125 (ix86_emit_save_sse_regs_using_mov): Likewise.
9126 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
9127 compare vs the saved red_zone_offset.
9128 (pro_epilogue_adjust_stack): Adjust sp_offset.
9129 (ix86_adjust_stack_and_probe): Likewise.
9130 (ix86_expand_prologue): Set up, use, and validate the new
9131 frame_state_info members. Use gen_frame_mem.
9132 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
9133 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
9134 new frame_state_info members.
9135 (ix86_emit_leave): Likewise.
9136 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
9137 out-of-range stack pointer offsets here.
9138 (ix86_emit_restore_sse_regs_using_mov): Likewise.
9139 (ix86_expand_epilogue): Use and validate the new frame_state_info
9140 members. Break up and simplify the logic selecting the
9141 restore_regs_via_mov code path. Ensure that there will be no
9142 out-of-range stack pointer offsets.
9144 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
9146 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
9147 argument name to reflect the expected tree; fix indentation.
9148 (ix86_asm_output_function_label): Output the entire 32-bit
9149 ms_hook here as bytes ...
9150 (ix86_expand_prologue): ... not here as insns. Attach the
9151 unwind info for the ms_hook to a blockage insn.
9152 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
9153 (ix86_ms_bitfield_layout_p): Fix indentation.
9154 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
9156 * config/i386/i386.c (ix86_using_red_zone): New.
9157 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
9158 ix86_expand_prologue, ix86_force_to_memory): Use it.
9160 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
9161 saving the int registers.
9163 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
9164 and DWARF2_UNWIND_INFO conditional compilation.
9166 2010-08-04 Richard Henderson <rth@redhat.com>
9169 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
9170 an is_naming_typedef_decl.
9172 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
9174 PR rtl-optimization/45162
9175 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
9176 * dce.c (word_dce_process_block): Likewise.
9178 2010-08-04 Steve Ellcey <sje@cup.hp.com>
9181 * config/ia64/constraints.md (Z): New.
9182 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
9183 (xfreg_or_signed_fp01_operand): New.
9184 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
9185 with fr_reg_or_signed_fp01_operand and constraint G with Z.
9190 (adddf3_trunc): Ditto.
9192 (*subdf3_trunc): Ditto.
9194 (*madddf4_trunc): Ditto.
9196 (*msubdf4_trunc): Ditto.
9197 (addxf3): Replace xfreg_or_fp01_operand with
9198 xfreg_or_signed_fp01_operand and constraint G with Z.
9199 (*addxf3_truncsf): Ditto.
9200 (*addxf3_truncdf): Ditto.
9202 (*subxf3_truncsf): Ditto.
9203 (*subxf3_truncdf): Ditto.
9205 (*maddxf4_truncsf): Ditto.
9206 (*maddxf4_truncdf): Ditto.
9208 (*msubxf4_truncsf): Ditto.
9209 (*msubxf4_truncdf): Ditto.
9211 2010-08-04 Richard Guenther <rguenther@suse.de>
9213 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
9214 if either alias-set is zero.
9216 2010-08-04 Richard Guenther <rguenther@suse.de>
9218 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
9219 * tree-ssa-ccp.c: ... here.
9220 * tree-ssa-copy.c: ... and here.
9221 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
9222 value_range_t): Move ...
9223 * tree-vrp.c: ... here.
9224 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
9225 (substitute_and_fold): Adjust prototype.
9226 * tree-ssa-propagate.c (replace_uses_in): Adjust.
9227 (replace_phi_args_in): Likewise.
9228 (substitute_and_fold): Take callback to query lattice instead
9229 of pointer to lattice. Replace SSA name defs with lattice
9231 * tree-ssa-ccp.c (ccp_finalize): Adjust.
9232 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
9233 (get_value): New function.
9234 (fini_copy_prop): Adjust.
9235 * tree-vrp.c (vrp_finalize): Adjust.
9237 2010-08-04 Richard Guenther <rguenther@suse.de>
9240 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
9241 points-to set for original MEM_REF.
9243 2010-08-04 Richard Guenther <rguenther@suse.de>
9245 * tree-ssa-ccp.c (get_constant_value): New function.
9246 (get_rhs_assign_op_for_ccp): Remove.
9247 (valueize_op): New function.
9248 (ccp_fold): Use get_constant_value and valueize_op.
9249 (fold_const_aggregate_ref): Likewise.
9250 (ccp_fold_stmt): Likewise.
9251 (visit_assignment): Simplify.
9253 2010-08-04 Richard Guenther <rguenther@suse.de>
9255 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
9256 * double-int.h (double_int_ctz): Declare.
9257 * double-int.c (double_int_ctz): New function.
9259 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
9261 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
9263 picochip_expand_movmemhi : Expand movmem pattern.
9264 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
9266 * config/picochip/picochip.md (movmemhi) : New pattern.
9268 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
9270 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
9272 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
9274 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
9275 NEG as operand of a MULT by merging it with the other operand.
9276 * combine.c (make_compound_operation): Use trunc_int_for_mode when
9277 generating a MULT with constant. Canonicalize PLUS and MINUS involving
9279 * config/arm/constraints.md (M): Examine only 32 bits of a
9281 * config/arm/predicates.md (power_of_two_operand): Likewise.
9283 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9285 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
9288 2010-08-03 Jan Hubicka <jh@suse.cz>
9290 * ipa-split.c (struct split_point): Add split_part_set_retval.
9291 (find_retval): Forward declare.
9292 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
9293 (consider_split): Compute current->split_part_set_retval.
9294 (visit_bb): Do not look into return value.
9295 (split_function): Handle !split_part_set_retval
9297 2010-08-03 Martin Jambor <mjambor@suse.cz>
9299 * tree-sra.c (completely_scalarize_record): New parameter REF, create
9300 its own access->expr intead of using build_ref_for_offset.
9302 2010-08-03 Joseph Myers <joseph@codesourcery.com>
9304 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
9305 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
9306 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
9307 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
9308 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
9309 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
9310 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
9311 DEFAULT_SWITCH_TAKES_ARG.
9312 * config/rx/rx.opt (-patch=): Remove option.
9313 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
9314 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
9315 * doc/invoke.texi (RX Options): Remove -patch=.
9316 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
9317 (option_map): Remove --profile-blocks, --quiet and --silent.
9319 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
9321 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
9322 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
9323 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
9324 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
9325 Update calls to ix86_expand_compare and ix86_expand_branch.
9326 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
9327 ix86_expand_compare.
9328 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
9329 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
9331 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
9332 and ix86_compare_op1. Update calls to ix86_expand_compare.
9333 (ix86_expand_int_movcc): Ditto.
9334 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
9335 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
9336 (ix86_expand_setcc): Ditto.
9337 (ix86_expand_compare): Remove prototype.
9338 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
9339 ix86_compare_op0 and ix86_compare_op1. Update calls
9340 to ix86_expand_branch to directly pass operands[1] and operands[2].
9341 (cbranchxf4): Ditto.
9342 (cbranch<MODEF:mode>4): Ditto.
9343 (cbranchcc4): Ditto.
9344 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
9345 Update calls to ix86_expand_setcc to directly pass operands[2] and
9348 (cstore<MODEF:mode>4): Ditto.
9351 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
9354 * caller-save.c (save_call_clobbered_regs): Remove regs from
9355 hard_regs_saved when they are set.
9357 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
9360 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
9363 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
9365 * common.opt (ftree-loop-distribute-patterns): New.
9366 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
9367 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
9369 * tree-data-ref.c (stores_zero_from_loop): New.
9370 * tree-data-ref.h (stores_zero_from_loop): Declared.
9371 * tree-loop-distribution.c (tree_loop_distribution): Call
9372 stores_zero_from_loop.
9373 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
9375 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
9377 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
9380 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
9381 * config/arm/arm.c (thumb1_code): New variable.
9382 (arm_override_options): Set it.
9383 (thumb1_final_prescan_insn): Keep track of condition code status.
9384 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
9385 jumps that depend on them.
9386 * config/arm/arm.h (thumb1_code): Declare variable.
9387 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
9388 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
9390 (CC_STATUS_INIT): New macro.
9391 * config/arm/constraints.md (Pd): New constraint.
9392 * config/arm/predicates.md (noov_comparison_operator): New predicate.
9393 * config/arm/arm.md (is_thumb1): New define_attr.
9394 (conds): Set default to "clob" when generating Thumb1 code.
9395 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
9396 code are set. Use two-operand assembly syntax.
9397 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
9399 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
9400 codes are set. Use two-operand assembly syntax.
9401 (zero_extendhisi splitter): Remove constraints.
9402 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
9403 thumb1_movsf_insn): Set conds attribute as appropriate.
9404 (cbranchsi4_insn): Use condition code status from struct
9405 machine_function to determine whether the comparison can be eliminated.
9406 Discourage the alternative using high registers.
9407 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
9408 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
9409 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
9410 subsi3_cbranch): Delete.
9411 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
9412 one subtract and one cbranch insn.
9414 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
9415 thumb2_movdf_soft_insn): Delete patterns.
9416 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
9417 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
9418 (pool_range, neg_pool_range): Use them to define defaults.
9419 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
9420 and allow for TARGET_32BIT.
9423 * config/arm/arm.h (arm_regs_in_sequence): Declare.
9424 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
9425 load_multiple_sequence, store_multiple_sequence): Delete
9427 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
9429 * config/arm/ldmstm.md: New file.
9430 * config/arm/arm.c (arm_regs_in_sequence): New array.
9431 (load_multiple_sequence): Now static. New args SAVED_ORDER,
9432 CHECK_REGS. All callers changed.
9433 If SAVED_ORDER is nonnull, copy the computed order into it.
9434 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
9435 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
9436 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
9437 If SAVED_ORDER is nonnull, copy the computed order into it.
9438 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
9439 like REGS. Handle Thumb mode.
9440 (arm_gen_load_multiple_1): New function, broken out of
9441 arm_gen_load_multiple.
9442 (arm_gen_store_multiple_1): New function, broken out of
9443 arm_gen_store_multiple.
9444 (arm_gen_multiple_op): New function, with code from
9445 arm_gen_load_multiple and arm_gen_store_multiple moved here.
9446 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
9447 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
9449 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
9450 * config/arm/predicates.md (commutative_binary_operator): New.
9451 (load_multiple_operation, store_multiple_operation): Handle more
9452 variants of these patterns with different starting offsets. Handle
9454 * config/arm/arm.md: Include "ldmstm.md".
9455 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
9456 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
9457 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
9459 * config/arm/ldmstm.md: New file.
9460 * config/arm/arm-ldmstm.ml: New file.
9462 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
9463 if statement which adds extra costs to frame-related expressions.
9465 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9467 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
9469 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
9472 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
9474 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
9475 split V4SI operands.
9477 2010-08-01 Anatoly Sokolov <aesok@post.ru>
9479 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
9480 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
9481 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
9482 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
9484 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
9486 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
9489 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
9491 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
9492 used in the call to optab_for_tree_code. Fix the second
9493 is_widening_mult_p call. Check that both unwidened operands
9496 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
9498 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
9500 2010-07-31 Anatoly Sokolov <aesok@post.ru>
9502 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
9504 2010-07-30 DJ Delorie <dj@redhat.com>
9506 * config/rx/predicates.md (rx_constshift_operand): New.
9507 * config/rx/rx.md (zs_cond): New.
9508 (cbranchsi4): Remove mode.
9509 (*cbranchsi4_<code>): Likewise.
9510 (*tstbranchsi4_<code>): New.
9511 (*tstbranchsi4r_<code>): New.
9512 (*tstbranchsi4m_eq): New.
9513 (*tstbranchsi4m_ne): New.
9514 (cbranchsf4): Remove mode.
9515 (*cbranchsf4_<code>): Likewise.
9517 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
9519 * rtlanal.c (simplify_subreg_regno): Don't treat
9520 HARD_FRAME_POINTER_REGNUM specially.
9522 2010-07-30 Joseph Myers <joseph@codesourcery.com>
9524 * common.opt (-G): Don't define option here.
9525 * config/g.opt: New.
9526 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
9527 rs6000/powerpc and score targets.
9528 * opts.c (common_handle_option): Don't handle -G here.
9529 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
9530 * config/frv/frv.c (frv_handle_option): Handle -G.
9531 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
9532 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
9533 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
9534 * config/mips/mips.c (mips_handle_option): Handle -G.
9535 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
9536 * config/score/score.c (score_handle_option): Handle -G.
9538 2010-07-30 Anatoly Sokolov <aesok@post.ru>
9540 * config/mmix/mmix.c: Include basic-block.h.
9542 2010-07-30 Jakub Jelinek <jakub@redhat.com>
9545 PR rtl-optimization/45137
9546 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
9548 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
9550 * combine.c (next_nonnote_nondebug_insn): Removed.
9551 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
9552 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
9553 * sched-deps.c (sched_analyze_insn): Likewise.
9554 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
9555 * rtlanal.c (canonicalize_condition): Likewise.
9556 * postreload.c (reload_combine_recognize_pattern): Likewise.
9557 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
9559 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
9561 * config/i386/i386.md (int_cond): Remove code iterator.
9563 (cbranch<mode>4): Use ordered_comparison_operator predicate
9565 (cstore<mode>4): Ditto for operator1.
9566 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
9567 (add<mode>cc): ditto.
9569 2010-07-30 Richard Guenther <rguenther@suse.de>
9572 * expr.c (expand_expr_real_1): Check for not handled base address.
9574 2010-07-30 Richard Guenther <rguenther@suse.de>
9576 * ipa-prop.c (ipa_modify_formal_parameters): Use
9577 build_distinct_type_copy.
9579 2010-07-30 Anthony Green <green@moxielogic.com>
9581 * config/moxie/rtems.h: New file.
9582 * config.gcc: Add moxie-rtems support.
9584 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
9586 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
9587 df flags as in run_fast_df_dce.
9589 2010-07-29 Jakub Jelinek <jakub@redhat.com>
9592 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
9594 * rtl.def (NOTE): Swap operands 4 and 5.
9595 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
9596 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
9598 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
9600 2010-07-29 Jakub Jelinek <jakub@redhat.com>
9603 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
9604 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
9605 (gen_subprogram_die): Likewise. Remove it when removing declaration's
9607 (gen_decl_die): Change return type to dw_die_ref, return what
9608 gen_formal_parameter_die returned.
9610 2010-07-29 Martin Jambor <mjambor@suse.cz>
9612 * dbgcnt.def (eipa_sra): New counter.
9613 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
9615 2010-07-29 Xinliang David Li <davidxl@google.com>
9618 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
9621 2010-07-29 Richard Guenther <rguenther@suse.de>
9623 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
9624 (TV_TREE_STORE_CCP): Likewise.
9625 (TV_TREE_REDPHI): Likewise.
9627 2010-07-29 Richard Guenther <rguenther@suse.de>
9629 * double-int.h (double_int_and_not): New function.
9630 * combine.c (try_combine): Use it.
9631 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
9633 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
9635 PR rtl-optimization/42575
9636 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
9637 Argument AU removed. All callers changed. Ignore artificial refs.
9638 Use return value of df_word_lr_simulate_defs to decide whether an insn
9640 (fast_dce): Rename arg to WORD_LEVEL.
9641 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
9643 (pass_fast_rtl_byte_dce): Delete.
9644 * dce.h (run_word_dce): Declare.
9645 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
9646 All callers changed. Simplify code to only deal with two-word regs.
9647 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
9648 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
9649 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
9650 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
9651 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
9652 (df_word_lr_mark_ref): Declare.
9653 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
9654 df_word_lr_simulate_uses): Declare or rename from byte variants.
9655 (df_byte_lr_simulate_artificial_refs_at_top,
9656 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
9657 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
9659 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
9660 (enum df_mm): Delete.
9661 * df-byte-scan.c: Delete file.
9662 * df-problems.c (df_word_lr_problem_data): Renamed from
9663 df_byte_lr_problem_data, all members deleted except for
9664 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
9665 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
9666 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
9667 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
9668 df_byte_lr_confluence_0): Delete functions.
9669 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
9671 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
9672 Don't initialize members that were deleted, don't try to discover data
9673 about registers. Ignore hard regs.
9674 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
9675 (df_word_lr_mark_ref): New function.
9676 (df_word_lr_bb_local_compute): Renamed from
9677 df_byte_bb_lr_local_compute; all callers changed. Use
9678 df_word_lr_mark_ref. Assert that artificial refs don't include
9679 pseudos. Ignore hard registers.
9680 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
9681 Assert that exit block uses don't contain pseudos.
9682 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
9683 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
9684 callers changed. Ignore hard regs.
9685 (df_word_lr_transfer_function): Renamed from
9686 df_byte_lr_transfer_function; all callers changed.
9687 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
9688 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
9690 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
9692 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
9693 confluence operator 0 set to NULL.
9694 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
9696 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
9697 Return bool, true if bitmap changed or insn otherwise necessary.
9698 All callers changed. Simplify using df_word_lr_mark_ref.
9699 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
9700 all callers changed. Simplify using df_word_lr_mark_ref.
9701 * lower-subreg.c: Include "dce.h"
9702 (decompose_multiword_subregs): Call run_word_dce if df available.
9703 * Makefile.in (lower-subreg.o): Adjust dependencies.
9704 (df-byte-scan.o): Delete.
9705 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
9707 2010-07-29 Richard Guenther <rguenther@suse.de>
9709 * tree.c (build_vector): Assert that the vector constant
9710 has enough elements.
9711 (build_vector_from_ctor): Pad with trailing zeros.
9713 2010-07-29 Richard Guenther <rguenther@suse.de>
9715 PR tree-optimization/45120
9716 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9717 Handle offset in DEREFs properly.
9718 (get_constraint_for_1): Handle MEM_REF offset properly.
9720 2010-07-29 Richard Guenther <rguenther@suse.de>
9723 * convert.c (convert_to_integer): Always use an unsigned
9724 type for narrowed negate and bitwise not.
9726 2010-07-29 Ira Rosen <irar@il.ibm.com>
9728 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
9729 to outer loop when creating reduction epilogue for double reduction,
9730 and switch back to the inner loop when updating the phi nodes.
9731 Update uses of outer loop exit phi nodes in double reduction (instead
9732 of uses of reduction).
9734 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
9736 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
9737 popcount on power7 and parity on power6 systems.
9738 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
9739 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
9742 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
9743 (UNSPEC_PARITY): Ditto.
9744 (SFDF): New iterator for SF/DF.
9745 (rreg2): New mode attribute for floating register constraint.
9746 (TARGET_FLOAT): New mode attribute for whether single/double float
9748 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
9750 (parity<mode>2_cmpb): New insn for parity on power6 and newer
9752 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
9753 pattern. Add support for fcpsgn instruction added in power6.
9754 (copysignsf3): Delete.
9755 (copysigndf3): Delete.
9756 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
9757 instead of if_then_else in RTL to avoid problems with -0.
9759 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
9760 of if_then_else to mirror scalar code.
9761 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
9764 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
9765 instead of if_then_else.
9767 2010-07-28 Xinliang David Li <davidxl@google.com>
9769 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
9770 (dump_cand): Dump var_before/after.
9771 (htab_inv_expr_eq): New function.
9772 (htab_inv_expr_hash): New function.
9773 (tree_ssa_iv_optimize_init): Support pseudo invariants.
9774 (add_candidate_1): consider base type precision.
9775 (set_use_iv_cost): New parameter.
9776 (adjust_setup_cost): Use profile information.
9777 (get_address_cost): Do not hard code width in computing address
9779 (compare_aff_trees): New function.
9780 (get_loop_invariant_expr_id): New function.
9781 (get_computation_cost_at): New parameter and use profile information.
9782 (get_computation_cost): New parameter.
9783 (determine_use_iv_cost_generic): Pass new parameter.
9784 (determine_use_iv_cost_address): Ditto.
9785 (determine_use_iv_cost_condition): Ditto.
9786 (autoinc_possible_for_pair): Ditto.
9787 (determine_use_iv_costs): More dumps.
9788 (iv_ca_get_num_inv_exprs): New function.
9789 (iv_ca_recount_cost): Consider loop invariants in register pressure
9791 (iv_ca_add_use): New parameter.
9792 (iv_ca_dump): Better dumping.
9793 (iv_ca_extend): New parameter.
9794 (try_add_cand_for): Attempt to get better partial solution.
9795 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
9796 (create_new-ivs): More dumps.
9797 (rewrite_use_compare): Ditto.
9798 (free_loop_data): More cleanup.
9799 (treee_ssa_iv_optimize_finalize): Ditto.
9801 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
9803 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
9804 * config/i386/i386.c (ix86_profile_before_prologue): New.
9805 (override_options): Add special handling for -mfentry.
9806 (ix86_function_regparm): Likewise.
9807 (ix86_function_sseregparm): Likewise.
9808 (ix86_frame_pointer_required): Likewise.
9809 (ix86_expand_prologue): Check for ms_hook_prologue.
9810 (x86_function_profiler): Adjust mcount output.
9811 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
9812 * config/i386/i386.opt (mfentry): New.
9813 * doc/invoke.texi (mfentry): Add documentation.
9814 * doc/tm.texi: Regenerated..
9815 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
9816 * final.c (final_start_function): Replace macro
9817 PROFILE_BEFORE_PROLOGUE by target hook.
9818 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9819 * target.def (profile_before_prologue): New hook.
9820 * targhooks.c (default_profile_before_prologue): New.
9821 * targhooks.h (default_profile_before_prologue): New.
9823 2010-07-28 Jakub Jelinek <jakub@redhat.com>
9826 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
9829 * dwarf2out.c (dwarf2out_var_location): Always consider
9830 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
9832 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
9834 PR rtl-optimization/45107
9835 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
9837 2010-07-28 Richard Guenther <rguenther@suse.de>
9839 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
9840 (set_lattice_value): Do not query an old default value.
9841 (get_value_for_expr): New function. Properly canonicalize
9843 (ccp_visit_phi_node): Use it.
9845 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
9847 * config/arm/arm.c (arm_pcs_default): Remove static.
9848 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
9849 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
9850 (arm_pcs_default): Declare.
9852 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
9854 * config/rs6000/rs6000.c (rs6000_override_options):
9855 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
9856 ... to darwin_rs6000_override_options.
9857 (rs6000_return_in_memory): Update preceding comment for darwin
9858 64 bit ABI. Use TARGET_MACHO inline.
9859 (rs6000_darwin64_struct_check_p): New.
9860 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
9861 (function_arg): Likewise.
9862 (rs6000_arg_partial_bytes): Likewise.
9863 (rs6000_function_value): Likewise.
9865 2010-07-28 Andi Kleen <ak@linux.intel.com>
9867 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
9869 2010-07-28 Richard Guenther <rguenther@suse.de>
9872 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
9873 targets try harder to not generate unaligned accesses.
9875 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
9877 PR rtl-optimization/45101
9878 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
9881 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
9883 PR tree-optimization/44885
9884 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
9885 with non-aliased component.
9887 2010-07-28 Joseph Myers <joseph@codesourcery.com>
9889 * config/darwin-driver.c (SWITCH_TAKES_ARG,
9890 WORD_SWITCH_TAKES_ARG): Remove.
9891 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
9892 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
9893 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
9894 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
9895 definitions from gcc.c.
9896 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
9898 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
9900 * opts-common.c: Include tm.h.
9901 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
9902 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
9903 Handle more than one argument. Set canonical_option_num_elements.
9904 (decode_cmdline_options_to_array): Set
9905 canonical_option_num_elements and trailing elements of
9907 * opts.h (struct cl_decoded_option): Allow four elements in
9908 canonical_option. Add field canonical_option_num_elements.
9909 * Makefile.in (opts-common.o): Update dependencies.
9911 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
9915 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
9916 sure the base has address_mode before adding the offset.
9918 2010-07-27 Xinliang David Li <davidxl@google.com>
9920 * tree-flow.h (create_mem_ref): Add one new parameter.
9921 * tree-ssa-address.c (create_mem_ref): New parameter.
9922 (addr_to_parts): Ditto.
9923 (move_variant_to_index): New function.
9924 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
9926 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
9928 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
9930 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
9931 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
9932 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
9933 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
9934 CODE_LABELs and NOTEs.
9935 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
9936 * combine.c (try_combine): Likewise.
9937 * ira.c (setup_prohibited_mode_move_regs): Likewise.
9938 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
9940 2010-07-27 Joseph Myers <joseph@codesourcery.com>
9942 * coretypes.h (struct cl_option_handlers): Declare.
9943 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
9944 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
9945 * langhooks-def.h (lhd_handle_option): Declare.
9946 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
9947 * langhooks.c (lhd_handle_option): New.
9948 * langhooks.h (struct lang_hooks): Update prototype and return
9949 value type of handle_option hook.
9950 * optc-gen.awk: Generate target_flags_explicit definition for the
9952 * opts-common.c: Include diagnostic.h.
9953 (handle_option): Move from opts.c. Update prototype and return
9954 value type. Use handlers structure.
9955 (read_cmdline_option): Move from opts.c. Update prototype. Use
9957 (set_option): Move from opts.c.
9958 * opts.c (common_handle_option): Update prototype and return value
9959 type. Update calls to handle_option and enable_warning_as_error.
9960 (unknown_option_callback, post_handling_callback,
9961 lang_handle_option, target_handle_option): New.
9962 (handle_option, read_cmdline_option): Move to opts-common.c.
9963 (read_cmdline_options): Update prototype. Update call to
9964 read_cmdline_option.
9965 (decode_options): Initialize and use handlers structure.
9966 (set_option): Move to opts-common.c.
9967 (enable_warning_as_error): Update prototype. Update call to
9969 * opts.h (struct cl_option_handler_func, struct
9970 cl_option_handlers): New.
9971 (handle_option, enable_warning_as_error): Update prototypes.
9972 (read_cmdline_option): Declare.
9973 * Makefile.in (opts-common.o): Update dependencies.
9975 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9977 * config/arm/arm.c (params.h): Include.
9978 (arm_override_options): Tune gcse-unrestricted-cost.
9979 * config/arm/t-arm (arm.o): Define dependencies.
9981 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9985 * basic-block.h (get_dominated_to_depth): Declare.
9986 * dominance.c (get_dominated_to_depth): New function, use
9987 get_all_dominated_blocks as a base.
9988 (get_all_dominated_blocks): Use get_dominated_to_depth.
9990 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
9991 (hoist_exprs): Remove.
9992 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
9993 (compute_code_hoist_vbeinout): Add debug print outs.
9994 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
9996 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
9998 * params.h (MAX_HOIST_DEPTH): New macro.
9999 * doc/invoke.texi (max-hoist-depth): Document.
10001 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10003 PR rtl-optimization/40956
10004 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
10007 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10010 PR middle-end/42574
10011 * config/arm/arm.c (legitimize_pic_address): Use
10012 gen_calculate_pic_address pattern to emit calculation of PIC address.
10013 (will_be_in_index_register): New function.
10014 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
10015 (thumb1_legitimate_address_p): Use it provided !strict_p.
10016 * config/arm/arm.md (calculate_pic_address): New expand and split.
10018 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10021 PR middle-end/42574
10022 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
10023 * config/arm/arm.md (define_split "J", define_split "K"): Make
10024 IRA/reload friendly.
10026 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10028 * gcse.c (insert_insn_end_basic_block): Update signature, remove
10030 (pre_edge_insert, hoist_code): Update.
10032 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10035 PR middle-end/42574
10036 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
10038 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10040 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
10042 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10044 PR rtl-optimization/40956
10046 PR middle-end/42574
10047 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
10049 (hoist_code): Count occurences in current block too.
10051 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10053 * gcse.c (struct expr:max_distance): New field.
10054 (doing_code_hoisting_p): New static variable.
10055 (want_to_gcse_p): Change signature. Allow constrained hoisting of
10056 simple expressions, don't change behavior for PRE. Set max_distance.
10057 (insert_expr_in_table): Set new max_distance field.
10058 (hash_scan_set): Update.
10059 (hoist_expr_reaches_here_p): Stop search after max_distance
10061 (find_occr_in_bb): New static function. Use it in ...
10062 (hoist_code): Calculate sizes of basic block before any changes are
10063 done. Pass max_distance to hoist_expr_reaches_here_p.
10064 (one_code_hoisting_pass): Set doing_code_hoisting_p.
10066 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
10067 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
10068 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
10070 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
10073 2010-07-27 Jeff Law <law@redhat.com>
10074 Maxim Kuvyrkov <maxim@codesourcery.com>
10076 * gcse.c (compute_transpout, transpout): Remove, move logic
10077 to prune_expressions.
10078 (compute_pre_data): Move pruning of trapping expressions ...
10079 (prune_expressions): ... here. New static function.
10080 (compute_code_hoist_data): Use it.
10081 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
10083 2010-07-27 Xinliang David Li <davidxl@google.com>
10085 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
10086 (rewrite_use_address): Adjust iv update position when needed.
10088 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10090 * dbgcnt.def (hoist_insn): New debug counter.
10091 * gcse.c (hoist_code): Use it.
10093 2010-07-27 Xinliang David Li <davidxl@google.com>
10095 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
10096 (niter_for_single_dom_exit): Passes additional parameter.
10097 (iv_period): Fix comments.
10098 (may_eliminate_iv): Handles multiple exit loops properly.
10099 (free_tree_niter_desc): New function.
10100 (free_loop_data): Frees up loop iteration descriptors.
10102 2010-07-27 Jakub Jelinek <jakub@redhat.com>
10105 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
10106 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
10107 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
10108 (expand_one_var): Don't consider DECL_ALIGN for variables for
10109 which expand_one_stack_var_at has been already called.
10112 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
10113 constraints on IA-64.
10115 2010-07-27 Jie Zhang <jie@codesourcery.com>
10119 2010-07-23 Jie Zhang <jie@codesourcery.com>
10121 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
10122 false if ! tree_versionable_function_p.
10124 2010-07-27 Jakub Jelinek <jakub@redhat.com>
10126 * dwarf2out.c (add_data_member_location_attribute): Use
10127 add_AT_unsigned instead of add_AT_int if offset is non-negative.
10129 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
10131 * postreload.c (try_replace_in_use): New static function.
10132 (reload_combine_recognize_const_pattern): Use it here. Allow
10133 substituting into a final add insn, and substituting into a memory
10134 reference in an insn that sets the reg.
10136 2010-07-27 Joseph Myers <joseph@codesourcery.com>
10138 * common.opt (o): Add MissingArgError.
10139 * doc/options.texi (MissingArgError): Document.
10140 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
10141 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
10142 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
10143 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
10144 * langhooks.h (struct lang_hooks): Remove missing_argument.
10145 * optc-gen.awk: Handle MissingArgError and output new structure
10146 field initializers.
10147 * opts.c (read_cmdline_option): Use missing_argument_error field
10148 instead of missing_argument langhook.
10149 * opts.h (struct cl_option): Add missing_argument_error field.
10150 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
10152 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
10155 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
10156 Darwin64 ABI, for zero-sized objects.
10158 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
10163 Merge from Apple local 4.2.1.
10164 2005-05-11 Stan Shebs <shebs@apple.com>
10165 Fix 64-bit varargs for Darwin (Radar 4028089).
10166 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
10167 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10168 Add argument, add case for 8-byte register half-filled with a float.
10169 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
10170 single-precision floats specially.
10172 2010-07-27 Ira Rosen <irar@il.ibm.com>
10174 PR tree-optimization/44152
10175 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
10176 complex numbers for further check.
10177 (vect_supported_load_permutation_p): Check nodes with
10180 2010-07-27 Joseph Myers <joseph@codesourcery.com>
10182 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
10183 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
10184 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
10185 (LANG_HOOKS_INITIALIZER): Add new hooks.
10186 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
10187 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
10188 and complain_wrong_lang_p. Update init_options prototype.
10189 * c-objc-common.c (c_initialize_diagnostics): First call
10190 c_common_initialize_diagnostics.
10191 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
10192 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
10193 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
10194 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
10195 (hook_uint_void_0): New.
10196 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
10197 (hook_uint_void_0): New.
10198 * opts-common.c (decode_cmdline_option,
10199 decode_cmdline_options_to_array): Also fill in canonical_option field.
10200 * opts.c (complain_wrong_lang): Use langhook to determine whether
10201 to complain instead of special-casing LTO.
10202 (decode_options): Separate lang_mask determination with
10203 option_lang_mask hook from call of init_options hook.
10204 * opts.h (struct cl_decoded_option): Add canonical_option.
10206 2010-07-27 Jakub Jelinek <jakub@redhat.com>
10208 PR tree-optimization/45083
10209 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
10211 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
10213 * postreload.c (reload_combine_recognize_const_pattern): Move test
10214 for limiting the insn movement to the right scope.
10216 PR rtl-optimization/45051
10217 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
10218 than reg_mentioned_p.
10220 2010-07-26 Richard Henderson <rth@redhat.com>
10223 * tree-emutls.c: New file.
10224 * Makefile.in (OBJS-common): Add it.
10225 * tree-pass.h (pass_ipa_lower_emutls): Declare.
10226 * passes.c (init_optimization_passes): Add it.
10228 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
10229 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
10230 * expr.c (emutls_var_address): Delete.
10231 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
10232 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
10233 (emutls_finish): Delete.
10234 * toplev.c (compile_file): Don't call it.
10235 * tree.h (emutls_decl): Delete.
10236 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
10237 (emutls_finish, emutls_finalize_control_var): Delete.
10238 (emutls_object_type): Move to tree-emutls.c.
10239 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
10240 default_emutls_var_fields, get_emutls_object_type,
10241 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
10242 default_emutls_var_init): Likewise.
10243 (get_variable_section): Don't special case emutls.
10244 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
10245 default_elf_select_section, default_unique_section,
10246 default_encode_section_info): Likewise.
10247 * varpool.c (decide_is_variable_needed): Likewise.
10248 * gimple-iterator.c (update_call_edge_frequencies): New
10249 (gsi_insert_on_edge_immediate): Use it.
10250 (gsi_insert_seq_on_edge_immediate): Likewise.
10251 (gsi_commit_one_edge_insert): Likewise.
10253 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
10254 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
10255 (x86_64_elf_unique_section): Likewise.
10257 2010-07-26 Jan Hubicka <jh@suse.cz>
10259 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
10262 2010-07-26 Anatoly Sokolov <aesok@post.ru>
10264 * target.def (output_source_filename): New hook.
10265 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
10266 * doc/tm.texi: Regenerate.
10267 * toplev.c (output_file_directive) Remove function.
10268 * toplev.h (output_file_directive) Remove.
10269 * output.h (default_asm_output_source_filename,
10270 output_file_directive): Declare.
10271 * varasm.h (default_asm_output_source_filename,
10272 output_file_directive): New functions.
10274 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
10275 * config/mips/mips-protos.h (mips_output_filename): Remove.
10276 * config/mips/mips.c (mips_output_filename): Make Static.
10277 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
10279 2010-07-26 Richard Guenther <rguenther@suse.de>
10281 PR tree-optimization/43784
10282 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
10283 if the destination is used by the call.
10285 2010-07-26 Richard Guenther <rguenther@suse.de>
10287 PR middle-end/45073
10288 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
10289 SSA updating on being in SSA form.
10291 2010-07-26 Richard Guenther <rguenther@suse.de>
10293 PR middle-end/45056
10294 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
10296 2010-07-26 Richard Guenther <rguenther@suse.de>
10298 PR tree-optimization/45071
10299 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
10302 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
10304 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
10305 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
10306 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
10307 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
10308 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
10309 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
10310 save_r31, return_r31, save_interrupt, return_interrupt,
10311 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
10312 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
10313 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
10314 new ABI requirements.
10315 (save_r6_r9, L_callt_save_r6_r9): Remove.
10316 * config/v850/predicates.md (even_reg_operand, disp23_operand,
10317 const_float_1_operand const_float_0_operand): New Predicates.
10318 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
10319 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
10320 * config/v850/t-v850: Update multilibs for new target variants.
10321 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
10322 * config/v850/t-v850e: Likewise.
10323 * config/v850/v850.c (v850_issue_rate): New.
10324 (v850_strict_argument_naming): New.
10325 (function_arg): Modify to generate a different ABI.
10326 (print_operand): Update case 'z' to support float modes.
10327 (output_move_single): Modify to generate appropriate and better
10329 (v850_float_z_comparison_operator, v850_select_cc_mode,
10330 v850_float_nz_comparison_operator, v850_gen_float_compare,
10331 v850_gen_compare): New functions to support comparison of float values.
10332 (ep_memory_offset): Add support for V850E2 targets.
10333 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
10334 (INTERRUPT_REGPARM_NUM): Remove.
10335 (compute_register_save_size): Add extra case to save/restore long call.
10336 (use_prolog_function): New function to support prologue.
10337 (expand_prologue): Add support for V850E2 targets and modified
10338 as per the current ABI requirements.
10339 (expand_epilogue): Likewise.
10340 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
10341 (construct_save_jarl): Likewise.
10342 (construct_dispose_instruction): Update as per the current ABI
10344 (construct_prepare_instruction): Likewise.
10345 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
10346 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
10347 (CPP_SPEC): Updated to support v850e2 targets.
10348 (STRICT_ALIGNMENT): Modified.
10349 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
10350 (FIXED_REGISTERS): Likewise.
10351 (CALL_USED_REGISTERS): Likewise.
10352 (CONDITIONAL_REGISTER_USAGE): Updated.
10353 (HARD_REGNO_MODE_OK): Updated.
10354 (reg_class): Updated to add even registers.
10355 (REG_CLASS_NAMES): Likewise.
10356 (REG_CLASS_CONTENTS): Likewise.
10357 (REGNO_REG_CLASS): Updated for CC registers.
10358 (REG_CLASS_FROM_LETTER): Added support for even registers.
10359 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
10360 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
10361 ARG_POINTER_REGNUM): Updated.
10362 (FUNCTION_ARG_ADVANCE): Define.
10363 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
10364 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
10365 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
10366 (GO_IF_LEGITIMATE_ADDRESS): Updated.
10367 (SELECT_CC_MODE): Define.
10368 (REGISTER_NAMES): Updated to add psw and fcc registers.
10369 (ADDITIONAL_REGISTER_NAMES): Updated.
10370 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
10371 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
10372 * config/v850/v850.md (define_constants): Define new constants.
10373 (type): Update store,bit1,macc,div,fpu and single attributes.
10374 (cpu): New attribute.
10375 (cc): Add set_z attribute.
10376 (unsign23byte_load, sign23byte_load, unsign23hword_load,
10377 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
10378 23word_store): New instructions for 23-bit displacement load and store.
10379 (movqi_internal, movhi_internal): Update the attributes.
10380 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
10381 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
10383 (v850_tst1): Modified using CC_REGNUM.
10385 (cmpsi): Modified as define_expand from define_insn.
10386 (cmpsi_insn, cmpsf, cmpdf): New instructions.
10387 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
10388 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
10389 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
10390 one_cmplsi2): Clobber the CC_REGNUM register.
10391 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
10392 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
10393 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
10394 (setf_insn, set_z_insn, set_nz_insn): New instructions for
10396 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
10397 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
10399 (sasf_1, sasf_2): Remove.
10400 (sasf): New instruction.
10401 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
10402 targets. CC_REGNUM register is clobbered and attributes are
10404 (branch_z_normal, branch_z_invert, branch_nz_normal,
10405 branch_nz_invert): New branch related instructions.
10406 (jump): Updated the attributes.
10407 (switch): Update to support new targets. CC_REGNUM register is
10408 clobbered and attributes are updated.
10409 (call_internal_short, call_internal_long, call_value_internal_short,
10410 call_value_internal_long): Updated the attributes.
10411 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
10412 clobbered and attributes are updated.
10413 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
10414 Update to support new targets. CC_REGNUM register is clobbered.
10415 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
10417 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
10419 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
10420 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
10421 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
10422 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
10423 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
10424 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
10425 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
10426 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
10427 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
10428 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
10429 point instructions defined for V850e2v3 target.
10430 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
10431 Add support for V850E2 targets and CC_REGNUM register is clobbered.
10432 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
10433 support for new targets.
10434 * config/v850/v850-modes.def: New file.
10435 * config/v850/v850.opt(mstrict-align): Remove.
10436 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
10437 mv850e2v3): New command line options for V850.
10438 * config.gcc: Update the newly added files.
10439 * doc/invoke.texi: Update the newly added command line options for
10442 2010-07-26 Richard Guenther <rguenther@suse.de>
10444 PR tree-optimization/45052
10445 * ipa-pure-const.c (check_stmt): Check volatileness.
10447 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
10450 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
10451 * config/sparc/sparc.c: Include reload.h.
10452 (legitimize_tls_address): Rename into...
10453 (sparc_legitimize_tls_address): ...this.
10454 (legitimize_pic_address): Rename into...
10455 (sparc_legitimize_pic_address): ...this.
10456 (sparc_expand_move): Adjust to above renaming.
10457 (sparc_tls_referenced_p): Likewise.
10458 (sparc_legitimize_tls_address): Likewise.
10459 (sparc_legitimize_pic_address): Likewise.
10460 (sparc_legitimize_address): Likewise.
10461 (sparc_output_mi_thunk): Likewise.
10462 (sparc_legitimize_reload_address): New global function. Recognize
10463 (lo_sum (high ...) ...) patterns generated by earlier passes.
10464 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
10466 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
10469 * config/sparc/predicates.md (memory_reg_operand): Delete.
10470 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
10471 (*sync_compare_and_swap): Encode the address form in the pattern.
10472 (*sync_compare_and_swapdi_v8plus): Likewise.
10474 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
10476 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
10477 Streamline paragraph on compatibility with the system compiler.
10479 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
10481 PR middle-end/45035
10482 * alias.c (true_dependence_1): Fix thinko in merge of old
10483 true_dependence and canon_true_dependence.
10485 2010-07-23 Jan Hubicka <jh@suse.cz>
10487 * lto-streamer-out.c (write_symbol): Fix visibilities of external
10490 2010-07-23 Le-Chun Wu <lcwu@google.com>
10492 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
10493 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
10494 and an unnecessary assignment.
10495 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
10496 self-assign warning.
10497 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
10498 unnecessary self-init.
10500 2010-07-23 Richard Guenther <rguenther@suse.de>
10503 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
10504 for -flto and -fwhopr.
10506 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
10509 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
10510 (stmp-int-hdrs): Prefix/postfix headers by include_next.
10511 * config.gcc (user_headers_inc_next_pre): New.
10512 (user_headers_inc_next_post): Likewise.
10513 (*-w64-mingw*): Use for float.h post-fixing, and for
10514 stddef.h/stdarg.h pre-fixing by include_next.
10515 * configure.ac (user_headers_inc_next_post): New.
10516 (user_headers_inc_next_pre): New.
10517 * configure: Regenerated.
10519 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10521 * configure.ac: Don't disable TLS on Solaris 8/9 by default
10522 Set tga_func for Solaris 2/x86 resp. SPARC.
10523 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
10524 (LIB_THREAD_LDFLAGS_SPEC): Define.
10525 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
10526 * configure: Regenerate.
10527 * config.in: Regenerate.
10528 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
10529 -pthread, -threads, LIB_TLS_SPEC with -pthread.
10530 * doc/install.texi (Specific, *-*-solaris2*): Document use of
10531 alternate thread libraries on Solaris 8.
10532 Document TLS patch requirements.
10533 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
10537 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
10540 2010-07-23 Jakub Jelinek <jakub@redhat.com>
10542 * tree.h (struct tree_base): Add nameless_flag bitfield.
10543 (TYPE_NAMELESS, DECL_NAMELESS): Define.
10544 * omp-low.c (create_omp_child_function, scan_omp_parallel,
10545 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
10546 DECL_ARTIFICIAL where needed.
10547 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
10548 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
10549 has DECL_NAMELESS set.
10551 2010-07-23 Martin Jambor <mjambor@suse.cz>
10553 PR tree-optimization/44915
10554 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
10555 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
10556 (analyze_function): Likewise.
10558 2010-07-23 Martin Jambor <mjambor@suse.cz>
10560 PR tree-optimization/44914
10561 * tree-sra.c (sra_modify_function_body): Return true if CFG was
10562 changed, add purging dead eh edges.
10563 (ipa_sra_modify_function_body): Return true if CFG was changed,
10564 simplify purging dead eh edges.
10565 (modify_function): Return true if CFG was changed.
10566 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
10568 (ipa_early_sra): Likewise.
10570 2010-07-23 Jie Zhang <jie@codesourcery.com>
10573 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
10575 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
10576 false if ! tree_versionable_function_p.
10578 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
10580 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
10581 * ipa-pure-const.c (special_builtlin_state): Remove
10582 BUILT_IN_ARGS_INFO case.
10583 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
10584 * builtins.c (expand_builtin): Likewise.
10585 (expand_builtin_args_info): Remove.
10586 * doc/tm.texi (__builtin_args_info): Remove.
10587 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
10588 * doc/tm.text.in: Likewise.
10590 2010-07-23 Richard Guenther <rguenther@suse.de>
10592 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
10593 (lto_symtab_merge_decls_2): Likewise.
10594 * tree-ssa.c (useless_type_conversion_p): Likewise.
10595 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10596 * gimple.c (gtc_visited2, gtc_ob2): Remove.
10597 (struct type_pair_d): Make same_p an array indexed by mode.
10599 (lookup_type_pair): Update initialization.
10600 (struct sccs): Adjust same_p type.
10601 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
10603 (print_gimple_types_stats): Likewise.
10604 * gimple.h (enum gtc_mode): New.
10605 (gimple_types_compatible_p): Adjust prototype.
10607 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
10609 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
10610 again after processing insn.
10612 2010-07-23 Jie Zhang <jie@codesourcery.com>
10614 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
10615 proper words when !tree_versionable_function_p.
10617 2010-07-23 Richard Guenther <rguenther@suse.de>
10619 PR tree-optimization/45037
10620 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
10622 2010-07-23 Jie Zhang <jie@codesourcery.com>
10624 * doc/extend.texi: Remove IP2K from the description of naked attribute.
10627 2010-07-10 Andi Kleen <ak@linux.intel.com>
10630 * lto-opts.c (lto_write_options): Add NULL file_data argument to
10631 lto_get_section_name.
10632 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10633 * lto-streamer-out.c (produce_asm): Likewise.
10634 (copy_function): Likewise.
10635 (produce_symtab): Likewise.
10636 (produce_asm_for_decls): Likewise.
10637 * lto-streamer.c (lto_get_section_name): Add file_data argument.
10638 Rewrite to add random postfix to LTO sections.
10639 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
10640 (lto_get_section_name): Add file_data argument to prototype.
10642 2010-07-10 Andi Kleen <ak@linux.intel.com>
10644 * lto-section-in.c (lto_section_name): Synchronize names
10645 with lto_get_section_name.
10647 2010-07-10 Andi Kleen <ak@linux.intel.com>
10649 * lto-opts.c (lto_read_file_options): Check for missing section.
10651 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
10653 * ira.c (check_allocation): Correctly handle the case where an allocno
10654 with two objects was allocated to a single reg.
10656 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
10658 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
10659 (is_widening_mult_p): Likewise.
10660 (convert_to_widen): Use them.
10661 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
10662 well as integer ones.
10664 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
10666 * alias.c (true_dependence_1): New function, merged version of
10667 true_dependence and canon_true_dependence.
10668 (true_dependence): Simplify.
10669 (canon_true_dependence): Simplify.
10671 2010-07-22 Richard Henderson <rth@redhat.com>
10674 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
10675 of V4SFmode for the SSE saves; increase stack alignment if needed.
10676 (ix86_gimplify_va_arg): Don't increase stack alignment here.
10678 2010-07-22 Jakub Jelinek <jakub@redhat.com>
10681 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
10682 call cprop_find_used_regs again via note_uses.
10684 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
10686 * alias.c (get_alias_set): Fix formatting issues.
10688 2010-07-22 Steve Ellcey <sje@cup.hp.com>
10690 PR middle-end/44878
10691 * stmt.c (expand_value_return): Call promote_function_mode with
10692 a for_return argument of 2 when returning by reference.
10694 2010-07-22 Dodji Seketeli <dodji@redhat.com>
10697 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
10698 unit DIE if we can find the scope DIE.
10700 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
10702 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
10703 changed. Initialize OBJECT_SUBWORD.
10704 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
10705 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
10706 all callers changed.
10707 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
10708 (finish_allocno): Likewise.
10709 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
10710 (remove_low_level_allocnos): Likewise.
10711 (update_bad_spill_attribute): Likewise.
10712 (setup_min_max_allocno_live_range_point): Likewise.
10713 (sort_conflict_id_map): Likewise.
10714 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
10715 (ior_hard_reg_conflicts): New function.
10716 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
10717 (compress_conflict_vecs): Iterate over objects, not allocnos.
10718 (ira_add_live_range_to_object): New function.
10719 (object_range_compare_func): Renamed from allocno_range_compare_func.
10720 All callers changed.
10721 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
10722 subobjects, widen the min/max range of the lowest-order object to
10723 potentially include all other such low-order objects.
10724 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
10725 (check_allocation): Likewise. Use more fine-grained tests for register
10727 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
10728 allocno subobjects.
10729 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
10730 choices about which bits to set in each set. Don't use
10731 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
10732 using the multiple sets we computed.
10733 (push_allocno_to_stack): Iterate over allocno subobjects.
10734 (all_conflicting_hard_regs_coalesced): New static function.
10735 (setup_allocno_available_regs_num): Use it.
10736 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
10738 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
10739 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10740 by ALLOCNO_NUM_OBJECTS.
10741 (calculate_spill_cost): Likewise.
10742 (color_pass): Express if statement in a more normal way.
10743 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
10744 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
10745 (setup_slot_coalesced_allocno_live_ranges): Likewise.
10746 (allocno_reload_assign): Likewise.
10747 (ira_reassign_pseudos): Likewise.
10748 (fast_allocation): Likewise.
10749 * ira-conflicts.c (build_conflict_bit_table): Likewise.
10750 (print_allocno_conflicts): Likewise.
10751 (ira_build_conflicts): Likewise.
10752 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
10753 callers changed. Test subword 0 of each allocno for conflicts.
10754 (build_object_conflicts): Renamed from build_allocno_conflicts. All
10755 callers changed. Iterate over allocno subobjects.
10756 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
10757 * ira-int.h (struct ira_allocno): New member: num_objects.
10758 Rename object to objects and change it into an array.
10759 (ALLOCNO_OBJECT): Add new argument N.
10760 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
10761 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
10762 (ior_hard_reg_conflicts): Declare.
10763 (ira_add_live_range_to_object): Declare.
10764 (ira_allocno_object_iterator): New.
10765 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
10766 (FOR_EACH_ALLOCNO_OBJECT): New macro.
10767 * ira-lives.c (objects_live): Renamed from allocnos_live; all
10769 (allocnos_processed): New sparseset.
10770 (make_object_born): Renamed from make_allocno_born; take an
10771 ira_object_t argument. All callers changed.
10772 (make_object_dead): Renamed from make_allocno_dead; take an
10773 ira_object_t argument. All callers changed.
10774 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
10775 All callers changed.
10776 (mark_pseudo_regno_live): Iterate over allocno subobjects.
10777 (mark_pseudo_regno_dead): Likewise.
10778 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
10780 (mark_ref_live): Detect subword accesses and call
10781 mark_pseudo_regno_subword_live as appropriate.
10782 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
10783 (process_bb_nodes_live): Deal with object-related updates first; set
10784 and test bits in allocnos_processed to avoid computing allocno
10785 statistics more than once.
10786 (create_start_finish_chains): Iterate over objects, not allocnos.
10787 (print_object_live_ranges): New function.
10788 (print_allocno_live_ranges): Use it.
10789 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
10792 2010-07-22 Richard Guenther <rguenther@suse.de>
10795 * gimple.c (gtc_next_dfs_num): New global.
10796 (struct sccs): Make value a union, add integer same_p member.
10797 (gtc_visit): New function.
10798 (gimple_types_compatible_p_1): New function, split out from ...
10799 (gimple_types_compatible_p): ... here. Start a DFS walk here.
10800 (iterative_hash_gimple_type): Adjust for sccs change.
10802 2010-07-22 Martin Jambor <mjambor@suse.cz>
10804 PR tree-optimization/44891
10805 * tree-sra.c: Include gimple-pretty-print.h.
10806 (replace_uses_with_default_def_ssa_name): Renamed to
10807 get_repl_default_def_ssa_name, return the new SSA name instead of
10808 replacing the old one.
10809 (sra_modify_assign): Dump a message when removing a load, if the LHS
10810 is an SSA_NAME, do not do any propagation, just set the RHS to a
10811 default definition SSA NAME, type convert if necessary.
10812 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
10814 2010-07-22 Richard Guenther <rguenther@suse.de>
10816 PR tree-optimization/45017
10817 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
10818 TYPE_PRECISION of integral types in addition to size.
10820 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10822 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
10823 when no C library is specified.
10825 2010-07-22 Martin Jambor <mjambor@suse.cz>
10827 * ipa-prop.h (struct ipa_node_params): Updated comment.
10828 (struct ipa_edge_args): Likewise.
10829 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
10831 2010-07-22 Martin Jambor <mjambor@suse.cz>
10833 * cgraphunit.c (verify_edge_count_and_frequency): New function.
10834 (verify_cgraph_node): Verify frequencies of indirect edges.
10835 * tree-inline.c (tree_function_versioning): Update frequencies of
10838 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10841 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
10842 Set *arm_rev to be predicable.
10844 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
10846 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
10847 (LINK_COMMAND_SPEC_A): New.
10849 (DSYMUTIL_SPEC): New.
10850 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
10851 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
10853 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
10855 * calls.c (load_register_parameters): Move check for zero
10856 sized items so that only the call to
10857 mem_overlaps_already_clobbered_arg_p () is protected.
10859 2010-07-22 Jan Hubicka <jh@suse.cz>
10861 * ipa-pure-const.c (varying_state): Break out from ...
10862 (get_function_state): ... here; always return varying_state
10863 when state would be NULL otherwise.
10864 (remove_node_data): Do not free varying state.
10866 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
10869 PR middle-end/45009
10870 * postreload.c: Include "target.h".
10871 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
10873 (fixup_debug_insns): Don't copy the rtx.
10874 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
10875 Don't copy when replacing. Call fixup_debug_insns in the case where
10876 we merged one add with another.
10877 (reload_combine_recognize_pattern): Fail if there aren't any uses.
10878 Try harder to determine whether we're picking a valid index register.
10879 Don't set store_ruid for an insn we're going to scan in the
10881 (reload_combine): Remove unused code.
10882 (reload_combine_note_use): When updating use information for
10883 an old insn, ignore a use that occurs after store_ruid.
10884 * Makefile.in (postreload.o): Update dependencies.
10886 * function.c (record_hard_reg_sets): Restrict the previous change
10887 to cases where the incoming nominal mode is the same as the
10888 incoming promoted mode and everything happens in MODE_INT.
10890 2010-07-21 Jakub Jelinek <jakub@redhat.com>
10893 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
10894 ASM_OPERANDS_OUTPUT_IDX.
10895 (adjust_insn): For inline asm with multiple sets ensure first
10896 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
10899 2010-07-21 Richard Henderson <rth@redhat.com>
10901 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
10902 comparison for avoiding xmm register saves. Emit the xmm register
10904 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
10905 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
10906 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
10907 Remove patterns and the associated splitters.
10909 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
10911 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
10912 and imagine parts of a complex, so that they can have the same
10913 base and fall into the same group.
10915 2010-07-21 Richard Guenther <rguenther@suse.de>
10918 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
10919 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
10920 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
10922 2010-07-21 Martin Jambor <mjambor@suse.cz>
10924 PR tree-optimization/44900
10925 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
10926 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
10928 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
10930 PR middle-end/44738
10931 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
10933 2010-07-21 Richard Guenther <rguenther@suse.de>
10935 PR middle-end/45013
10936 * tree-ssa.c (useless_type_conversion_p): Dispatch to
10937 gimple_types_compatible_p only when in lto.
10938 * gimple.c (gimple_types_compatible_p): Use canonical types
10939 to speed up comparison.
10941 2010-07-21 Richard Guenther <rguenther@suse.de>
10943 * tree-flow.h (referenced_var): Move define ...
10944 * tree-flow-inline.h (referenced_var): ... here as an inline
10945 function. Assert here ...
10946 * tree-dfa.c (referenced_var_lookup): ... instead of here.
10947 * tree-ssa.c (maybe_optimize_var): Check if the variable
10948 is in referenced vars.
10949 (execute_update_addresses_taken): Remove old broken check.
10950 * gimple-pretty-print.c (pp_points_to_solution): Use
10951 referenced_var_lookup.
10952 * tree-into-ssa.c (dump_decl_set): Likewise.
10954 2010-07-21 Jakub Jelinek <jakub@redhat.com>
10957 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
10958 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
10961 2010-07-20 Richard Henderson <rth@redhat.com>
10963 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
10965 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
10967 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
10968 computing the sum of the stack pointer and a large constant.
10969 * config/arm/constraints.md (M): Remove superfluous parentheses.
10970 (Pc): New constraint.
10972 2010-07-20 Jakub Jelinek <jakub@redhat.com>
10975 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
10976 operand's type if exp is tcc_unary class tree.
10978 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
10980 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
10981 Reverse sense of if_then_else condition.
10983 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
10985 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
10986 * config/rs6000/rs6000.c (rs6000_override_options): Set
10987 rs6000_block_move_inline_limit appropriately.
10988 (expand_block_move): Use rs6000_block_move_inline_limit.
10989 * doc/invoke.texi (mblock-move-inline-limit): Document.
10991 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
10993 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
10994 FROM and TO. All callers changed. Don't look for tracked uses,
10995 just scan the RTL for DEBUG_INSNs and substitute.
10996 (reload_combine_recognize_pattern): Call fixup_debug_insns.
10997 (reload_combine): Ignore DEBUG_INSNs.
10999 2010-07-20 Jakub Jelinek <jakub@redhat.com>
11001 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
11005 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
11006 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
11007 instead of the result's type.
11009 2010-07-20 Richard Guenther <rguenther@suse.de>
11011 PR tree-optimization/44977
11012 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
11015 2010-07-20 Richard Guenther <rguenther@suse.de>
11017 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
11018 (lto_symtab_merge_decls_2): Likewise.
11019 * gimple.h (gimple_types_compatible_p): Declare.
11020 * gimple.c (gimple_queue_type_fixup): Remove.
11021 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
11022 (gimple_compatible_complete_and_incomplete_type_p): New function.
11023 (gimple_types_compatible_p): Adjust.
11024 (gimple_register_type): Remove type fixup code.
11025 (print_gimple_types_stats): Adjust.
11026 (free_gimple_type_tables): Likewise.
11027 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
11028 * tree-ssa.c (useless_type_conversion_p): Likewise.
11030 2010-07-20 Richard Guenther <rguenther@suse.de>
11032 PR middle-end/44971
11033 PR middle-end/44988
11034 * tree-ssa.c (maybe_optimize_var): New function split out from ...
11035 (execute_update_addresses_taken): ... here.
11036 (non_rewritable_mem_ref_base): Likewise.
11037 (execute_update_addresses_taken): Do not iterate over all referenced
11038 vars but just all local decls and parms.
11039 Properly check call and asm arguments and rewrite call arguments.
11041 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
11043 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
11045 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
11047 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
11049 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
11051 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11053 * gengtype.c (start_root_entry): New function, split out from
11054 write_root. Check whether V is null and raise an error if so.
11055 (write_field_root): Check for V being null. Don't raise an error here;
11056 set V to null instead.
11057 (write_root): Update comment above function. Use start_root_entry.
11059 2010-07-19 Xinliang David Li <davidxl@google.com>
11062 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
11064 (find_uninit_use): Add dump.
11065 (is_use_properly_guarded): Ditto.
11066 (warn_uninitialized_phi): Ditto.
11067 (execute_late_warn_uninitialized): Ditto.
11069 2010-07-19 Richard Guenther <rguenther@suse.de>
11071 PR middle-end/44941
11072 * expr.c (emit_block_move_hints): Move zero size check first.
11073 Move asserts to more useful places.
11074 * calls.c (load_register_parameters): Check for zero size.
11076 2010-07-19 Richard Henderson <rth@redhat.com>
11078 * tree-optimize.c (execute_all_early_local_passes): New. Change
11079 cgraph_state here ...
11080 (execute_early_local_optimizations): ... not here. Remove.
11081 (pass_early_local_passes, pass_all_early_optimizations): Update.
11083 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
11085 * postreload.c (reload_combine_closest_single_use): Ignore the
11086 number of uses for DEBUG_INSNs.
11087 (fixup_debug_insns): New static function.
11088 (reload_combine_recognize_const_pattern): Use it. Don't let the
11089 main loop be affected by DEBUG_INSNs.
11090 Really disallow moving adds past a jump insn.
11091 (reload_combine_recognize_pattern): Don't update use_ruid here.
11092 (reload_combine_note_use): Do it here.
11093 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
11095 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
11097 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
11099 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
11101 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
11103 * config/i386/darwin.h: Define darwin_emit_branch_islands.
11104 (TARGET_MACHO_BRANCH_ISLANDS): New.
11105 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
11106 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
11108 * config/i386/i386.c (output_pic_addr_const): Do not emit
11109 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
11110 (x86_output_mi_thunk): Adjust symbol creation.
11111 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
11112 Remove out of date comment.
11113 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
11114 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
11115 (DARWIN_GENERATE_ISLANDS): Ditto.
11116 (output_call): Do not emit branch islands unless
11117 darwin_emit_branch_islands is set.
11118 * config/darwin.c: Declare darwin_emit_branch_islands.
11119 (machopic_indirect_data_reference): Do not emit unless
11120 darwin_emit_branch_islands is set.
11121 (darwin_override_options): Set darwin_emit_branch_islands
11122 where it is needed.
11123 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
11125 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11127 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11128 sse_runtime, sse2_runtime.
11130 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
11132 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
11133 low half of a single-register SCmode return value before ORing
11134 it with the high half.
11135 * config/mips/mips16.S (MERGE_GPRf): Likewise.
11137 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11140 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
11143 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
11146 * postreload.c (reload_cse_move2add): Return bool, true if anything.
11147 changed. All callers changed.
11148 (move2add_use_add2_insn): Likewise.
11149 (move2add_use_add3_insn): Likewise.
11150 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
11152 (RELOAD_COMBINE_MAX_USES): Bump to 16.
11153 (last_jump_ruid): New static variable.
11154 (struct reg_use): New members CONTAINING_MEM and RUID.
11155 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
11156 (reload_combine_split_one_ruid, reload_combine_split_ruids,
11157 reload_combine_purge_insn_uses, reload_combine_closest_single_use
11158 reload_combine_purge_reg_uses_after_ruid,
11159 reload_combine_recognize_const_pattern): New static functions.
11160 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
11161 is true for our reg and that we have available index regs.
11162 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
11163 callers changed. Use them to initialize fields in struct reg_use.
11164 (reload_combine): Initialize last_jump_ruid. Be careful when to
11165 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
11166 Call reload_combine_recognize_const_pattern.
11167 (reload_combine_note_store): Update REAL_STORE_RUID field.
11169 2010-07-16 Jason Merrill <jason@redhat.com>
11171 * Makefile.in (opts-common.o): Depend on options.h.
11173 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
11175 * tree.c (build_common_builtin_nodes): Use build_function_type_list
11176 instead of build_function_type.
11177 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
11178 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
11180 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
11182 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
11184 (rs6000_emit_int_cmove): Use function pointers for insn generation.
11185 Don't force values into registers unnecessarily.
11186 (output_isel): Assert that we're not given conditions we can't handle.
11187 Delete corresponding code.
11188 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
11189 scc_comparison_operator constraint. Permit 0 for the consequent
11190 operand. Permit any GPR for the alternative operand.
11191 (isel_unsigned_<mode>): Likewise.
11193 2010-07-16 Jakub Jelinek <jakub@redhat.com>
11196 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
11197 argument to const_tree.
11198 * config/i386/i386.c (function_arg_advance): If padding needs to be
11199 inserted before argument, increment cum->words by number of padding
11201 (contains_aligned_value_p): Change argument to const_tree.
11202 (ix86_function_arg_boundary): Change second argument to const_tree.
11204 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
11207 * function.c (record_hard_reg_sets): New static function.
11208 (assign_parm_setup_reg): If an optab for extending exists and the
11209 generated code clobbbers no hard regs, emit the insn directly and
11210 create a REG_EQUIV note.
11212 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
11214 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
11216 * c-typeck.c (push_init_level): Likewise.
11217 (process_init_element): Likewise.
11219 2010-07-15 Anatoly Sokolov <aesok@post.ru>
11221 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
11222 (integer_three_node): Add.
11223 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
11224 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
11225 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
11226 of call build_int_cst.
11227 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
11228 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
11229 (find_interesting_uses_address): Ditto.
11230 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
11231 * tree-eh.c (lower_eh_constructs_2): Ditto.
11232 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
11233 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
11234 * expmed.c (expand_divmod): Ditto.
11235 * tree-mudflap.c (mx_register_decls): Ditto.
11236 * varasm.c (array_size_for_constructor): Ditto.
11237 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
11238 * c-parser.c (c_parser_postfix_expression): Ditto.
11240 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
11242 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
11243 New static variables.
11244 (reload_combine_recognize_pattern): New static function, broken out
11246 (reload_combine): Use it. Only initialize first_index_reg and
11247 last_index_reg once.
11249 2010-07-15 Richard Henderson <rth@redhat.com>
11251 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
11254 2010-07-15 Jan Hubicka <jh@suse.cz>
11256 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
11257 comdats for broken gold.
11258 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
11260 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
11262 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
11264 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
11266 * tree.h (DECL_CHAIN): Define.
11267 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
11268 * c-decl.c: Likewise.
11269 * c-parser.c: Likewise.
11270 * c-typeck.c: Likewise.
11271 * cfgexpand.c: Likewise.
11272 * cgraph.c: Likewise.
11273 * cgraphunit.c: Likewise.
11274 * combine.c: Likewise.
11275 * config/alpha/alpha.c: Likewise.
11276 * config/arm/arm.c: Likewise.
11277 * config/frv/frv.c: Likewise.
11278 * config/i386/i386.c: Likewise.
11279 * config/i386/winnt-cxx.c: Likewise.
11280 * config/ia64/ia64.c: Likewise.
11281 * config/iq2000/iq2000.c: Likewise.
11282 * config/mep/mep.c: Likewise.
11283 * config/mips/mips.c: Likewise.
11284 * config/pa/som.h: Likewise.
11285 * config/rs6000/rs6000.c: Likewise.
11286 * config/s390/s390.c: Likewise.
11287 * config/sh/sh.c: Likewise.
11288 * config/sh/symbian-cxx.c: Likewise.
11289 * config/sparc/sparc.c: Likewise.
11290 * config/spu/spu.c: Likewise.
11291 * config/stormy16/stormy16.c: Likewise.
11292 * config/vxworks.c: Likewise.
11293 * config/xtensa/xtensa.c: Likewise.
11294 * coverage.c: Likewise.
11295 * dbxout.c: Likewise.
11296 * dwarf2out.c: Likewise.
11297 * emit-rtl.c: Likewise.
11298 * expr.c: Likewise.
11299 * function.c: Likewise.
11300 * gimple-low.c: Likewise.
11301 * gimple-pretty-print.c: Likewise.
11302 * gimplify.c: Likewise.
11303 * integrate.c: Likewise.
11304 * ipa-inline.c: Likewise.
11305 * ipa-prop.c: Likewise.
11306 * ipa-split.c: Likewise.
11307 * ipa-struct-reorg.c: Likewise.
11308 * ipa-type-escape.c: Likewise.
11309 * langhooks.c: Likewise.
11310 * lto-cgraph.c: Likewise.
11311 * omp-low.c: Likewise.
11312 * stor-layout.c: Likewise.
11313 * tree-cfg.c: Likewise.
11314 * tree-complex.c: Likewise.
11315 * tree-dfa.c: Likewise.
11316 * tree-dump.c: Likewise.
11317 * tree-inline.c: Likewise.
11318 * tree-mudflap.c: Likewise.
11319 * tree-nested.c: Likewise.
11320 * tree-object-size.c: Likewise.
11321 * tree-pretty-print.c: Likewise.
11322 * tree-sra.c: Likewise.
11323 * tree-ssa-live.c: Likewise.
11324 * tree-ssa-loop-niter.c: Likewise.
11325 * tree-ssa-math-opts.c: Likewise.
11326 * tree-ssa-reassoc.c: Likewise.
11327 * tree-ssa-sccvn.c: Likewise.
11328 * tree-ssa-structalias.c: Likewise.
11329 * tree-tailcall.c: Likewise.
11330 * tree-vrp.c: Likewise.
11331 * tree.c: Likewise.
11332 * var-tracking.c: Likewise.
11333 * varasm.c: Likewise.
11335 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11338 * config/spu/spu.c (spu_expand_builtin_1): Allow references
11339 (as well as pointers) as argument to mask_for_load builtins.
11341 2010-07-15 Richard Guenther <rguenther@suse.de>
11343 PR tree-optimization/44946
11344 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
11345 with accessing only padding properly.
11347 2010-07-15 Jan Hubicka <jh@suse.cz>
11349 * ipa.c (function_and_variable_visibility): Variables marked as used
11350 should not be localized.
11352 2010-07-15 Jan Hubicka <jh@suse.cz>
11354 * cgraph.c: Include lto-streamer.h
11355 (change_decl_assembler_name): Work when assembler name hash is at place.
11356 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
11357 be sure to rename it to avoid name clash.
11358 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
11359 Localize hidden symbols only when locally defined.
11361 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
11363 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
11365 2010-07-15 Magnus Granberg <zorry@gentoo.org>
11366 Kevin F. Quinn <kevquinn@gentoo.org>
11368 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
11369 * common.opt: Add -Wtrampolines.
11370 * doc/invoke.texi: Add -Wtrampolines.
11372 2010-07-15 Jie Zhang <jie@codesourcery.com>
11374 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
11375 cortex_a8_issue_ls.
11377 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
11379 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
11380 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
11382 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11384 * config/spu/spu.c (reg_names): Remove prototype.
11385 (call_used_regs): Likewise.
11387 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
11389 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
11390 "unused" with attribute "used".
11391 (__JCR_END__): Likewise.
11392 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
11394 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
11396 2010-07-14 Richard Guenther <rguenther@suse.de>
11398 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
11399 (maybe_fixup_decls): Likewise.
11400 (input_gimple_stmt): Do not fixup anything.
11401 * lto-streamer-out.c (output_gimple_stmt): Make sure all
11402 non-automatic variable uses are wrapped inside a MEM_REF.
11404 2010-07-14 Richard Henderson <rth@redhat.com>
11406 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
11408 * varasm.c (assemble_variable): Remove early exit for functions;
11409 assert that we're given a variable.
11411 2010-07-14 Jie Zhang <jie@codesourcery.com>
11413 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
11414 cortex_a8_default when neon_type is not none.
11416 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
11418 * lower-subreg.c (subreg_context): New static bitmap.
11419 (decompose_multiword_subregs): Allocate and free it.
11420 (find_decomposable_subregs): Set a bit in it for a register that
11421 occurs in a subreg that changes mode but not size.
11422 (can_decompose_p): Test it instead of non_decomposable_context.
11424 2010-07-14 Richard Guenther <rguenther@suse.de>
11426 PR tree-optimization/44824
11427 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
11428 is_gimple_mem_ref_addr.
11429 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
11430 non-decl_address_invariant_p addresses.
11432 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
11434 * reload.c (find_reloads): Revert code to penalize small register
11435 classes that was brought in with the IRA merge.
11437 2010-07-14 Richard Guenther <rguenther@suse.de>
11439 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
11440 as base of ARRAY_REFs.
11442 2010-07-14 Richard Guenther <rguenther@suse.de>
11444 PR middle-end/44930
11445 * tree-pretty-print.c (do_niy): Do not print a newline.
11447 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
11449 * ira-int.h (struct ira_object): New.
11450 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
11451 (struct ira_allocno): Remove members min, max,
11452 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
11453 conflict_allocnos_num and conflict_vec_p. Add new member object.
11454 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
11455 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
11456 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
11457 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
11458 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
11459 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
11460 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
11461 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
11462 an ira_object_t rather than ira_allocno_t. All uses changed.
11463 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
11464 contains a vector of ira_object_t; all uses changed.
11465 (ira_objects_num): Declare variable.
11466 (ira_create_allocno_object): Declare function.
11467 (ira_conflict_vector_profitable_p): Adjust prototype.
11468 (ira_allocate_conflict_vec): Renamed from
11469 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
11470 (ira_allocate_object_conflicts): Renamed from
11471 ira_allocate_allocno_conflicts; first arg now ira_object_t.
11472 (struct ira_object_iterator): New.
11473 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
11474 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
11475 to conflict_vec_p. All uses changed.
11476 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
11477 Changed to take into account that conflicts are now tracked for
11479 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
11480 Args changed to accept ira_object_t. All uses changed.
11481 (allocnos_conflict_p): New static function.
11482 (collected_conflict_objects): Renamed from collected_allocno_objects;
11483 now a vector of ira_object_t. All uses changed.
11484 (build_conflict_bit_table): Changed to take into account that
11485 conflicts are now tracked for objects.
11486 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
11487 (print_allocno_conflicts, ira_build_conflicts): Likewise.
11488 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
11489 setup_allocno_left_conflicts_size, allocno_reload_assign,
11490 fast_allocation): Likewise.
11491 * ira-lives.c (make_hard_regno_born, make_allocno_born)
11492 process_single_reg_class_operands, process_bb_node_lives): Likewise.
11493 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
11495 * ira-build.c (ira_objects_num): New variable.
11496 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
11497 contains a vector of ira_object_t; all uses changed.
11498 (ira_object_id_map_vec): Corresponding change.
11499 (object_pool): New static variable.
11500 (initiate_allocnos): Initialize it.
11501 (finish_allocnos): Free it.
11502 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
11504 (ira_create_allocno): Don't set members that were removed.
11505 (ira_set_allocno_cover_class): Don't change conflict hard regs.
11506 (merge_hard_reg_conflicts): Changed to take into account that
11507 conflicts are now tracked for objects.
11508 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
11509 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
11510 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
11511 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
11512 setup_min_max_conflict_allocno_ids, ): Likewise.
11513 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
11514 to ira_object_t; all callers changed.
11515 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
11516 to ira_object_t, all callers changed.
11517 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
11518 to ira_object_t, all callers changed.
11519 (conflict_check, curr_conflict_check_tick): Renamed from
11520 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
11522 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
11523 arg changed to ira_object_t, all callers changed.
11524 (create_cap_allocno): Call ira_create_allocno_object.
11525 (finish_allocno): Free the corresponding object.
11526 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
11527 callers changed. Adjusted for dealing with objects.
11528 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
11529 dealing with objects.
11530 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
11532 * ira-int.h (struct live_range): Rename allocno member to object
11533 and change type to ira_object_t.
11534 (struct ira_object): New member live_ranges.
11535 (struct ira_allocno): Remove member live_ranges.
11536 (ALLOCNO_LIVE_RANGES): Remove.
11537 (OBJECT_LIVE_RANGES): New macro.
11538 (ira_create_live_range, ira_copy_live_range_list,
11539 ira_merge_live_range_list, ira_live_ranges_intersect_p,
11540 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
11541 * ira-build.c (ira_create_object): Initialize live ranges here.
11542 (ira_create_allocno): Not here.
11543 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
11544 changed to ira_object_t, all callers changed.
11545 (copy_live_range): Rename from copy_allocno_live_range, all callers
11547 (ira_copy_live_range_list): Rename from
11548 ira_copy_allocno_live_range_list, all callers changed.
11549 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
11550 all callers changed.
11551 (ira_live_ranges_intersect_p): Rename from
11552 ira_allocno_live_ranges_intersect_p, all callers changed.
11553 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
11555 (ira_finish_live_range_list): Rename from
11556 ira_finish_allocno_live_range_list, all callers changed.
11557 (change_object_in_range_list): Rename from change_allocno_in_range_list,
11558 last arg changed to ira_object_t, all callers changed.
11559 (finish_allocno): Changed to expect live ranges in the allocno's object.
11560 (move_allocno_live_ranges, copy_allocno_live_ranges,
11561 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
11562 ira_flattening, ira_build): Likewise.
11563 * ira-color.c (allocnos_have_intersected_live_ranges_p,
11564 slot_coalesced_allocno_live_ranges_intersect,
11565 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
11566 * ira-conflicts.c (build_conflict_bit_table): Likewise.
11567 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
11568 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
11569 make_allocno_dead, create_start_finish_chains,
11570 remove_some_program_points_and_update_live_ranges,
11571 ira_debug_live_range_list): Likewise.
11573 * ira-int.h (ira_object_conflict_iterator): Rename from
11574 ira_allocno_conflict_iterator.
11575 (ira_object_conflict_iter_init): Rename from
11576 ira_allocno_conflict_iter_init, second arg changed to
11577 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
11578 FOR_EACH_ALLOCNO_CONFLICT.
11579 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
11580 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
11581 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
11582 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11584 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
11587 * tree-dump.c (dump_options): Add enumerate_locals entry.
11588 Add TDF_NOID exclusion to all entry.
11589 * tree-dump.h (dump_enumerated_decls): Declare.
11590 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
11591 Don't display type uid.
11592 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
11593 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
11594 * tree-ssa-live.c: Include gimple.h.
11595 (numbered_tree_d): New struct.
11596 (numbered_tree): New typedef.
11597 (DEF_VEC_O (numbered_tree): New.
11598 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
11599 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
11600 (dump_enumerated_decls): Likewise.
11601 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
11602 debug info and flag_dump_final_insns, call dump_enumerated_decls.
11603 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
11604 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
11606 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
11608 * expmed.h (MAX_BITS_PER_WORD): Move to...
11609 * defaults.h (MAX_BITS_PER_WORD): ...here.
11611 2010-07-13 DJ Delorie <dj@redhat.com>
11613 * config/h8300/h8300.c (h8300_init_once): Default to
11614 -fstrict_volatile_bitfields.
11616 * config/sh/sh.c (sh_override_options): Default to
11617 -fstrict_volatile_bitfields.
11619 * config/rx/rx.c (rx_option_override): New.
11621 * config/m32c/m32c.c (m32c_override_options): Default to
11622 -fstrict_volatile_bitfields.
11624 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
11626 * tree.h (build_function_call_expr): Delete.
11627 (build_call_expr_loc_array): New function.
11628 (build_call_expr_loc_vec): New function.
11629 * tree-flow.h (struct omp_region): Change type of ws_args field
11631 * builtins.c (build_function_call_expr): Delete.
11632 (build_call_expr_loc_array): New function.
11633 (build_call_expr_loc): Call it. Use XALLOCAVEC.
11634 (build_call_expr): Likewise.
11635 (build_call_expr_loc_vec): New function.
11636 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
11637 build_function_call_expr.
11638 * expr.c (emutls_var_address): Likewise.
11639 * varasm.c (emutls_common_1): Likewise.
11640 * omp-low.c (expand_omp_atomic_mutex): Likewise.
11641 (expand_omp_taskreg): Adjust for new type of region->ws_args.
11642 (get_ws_args_for): Return a VEC instead of a tree.
11643 (expand_parallel_call): Call build_call_expr_loc_vec instead of
11644 build_function_call_expr.
11645 * stor-layout.c (self_referential_size): Likewise.
11647 2010-07-13 Jakub Jelinek <jakub@redhat.com>
11650 * recog.c (constrain_operands): Allow side-effects in memory
11651 operands if either < or > constraint is used, rather than if
11652 both < and > is used.
11654 2010-07-13 Richard Guenther <rguenther@suse.de>
11656 PR middle-end/44911
11657 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
11658 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
11661 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
11664 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
11665 to variable emited.
11666 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
11667 * config/sh/sh.md (symGOT_load): Likewise.
11668 (symDTPOFF2reg): Likewise.
11669 (symTPOFF2reg): Likewise.
11671 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11673 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
11674 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
11676 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11678 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
11680 Find ucontext_t * on Solaris 11.
11681 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
11682 Handle new Solaris 11 __sighndlr patterns.
11684 2010-07-13 Jakub Jelinek <jakub@redhat.com>
11687 * vec.h (VEC_block_remove): Fix comment.
11688 * tree-ssa-live.c (remove_unused_locals): Don't use
11689 VEC_unordered_remove on local_decls, instead replace a single
11690 vector element in each iteration if at least one element had
11691 to be removed and VEC_truncate at the end.
11692 * omp-low.c (expand_omp_taskreg): Likewise.
11694 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
11696 * c-decl.c (finish_function): Fix typo in comment.
11698 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
11701 * postreload.c (move2add_use_add3_insn): Silence gcc warning
11704 2010-07-12 Jakub Jelinek <jakub@redhat.com>
11706 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
11707 (simplify_stmt_using_ranges): Use it.
11709 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11711 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
11712 member. Do not mark as GTY(()).
11713 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
11714 (spu_builtin_decls): New static variable.
11715 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
11716 (spu_init_builtins): Likewise.
11717 (spu_builtin_mul_widen_even): Likewise.
11718 (spu_builtin_mul_widen_odd): Likewise.
11719 (spu_builtin_mask_for_load): Likewise.
11720 (spu_builtin_vec_perm): Likewise.
11721 * config/spu/spu-c.c: Include "target.h".
11722 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
11723 of using spu_builtins[].fndecl.
11725 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11727 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
11728 imply -minterlink-mips16.
11730 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11732 * config/mips/mips.h (mips16_globals): Declare.
11733 (SWITCHABLE_TARGET): Define.
11734 * config/mips/mips.c: Include target-globals.h.
11735 (mips16_globals): New variable.
11736 (mips_set_mips16_mode): Use save_target_globals and
11737 restore_target_globals instead of target_reinit.
11739 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11741 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
11742 to say that the function can be called more than once.
11743 * target-globals.c (save_target_globals): Call init_reg_sets.
11745 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11747 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
11748 * bb-reorder.h: New file.
11749 * bb-reorder.c (default_target_bb_reorder): New variable.
11750 (this_target_bb_reorder): New conditional variable.
11751 (uncond_jump_length): Redefine as a macro.
11752 * target-globals.h (this_target_bb_reorder): Declare.
11753 (target_globals): Add a bb_reorder field.
11754 (restore_target_globals): Copy the bb_reorder field to
11755 this_target_bb-reorder.
11756 * target-globals.c: Include bb-reorder.h.
11757 (default_target_globals): Initialize the bb_reorder field.
11758 (save_target_globals): Likewise.
11760 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11762 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
11763 * gcse.h: New file.
11764 * gcse.c: Include gcse.h.
11765 (default_target_gcse): New variable.
11766 (this_target_gcse): New conditional variable.
11767 (can_copy): Redefine as a macro.
11768 (can_copy_init_p): New macro.
11769 (can_copy_p): Remove can_copy_init_p.
11770 * target-globals.h (this_target_gcse): Declare.
11771 (target_globals): Add a gcse field.
11772 (restore_target_globals): Copy the gcse field to this_target_gcse.
11773 * target-globals.c: Include gcse.h.
11774 (default_target_globals): Initialize the gcse field.
11775 (save_target_globals): Likewise.
11777 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11779 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
11780 and x_ira_prohibited_mode_move_regs_initialized_p.
11781 (ira_prohibited_mode_move_regs): Redefine as a macro.
11782 * ira.c (ira_prohibited_mode_move_regs): Delete.
11783 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
11785 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11787 * reload.h (target_reload): Add x_cached_reg_save_code and
11788 x_cached_reg_restore_code.
11789 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
11790 Redefine as macros.
11792 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11794 * Makefile.in (target-globals.o): Depend on builtins.h.
11795 * builtins.h: New file.
11796 * builtins.c: Include builtins.h.
11797 (default_target_builtins): New variable.
11798 (this_target_builtins): New conditional variable.
11799 (apply_args_mode, apply_result_mode): Redefine as macros.
11800 * target-globals.h (this_target_builtins): Declare.
11801 (target_globals): Add a builtins field.
11802 (restore_target_globals): Copy the builtins field to
11803 this_target_builtins.
11804 * target-globals.c: Include builtins.h.
11805 (default_target_globals): Initialize the builtins field.
11806 (save_target_globals): Likewise.
11808 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11810 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
11811 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
11813 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
11814 (alg_hash, alg_hash_used_p): New macros.
11815 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
11816 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
11817 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
11819 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11821 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
11822 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
11823 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
11824 (this_op_costs, costs_classes): Redefine as macros.
11825 (record_reg_classes): Don't take op_costs as a parameter.
11826 (record_operand_costs): Likewise. Update calls to record_reg_classes.
11827 (scan_one_insn): Update call to record_operand_costs.
11829 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11831 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
11832 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
11833 (target_ira_int): New structure.
11834 (default_target_ira_int): Declare.
11835 (this_target_ira_int): Declare as a variable or define as a macro.
11836 (ira_reg_mode_hard_regset, ira_register_move_cost)
11837 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
11838 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
11839 (prohibited_class_mode_regs, ira_important_classes_num)
11840 (ira_important_classes, ira_reg_class_intersect)
11841 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
11842 (ira_reg_class_union): Redefine as macros.
11843 * ira.h (target_ira): New structure.
11844 (default_target_ira): Declare.
11845 (this_target_ira): Declare as a variable or define as a macro.
11846 (ira_available_class_regs, ira_hard_regno_cover_class)
11847 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
11848 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
11849 (ira_class_hard_regs_num): Redefine as macros.
11850 * ira.c (default_target_ira, default_target_ira_int): New variables.
11851 (this_target_ira, this_target_ira_int): New conditional variables.
11852 (ira_reg_mode_hard_regset, ira_memory_move_cost)
11853 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
11854 (ira_class_subset_p): Delete.
11855 (no_unit_alloc_regs): Redefine as a macro.
11856 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
11857 (ira_class_hard_regs_num, ira_class_hard_reg_index)
11858 (ira_available_class_regs): Delete.
11859 (alloc_reg_class_subclasses): Redefine as a macro.
11860 (ira_reg_class_cover_size, ira_reg_class_cover)
11861 (ira_important_classes_num, ira_important_classes)
11862 (ira_important_class_nums, ira_class_translate): Delete.
11863 (cover_class_order): Document the variable's lifetime.
11864 (reorder_important_classes): Don't set ira_important_class_nums.
11865 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
11866 (ira_reg_class_super_classes, ira_reg_class_union)
11867 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
11869 (setup_reg_class_nregs): Don't set ira_max_regs.
11870 (prohibited_class_mode_regs): Delete.
11871 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
11872 (target_globals): Add ira and ira_int fields.
11873 (restore_target_globals): Copy the ira field to this_target_ira
11874 and the ira_int field to this_target_ira_int.
11875 * target-globals.c: Include ira-int.h.
11876 (default_target_globals): Initialize the ira and ira_int fields.
11877 (save_target_globals): Likewise.
11879 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11881 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
11882 * cfgloop.h (target_cfgloop): New structure.
11883 (default_target_cfgloop): Declare.
11884 (this_target_cfgloop): Declare as a variable or define as a macro.
11885 (target_avail_regs, target_clobbered_regs, target_res_regs)
11886 (target_reg_cost, target_spill_cost): Redefine as macros.
11887 * cfgloopanal.c (default_target_cfgloop): New variable.
11888 (this_target_cfgloop): New conditional variable.
11889 (target_avail_regs, target_clobbered_regs, target_res_regs)
11890 (target_reg_cost, target_spill_cost): Delete.
11891 * target-globals.h (this_target_cfgloop): Declare.
11892 (target_globals): Add a cfgloop field.
11893 (restore_target_globals): Copy the cfgloop field to
11894 this_target_cfgloop.
11895 * target-globals.c: Include cfgloop.h.
11896 (default_target_globals): Initialize the cfgloop field.
11897 (save_target_globals): Likewise.
11899 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11901 * regs.h (target_regs): Add x_direct_load, x_direct_store and
11902 x_float_extend_from_mem.
11903 (direct_load, direct_store, float_extend_from_mem): New macros.
11904 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
11906 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11908 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
11909 (target-globals.o): Depend on $(LIBFUNCS_H).
11910 * libfuncs.h: Include hashtab.h.
11911 (libfunc_entry): Moved from optabs.c.
11912 (target_libfuncs): New structure.
11913 (default_target_libfuncs): Declare.
11914 (this_target_libfuncs): Declare as a variable or define as a macro.
11915 (libfunc_table): Redefine as a macro.
11916 * optabs.c (default_target_libfuncs): New variable.
11917 (this_target_libfuncs): New conditional variable.
11918 (libfunc_table): Delete.
11919 (libfunc_entry): Moved to optabs.h.
11920 (libfunc_hash): Redefine as a macro.
11921 (hash_libfunc, eq_libfunc): Fix comments.
11922 (init_optabs): Use libfunc_hash to detect cases where the function
11923 has already been called. Clear the hash table instead of
11925 * target-globals.h (this_target_libfuncs): Declare.
11926 (target_globals): Add a libfuncs field.
11927 (restore_target_globals): Copy the libfuncs field to
11928 this_target_libfuncs.
11929 * target-globals.c: Include libfuncs.h.
11930 (default_target_globals): Initialize the libfuncs field.
11931 (save_target_globals): Likewise.
11933 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11935 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
11936 in all dependency lists.
11938 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11940 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
11941 * optabs.h (target_optabs): New structure.
11942 (default_target_optabs): Declare.
11943 (this_target_optabs): Declare as a variable or define as a macro.
11944 (optab_table, convert_optab_table, direct_optab_table): Redefine
11946 * optabs.c (default_target_optabs): New variable.
11947 (this_target_optabs): New conditional variable.
11948 (optab_table, convert_optab_table, direct_optab_table): Delete.
11949 * target-globals.h (this_target_optabs): Declare.
11950 (target_globals): Add a optabs field.
11951 (restore_target_globals): Copy the optabs field to
11952 this_target_optabs.
11953 * target-globals.c: Include expr.h and optabs.h.
11954 (default_target_globals): Initialize the optabs field.
11955 (save_target_globals): Likewise.
11957 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11959 * flags.h (target_flagstate): Add x_flag_excess_precision.
11960 (flag_excess_precision): Redefine as a macro.
11961 * toplev.c (flag_excess_precision): Delete.
11963 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11965 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
11966 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
11967 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
11968 (no_caller_save_reg_set): Redefine as a macro.
11969 * reload.h (target_reload): Add x_caller_save_initialized_p and
11971 (caller_save_initialized_p): Redefine as a macro.
11972 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
11973 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
11974 (regno_save_mode): Redefine as a macro.
11976 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11978 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
11979 * expmed.h: New file.
11980 * expmed.c (default_target_costs): New variable.
11981 (this_target_costs): New conditional variable.
11982 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
11983 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
11984 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
11985 * target-globals.h (this_target_expmed): Declare.
11986 (target_globals): Add a expmed field.
11987 (restore_target_globals): Copy the expmed field to
11988 this_target_expmed.
11989 * target-globals.c: Include expmed.h.
11990 (default_target_globals): Initialize the expmed field.
11991 (save_target_globals): Likewise.
11993 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11995 * Makefile.in (target-globals.o): Depend on reload.h.
11996 * reload.h (target_reload): New structure.
11997 (default_target_reload): Declare.
11998 (this_target_reload): Declare as a variable or define as a macro.
11999 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
12000 * reload1.c (default_target_reload): New variable
12001 (this_target_reload): New conditional variable.
12002 (indirect_symref_ok, double_reg_address_ok): Delete.
12003 (spill_indirect_levels): Redefine as a macro.
12004 * target-globals.h (this_target_reload): Declare.
12005 (target_globals): Add a reload field.
12006 (restore_target_globals): Copy the reload field to
12007 this_target_reload.
12008 * target-globals.c: Include hard-reg-set.h.
12009 (default_target_globals): Initialize the reload field.
12010 (save_target_globals): Likewise.
12012 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12014 * rtl.h (target_rtl): Add x_static_reg_base_value.
12015 * alias.c (static_reg_base_value): Redefine as a macro.
12017 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12019 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
12020 (GTFILES): Remove reginfo.c.
12021 * rtl.h (target_rtl): Add x_top_of_stack.
12022 (top_of_stack): New macro.
12023 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
12024 (top_of_stack): Delete.
12026 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12028 * regs.h (target_regs): Add x_hard_regs_of_mode,
12029 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
12030 x_may_move_out_cost and x_last_mode_for_init_move_cost.
12031 (have_regs_of_mode, contains_reg_of_mode, move_cost)
12032 (may_move_in_cost, may_move_out_cost): Redefine as macros.
12033 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
12034 (may_move_in_cost, may_move_out_cost): Delete.
12035 (last_mode_for_init_move_cost): Redefine as a macro.
12037 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12039 * hard-reg-set.h (target_hard_regs): New structure.
12040 (default_target_hard_regs): Declare.
12041 (this_target_hard_regs): Declare as a variable or define as a macro.
12042 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
12043 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
12044 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
12045 (reg_class_size, reg_class_subclasses, reg_class_subunion)
12046 (reg_class_superunion, reg_names): Redefine as macros.
12047 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
12048 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
12049 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
12050 (reg_class_contents, reg_class_size, reg_class_subclasses)
12051 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
12052 (default_target_hard_regs): New variable
12053 (this_target_hard_regs, initial_call_really_used_regs)
12054 (initial_reg_alloc_order): New conditional variables.
12055 (initial_reg_names): New variable.
12056 (init_reg_sets): Assert that initial_call_really_used_regs,
12057 initial_reg_alloc_order and initial_reg_names
12058 are all the same size as their variable counterparts. Use them to
12059 initialize those counterparts.
12060 * target-globals.h (this_target_hard_regs): Declare.
12061 (target_globals): Add a hard_regs field.
12062 (restore_target_globals): Copy the hard_regs field to
12063 this_target_hard_regs.
12064 * target-globals.c: Include hard-reg-set.h.
12065 (default_target_globals): Initialize the hard_regs field.
12066 (save_target_globals): Likewise.
12068 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12070 * Makefile.in (target-globals.o): Depend on $(RTL_H).
12071 * rtl.h (target_rtl): New structure.
12072 (default_target_rtl): Declare.
12073 (this_target_rtl): Declare as a variable or define as a macro.
12074 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
12075 Redefine as macros.
12076 * emit-rtl.c (default_target_rtl): New variable.
12077 (this_target_rtl): New conditional variable.
12078 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
12079 (return_address_pointer_rtx): Delete.
12080 (initial_regno_reg_rtx): New macro.
12081 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
12082 (init_emit_regs): Likewise.
12083 * target-globals.h (this_target_rtl): Declare.
12084 (target_globals): Add a rtl field.
12085 (restore_target_globals): Copy the rtl field to this_target_rtl.
12086 * target-globals.c: Include rtl.h.
12087 (default_target_globals): Initialize the rtl field.
12088 (save_target_globals): Likewise.
12090 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12092 * Makefile.in (target-globals.o): Depend on $(REGS_H).
12093 * regs.h (target_reg_modes): New structure.
12094 (default_target_reg_modes): Declare.
12095 (this_target_reg_modes): Declare as a variable or define as a macro.
12096 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
12097 * reginfo.c (default_target_reg_modes): New variable.
12098 (this_target_reg_modes): New conditional variable.
12099 (hard_regno_nregs, reg_raw_mode): Delete.
12100 * target-globals.h (this_target_regs): Declare.
12101 (target_globals): Add a regs field.
12102 (restore_target_globals): Copy the regs field to this_target_regs.
12103 * target-globals.c: Include regs.h.
12104 (default_target_globals): Initialize the regs field.
12105 (save_target_globals): Likewise.
12107 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12109 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
12110 * doc/tm.texi: Regenerate.
12111 * Makefile.in (OBJS-common): Add target-globals.o.
12112 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
12113 and target-globals.h.
12114 (target-globals.o): New rule.
12115 (GTFILES): Include $(srcdir)/target-globals.h.
12116 * defaults.h (SWITCHABLE_TARGET): Define.
12117 * gengtype.c (open_base_files): Add target-globals.h to the
12119 * target-globals.h: New file.
12120 * target-globals.c: Likewise.
12122 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
12123 * flags.h (target_flag_state): New structure.
12124 (default_target_flag_state): Declare.
12125 (this_target_flag_state): Declare as a variable or define as a macro.
12126 (align_loops_log): Redefine as a macro.
12127 (align_loops_max_skip, align_jumps_log): Likewise.
12128 (align_jumps_max_skip, align_labels_log): Likewise.
12129 (align_labels_max_skip, align_functions_log): Likewise.
12130 * toplev.c (default_target_flag_state): New variable.
12131 (this_target_flag_state): New conditional variable.
12132 (align_loops_log): Delete.
12133 (align_loops_max_skip, align_jumps_log): Likewise.
12134 (align_jumps_max_skip, align_labels_log): Likewise.
12135 (align_labels_max_skip, align_functions_log): Likewise.
12136 * target-globals.h (this_target_flag_state): Declare.
12137 (target_globals): Add a flag_state field.
12138 (restore_target_globals): Copy the flag_state field to
12139 this_target_flag_state.
12140 * target-globals.c: Include flags.h.
12141 (default_target_globals): Initialize the flag_state field.
12142 (save_target_globals): Likewise.
12144 2010-07-12 Jie Zhang <jie@codesourcery.com>
12146 * postreload.c (reg_symbol_ref[]): New.
12147 (move2add_use_add2_insn): New.
12148 (move2add_use_add3_insn): New.
12149 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
12150 (move2add_note_store): Likewise.
12152 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
12154 PR rtl-optimization/44752
12155 * genautomata.c (main): Don't emit an empty file even if there
12158 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12160 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
12161 ix86_solaris_return_in_memory.
12162 * config/i386-protos.h: Reflect this.
12163 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
12164 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
12166 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
12168 2010-07-12 Jie Zhang <jie@codesourcery.com>
12170 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
12171 align the stack when it's going to be saved.
12173 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12176 * config/host-solaris.c (mmap_fixed): New function.
12177 (sol_gt_pch_get_address): Use it.
12178 (sol_gt_pch_use_address): Likewise.
12180 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12182 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
12183 pentiumpro on Solaris 8 and 9/x86.
12184 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
12185 Document SSE/SSE2 support.
12186 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
12188 2010-07-12 Andi Kleen <ak@linux.intel.com>
12190 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
12191 instead of gcc_assert to print better error message for multiple
12194 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
12196 * config/i386/i386.c (ix86_asm_output_function_label): Change format
12197 string placeholder from 0x%x to %#x.
12198 (ix86_code_end): Use putc to output '\n'.
12199 (ix86_print_operand) <case ';'>: Use putc to output ';'.
12201 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
12203 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
12204 in directive -export.
12206 2010-07-10 Anatoly Sokolov <aesok@post.ru>
12208 * reginfo.h (reg_classes_intersect_p): Change arguments type to
12210 * rtl.h (reg_classes_intersect_p): Adjust prototype.
12212 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12214 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
12215 rs6000_memory_move_cost): Remove
12216 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
12217 TARGET_MEMORY_MOVE_COST): Define.
12218 (rs6000_register_move_cost): Make static. Change arguments type from
12219 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
12220 (rs6000_memory_move_cost): Make static. Change arguments type from
12221 'enum reg_class' to reg_class_t.
12223 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
12225 PR middle-end/42505
12226 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
12227 lookup code into....
12228 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
12230 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
12231 * cfgloopanal.c (target_clobbered_regs): Define.
12232 (init_set_costs): Initialize target_clobbered_regs.
12233 (estimate_reg_pressure_cost): Add call_p argument. When true,
12234 adjust the number of available registers to exclude the
12235 call-clobbered registers.
12236 * cfgloop.h (target_clobbered_regs): Declare.
12237 (estimate_reg_pressure_cost): Adjust declaration.
12238 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
12239 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
12240 (determine_set_costs): Dump target_clobbered_regs.
12241 (loop_body_includes_call): New function.
12242 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
12243 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
12244 call_p flag through.
12245 (best_gain_for_invariant): Likewise.
12246 (find_invariants_to_move): Likewise.
12247 (move_single_loop_invariants): Likewise, using already-computed
12250 2010-07-10 Richard Guenther <rguenther@suse.de>
12251 Joern Rennecke <joern.rennecke@embecosm.com>
12254 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
12255 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
12256 unless they have DECL_IGNORED_P set.
12258 2010-07-10 Richard Guenther <rguenther@suse.de>
12261 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
12263 (gimple_types_compatible_p): Similar to pointed-to
12264 types allow and merge a mix of complete and incomplete aggregate.
12265 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
12266 (iterative_hash_gimple_type): Adjust for that.
12268 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
12270 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
12272 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
12275 * config/darwin.c (output_objc_section_asm_op): Save and restore
12276 section when outputting ObjC section list.
12278 2010-07-09 Jan Hubicka <jh@suse.cz>
12280 * lto-streamer-out.c (produce_symtab): Do not write alias
12281 cgraph/varpool nodes.
12283 2010-07-09 Jan Hubicka <jh@suse.cz>
12285 * tree-inline.c (declare_return_variable): Fix ICE while
12286 inlining DECL_BY_VALUE function not in SSA form
12288 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
12290 PR tree-optimization/44576
12291 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
12292 New. Pull out from is_loop_prefetching_profitable to implement
12293 the trip count to ahead ratio heuristic.
12294 (mem_ref_count_reasonable_p): New. Pull out from
12295 is_loop_prefetching_profitable to implement the instruction to
12296 memory reference ratio heuristic. Also consider not reasonable if
12297 the memory reference count is above a threshold (to avoid
12298 explosive compilation time.
12299 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
12300 is_loop_prefetching_profitable to implement the instruction to
12301 prefetch ratio heuristic.
12302 (is_loop_prefetching_profitable): Removed.
12303 (loop_prefetch_arrays): Distribute the cost analysis across the
12304 function to allow early exit of the prefetch analysis.
12305 is_loop_prefetching_profitable is splitted into three functions,
12306 with each one called as early as possible.
12307 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
12308 number of memory references in a loop is considered too many.
12310 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
12312 * reload.c (find_reloads): Don't clear badop if we have a winreg
12313 alternative, but not win, and the class only has fixed regs.
12314 * hard-reg-set.h (class_only_fixed_regs): Declare.
12315 * reginfo.c (class_only_fixed_regs): New array.
12316 (init_reg_sets_1): Initialize it.
12317 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
12318 discourage alternatives using the stack pointer.
12320 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
12322 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
12324 * config/arm/arm.md (cbranchqi4): Fix array size.
12325 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
12326 calculating length.
12328 2010-07-09 Richard Guenther <rguenther@suse.de>
12330 * gimple.c (struct type_fixup_s): New struct and VEC type.
12331 (gimple_register_type_fixups): New static global.
12332 (gimple_queue_type_fixup): New function.
12333 (gimple_types_compatible_p): Queue type fixups instead of
12334 applying them here.
12335 (gimple_register_type): Apply queued fixups for the
12336 canonical type. Empty the type fixup queue.
12338 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
12340 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
12341 * configure: Regenerate.
12342 * config.in: Ditto.
12344 2010-07-09 Jakub Jelinek <jakub@redhat.com>
12345 Denys Vlasenko <dvlasenk@redhat.com>
12346 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12348 PR tree-optimization/28632
12349 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
12350 (extract_range_from_binary_expr): Further optimize
12351 BIT_AND_EXPR and BIT_IOR_EXPR.
12353 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
12355 * tree-if-conv.c (fold_or_predicates): New.
12356 (add_to_predicate_list): Call it.
12358 2010-07-09 Richard Guenther <rguenther@suse.de>
12360 PR middle-end/44890
12361 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
12362 if base is a pointer.
12363 * tree-cfg.c (verify_expr): Update MEM_REF checking.
12365 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12368 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
12369 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
12370 builtin mask for load/store builtins.
12372 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
12374 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
12376 * configure: Regenerate.
12377 * config/i386/i386.c (ix86_print_operand) <case ';'>:
12378 Remove TARGET_MACHO.
12380 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
12382 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
12384 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
12386 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
12388 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
12390 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
12392 * config/picochip/picochip.md (commsTestPort): Emit more
12393 efficient sequence for tstport instruction.
12395 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
12397 * config/i386/i386.c (ix86_veclib_handler): Make static.
12399 2010-07-09 Richard Guenther <rguenther@suse.de>
12401 PR tree-optimization/44852
12402 * tree-ssa-alias.c: Include toplev.h for exact_log2.
12403 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
12405 (indirect_refs_may_alias_p): Likewise.
12406 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
12408 2010-07-09 Richard Guenther <rguenther@suse.de>
12410 PR tree-optimization/44882
12411 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
12413 (vectorizable_load): Likewise.
12415 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
12418 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
12419 All callers changed.
12420 Handle the case when we're called for the epilogue.
12421 (thumb_unexpanded_epilogue): Use it.
12422 (thumb1_expand_epilogue): Likewise.
12424 2010-07-09 Jakub Jelinek <jakub@redhat.com>
12426 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
12427 both ranges are range_int_cst_p with non-negative minimum,
12428 try harder to derive smaller range.
12430 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12432 * genrecog.c: Include diagnostic-core.h before toplev.h.
12433 * genoutput.c: Likewise.
12434 * genextract.c: Likewise.
12435 * genautomata.c: Likewise.
12436 * genemit.c: Likewise.
12437 * genpeep.c: Likewise.
12438 * genattrtab.c: Likewise.
12439 * genconditions.c: Likewise.
12440 * genpreds.c: Likewise.
12442 2010-07-08 Andi Kleen <ak@linux.intel.com>
12444 * lto-section-in.c (lto_section_name): Add missing comma.
12446 2010-07-08 Anatoly Sokolov <aesok@post.ru>
12448 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
12449 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
12450 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
12451 (ia64_override_options): Rename to...
12452 (ia64_option_override): ... this one. Make static.
12454 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12456 PR middle-end/44843
12457 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
12458 pointed-to type of the offset in a MEM_REF to compute the alignment.
12460 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
12462 * final.c (final_scan_insn): Replace
12463 TARGET_UNWIND_INFO macro check by unwind_emit
12465 * targhooks.c (default_unwind_emit): Removed.
12466 * targhooks.h (default_unwind_emit): Likewise.
12467 * target.def (unwind_emit): Set default value to NULL.
12469 * config/i386/i386-protos.h (ix86_asm_output_function_label):
12471 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
12472 for NULL fntype argument and allow 64-bit targets.
12473 (ix86_asm_output_function_label): New function.
12474 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
12475 (ix86_handle_fndecl_attribute): Likewise.
12476 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
12477 * doc/doc/tm.texi: Regenerated.
12478 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
12479 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
12480 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
12481 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
12482 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
12483 * config/elfos.h: Likewise.
12484 * config/i386/cygming.h: Likewise.
12485 * config/netbsd-aout.h: Likewise.
12486 * config/openbsd.h: Likewise.
12487 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
12488 by ix86_asm_output_function_label function call.
12489 * varasm.c (assemble_start_function): Use
12490 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
12492 2010-07-08 Jan Hubicka <jh@suse.cz>
12494 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
12496 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
12498 * ipa-cp.c (ipcp_estimate_growth): Use it.
12499 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
12502 2010-07-08 Jan Hubicka <jh@suse.cz>
12504 * tree-inline.c (declare_return_variable): Allocate annotation for new
12507 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
12509 PR tree-optimization/44710
12510 * tree-if-conv.c (parse_predicate): New.
12511 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
12512 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
12514 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
12516 * common.opt (ftree-loop-if-convert): New flag.
12517 * doc/invoke.texi (ftree-loop-if-convert): Documented.
12518 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
12519 when flag_tree_loop_if_convert is set.
12521 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
12523 * config/i386/i386.c: Use short syntax for function calls
12524 through function pointers.
12525 * config/i386/i386.md: Ditto.
12527 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12529 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
12531 2010-07-08 Richard Guenther <rguenther@suse.de>
12533 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
12534 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
12536 2010-07-08 Jakub Jelinek <jakub@redhat.com>
12538 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
12539 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
12540 (loc_list_from_tree): Likewise.
12541 (output_loc_operands): Handle outputting DW_OP_const[48]u
12542 with loc->dtprel set.
12543 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
12545 2010-07-08 Jan Hubicka <jh@suse.cz>
12547 * ipa.c: Include pointer-set.h
12548 (cgraph_externally_visible_p): New attribute ALIASED;
12549 when in LTO, hidden symbols are local unless they are aliased.
12550 (function_and_variable_visibility): Compute aliased nodes;
12551 handle LTO and hidden symbol on functions and vars.
12552 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
12553 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
12555 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12557 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12558 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12559 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12560 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12561 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12562 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
12563 (ix86_gen_probe_stack_range): Likewise.
12564 (override_options): Set them.
12565 (ix86_target_stack_probe): New function.
12566 (ix86_compute_frame_layout): Force use of push instructions to
12567 save registers if stack checking with probes is enabled.
12568 (get_scratch_register_on_entry): New function.
12569 (release_scratch_register_on_entry): Likewise.
12570 (ix86_adjust_stack_and_probe): Likewise.
12571 (output_adjust_stack_and_probe): Likewise.
12572 (ix86_emit_probe_stack_range): Likewise.
12573 (output_probe_stack_range): Likewise.
12574 (ix86_expand_prologue): Emit stack checking code if static built-in
12575 stack checking is enabled.
12576 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
12577 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
12578 (output_adjust_stack_and_probe): Likewise.
12579 (output_probe_stack_range): Likewise.
12580 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12581 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
12582 TARGET_STACK_PROBE.
12583 (allocate_stack_worker_64): Likewise.
12584 (allocate_stack): Likewise.
12585 (adjust_stack_and_probe): New insn.
12586 (probe_stack_range): Likewise.
12588 2010-07-08 Richard Guenther <rguenther@suse.de>
12590 PR tree-optimization/44831
12591 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
12592 a MEM_REF preserving TBAA info of the original dereference.
12593 Dereference the original pointer if the address is not invariant.
12594 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
12595 at least one invariant address that we are going to dereference.
12597 2010-07-08 Richard Guenther <rguenther@suse.de>
12599 PR tree-optimization/44861
12600 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
12601 information when building MEM_REFs.
12602 (vectorizable_load): Likewise.
12603 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
12605 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12607 * config/sol2-c.c: Do not include diagnostic-core.h.
12609 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12612 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
12613 with respect to current_function_decl. Pass decl of the function.
12614 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
12615 * ipa-inline.c (compute_inline_parameters): Pass decl to
12616 estimated_stack_frame_size.
12618 2010-07-08 Richard Guenther <rguenther@suse.de>
12620 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12622 (valueize_refs): Call it.
12624 2010-07-08 Richard Guenther <rguenther@suse.de>
12626 PR rtl-optimization/44838
12627 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
12628 SSA form do not use pointer equivalence.
12630 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12632 * dwarf2out.c (AT_linkage_name): Delete.
12633 (add_linkage_attr): New function.
12634 (add_linkage_name): Call it to emit the linkage attribute.
12635 (dwarf2out_finish): Likewise.
12636 (move_linkage_attr): Explicitly accept both attribute variants.
12638 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12640 * toplev.h: Do not include diagnostic-core.h.
12641 Include diagnostic-core.h in every file that includes toplev.h.
12642 * c-tree.h: Do not include toplev.h.
12643 * pretty-print.h: Update comment.
12644 * Makefile.in: Update dependencies.
12645 * alias.c: Include diagnostic-core.h in every file that includes
12647 * attribs.c: Likewise.
12648 * auto-inc-dec.c: Likewise.
12649 * bb-reorder.c: Likewise.
12650 * bt-load.c: Likewise.
12651 * caller-save.c: Likewise.
12652 * calls.c: Likewise.
12654 * cfganal.c: Likewise.
12655 * cfgbuild.c: Likewise.
12656 * cfgcleanup.c: Likewise.
12657 * cfghooks.c: Likewise.
12658 * cfgloop.c: Likewise.
12659 * combine.c: Likewise.
12660 * config/alpha/alpha.c: Likewise.
12661 * config/arc/arc.c: Likewise.
12662 * config/arm/arm.c: Likewise.
12663 * config/arm/pe.c: Likewise.
12664 * config/avr/avr.c: Likewise.
12665 * config/bfin/bfin.c: Likewise.
12666 * config/cris/cris.c: Likewise.
12667 * config/crx/crx.c: Likewise.
12668 * config/darwin-c.c: Likewise.
12669 * config/darwin.c: Likewise.
12670 * config/fr30/fr30.c: Likewise.
12671 * config/frv/frv.c: Likewise.
12672 * config/h8300/h8300.c: Likewise.
12673 * config/host-darwin.c: Likewise.
12674 * config/i386/i386.c: Likewise.
12675 * config/i386/netware.c: Likewise.
12676 * config/i386/nwld.c: Likewise.
12677 * config/i386/winnt-cxx.c: Likewise.
12678 * config/i386/winnt-stubs.c: Likewise.
12679 * config/i386/winnt.c: Likewise.
12680 * config/ia64/ia64-c.c: Likewise.
12681 * config/ia64/ia64.c: Likewise.
12682 * config/iq2000/iq2000.c: Likewise.
12683 * config/lm32/lm32.c: Likewise.
12684 * config/m32c/m32c-pragma.c: Likewise.
12685 * config/m32c/m32c.c: Likewise.
12686 * config/m32r/m32r.c: Likewise.
12687 * config/m68hc11/m68hc11.c: Likewise.
12688 * config/m68k/m68k.c: Likewise.
12689 * config/mcore/mcore.c: Likewise.
12690 * config/mep/mep-pragma.c: Likewise.
12691 * config/mep/mep.c: Likewise.
12692 * config/mmix/mmix.c: Likewise.
12693 * config/mn10300/mn10300.c: Likewise.
12694 * config/moxie/moxie.c: Likewise.
12695 * config/pa/pa.c: Likewise.
12696 * config/pdp11/pdp11.c: Likewise.
12697 * config/picochip/picochip.c: Likewise.
12698 * config/rs6000/rs6000-c.c: Likewise.
12699 * config/rs6000/rs6000.c: Likewise.
12700 * config/rx/rx.c: Likewise.
12701 * config/s390/s390.c: Likewise.
12702 * config/score/score.c: Likewise.
12703 * config/score/score3.c: Likewise.
12704 * config/score/score7.c: Likewise.
12705 * config/sh/sh.c: Likewise.
12706 * config/sh/symbian-base.c: Likewise.
12707 * config/sh/symbian-c.c: Likewise.
12708 * config/sh/symbian-cxx.c: Likewise.
12709 * config/sol2-c.c: Likewise.
12710 * config/sol2.c: Likewise.
12711 * config/sparc/sparc.c: Likewise.
12712 * config/spu/spu.c: Likewise.
12713 * config/stormy16/stormy16.c: Likewise.
12714 * config/v850/v850-c.c: Likewise.
12715 * config/v850/v850.c: Likewise.
12716 * config/vax/vax.c: Likewise.
12717 * config/vxworks.c: Likewise.
12718 * config/xtensa/xtensa.c: Likewise.
12719 * convert.c: Likewise.
12721 * cselib.c: Likewise.
12722 * dbgcnt.c: Likewise.
12723 * dbxout.c: Likewise.
12725 * dominance.c: Likewise.
12726 * emit-rtl.c: Likewise.
12727 * explow.c: Likewise.
12728 * expmed.c: Likewise.
12729 * fixed-value.c: Likewise.
12730 * fold-const.c: Likewise.
12731 * fwprop.c: Likewise.
12732 * gcse.c: Likewise.
12733 * ggc-common.c: Likewise.
12734 * ggc-page.c: Likewise.
12735 * ggc-zone.c: Likewise.
12736 * gimple-low.c: Likewise.
12737 * gimplify.c: Likewise.
12738 * graph.c: Likewise.
12739 * haifa-sched.c: Likewise.
12740 * ifcvt.c: Likewise.
12741 * implicit-zee.c: Likewise.
12742 * integrate.c: Likewise.
12743 * ira-build.c: Likewise.
12744 * ira-color.c: Likewise.
12745 * ira-conflicts.c: Likewise.
12746 * ira-costs.c: Likewise.
12747 * ira-lives.c: Likewise.
12749 * lists.c: Likewise.
12750 * loop-doloop.c: Likewise.
12751 * loop-iv.c: Likewise.
12752 * lto-opts.c: Likewise.
12753 * lto-symtab.c: Likewise.
12754 * main.c: Likewise.
12755 * modulo-sched.c: Likewise.
12756 * optabs.c: Likewise.
12757 * params.c: Likewise.
12758 * plugin.c: Likewise.
12759 * postreload-gcse.c: Likewise.
12760 * postreload.c: Likewise.
12761 * predict.c: Likewise.
12762 * profile.c: Likewise.
12763 * real.c: Likewise.
12764 * regcprop.c: Likewise.
12765 * reginfo.c: Likewise.
12766 * regmove.c: Likewise.
12767 * reorg.c: Likewise.
12768 * resource.c: Likewise.
12770 * rtlanal.c: Likewise.
12771 * sched-deps.c: Likewise.
12772 * sched-ebb.c: Likewise.
12773 * sched-rgn.c: Likewise.
12774 * sdbout.c: Likewise.
12775 * sel-sched-dump.c: Likewise.
12776 * sel-sched-ir.c: Likewise.
12777 * simplify-rtx.c: Likewise.
12778 * stmt.c: Likewise.
12779 * stor-layout.c: Likewise.
12780 * store-motion.c: Likewise.
12781 * targhooks.c: Likewise.
12782 * tree-cfg.c: Likewise.
12783 * tree-cfgcleanup.c: Likewise.
12784 * tree-dump.c: Likewise.
12785 * tree-eh.c: Likewise.
12786 * tree-inline.c: Likewise.
12787 * tree-nomudflap.c: Likewise.
12788 * tree-object-size.c: Likewise.
12789 * tree-optimize.c: Likewise.
12790 * tree-outof-ssa.c: Likewise.
12791 * tree-phinodes.c: Likewise.
12792 * tree-profile.c: Likewise.
12793 * tree-ssa-ccp.c: Likewise.
12794 * tree-ssa-coalesce.c: Likewise.
12795 * tree-ssa-live.c: Likewise.
12796 * tree-ssa-loop-niter.c: Likewise.
12797 * tree-ssa-loop-prefetch.c: Likewise.
12798 * tree-ssa-loop.c: Likewise.
12799 * tree-ssa-structalias.c: Likewise.
12800 * tree-ssa-uninit.c: Likewise.
12801 * tree-ssa.c: Likewise.
12802 * tree-vect-data-refs.c: Likewise.
12803 * tree-vect-loop-manip.c: Likewise.
12804 * tree-vect-loop.c: Likewise.
12805 * tree-vect-patterns.c: Likewise.
12806 * tree-vect-stmts.c: Likewise.
12807 * tree-vrp.c: Likewise.
12808 * varasm.c: Likewise.
12811 * xcoffout.c: Likewise.
12813 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
12815 * gengtype.c (write_field_root): New function.
12816 (write_root): Use it.
12818 2010-07-07 Wei Guozhi <carrot@google.com>
12820 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
12821 of lowest bits to lshift/compare): Add a missing line.
12823 2010-07-07 Wei Guozhi <carrot@google.com>
12825 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
12826 of lowest bits to lshift/compare): New.
12828 2010-07-07 Tom Tromey <tromey@redhat.com>
12830 * doc/tm.texi: Update.
12831 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
12833 * target.def (want_debug_pub_sections): New hook.
12834 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
12835 * dwarf2out.c (add_pubname_string): Check
12836 targetm.want_debug_pub_sections.
12837 (add_pubname): Likewise.
12838 (add_pubtype): Likewise.
12840 2010-07-07 Jie Zhang <jie@codesourcery.com>
12842 * genautomata.c (output_automata_list_min_issue_delay_code):
12843 Correctly decompress min_issue_delay.
12845 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
12847 PR rtl-optimization/44404
12848 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
12849 possible, use reg_overlap_mentioned_p instead.
12851 2010-07-07 Duncan Sands <baldrick@free.fr>
12853 PR middle-end/41355
12854 * tree.c (build_function_type_skip_args): Copy the original type using
12855 build_distinct_type_copy rather than copy_node.
12857 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
12860 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
12862 (ix86_expand_prologue): Likewise.
12863 (ix86_handle_fndecl_attribute): Likewise.
12864 (ix86_asm_declare_function_name): Likewise.
12865 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12866 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12867 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
12868 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
12869 * doc/extend.texi: Likewise.
12871 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
12874 * config/i386/i386.md (rdrand<mode>): Changed to expand to
12875 retry if the carry flag isn't valid.
12876 (rdrand<mode>_1): New.
12878 2010-07-07 Richard Guenther <rguenther@suse.de>
12880 PR middle-end/44790
12881 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
12882 for expanding the constant offset for MEM_REFs.
12884 2010-07-07 Richard Guenther <rguenther@suse.de>
12886 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
12887 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
12888 * gimple.h (is_gimple_operand): Remove.
12889 * gimple.c (is_gimple_operand): Likewise.
12890 (walk_gimple_op): Fix wi->val_only setting for calls.
12891 * tree-cfg.c (verify_gimple_call): Fix argument validation.
12892 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
12893 invalid gimple calls.
12895 2010-07-06 Jan Hubicka <jh@suse.cz>
12897 * lto-cgraph.c (output_cgraph): Add missing declaration.
12899 2010-07-06 Jan Hubicka <jh@suse.cz>
12901 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
12904 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
12906 * doc/gimple.texi (GIMPLE_DEBUG): Document.
12907 * doc/rtl.texi (Debug Information): New node.
12908 (NOTE_INSN_VAR_LOCATION): Document.
12909 (debug_insn): Likewise.
12910 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
12912 2010-07-07 Jan Hubicka <jh@suse.cz>
12914 With parts by Richard Guenther.
12916 PR middle-end/44813
12917 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
12918 for functions passed by reference.
12919 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
12920 in memory when passed by reference.
12921 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
12923 * ipa-split.c (split_function): Cleanup way return value is passed;
12924 handle SSA DECL_BY_REFERENCE retvals.
12925 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
12926 DECL_BY_REFERENCE is set.
12927 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
12928 find_what_p_points_to): Handle RESULT_DECL.
12929 * tree-inline.c (declare_return_variable): Get new entry_block argument;
12930 when passing by reference ensure that RESULT_DECL is gimple_val.
12931 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
12932 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
12934 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
12936 PR rtl-optimization/44787
12937 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
12938 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
12940 2010-07-06 Jan Hubicka <jh@suse.cz>
12942 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
12943 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
12944 with body can prevail.
12945 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
12946 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
12947 * cgraph.c (cgraph_get_node_or_alias): New function.
12948 * cgraph.h (cgraph_get_node_or_alias): Declare.
12950 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
12952 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
12954 (ix86_expand_prologue): Likewise.
12955 (ix86_handle_fndecl_attribute): Likewise.
12956 (ix86_asm_declare_function_name): New function for
12957 ASM_DECLARE_FUNCTION_NAME.
12958 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
12959 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
12960 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
12961 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
12962 * doc/extend.texi: Adjust documentation about ms_hook_prologue
12965 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
12967 * config/i386/i386.md (immediate_operand): New mode attribute.
12969 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
12970 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
12971 using P mode iterator.
12972 (pro_epilogue_adjust_stack_di_2): Rename from
12973 pro_epilogue_adjust_stack_rex64_2.
12975 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
12977 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
12979 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
12980 through gen_mov_insv_1 function pointer.
12981 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
12982 gen_truncxf<mode>2 through gen_truncxf function pointer.
12983 (remainder<mode>3): Ditto.
12984 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
12985 (allocate_stack): Call gen_allocate_stack_worker_64 or
12986 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
12988 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
12991 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
12993 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
12994 operand constraint instead of <r><i>m.
12996 2010-07-06 Richard Guenther <rguenther@suse.de>
12998 PR middle-end/44828
12999 * convert.c (convert_to_integer): Watch out for overflowing
13002 2010-07-05 Jan Hubicka <jh@suse.cz>
13004 * lto-streamer.c (write_symbol_vec): Rename to ...
13005 (write_symbol) ... this one; write only symbol given and when
13006 present in cache. Sanity check that what is defined is present
13007 in cgraph/varpool with body/finalized decl.
13008 (write_symbols_of_kind): Remove.
13009 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
13010 pairs to produce symtab.
13011 (produce_asm_for_decls): Update call of produce_symtab; don't do so
13012 when doing WPA streaming.
13014 2010-07-05 Jan Hubicka <jh@suse.cz>
13016 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
13017 function is still available to fold into.
13019 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
13021 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
13022 * function.h (struct_function): Change type of local_decls field
13024 (add_local_decl): New function.
13025 (FOR_EACH_LOCAL_DECL): New macro.
13026 * cfgexpand.c (init_vars_expansion): Adjust for new type of
13028 (estimated_stack_frame_size): Likewise.
13029 (expand_used_vars): Likewise.
13030 * cgraphbuild.c (build_cgraph_edges): Likewise.
13031 * function.c (instantiate_decls_1): Likewise.
13032 * ipa-struct-reorg.c (build_data_structure): Likewise.
13033 * ipa-type-escape.c (analyze_function): Likewise.
13034 * lto-streamer-in.c (input_function): Likewise.
13035 * lto-streamer-out.c (output_function): Likewise.
13036 * tree-ssa-live.c (remove_unused_locals): Likewise.
13037 * tree.c (free_lang_data_in_decl): Likewise.
13038 (find_decls_types_in_node): Likewise.
13039 * omp-low.c (remove_exit_barrier): Likewise.
13040 (expand_omp_taskreg): Likewise.
13041 (list2chain): Rename to...
13042 (vec2chain): ...this. Adjust.
13043 * cgraphunit.c (assemble_thunk): Call add_local_decl.
13044 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
13045 * gimple-low.c (record_vars_into): Likewise.
13046 * tree-inline.c (remap_decls): Likewise.
13047 (declare_return_variable): Likewise.
13048 (declare_inline_vars): Likewise.
13049 (copy_forbidden): Adjust for new type of cfun->local_decls.
13050 (add_local_variables): New function.
13051 (expand_call_inline): Call it.
13052 (tree_function_versioning): Likewise.
13054 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
13056 AVX Programming Reference (June, 2010)
13057 * config/i386/cpuid.h (bit_F16C): New.
13058 (bit_RDRND): Likewise.
13059 (bit_FSGSBASE): Likewise.
13061 * config/i386/i386-builtin-types.def: Add
13062 "DEF_FUNCTION_TYPE (UINT16)", function types for
13063 float16 <-> float conversions and
13064 "DEF_FUNCTION_TYPE (VOID, UINT64)".
13066 * config/i386/i386-c.c (ix86_target_macros_internal): Support
13067 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
13068 OPTION_MASK_ISA_F16C.
13070 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
13071 (OPTION_MASK_ISA_RDRND_SET): Likewise.
13072 (OPTION_MASK_ISA_F16C_SET): Likewise.
13073 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
13074 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
13075 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
13076 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
13077 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
13078 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
13079 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
13080 (override_options): Handle them.
13081 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
13082 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
13083 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
13084 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
13085 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
13086 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
13087 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
13088 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
13089 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
13090 (bdesc_args): Likewise.
13091 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
13092 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
13093 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
13094 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
13095 Handle non-memory store.
13097 * config/i386/i386.h (TARGET_FSGSBASE): New.
13098 (TARGET_RDRND): Likewise.
13099 (TARGET_F12C): Likewise.
13101 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
13102 (UNSPEC_VCVTPS2PH): Likewise.
13103 (UNSPECV_RDFSBASE): Likewise.
13104 (UNSPECV_RDGSBASE): Likewise.
13105 (UNSPECV_WRFSBASE): Likewise.
13106 (UNSPECV_WRGSBASE): Likewise.
13107 (UNSPECV_RDRAND): Likewise.
13108 (rdfsbase<mode>): Likewise.
13109 (rdgsbase<mode>): Likewise.
13110 (wrfsbase<mode>): Likewise.
13111 (wrgsbase<mode>): Likewise.
13112 (rdrand<mode>): Likewise.
13114 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
13116 * config/i386/immintrin.h (_rdrand_u16): New.
13117 (_rdrand_u32): Likewise.
13118 (_readfsbase_u32): Likewise.
13119 (_readfsbase_u64): Likewise.
13120 (_readgsbase_u32): Likewise.
13121 (_readgsbase_u64): Likewise.
13122 (_writefsbase_u32): Likewise.
13123 (_writefsbase_u64): Likewise.
13124 (_writegsbase_u32): Likewise.
13125 (_writegsbase_u64): Likewise.
13126 (_rdrand_u64): Likewise.
13127 (_cvtsh_ss): Likewise.
13128 (_mm_cvtph_ps): Likewise.
13129 (_mm256_cvtph_ps): Likewise.
13130 (_cvtss_sh): Likewise.
13131 (_mm_cvtps_ph): Likewise.
13132 (_mm256_cvtps_ph): Likewise.
13134 * config/i386/sse.md (vcvtph2ps): New.
13135 (*vcvtph2ps_load): Likewise.
13136 (vcvtph2ps256): Likewise.
13137 (vcvtps2ph): Likewise.
13138 (*vcvtps2ph): Likewise.
13139 (*vcvtps2ph_store): Likewise.
13140 (vcvtps2ph256): Likewise.
13142 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
13144 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
13146 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
13149 * genenums.c (main): Output include of insn-constants.h
13150 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
13152 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
13154 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
13155 (override_options): Initialize it.
13156 (ix86_expand_prologue): Use it.
13158 2010-07-05 Jakub Jelinek <jakub@redhat.com>
13160 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
13162 2010-07-05 Anatoly Sokolov <aesok@post.ru>
13164 * double-int.h (fit_double_type): Remove declaration.
13165 * double-int.c (fit_double_type): Remove function.
13166 * tree.h (int_fits_type_p): Adjust prototype.
13167 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
13168 instead of fit_double_type.
13169 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
13170 instead of fit_double_type and build_int_cst_wide.
13171 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
13172 instead of fit_double_type and build_int_cst_wide.
13173 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
13174 of fit_double_type.
13176 2010-07-05 Jan Hubicka <jh@suse.cz>
13178 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
13179 in_other_partition.
13180 * lto-cgraph.c (referenced_from_other_partition_p,
13181 reachable_from_other_partition_p): Use in_other_partition flags.
13182 (output_node, output_varpool_node): COMDAT nodes always have private
13183 copies and thus are never used from other partition.
13185 2010-07-05 Anatoly Sokolov <aesok@post.ru>
13187 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13188 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
13189 * config/ia64/ia64.c Include reload.h.
13190 (ia64_memory_move_cost): New function.
13191 (TARGET_MEMORY_MOVE_COST): Define.
13192 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
13195 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
13197 PR middle-end/42505
13198 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
13199 comments about cost model.
13200 (try_add_cand_for): Add second strategy for choosing initial set
13201 based on original IVs, controlled by ORIGINALP argument.
13202 (get_initial_solution): Add ORIGINALP argument.
13203 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
13204 (find_optimal_iv_set): Try two different strategies for choosing
13205 the IV set, and return the one with lower cost.
13207 2010-07-05 Richard Guenther <rguenther@suse.de>
13209 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
13211 2010-07-05 Richard Guenther <rguenther@suse.de>
13213 * tree.c (reference_alias_ptr_type): New function.
13214 * tree.h (reference_alias_ptr_type): Declare.
13215 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
13216 allow non-TARGET_MEM_REF new refs.
13217 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
13218 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
13219 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
13220 (create_mem_ref): Get alias pointer type. Adjust calls to
13221 create_mem_ref_raw.
13222 (maybe_fold_tmr): Likewise.
13223 * tree-flow.h (create_mem_ref): Adjust prototype.
13225 2010-07-05 Jakub Jelinek <jakub@redhat.com>
13228 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
13229 *from_p is VAR_DECL.
13231 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
13233 * tree.h (build_call_list): Remove.
13234 * tree.c (build_call_list): Remove.
13236 2010-07-05 Richard Guenther <rguenther@suse.de>
13238 * double-int.h (double_int_sub): Declare.
13239 * double-int.c (double_int_sub): New function.
13240 * dwarf2out.c (field_byte_offset): Use it.
13241 * fixed-value.c (do_fixed_add): Likewise.
13242 (do_fixed_multiply): Likewise.
13243 (do_fixed_divide): Likewise.
13244 * tree-predcom.c (add_ref_to_chain): Likewise.
13245 (determine_roots_comp): Likewise.
13246 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
13248 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
13250 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
13253 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
13255 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
13256 * arm-modes.def (CC_NOTB): Don't define.
13257 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
13258 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
13259 (LTUGEU): New code_iterator.
13260 (cnb, optab): New corresponding code_attrs.
13261 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
13262 to canonical form. Operands 1 and 2 are commutative. Parametrize
13264 (addsi3_carryin_shift_<optab>): Likewise.
13265 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
13266 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
13267 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
13268 (subsi3_compare): Renamed from subsi3_compare0_c.
13269 Change CC_NOTB to CC.
13270 (arm_subsi3_insn): Allow constants for operand 0.
13271 (compare_scc peephole for eq case): New.
13272 (compare_scc splitters): Change CC_NOTB to CC.
13274 2010-07-05 Richard Guenther <rguenther@suse.de>
13276 * tree-ssa-loop-im.c (for_each_index): Do not handle
13277 ALIGN_INDIRECT_REF.
13278 (gen_lsm_tmp_name): Likewise.
13279 * tree-dump.c (dequeue_and_dump): Likewise.
13280 * tree-pretty-print.c (dump_generic_node): Likewise.
13281 (op_code_prio): Likewise.
13282 (op_symbol_code): Likewise.
13283 * tree.c (staticp): Likewise.
13284 (build1_stat): Likewise.
13285 * tree.h (INDIRECT_REF_P): Likewise.
13286 * fold-const.c (maybe_lvalue_p): Likewise.
13287 (operand_equal_p): Likewise.
13288 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13289 (ao_ref_init_from_vn_reference): Likewise.
13290 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
13291 (find_interesting_uses_address): Likewise.
13292 * dwarf2out.c (loc_list_from_tree): Likewise.
13293 * gimplify.c (gimplify_expr): Likewise.
13294 * tree-eh.c (tree_could_trap_p): Likewise.
13295 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13296 * cfgexpand.c (expand_debug_expr): Likewise.
13297 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13298 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13299 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
13300 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
13301 * tree-ssa-operands.c (get_expr_operands): Likewise.
13302 * expr.c (safe_from_p): Likewise.
13303 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
13304 * tree-vect-data-refs.c (vect_setup_realignment): Build
13305 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
13306 * tree-vect-stmts.c (vectorizable_load): Likewise.
13307 * tree.def (ALIGN_INDIRECT_REF): Remove.
13309 2010-07-05 Richard Guenther <rguenther@suse.de>
13311 PR tree-optimization/44784
13312 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
13313 for inserted stmts.
13314 (find_or_generate_expression): Fix SCCVN insertion check.
13316 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
13318 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
13319 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
13320 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
13323 2010-07-05 Ira Rosen <irar@il.ibm.com>
13325 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
13326 statements that are not vectorized.
13327 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
13330 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
13333 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
13335 2010-07-05 Richard Guenther <rguenther@suse.de>
13337 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
13338 RESULT_DECLs properly.
13340 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
13342 PR rtl-optimization/44695
13343 * config/i386/i386.md (extract_code): Removed.
13344 (<u>divmodqi4): Likewise.
13346 (udivmodqi4): Likewise.
13347 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
13348 (udivmodhiqi3): Likewise.
13350 2010-07-04 Jan Hubicka <jh@suse.cz>
13352 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
13354 2010-07-04 Jan Hubicka <jh@suse.cz>
13356 * cgraphunit.c (init_cgraph): Only initialize dump file if it
13357 is not already initialized.
13359 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
13361 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
13362 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
13363 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
13364 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
13365 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
13366 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
13367 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
13368 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
13369 (sync_new_nand_optab): Redefine as macros.
13370 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
13372 (direct_optab_index): New enum.
13373 (direct_optab_d): New structure.
13374 (direct_optab): New typedef.
13375 (direct_optab_table): Declare.
13376 (direct_optab_handler, set_direct_optab_handler): New functions.
13377 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
13378 (sync_lock_release_optab): New macros.
13379 * optabs.c (direct_optab_table): New variable.
13380 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
13381 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
13382 cmpstr_optab and cmpstrn_optab.
13383 (emit_conditional_move): Likewise for movcc_optab.
13384 (can_conditionally_move_p): Likewise for movcc_gen_code.
13385 (init_insn_codes): Clear direct_optab_table.
13386 (init_optabs): Don't initialize the new "direct optabs" here.
13387 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
13389 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
13390 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
13391 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
13392 (expand_sync_operation): Likewise other sync_*_optabs.
13393 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
13394 to sync_compare_and_swap_optab.
13395 (expand_sync_lock_test_and_set): Use direct_optab_handler for
13396 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
13397 to the names of both.
13398 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
13399 cmpstr_optab and cmpstrn_optab.
13400 (expand_builtin_lock_release): Likewise sync_lock_release.
13401 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
13402 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
13403 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
13404 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
13405 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
13406 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
13407 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
13408 (sync_lock_test_and_set, sync_lock_release): Delete.
13409 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
13410 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
13411 * genopinit.c (optabs): Use set_direct_optab_handler for the new
13413 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
13414 the "optab" local variable. Use direct_optab_handler for optab and
13415 sync_compare_and_swap_optab.
13416 * reload1.c (reload_in_optab, reload_out_optab): Delete.
13417 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
13418 reload_in_optab and reload_out_optab.
13419 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
13420 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
13421 * config/pa/pa.c (pa_secondary_reload): Likewise.
13422 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
13423 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
13424 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
13425 (VMSupportsCS8_builtin): Likewise.
13427 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
13429 * optabs.h (optab_handlers): Change type of insn_code to int.
13430 (optab_handler, set_optab_handler, convert_optab_handler)
13431 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
13433 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
13434 (init_insn_codes): Zero both the above arrays.
13435 (init_optabs): Never call init_insn_codes first time around.
13437 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
13439 * optabs.h (optab_handler, convert_optab_handler): Turn into
13440 inline functions that return an insn code.
13441 (set_optab_handler, set_convert_optab_handler): New functions.
13442 * builtins.c: Replace optab_handler(X)->insn_code with
13443 optab_handler or set_optab_handler thoughout. Likewise
13444 convert_optab_handler(X)->insn_code with convert_optab_handler
13445 and set_convert_optab_handler.
13446 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
13447 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
13448 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
13449 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13450 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
13451 config/spu/spu.c: Likewise.
13453 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
13456 * config.gcc (sh*-*-*): Use regular expressions instead of
13457 the 'i' modifier for sed substitutions.
13459 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
13461 * gimple.c (gimple_body): Comments added.
13463 2010-07-04 Richard Guenther <rguenther@suse.de>
13465 PR middle-end/44809
13466 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
13467 of an INDIRECT_REF.
13469 2010-07-04 Richard Guenther <rguenther@suse.de>
13471 PR tree-optimization/44479
13472 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
13473 extra SSA name copy statements which preserves points-to
13475 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13476 Copy points-to information for all pointers. Properly handle
13478 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
13480 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
13483 2010-07-04 Richard Guenther <rguenther@suse.de>
13485 PR middle-end/44785
13486 * tree-inline.c (initialize_inlined_parameters): Do not
13487 re-use pointer-map slot over remap_type call.
13489 2010-07-04 Richard Guenther <rguenther@suse.de>
13491 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
13493 2010-07-04 Richard Guenther <rguenther@suse.de>
13495 PR tree-optimization/44656
13496 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
13497 again after value-replacing in the defintions lhs.
13499 2010-07-04 Ira Rosen <irar@il.ibm.com>
13500 Revital Eres <eres@il.ibm.com>
13502 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
13503 Document new arguments.
13504 * doc/tm.texi: Regenerate.
13505 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
13506 Handle unaligned store.
13507 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
13508 * target.def (builtin_vectorization_cost): Add new arguments.
13509 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
13510 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
13511 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
13512 (vect_vfa_segment_size): Fix indentation.
13513 * tree-vectorizer.h (struct _vect_peel_info): New.
13514 (struct _vect_peel_extended_info): New.
13515 (struct _loop_vec_info): Add new field for peeling hash table and a
13516 macro for its access.
13517 (VECT_MAX_COST): Define.
13518 (vect_get_load_cost): Declare.
13519 (vect_get_store_cost, vect_get_known_peeling_cost,
13520 vect_get_single_scalar_iteraion_cost): Likewise.
13521 (vect_supportable_dr_alignment): Add new argument.
13522 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
13524 (destroy_loop_vec_info): Free peeling hash table.
13525 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
13526 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
13527 vect_analyze_slp. Fix indentation.
13528 (vect_get_single_scalar_iteraion_cost): New function.
13529 (vect_get_known_peeling_cost): Likewise.
13530 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
13531 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
13532 statement. Move outside cost calculation inside unknown peeling case.
13533 Call vect_get_known_peeling_cost for known amount of peeling.
13534 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
13535 reference to the print message of forced alignment.
13536 (vect_verify_datarefs_alignment): Update call to
13537 vect_supportable_dr_alignment.
13538 (vect_get_data_access_cost): New function.
13539 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
13540 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
13541 vect_peeling_hash_choose_best_peeling): Likewise.
13542 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
13543 to store all the accesses in the loop and find best possible access to
13544 align using peeling for known alignment case. For unknown alignment
13545 check if stores are preferred or if peeling is worthy.
13546 (vect_find_same_alignment_drs): Analyze pairs of loads too.
13547 (vect_supportable_dr_alignment): Add new argument and check aligned
13548 accesses according to it.
13549 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
13550 (cost_for_stmt): Call vect_get_stmt_cost.
13551 (vect_model_simple_cost): Likewise.
13552 (vect_model_store_cost): Call vect_get_stmt_cost. Call
13553 vect_get_store_cost to calculate the cost of the statement.
13554 (vect_get_store_cost): New function.
13555 (vect_model_load_cost): Call vect_get_stmt_cost. Call
13556 vect_get_load_cost to calculate the cost of the statement.
13557 (vect_get_load_cost): New function.
13558 (vectorizable_store): Update call to vect_supportable_dr_alignment.
13559 (vectorizable_load): Likewise.
13560 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
13561 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
13562 arguments. Handle unaligned store.
13563 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
13564 (rs6000_builtin_support_vector_misalignment): Return true for word and
13565 double word alignments for VSX.
13566 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
13567 vect_supportable_dr_alignment and builtin_vectorization_cost.
13569 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13572 * config/pa/predicates.md (prefetch_cc_operand): Remove.
13573 (prefetch_nocc_operand): Likewise.
13574 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
13575 (prefetch_20): New insn.
13576 (prefetch_cc): Remove.
13577 (prefetch_nocc): Likewise.
13579 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
13581 * expr.c (vector_mode_valid_p): Move to c-common.c.
13582 * expr.h (vector_mode_valid_p): Do not declare here.
13583 * system.h: Poison GCC_EXPR_H in front-ends.
13584 * Makefile.in: Update dependencies.
13586 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13589 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
13591 2010-07-03 Jan Hubicka <jh@suse.cz>
13593 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
13594 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
13595 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
13596 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
13599 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
13601 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
13602 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
13603 TV_IPA_LTO_DECL_OUT): New.
13604 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
13606 2010-07-03 Jan Hubicka <jh@suse.cz>
13608 * ipa-inline.c (update_edge_key): Break out from ...
13609 update_callers_keys): ... here;
13610 (update_callee_keys): Update only the edges from caller to callee.
13611 (update_all_calle_keys): Do what update_calle_keys did.
13612 (decide_inlining_of_small_functions): Avoid recomputing of all
13613 callees when badness increase.
13615 2010-07-03 Jie Zhang <jie@codesourcery.com>
13617 * config/arm/arm.c (arm_attr_length_move_neon): New.
13618 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
13619 * config/arm/neon.md (define_mode_attr V_slen): Remove.
13620 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
13621 to compute length attribute.
13623 2010-07-03 Jie Zhang <jie@codesourcery.com>
13625 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
13626 as predicate for operand 1 and remove its constraint.
13627 * config/arm/predicates.md (vfp_register_operand): New.
13628 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
13629 (*push_fp_multi): Likewise.
13631 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
13633 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
13635 2010-07-03 Jan Hubicka <jh@suse.cz>
13637 * config/i386/i386.c (override_options): Revert accidental commit.
13639 2010-07-02 Le-Chun Wu <lcwu@google.com>
13642 * doc/invoke.texi: Update documentation of -Wshadow.
13644 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
13645 Julian Brown <julian@codesourcery.com>
13646 Sandra Loosemore <sandra@codesourcery.com>
13648 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
13649 comparisons. Adjust to take both operands.
13650 (arm_select_cc_mode): Handle DImode comparisons.
13651 (arm_gen_compare_reg): Generate a scratch register for DImode
13652 comparisons which require one. Use xor for Thumb equality checks.
13653 (arm_const_double_by_immediates): New.
13654 (arm_print_operand): Allow 'Q' and 'R' for constants.
13655 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
13656 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
13657 arm_canonicalize_comparison.
13658 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
13659 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
13661 (arm_const_double_by_immediates): Declare.
13662 * config/arm/constraints.md (Di): New constraint.
13663 * config/arm/predicates.md (arm_immediate_di_operand)
13664 (arm_di_operand, cmpdi_operand): New.
13665 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
13666 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
13667 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
13668 (cstoredi4): Handle non-Cirrus also.
13670 2010-07-02 Julian Brown <julian@codesourcery.com>
13671 Sandra Loosemore <sandra@codesourcery.com>
13674 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
13675 (smax<mode>3): Disable for NEON float modes when
13676 flag_unsafe_math_optimizations is false.
13677 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
13679 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
13680 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
13681 for NEON float modes when flag_unsafe_math_optimizations is false.
13682 (quad_halves_<code>v4sf): Only enable if
13683 flag_unsafe_math_optimizations is true.
13684 * doc/invoke.texi (ARM Options): Add note about floating point
13685 vectorization requiring -funsafe-math-optimizations.
13687 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
13688 Julian Brown <julian@codesourcery.com>
13690 * config/arm/neon.md (UNSPEC_VABA): Delete.
13691 (UNSPEC_VABAL): Delete.
13692 (UNSPEC_VABS): Delete.
13693 (UNSPEC_VMUL_N): Delete.
13694 (adddi3_neon): New.
13695 (subdi3_neon): New.
13696 (mul<mode>3add<mode>_neon): Make the pattern named.
13697 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
13698 (neon_vadd<mode>): Replace with define_expand, and move the remaining
13700 (neon_vadd<mode>_unspec): ...to this.
13701 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
13702 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
13703 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
13704 (neon_vaba<mode>): Rewrite in terms of vabd.
13705 (neon_vabal<mode>): Rewrite in terms of vabdl.
13706 (neon_vabs<mode>): Rewrite without unspec.
13707 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
13708 (*arm_subdi3): Likewise.
13709 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
13710 No_op attribute to disable assembly output checks.
13711 * config/arm/arm_neon.h: Regenerated.
13712 * doc/arm-neon-intrinsics.texi: Regenerated.
13714 2010-07-02 Jan Hubicka <jh@suse.cz>
13716 * ipa-split.c (split_function): For aggregate values, set the return
13717 slot optimization bit. When passing DECL_BY_REFERENCE, produce
13718 *<retval> = fncall.part ().
13719 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
13721 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
13723 * config/arm/neon.md (UNSPEC_VAND): Delete.
13724 (UNSPEC_VBIC): Delete.
13725 (UNSPEC_VCLZ): Delete.
13726 (UNSPEC_VCNT): Delete.
13727 (UNSPEC_VEOR): Delete.
13728 (UNSPEC_VORN): Delete.
13729 (UNSPEC_VORR): Delete.
13730 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
13731 core registers too.
13732 (anddi3_neon): Likewise.
13733 (orndi3_neon): Likewise.
13734 (bicdi3_neon): Likewise.
13735 (xordi3_neon): Likewise.
13736 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
13737 rid of unspec and handle unused operand.
13738 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
13739 * config/arm/predicates.md (imm_for_neon_logic_operand):
13740 Require TARGET_NEON.
13741 (imm_for_neon_inv_logic_operand): Likewise.
13742 * config/arm/arm.md (define_split for logical_binary_operator):
13743 Disable for NEON registers.
13744 (anddi3): Add new define_expand, and rename the insn. Disable
13745 this insn for NEON, where anddi3_neon now applies.
13746 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
13747 (iordi3): As for anddi3.
13748 (xordi3): Likewise.
13749 * config/arm/neon.ml (Vand): Split DImode variants and mark them
13750 as No_op to disable testing for exact instruction match.
13755 * config/arm/arm_neon.h: Regenerated.
13756 * doc/arm-neon-intrinsics.texi: Regenerated.
13758 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
13760 * expr.h (emit_stack_probe): Declare.
13761 * explow.c (emit_stack_probe): Make global.
13762 (anti_adjust_stack_and_probe): Fix comments.
13763 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
13764 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13765 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13766 * config/sparc/sparc.c: Include except.h.
13767 (sparc_emit_probe_stack_range): New function.
13768 (output_probe_stack_range): Likewise.
13769 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
13770 built-in stack checking is enabled.
13771 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
13772 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
13773 (probe_stack_range): New insn.
13775 2010-07-02 Richard Guenther <rguenther@suse.de>
13778 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
13779 for argument alignment.
13781 2010-07-02 Jan Hubicka <jh@suse.cz>
13783 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
13784 walk backwards from entry_bb to check only those basic block of header
13785 that might lead to execution of split part.
13786 (consider_split) ... here.
13787 (find_return_bb): Allow assignment in return BB.
13788 (find_retval): New.
13789 (split_function): Fix name of cloned function; take care of updating
13790 return value in return_bb containing move.
13792 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
13795 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
13796 used variable insn.
13798 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
13800 * implicit-zee.c (combine_reaching_defs): Fix long lines.
13801 (is_set_with_extension_DI): Delete.
13802 (struct zero_extend_info): New structure.
13803 (add_removable_zero_extend): New function.
13804 (find_removable_zero_extends): Use note_stores to find SETs.
13805 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
13807 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
13809 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
13810 is_miss_rate_acceptable. Pull total_positions computation
13811 out of the loops. Early return if miss_positions exceeds
13812 the acceptable threshold.
13813 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
13814 is_miss_rate_acceptable after renaming of compute_miss_rate.
13816 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
13818 PR middle-end/44576
13819 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
13820 of 1000) for miss rate if the address diference is greater than or
13821 equal to the cache line size (the two reference will never hit the
13824 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
13827 * config/arm/arm-modes.def (CC_NOTB): New mode.
13828 * config/arm/arm.c (get_arm_condition_code): Handle it.
13829 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
13830 * config/arm/arm.md (subsi3_compare0_c): New pattern.
13831 (compare_scc): Now a define_and_split. Add a number of extra
13832 splitters before it.
13835 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
13837 (arm_rtx_costs_1): Likewise.
13838 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
13839 * config/arm/arm.md (is_arch6): New attribute.
13840 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
13841 extendqisi2): Tighten the code somewhat, avoiding invalid
13842 RTL to occur in the expander patterns.
13843 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
13844 (thumb1_zero_extendhisi2_v6): Delete.
13845 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
13846 (thumb1_extendhisi2_v6): Delete.
13847 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
13848 (thumb1_extendqisi2_v6): Delete.
13849 (zero_extendhisi2 for register input splitter): New.
13850 (zero_extendqisi2 for register input splitter): New.
13851 (thumb1_extendhisi2 for register input splitter): New.
13852 (extendhisi2 for register input splitter): New.
13853 (extendqisi2 for register input splitter): New.
13854 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
13855 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
13856 and add support for a register alternative requiring a split.
13857 (thumb1_zero_extendqisi2): Likewise.
13858 (arm_zero_extendqisi2): Likewise.
13859 (arm_extendhisi2): Likewise.
13860 (arm_extendqisi2): Likewise.
13862 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
13864 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
13865 instead of an unspec.
13866 (neon_expand_vector_init): Likewise.
13867 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
13868 (UNSPEC_VDUP_LANE): Delete.
13869 (UNSPEC VDUP_N): Delete.
13870 (UNSPEC_VGET_HIGH): Delete.
13871 (UNSPEC_VGET_LANE): Delete.
13872 (UNSPEC_VGET_LOW): Delete.
13873 (UNSPEC_VMVN): Delete.
13874 (UNSPEC_VSET_LANE): Delete.
13875 (V_double_vector_mode): New.
13876 (vec_set<mode>_internal): Make code emitted match that for the
13877 corresponding intrinsics.
13878 (vec_setv2di_internal): Likewise.
13879 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
13880 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
13881 (neon_vset_lane<mode>): Combine double and quad patterns and
13882 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
13883 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
13884 (neon_vdup_n<mode>): Rewrite RTL without unspec.
13885 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
13886 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
13887 with neon_vdup_lanev2di, adjusting the pattern from the latter
13888 to be predicable for consistency.
13889 (neon_vdup_lane<mode>_internal): New.
13890 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
13891 to avoid using an unspec.
13892 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
13893 (neon_vdup_lanev2di): Turn into a define_expand.
13894 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
13895 (neon_vget_high<mode>): Replace with....
13896 (neon_vget_highv16qi): New pattern using canonical RTL.
13897 (neon_vget_highv8hi): Likewise.
13898 (neon_vget_highv4si): Likewise.
13899 (neon_vget_highv4sf): Likewise.
13900 (neon_vget_highv2di): Likewise.
13901 (neon_vget_low<mode>): Replace with....
13902 (neon_vget_lowv16qi): New pattern using canonical RTL.
13903 (neon_vget_lowv8hi): Likewise.
13904 (neon_vget_lowv4si): Likewise.
13905 (neon_vget_lowv4sf): Likewise.
13906 (neon_vget_lowv2di): Likewise.
13908 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
13909 test for this emitting vmov.
13910 (Vset_lane): Likewise.
13911 (Vdup_n): Likewise.
13912 (Vmov_n): Likewise.
13914 * doc/arm-neon-intrinsics.texi: Regenerated.
13916 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
13918 * config/arm/neon.md (vec_extractv2di): Correct error in register
13919 numbering to reconcile with neon_vget_lanev2di.
13921 2010-07-02 Richard Guenther <rguenther@suse.de>
13923 * tree-ssa-structalias.c (pt_solution_set_var): New function.
13924 * tree-ssa-alias.h (pt_solution_set_var): Declare.
13925 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
13926 points-to information.
13928 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
13930 * config/s390/s390.c (override_options): Adopt prefetching
13931 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
13933 2010-07-02 Jan Hubicka <jh@suse.cz>
13935 * df-problems.c (df_kill_notes): Do not collect dead notes.
13936 (df_set_note): Just call add_reg_note.
13937 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
13938 df_create_unused_note): Do not deal with lists of old notes.
13939 (df_note_bb_compute): Likewise.
13941 2010-07-02 Richard Guenther <rguenther@suse.de>
13943 * tree-ssa-structalias.c (find_func_aliases): Handle
13944 pointer alignment via BIT_AND_EXPR.
13945 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
13947 2010-07-02 Richard Guenther <rguenther@suse.de>
13949 * tree-data-ref.c (initialize_data_dependence_relation): Handle
13950 mismatching number of dimensions properly.
13952 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13955 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
13956 (lo_sum (high ...) ...) patterns generated by earlier passes.
13958 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13960 * doc/install.texi (Prerequisites): Document Perl requirement on
13962 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
13964 2010-07-02 Richard Guenther <rguenther@suse.de>
13966 PR middle-end/44777
13967 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
13969 2010-07-02 Jan Hubicka <jh@suse.cz>
13971 PR middle-end/44706
13972 * predict.c (predict_paths_for_bb): Handle case when control dependence
13973 BB has only abnormal edges.
13975 2010-07-02 Richard Guenther <rguenther@suse.de>
13977 PR tree-optimization/44748
13978 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
13979 the embedded conversion in MEM_REFs.
13981 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
13983 * reload.c: Include toplev.h.
13984 * recog.c: Likewise.
13985 * Makefile.in: Adjust dependencies.
13987 2010-07-01 Jakub Jelinek <jakub@redhat.com>
13990 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
13991 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
13993 2010-07-01 Richard Guenther <rguenther@suse.de>
13995 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
13998 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
14001 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
14002 Fix argument types.
14004 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
14007 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14008 Make sure operand 0 dies.
14010 2010-07-01 Richard Guenther <rguenther@suse.de>
14012 PR middle-end/42834
14013 PR middle-end/44468
14014 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
14015 * doc/generic.texi (References to storage): Document MEM_REF.
14016 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
14017 (print_call_name): Likewise.
14018 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
14019 (build_simple_mem_ref_loc): New function.
14020 (mem_ref_offset): Likewise.
14021 * tree.h (build_simple_mem_ref_loc): Declare.
14022 (build_simple_mem_ref): Define.
14023 (mem_ref_offset): Declare.
14024 * fold-const.c: Include tree-flow.h.
14025 (operand_equal_p): Handle MEM_REF.
14026 (build_fold_addr_expr_with_type_loc): Likewise.
14027 (fold_comparison): Likewise.
14028 (fold_unary_loc): Fold
14029 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
14030 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
14031 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
14032 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
14033 (ptr_deref_may_alias_ref_p_1): Likewise.
14034 (ao_ref_base_alias_set): Properly differentiate base object for
14036 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
14037 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
14038 (indirect_refs_may_alias_p): Likewise.
14039 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
14041 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
14042 (call_may_clobber_ref_p_1): Likewise.
14043 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
14044 * expr.c (expand_assignment): Handle MEM_REF.
14045 (store_expr): Handle MEM_REFs from STRING_CSTs.
14046 (store_field): If expanding a MEM_REF of a non-addressable
14047 decl use bitfield operations.
14048 (get_inner_reference): Handle MEM_REF.
14049 (expand_expr_addr_expr_1): Likewise.
14050 (expand_expr_real_1): Likewise.
14051 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
14052 * alias.c (ao_ref_from_mem): Handle MEM_REF.
14053 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
14054 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
14055 (dr_analyze_indices): Likewise.
14056 (dr_analyze_alias): Likewise.
14057 (object_address_invariant_in_loop_p): Likewise.
14058 * gimplify.c (mark_addressable): Handle MEM_REF.
14059 (gimplify_cond_expr): Build MEM_REFs.
14060 (gimplify_modify_expr_to_memcpy): Likewise.
14061 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
14062 (gimple_fold_indirect_ref): Adjust.
14063 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
14064 * tree.def (MEM_REF): New tree code.
14065 * tree-dfa.c: Include toplev.h.
14066 (get_ref_base_and_extent): Handle MEM_REF.
14067 (get_addr_base_and_unit_offset): New function.
14068 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
14069 * gimple-fold.c (may_propagate_address_into_dereference): Handle
14071 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
14072 accesses if the array has just one dimension. Remove always true
14073 parameter. Do not require type compatibility here.
14074 (maybe_fold_offset_to_component_ref): Remove.
14075 (maybe_fold_stmt_indirect): Remove.
14076 (maybe_fold_reference): Remove INDIRECT_REF handling.
14077 Fold back to non-MEM_REF.
14078 (maybe_fold_offset_to_address): Simplify. Deal with type
14080 (maybe_fold_reference): Likewise.
14081 (maybe_fold_stmt_addition): Likewise. Also handle
14082 &ARRAY + I in addition to &ARRAY[0] + I.
14083 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
14084 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
14085 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
14086 * tree-ssa.c (useless_type_conversion_p): Make most pointer
14087 conversions useless.
14088 (warn_uninitialized_var): Handle MEM_REF.
14089 (maybe_rewrite_mem_ref_base): New function.
14090 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
14092 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
14093 INDIRECT_REF handling.
14094 (copy_tree_body_r): Handle MEM_REF.
14095 * gimple.c (is_gimple_addressable): Adjust.
14096 (is_gimple_address): Likewise.
14097 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
14098 invariant base are invariant.
14099 (is_gimple_min_lval): Adjust.
14100 (is_gimple_mem_ref_addr): New function.
14101 (get_base_address): Handle MEM_REF.
14102 (count_ptr_derefs): Likewise.
14103 (get_base_loadstore): Likewise.
14104 * gimple.h (is_gimple_mem_ref_addr): Declare.
14105 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
14106 * tree-cfg.c (verify_address): New function, split out from ...
14107 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
14108 the address operand of MEM_REFs. Verify MEM_REFs. Reject
14110 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
14111 INDIRECT_REF. Allow conversions.
14112 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
14113 a register does not change its size.
14114 (verify_types_in_gimple_reference): Verify MEM_REF.
14115 (verify_gimple_assign_single): Disallow INDIRECT_REF.
14117 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
14119 (mark_address_taken): Handle MEM_REF.
14120 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
14121 (get_asm_expr_operands): Pass opf_not_non_addressable.
14122 (get_expr_operands): Handle opf_[not_]non_addressable.
14123 Handle MEM_REF. Remove INDIRECT_REF handling.
14124 * tree-vrp.c (check_array_ref): Handle MEM_REF.
14125 (search_for_addr_array): Likewise.
14126 (check_array_bounds): Likewise.
14127 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
14128 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
14129 (ref_always_accessed_p): Likewise.
14130 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
14131 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
14133 * cgraphbuild.c (mark_load): Properly check for NULL result
14134 from get_base_address.
14135 (mark_store): Likewise.
14136 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
14137 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
14138 handling for MEM_REF.
14139 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
14140 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
14141 * builtins.c (stabilize_va_list_loc): Use the function ABI
14142 valist type if we couldn't canonicalize the argument type.
14143 Always dereference with the canonical va-list type.
14144 (maybe_emit_free_warning): Handle MEM_REF.
14145 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
14147 * builtins.c (fold_builtin_memory_op): Use ref-all types
14148 for all memcpy foldings.
14149 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
14150 (build_outer_var_ref): Likewise.
14151 (scan_omp_1_op): Likewise.
14152 (lower_rec_input_clauses): Likewise.
14153 (lower_lastprivate_clauses): Likewise.
14154 (lower_reduction_clauses): Likewise.
14155 (lower_copyprivate_clauses): Likewise.
14156 (expand_omp_atomic_pipeline): Likewise.
14157 (expand_omp_atomic_mutex): Likewise.
14158 (create_task_copyfn): Likewise.
14159 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
14160 Remove old union trick. Initialize constant offsets.
14161 (ao_ref_init_from_vn_reference): Likewise. Do not handle
14162 INDIRECT_REF. Init base_alias_set properly.
14163 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
14164 (vn_reference_fold_indirect): Adjust for MEM_REFs.
14165 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
14167 (may_insert): Remove.
14168 (visit_reference_op_load): Do not test may_insert.
14169 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
14170 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14171 a field to store the constant offset this op applies.
14172 (run_scc_vn): Adjust prototype.
14173 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
14174 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
14175 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
14176 bother about volatile qualifiers on pointers.
14177 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
14178 * tree-ssa-loop-ivopts.c
14179 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
14180 (strip_offset_1): Likewise.
14181 (find_interesting_uses_address): Replace INDIRECT_REF handling with
14183 (get_computation_cost_at): Likewise.
14184 * ipa-pure-const.c (check_op): Handle MEM_REF.
14185 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
14186 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
14188 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
14189 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
14190 (eliminate_local_variables_1): Likewise.
14191 (create_call_for_reduction_1): Likewise.
14192 (create_loads_for_reductions): Likewise.
14193 (create_loads_and_stores_for_name): Likewise.
14194 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
14195 (ssa_accessed_in_tree): Handle MEM_REF.
14196 (ssa_accessed_in_assign_rhs): Likewise.
14197 (update_type_size): Likewise.
14198 (analyze_accesses_for_call_stmt): Likewise.
14199 (analyze_accesses_for_assign_stmt): Likewise.
14200 (transform_access_sites): Likewise.
14201 (transform_allocation_sites): Likewise.
14202 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
14203 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14204 not handle INDIRECT_REF.
14205 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
14206 (cond_store_replacement): Likewise.
14207 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
14208 MEM_REF, no not handle INDIRECT_REFs.
14209 (insert_into_preds_of_block): Properly initialize avail.
14210 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
14211 for ARRAY_REFs. Properly handle reference lookups that
14212 require a bit re-interpretation.
14213 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
14214 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
14215 (build_ref_for_offset_1): Remove.
14216 (build_ref_for_offset): Build MEM_REFs.
14217 (gate_intra_sra): Disable for now.
14218 (sra_ipa_modify_expr): Handle MEM_REF.
14219 (ipa_early_sra_gate): Disable for now.
14220 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
14222 (disqualify_base_of_expr): Likewise.
14223 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
14225 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
14226 Use mem_ref_offset. Remove bogus folding.
14227 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
14228 (make_fancy_name_1): Add support for MEM_REF.
14229 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
14230 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
14231 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
14232 (compute_complex_ancestor_jump_func): Likewise.
14233 (ipa_analyze_virtual_call_uses): Likewise.
14234 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
14235 INDIRECT_REF folding with more generalized MEM_REF folding.
14236 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
14237 (forward_propagate_addr_into_variable_array_index): Also handle
14238 &ARRAY + I in addition to &ARRAY[0] + I.
14239 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
14240 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
14241 creates assignments with overlap.
14242 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
14243 (get_frame_field): Likewise.
14244 (get_nonlocal_debug_decl): Likewise.
14245 (convert_nonlocal_reference_op): Likewise.
14246 (struct nesting_info): Add mem_refs pointer-set.
14247 (create_nesting_tree): Allocate it.
14248 (convert_local_reference_op): Insert to be folded mem-refs.
14249 (fold_mem_refs): New function.
14250 (finalize_nesting_tree_1): Perform defered folding of mem-refs
14251 (free_nesting_tree): Free the pointer-set.
14252 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
14253 (vectorizable_load): Likewise.
14254 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
14255 (propagate_with_phi): Likewise.
14256 * tree-object-size.c (addr_object_size): Handle MEM_REFs
14257 instead of INDIRECT_REFs.
14258 (compute_object_offset): Handle MEM_REF.
14259 (plus_stmt_object_size): Handle MEM_REF.
14260 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
14262 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
14263 (symbol_marked_for_renaming): Likewise.
14264 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
14265 (fold-const.o): Add $(TREE_FLOW_H).
14266 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
14267 (find_func_clobbers): Likewise.
14268 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
14269 (decompose_access): Likewise.
14270 (replace_field_acc): Likewise.
14271 (replace_field_access_stmt): Likewise.
14272 (insert_new_var_in_stmt): Likewise.
14273 (get_stmt_accesses): Likewise.
14274 (reorg_structs_drive): Disable.
14275 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
14276 (ix86_canonical_va_list_type): Likewise.
14278 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
14281 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
14282 * target.def (struct gcc_target): Replace enum reg_class with
14283 reg_class_t in hook argument / return types.
14284 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
14285 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
14286 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14287 * targhooks.h (default_branch_target_register_class): Likewise.
14288 (default_ira_cover_classes, default_secondary_reload): Likewise.
14289 (default_memory_move_cost, default_register_move_cost): Likewise.
14290 * targhooks.c (default_branch_target_register_class): Likewise.
14291 (default_ira_cover_classes, default_secondary_reload): Likewise.
14292 (default_memory_move_cost, default_register_move_cost): Likewise.
14293 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
14294 * bt-load.c (branch_target_load_optimize): Likewise.
14295 * ira.c (setup_cover_and_important_classes): Likewise.
14296 * ira-costs.c (copy_cost): Likewise.
14297 * reload1.c (emit_input_reload_insns): Likewise.
14298 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
14299 * config/frv/frv.c (frv_secondary_reload): Likewise.
14300 * config/s390/s390.c (s390_secondary_reload): Likewise.
14301 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
14302 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
14303 (ix86_register_move_cost): Likewise.
14304 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
14305 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
14306 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
14307 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
14308 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
14309 (rs6000_ira_cover_classes): Likewise.
14310 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
14311 * config/picochip/picochip-protos.h (picochip_secondary_reload):
14313 * config/pa/pa.c (pa_secondary_reload): Likewise.
14314 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
14315 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
14316 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
14317 * doc/tm.texi: Regenerate.
14319 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
14321 PR bootstrrap/44726
14322 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
14324 (build_alias_set_optimal_p): Likewise.
14325 (build_base_obj_set_for_drs): Likewise.
14327 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
14329 * target.def: Remove comment about licensing problems of function
14332 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
14333 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
14334 * doc/tm.texi: Regenerate.
14336 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
14337 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
14339 * target.def (enum_va_list_p): Use DEFHOOK.
14340 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
14341 Rename ptype to ptree.
14342 * doc/tm.texi: Regenerate.
14344 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
14345 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
14346 * doc/tm.texi: Regenerate.
14348 * target.def (memory_move_cost): Use DEFHOOK.
14349 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
14350 Rename regclass AKA class to rclass.
14351 * doc/tm.texi: Regenerate.
14353 * target.def (pragma_parse): Use DEFHOOK.
14354 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
14355 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
14356 * doc/tm.texi: Regenerate.
14358 * target.def (pass_by_reference): Use DEFHOOK.
14359 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
14360 * doc/tm.texi: Regenerate.
14362 * target.def (resolve_overloaded_builtin): Rename params to arglist.
14364 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
14365 * doc/tm.texi: Regenerate.
14367 * target.def (return_pops_args): Use DEFHOOK.
14368 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
14369 Rename stack-size to size.
14370 * doc/tm.texi: Regenerate.
14372 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
14373 last-sched_cycle to last_clock, cur_cycle to clock.
14374 * doc/tm.texi.in: Use @hook.
14375 * doc/tm.texi: Regenerate.
14377 * target.def (print_operand, print_operand_address): Update comment.
14378 (print_operand_punct_valid_p): Likewise.
14380 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
14382 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
14384 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
14385 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
14386 * rtl-error.h: New.
14387 * regrename.c: Do not include toplev.h. Include rtl-error.h.
14388 * rtl-error.c: Likewise.
14389 * reload.c: Likewise.
14390 * recog.c: Likewise.
14391 * sel-sched.c: Likewise.
14392 * function.c: Likewise.
14393 * reg-stack.c: Likewise.
14394 * cfgrtl.c: Likewise.
14395 * reload1.c: Likewise.
14396 * final.c: Include rtl-error.
14397 * Makefile.in: Adjust dependencies.
14399 2010-06-30 Jan Hubicka <jh@suse.cz>
14401 PR middle-end/PR44706
14402 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
14403 to return the value.
14405 2010-06-30 Michael Matz <matz@suse.de>
14408 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
14409 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
14410 a gimple reg, attach the original VDEF to the last store in the
14413 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
14416 * config/darwin.c (darwin_override_options): Use renamed
14417 targetm.asm_out.emit_unwind_label.
14419 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
14421 PR tree-optimization/39799
14422 * tree-inline.c (remap_ssa_name): Initialize variable only if
14423 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
14425 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
14427 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
14429 2010-06-30 Richard Guenther <rguenther@suse.de>
14432 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
14433 against oscillation with reverse peephole2.
14435 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
14438 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14441 2010-06-30 Nick Clifton <nickc@redhat.com>
14443 * config/rx/rx-modes.def: New file.
14444 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
14445 (CC_REGNUM): Define.
14446 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
14448 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
14449 (SELECT_CC_MODE): Define.
14450 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
14451 (reg:CC CC_REG) instead of (cc0).
14452 (attr "cc"): Delete.
14453 (cbranchsi4): Do not split compare and branch here. Instead move
14455 (cbranchsi4_<code>): ... here. New patterns.
14456 (cmpsi): Call rx-compare_redundant to find out if it is necessary
14457 to emit the compare instruction.
14458 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
14460 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
14461 FIRST_PSEUDO_REGNUM.
14462 (rx_expand_prologue, rx_expand_epilogue): Likewise.
14463 (rx_notice_update_cc): Delete.
14464 (rx_cc_modes_compatible): New function.
14465 (flags_needed_for_conditional): New function.
14466 (flags_from_mode): New function.
14467 (rx_compare_redundant): New function - scans backwards through
14468 insn list to find out if condition flags are already set correctly.
14469 (TARGET_CC_MODES_COMPATIBLE): Define.
14470 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
14472 * config/rx/rx.h (BRANCH_COST): Define.
14473 (REGISTER_MOVE_COST): Define.
14474 * config/rx/predicates (rx_source_operand): Allow all constant types.
14475 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
14476 (tstsi4): New pattern.
14477 * config/rx/rx.c (rx_memory_move_cost): Define.
14478 (TARGET_MEMORY_MOVE_COST): Define.
14480 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
14482 * tree.h (block_may_fallthru): Declare here.
14483 * tree-flow.h (block_may_fallthru): Do not declare here.
14484 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
14486 * Makefile.in (c-typeck.o): Update dependencies.
14488 2010-06-30 Jakub Jelinek <jakub@redhat.com>
14491 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
14492 * cselib.c (cfa_base_preserved_regno): New static variable.
14493 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
14494 of REGNO (cfa_base_preserved_val->locs->loc).
14495 (cselib_preserve_cfa_base_value): Add regno argument, set
14496 cfa_base_preserved_regno to it.
14497 (cselib_invalidate_regno): Allow removal of registers other than
14498 cfa_base_preserved_regno from cfa_base_preserved_val.
14499 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
14500 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
14501 of MEM addresses, if not on LHS.
14502 (reverse_op): Don't add reverse ops for cfa_base_rtx.
14503 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
14505 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
14507 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
14509 (peep2_buf_position): New static function.
14510 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
14511 peephole2_optimize): Use it.
14512 (peep2_attempt, peep2_update_life): New static functions, broken out
14513 of peephole2_optimize.
14514 (peep2_fill_buffer): New static function.
14515 (peephole2_optimize): Change the main loop to try to fill the buffer
14516 with the maximum number of insns before matching them against
14517 peepholes. Use a forward scan. Remove special case for targets with
14518 conditional execution.
14519 * genrecog.c (change_state): Delete dead code.
14520 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14521 Rewrite so as not to expect the second insn to have had a peephole
14524 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
14526 * genhooks.c (emit_findices): Cast field precision to int.
14527 (emit_documentation): Likewise.
14529 2010-06-29 Jakub Jelinek <jakub@redhat.com>
14531 PR tree-optimization/43801
14532 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
14533 if old_decl was DECL_ONE_ONLY.
14536 * dwarf2out.c (add_accessibility_attribute): New function.
14537 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
14538 instead of adding DW_AT_accessibility manually.
14539 (gen_enumeration_type_die, gen_struct_or_union_type_die,
14540 gen_typedef_die): Use it.
14542 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14544 * vmsdbgout.c (full_name): Just output the file name if not native.
14546 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14548 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
14549 (funcnam_table): New static table.
14550 (funcnum_table): New static table.
14551 (write_rtnbeg): Write value saved in funcnum_table.
14552 (write_rtnend): Write value saved in funcnum_table.
14553 (vmsdbgout_begin_function): Save current function info in
14554 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
14555 (vmsdbgout_finish): Iterate over funcnum_table.
14557 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14559 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
14560 (vmsdbgout_type_decl): Declare
14561 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
14562 (FUNC_EPILOGUE_LABEL): New macro
14563 (vmsdbgout_begin_epilogue): New function.
14564 (vmsdbgout_type_decl): New function.
14566 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14568 * vmsdbg.h: Update copyright.
14570 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14572 * vmsdbg.h (DST_K_TBG): New DST constant.
14573 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
14574 (write_modbeg): Cast module_language to avoid warning.
14575 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
14577 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
14580 * target.def, doc/tm.texi.in, genhooks.c: New files.
14581 * target.h: Instead of defining individual hook members,
14582 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
14583 include target.def.
14584 * target-def.h: Instead of defining individual hook initializers,
14585 include target-hooks-def.h.
14586 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
14587 targetm.live_on_entry -> targetm.extra_live_on_entry
14588 targetm.sched.md_finish ->targetm.sched.finish
14589 targetm.sched.md_init -> targetm.sched.init
14590 targetm.sched.md_init_global -> targetm.sched.init_global
14591 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
14592 targetm.asm_out.except_table_label ->
14593 targetm.asm_out.emit_except_table_label
14594 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
14595 targetm.target_help -> targetm.help
14596 targetm.vectorize.builtin_support_vector_misalignment ->
14597 targetm.vectorize.support_vector_misalignment
14598 targetm.file_start_app_off -> targetm.asm_file_start_app_off
14599 targetm.file_start_file_directive ->
14600 targetm.asm_file_start_file_directive
14601 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
14602 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
14603 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
14604 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
14605 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
14606 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
14607 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
14608 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
14609 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
14610 * Makefile.in (TARGET_H): Depend on target.def.
14611 (TARGET_DEF_H): Depend on target-hooks-def.h.
14612 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
14613 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
14614 * doc/tm.texi: Regenerate.
14616 * Makefile.in (s-tm-texi): Remove stray tab / rule.
14618 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
14619 (targetm.sched.init): Likewise.
14621 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
14624 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
14625 (function_arg_advance_32): Const-ify TYPE parameter.
14626 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
14627 (ix86_function_arg_advance): Change type of NAMED to bool.
14628 (function_arg_32): Const-ify CUM and TYPE parameters.
14629 (function_arg_64): Likewise. Change type of NAMED to bool.
14630 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
14632 (ix86_function_arg): Change type of NAMED to bool.
14633 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
14634 last argument as a bool.
14636 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
14638 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
14639 (OVERRIDE_OPTIONS): Add note of obsolescence.
14640 Replace references with references to TARGET_OPTION_OVERRIDE.
14641 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
14643 * targhooks.c (default_target_option_override): New function.
14644 * targhooks.h (default_target_option_override): Declare.
14645 * target.h (struct gcc_target): Add override member to
14646 target_option member.
14647 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
14648 targetm.target_option.override call.
14649 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
14650 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
14652 2010-06-29 Jan Hubicka <jh@suse.cz>
14654 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
14656 2010-06-29 Jan Hubicka <jh@suse.cz>
14658 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
14660 (rebuild_frequencies): New function.
14661 * predict.h (rebuild_frequencies): Declare.
14662 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
14663 entry block and edge reaching new_entry.
14664 (tree_function_versioning): When doing partial cloning, rebuild
14665 frequencies when done.
14666 * passes.c (execute_function_todo): Use rebild_frequencies.
14668 2010-06-29 Richard Guenther <rguenther@suse.de>
14670 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
14671 * tree-flow.h (enum noalias_state): Remove.
14672 (struct var_ann_d): Remove noalias_state member.
14674 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
14677 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
14678 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
14679 (maddhidi4): Likewise.
14681 Revert parts of the change for PR25130.
14682 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14685 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
14687 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
14688 targetm.calls.function_incoming_arg, and
14689 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
14690 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
14691 * target.h (struct gcc_target): Add function_arg_advance,
14692 function_arg, and function_incoming_arg fields.
14693 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
14694 (TARGET_FUNCTION_INCOMING_ARG): Define.
14695 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
14696 and TARGET_FUNCTION_INCOMING_ARG.
14697 * targhooks.h (default_function_arg_advance): Declare.
14698 (default_function_arg, default_function_incoming_arg): Declare.
14699 * targhooks.c (default_function_arg_advance): New function.
14700 (default_function_arg, default_function_incoming_arg): New function.
14701 * config/i386/i386.c (function_arg_advance): Rename to...
14702 (ix86_function_arg_advance): ...this. Make static.
14703 (function_arg): Rename to...
14704 (ix86_function_arg): ...this. Make static.
14705 (TARGET_FUNCTION_ARG_ADVANCE): Define.
14706 (TARGET_FUNCTION_ARG): Define.
14707 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
14708 (FUNCTION_ARG): Delete.
14709 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
14710 (function_arg): Delete prototype.
14712 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
14714 * reginfo.c (init_reg_sets_1): Adjust comments.
14715 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
14716 * calls.c (prepare_call_address): Likewise.
14717 (emit_call_1): Use targetm.calls.return_pops_args.
14718 (expand_call): Likewise.
14719 * function.c (assign_parms): Likewise.
14720 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
14721 * target.h (struct gcc_target) [struct calls]: Add
14722 return_pops_args field.
14723 * targhooks.h (default_return_pops_args): Declare.
14724 * targhooks.c (default_return_pops_args): Define.
14725 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
14726 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
14727 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
14728 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
14730 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
14731 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
14732 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
14733 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
14734 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
14735 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
14736 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
14737 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
14738 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
14739 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
14740 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
14741 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
14742 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
14743 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
14744 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
14745 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
14746 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
14747 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
14748 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
14749 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
14750 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
14751 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
14752 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
14753 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
14754 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
14755 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
14756 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
14757 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
14758 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
14759 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
14760 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
14761 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
14762 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
14763 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
14764 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
14765 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
14766 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
14767 * config/i386/i386.c (ix86_return_pops_args): Make static.
14768 Constify arguments.
14769 (TARGET_RETURN_POPS_ARGS): Define.
14770 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
14771 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
14772 (TARGET_RETURN_POPS_ARGS): Define.
14773 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
14774 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
14775 (TARGET_RETURN_POPS_ARGS): Define.
14777 2010-06-29 Richard Guenther <rguenther@suse.de>
14779 PR middle-end/44667
14780 * tree-inline.c (initialize_inlined_parameters): Make sure
14781 to remap the inlined parameter variable substitutions types.
14783 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
14785 PR rtl-optimization/44659
14786 * combine.c (make_compound_operation) <SUBREG>: Do not return the
14787 result of force_to_mode if it partially re-expanded the compound.
14789 2010-06-28 Jan Hubicka <jh@suse.cz>
14791 PR middle-end/44671
14792 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
14795 2010-06-28 Anatoly Sokolov <aesok@post.ru>
14797 * double-int.h (force_fit_type_double): Remove declaration.
14798 * double-int.c (force_fit_type_double): Move to tree.c.
14799 * tree.h (force_fit_type_double): Declare.
14800 * tree.h (force_fit_type_double): Moved from double-int.c. Use
14801 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
14802 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
14803 * convert.c (convert_to_pointer): Adjust call to
14804 force_fit_type_double.
14805 * tree-vrp.c (extract_range_from_assert,
14806 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
14807 * fold-const.c: Update comment.
14808 (int_const_binop, fold_convert_const_int_from_int,
14809 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
14810 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
14811 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
14812 round_up_loc): Adjust call to force_fit_type_double.
14814 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14816 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
14818 2010-06-28 Martin Jambor <mjambor@suse.cz>
14820 * tree-sra.c (convert_callers): New parameter, change fndecls of
14822 (modify_function): Pass the old decl to convert_callers.
14824 2010-06-28 Martin Jambor <mjambor@suse.cz>
14826 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
14827 ipa_check_create_node_params and ipa_initialize_node_params with
14828 checking asserts they are not necessary.
14830 2010-06-28 Jan Hubicka <jh@suse.cz>
14832 PR tree-optimization/44687
14833 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
14835 2010-06-28 Martin Jambor <mjambor@suse.cz>
14838 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
14839 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
14840 instead of BINFO_BASE_BINFO.
14842 2010-06-28 Michael Matz <matz@suse.de>
14844 PR middle-end/44592
14845 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
14846 proper VDEF chain for intermediate stores in the sequence.
14848 2010-06-28 Jan Hubicka <jh@suse.cz>
14850 PR tree-optimization/44357
14851 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
14852 uninlinable functions.
14854 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14856 * config.gcc (powerpc*-*-*): Handle titan.
14857 * config/rs6000/rs6000.c (titan_cost): New costs.
14858 (rs6000_override_options): Add "titan" to processor_target_table.
14859 Add Titan to branch alignment logic.
14860 Correctly set rs6000_cost for titan.
14861 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
14862 * config/rs6000/titan.md: New file.
14863 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
14865 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
14867 * tree-browser.c (TB_history_stack): Convert to a VEC.
14868 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
14869 (TB_history_prev): Likewise.
14871 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
14873 * vec.h (vec_heap_free): Add parentheses around free.
14875 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
14877 * system.h: Poison GCC_EXCEPT_H for front-end files.
14879 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
14881 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
14882 Define to NULL by default.
14883 * except.h: Define GCC_EXCEPT_H.
14884 (doing_eh): Remove prototype.
14885 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
14886 (lang_protect_cleanup_actions): Remove.
14887 * except.c (lang_protect_cleanup_actions): Remove.
14888 (doing_eh): Remove.
14889 (gen_eh_region): Don't check doing_eh here.
14890 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
14891 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
14892 instead of lang_protect_cleanup_actions.
14893 * omp-low.c (maybe_catch_exception): Likewise.
14894 * Makefile.in: Update dependencies.
14896 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
14898 * cgraph.h (struct varpool_node): new used_from_object_file flag.
14899 (struct cgraph_local_info): new used_from_object_file flag.
14900 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
14901 (cgraph_clone_node): initialize used_from_object_file.
14902 (cgraph_create_virtual_clone): initialize used_from_object_file.
14903 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
14904 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
14905 when compiling with -fwhole-program.
14906 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
14908 * ipa.c (function_and_variable_visibility): Set externally_visible
14909 flag of varpool_node if used_from_object_file flag is set.
14910 (cgraph_externally_visible_p): check used_from_object_file flag.
14911 * doc/invoke.texi (-fwhole-program option): Change description of
14912 externally_visible attribute accordingly.
14913 * doc/extend.texi (externally_visible): Ditto.
14915 2010-06-27 Jan Hubicka <jh@suse.cz>
14917 * params.def (max-inline-insns-auto): Default to 40.
14918 * doc/invoke.texi (max-inline-insns-auto): Document the change.
14920 2010-06-27 Jan Hubicka <jh@suse.cz>
14922 PR middle-end/44671
14923 PR middle-end/44686
14924 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
14926 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
14927 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
14929 2010-06-27 Anatoly Sokolov <aesok@post.ru>
14931 * target.h (struct gcc_target): Add register_move_cost field.
14932 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
14933 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
14934 * targhooks.c (default_register_move_cost): New function.
14935 * targhooks.h (default_register_move_cost): Declare function.
14936 * defaults.h (REGISTER_MOVE_COST): Delete.
14937 * ira-int.h (ira_register_move_cost): Update comment.
14938 * ira.c (ira_register_move_cost): Update comment.
14939 * reload.h (register_move_cost): Declare.
14940 * reginfo.c (register_move_cost): New function.
14941 (move_cost): Update comment.
14942 (init_move_cost, memory_move_secondary_cost): Replace
14943 REGISTER_MOVE_COST with register_move_cost.
14944 * postreload.c (reload_cse_simplify_set): (Ditto.).
14945 * reload.c (find_valid_class, find_reloads): (Ditto.).
14946 * reload1.c (choose_reload_regs): (Ditto.).
14947 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
14948 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
14949 * doc/md.texi (can_create_pseudo_p): Update documentation.
14951 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
14952 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
14953 * config/i386/i386.h (ix86_memory_move_cost): Make static.
14954 (TARGET_MEMORY_MOVE_COST): Define.
14956 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
14957 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
14958 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
14959 (TARGET_MEMORY_MOVE_COST): Define.
14961 2010-06-27 Richard Guenther <rguenther@suse.de>
14963 PR tree-optimization/44683
14964 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
14965 false edge from the inverted condition.
14967 2010-06-27 Richard Guenther <rguenther@suse.de>
14969 PR middle-end/44684
14970 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
14971 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
14972 for register LHS. Or non-store assignments.
14974 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
14976 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
14977 (sparc_emit_set_const64): Likewise. Remove disabled code.
14978 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
14979 (sparc_emit_set_const64): Likewise.
14981 2010-06-26 Catherine Moore <clm@codesourcery.com>
14983 * config/mips/mips.md (alu_type): New attribute.
14984 (type): Infer type from alu_type.
14985 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
14986 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
14987 *subsi3_extended, negsi2, negdi2, *low<mode>,
14988 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
14989 xor<mode>3, *nor<mode>3,
14990 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
14991 *zero_extendhi_truncqi): Set alu_type instead of type.
14993 2010-06-26 Douglas B Rupp <rupp@gnat.com>
14995 * config/alpha/alpha.c (alpha_need_linkage): Adjust
14996 splay_tree_new_ggc call.
14997 (alpha_use_linkage): Likewise.
14999 2010-06-26 Joseph Myers <joseph@codesourcery.com>
15001 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
15002 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
15003 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
15004 (static_specs): Remove switches_need_spaces.
15005 (process_command, do_self_spec): Hardcode handling "-o" instead of
15006 checking switches_need_spaces.
15007 * system.h (SWITCHES_NEED_SPACES): Poison.
15009 2010-06-26 Richard Guenther <rguenther@suse.de>
15011 PR tree-optimization/44393
15012 * tree-loop-distribution.c (generate_loops_for_partition): Fix
15013 stmt removal and VOP renaming.
15014 (generate_memset_zero): Remove redundant stmt updating.
15015 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
15016 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
15018 2010-06-26 Jan Hubicka <jh@suse.cz>
15020 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
15021 edges comming from header are equivalent.
15022 (visit_bb): Handle PHIs correctly.
15023 * tree-inline.c (copy_phis_for_bb): Be able to copy
15024 PHI from entry edge.
15025 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
15027 2010-06-26 Richard Guenther <rguenther@suse.de>
15029 PR middle-end/44674
15030 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
15031 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
15033 2010-06-26 Joseph Myers <joseph@codesourcery.com>
15035 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
15036 add_infile, alloc_switch): New.
15037 (process_command): Remove variable lang_n_infiles. Process
15038 options in a single pass. Use new functions for allocating
15039 infiles and switches arrays. Properly skip operands of
15040 -Xpreprocessor and -Xassembler.
15042 2010-06-26 Jan Hubicka <jh@suse.cz>
15044 PR middle-end/44671
15045 * cgraphunit.c (cgraph_function_versioning): Remove wrong
15046 cgraph_make_decl_local call; fix typo copying RTL data.
15048 2010-06-25 DJ Delorie <dj@redhat.com>
15050 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
15051 (m32c_output_aligned_common): Likewise.
15052 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
15053 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15054 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
15055 (m32c_register_pragmas): Register it.
15056 * config/m32c/m32c.c (m32c_get_pragma_address): New.
15057 (m32c_insert_attributes): Set #pragma address decls volatile.
15058 (pragma_entry_eq): New.
15059 (pragma_entry_hash): New.
15060 (m32c_note_pragma_address): New.
15061 (m32c_get_pragma_address): New.
15062 (m32c_output_aligned_common): New.
15063 * doc/extend.texi: Document the new pragma.
15065 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
15067 * config/m32c/predicates.md (m32c_any_operand): Check the code
15068 instead of memory_operand so as to allow matching volatile MEMs.
15069 (m32c_nonimmediate_operand): Likewise.
15070 (mra_operand): Allow volatiles.
15072 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
15075 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
15076 address if the offset is unknown.
15078 2010-06-25 Douglas B Rupp <rupp@gnat.com>
15080 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
15081 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
15082 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
15083 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
15084 to ia64_start_function. Invoke it.
15085 * config/ia64/ia64.c (ia64_start_function): Call new function
15086 dwarf2out_vms_debug_main_pointer.
15088 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15090 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
15091 statements computing the true predicate.
15093 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15095 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
15096 to boolean_true_node.
15097 (reset_bb_predicate): New.
15098 (predicate_bbs): Call reset_bb_predicate.
15100 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15102 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
15103 (tree_if_conversion): Returns true when something has been changed.
15104 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
15107 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15109 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
15110 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
15111 * tree-if-conv.c: Include dbgcnt.h.
15112 (tree_if_conversion): Use if_conversion_tree to count the number of
15113 if-convertible loops.
15115 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
15117 * common.opt (fprefetch-loop-arrays): Re-define
15118 -fprefetch-loop-arrays as a tri-state option with the initial
15120 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
15121 pass only when flag_prefetch_loop_arrays > 0.
15122 * toplev.c (process_options): Note that, with tri-states,
15123 flag_prefetch_loop_arrays>0 means prefetching is enabled.
15124 * config/i386/i386.c (override_options): Enable prefetching at -O3
15125 for a set of CPUs that sw prefetching is helpful.
15126 (software_prefetching_beneficial_p): New. Return TRUE if software
15127 prefetching is beneficial for the given CPU.
15129 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
15131 PR rtl-optimization/44326
15132 * implicit-zee.c (find_removable_zero_extends): Replace
15133 INSN_P with NONDEBUG_INSN_P.
15135 2010-06-25 Martin Jambor <mjambor@suse.cz>
15137 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
15138 (struct ipa_node_params): Removed the modification_analysis_done flag.
15139 (ipa_is_param_modified): Removed.
15140 (ipa_analyze_node): Declare.
15141 (ipa_compute_jump_functions): Remove declaration.
15142 (ipa_count_arguments): Likewise.
15143 (ipa_detect_param_modifications): Likewise.
15144 (ipa_analyze_params_uses): Likewise.
15145 * ipa-prop.c (struct param_analysis_info): New type.
15146 (visit_store_addr_for_mod_analysis): Removed.
15147 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
15148 moved down in the file.
15149 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
15150 (ipa_count_arguments): Made static.
15151 (mark_modified): New function.
15152 (is_parm_modified_before_call): New function.
15153 (compute_pass_through_member_ptrs): New parameter parms_info, call
15154 is_parm_modified_before_call instead of ipa_is_param_modified.
15155 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
15156 it to compute_pass_through_member_ptrs.
15157 (ipa_compute_jump_functions): New parameter parms_info, pass it to
15158 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
15159 on the callee if it is analyzed. Made static.
15160 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
15161 is_parm_modified_before_call instead of ipa_is_param_modified.
15162 (ipa_analyze_call_uses): New parameter parms_info, pass it to
15163 ipa_analyze_indirect_call_uses.
15164 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
15165 ipa_analyze_call_uses.
15166 (ipa_analyze_params_uses): New parameter parms_info, pass it to
15167 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
15168 (ipa_analyze_node): New function.
15169 (ipa_print_node_params): Do not dump the modified flag.
15170 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
15171 it. Do not stream the modified parameter flag.
15172 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
15173 it. Do not stream the modified parameter flag.
15174 * ipa-cp.c (ipcp_analyze_node): Removed.
15175 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
15176 with only a call to ipa_analyze_node.
15177 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
15178 node with only a call to ipa_analyze_node.
15180 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15182 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
15184 2010-06-25 Jan Hubicka <jh@suse.cz>
15186 * tree-pass.h (pass_split_functions): Declare.
15187 * opts.c (decode_options): Enable function splitting at -O2
15188 * timevar.def (TV_IPA_FNSPLIT): New macro.
15189 * ipa-split.c: New file.
15190 * common.opt (-fpartial-inlining): New flag.
15191 * Makefile.in (ipa-split.o): New object file.
15192 * passes.c (init_optimization_passes): Add ipa-split.
15193 * params.def (partial-inlining-entry-probability): New parameters.
15194 * doc/invoke.texi (-fpartial-inlining): New.
15196 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15199 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
15200 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
15201 (gimplify_expr): Likewise.
15203 2010-06-25 Martin Jambor <mjambor@suse.cz>
15205 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
15206 statements instead of bailing out on them.
15207 (ipa_analyze_indirect_call_uses): Do not require that loads from the
15208 parameter are in the same BB as the condition. Update comments.
15210 2010-06-25 Jakub Jelinek <jakub@redhat.com>
15212 PR middle-end/43866
15213 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
15214 true or always false, return NULL_TREE.
15215 (tree_unswitch_single_loop): Optimize conditions even when reaching
15216 max-unswitch-level parameter. If num > 0, optimize first all conditions
15217 using entry checks, then do still reachable block discovery and consider
15218 only conditions in still reachable basic blocks in the loop.
15220 PR tree-optimization/44539
15221 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
15222 the call doesn't have LHS, but has VDEF.
15224 2010-06-25 Joseph Myers <joseph@codesourcery.com>
15226 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
15227 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
15228 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
15229 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
15230 * system.h (MODIFY_TARGET_NAME): Poison.
15232 2010-06-25 Alan Modra <amodra@gmail.com>
15234 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
15235 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
15236 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
15237 CMODEL_LARGE as default.
15238 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
15239 (offsettable_ok_by_alignment): Delete.
15240 (rs6000_emit_move): Remove mcmodel=medium optimization.
15242 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
15244 With large parts from Jim Wilson:
15246 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
15247 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
15248 * optabs.c (optab_for_tree_code): Likewise.
15249 (expand_widen_pattern_expr): Likewise.
15250 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
15251 out of execute_optimize_widening_mul.
15252 (convert_plusminus_to_widen): New function.
15253 (execute_optimize_widening_mul): Use the two new functions.
15254 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
15255 Remove code to generate widening multiply-accumulate. Add support
15256 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
15257 * gimple-pretty-print.c (dump_ternary_rhs): New function.
15258 (dump_gimple_assign): Call it when appropriate.
15259 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
15260 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
15261 (expand_gimple_stmt_1): Likewise.
15262 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
15263 WIDEN_MULT_MINUS_EXPR.
15264 * tree-ssa-operands.c (get_expr_operands): Likewise.
15265 * tree-inline.c (estimate_operator_cost): Likewise.
15266 * gimple.c (extract_ops_from_tree_1): Renamed from
15267 extract_ops_from_tree. Add new arg for a third operand; fill it.
15268 (gimple_build_assign_stat): Support operations with three operands.
15269 (gimple_build_assign_with_ops_stat): Likewise.
15270 (gimple_assign_set_rhs_from_tree): Likewise.
15271 (gimple_assign_set_rhs_with_ops_1): Renamed from
15272 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
15273 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
15274 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
15275 WIDEN_MULT_MINUS_EXPR.
15276 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
15277 (extract_ops_from_tree_1): Adjust declaration.
15278 (gimple_assign_set_rhs_with_ops_1): Likewise.
15279 (gimple_build_assign_with_ops): Pass NULL for last operand.
15280 (gimple_build_assign_with_ops3): New macro.
15281 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
15282 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
15284 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
15285 (verify_gimple_assign): Call it.
15286 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
15287 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
15288 functions for dealing with three-operand statements.
15289 * tree.c (commutative_ternary_tree_code): New function.
15290 * tree.h (commutative_ternary_tree_code): Declare it.
15291 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
15292 ternary statements.
15293 (gimple_assign_nonzero_warnv_p): Likewise.
15294 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
15295 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
15296 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
15297 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
15298 (struct hashtable_expr): New member ternary in the union.
15299 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
15300 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
15301 (iterative_hash_hashable_expr): Likewise.
15302 (print_expr_hash_elt): Handle EXPR_TERNARY.
15303 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
15304 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
15305 statements. Handle GIMPLE_TERNARY_RHS.
15307 2010-06-25 Jan Hubicka <jh@suse.cz>
15309 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
15311 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
15314 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
15315 parameters are not good.
15316 (c_parser_parameter_declaration): Error unknown type name if the type
15317 name can't start declaration specifiers.
15319 2010-06-25 Joseph Myers <joseph@codesourcery.com>
15321 * gcc.c (translate_options): Don't mention +e in comment.
15322 (process_command): Don't handle +e specially.
15324 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
15326 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
15328 * ira-build.c (merge_hard_reg_conflicts): New function.
15329 (create_cap_allocno, copy_info_to_removed_store_destinations,
15330 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
15331 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
15332 (remove_unnecessary_allocnos, remove_low_level_allocnos)
15333 copy_nifo_to_removed_store_destination): Use them.
15334 * ira-lives.c (make_hard_regno_born): New function, split out of
15336 (make_allocno_born): Likewise.
15337 (make_hard_regno_dead): New function, split out of make_regno_dead.
15338 (make_allocno_dead): Likewise.
15339 (inc_register_pressure): New function, split out of set_allocno_live.
15340 (dec_register_pressure): New function, split out of clear_allocno_live.
15341 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
15342 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
15343 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
15344 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
15345 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
15346 mark_pseudo_regno_live.
15347 (process_bb_node_lives): Use mark_pseudo_regno_live,
15348 make_hard_regno_born and make_allocno_dead.
15349 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
15350 set_allocno_live, clear_allocno_live): Delete functions.
15352 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
15353 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
15355 (ira_flattening): Use ira_parent_allocno.
15356 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
15357 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
15359 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
15362 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
15363 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
15364 minmax_set_iter_cond, minmax_set_iter_next,
15365 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
15366 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
15367 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
15368 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
15371 * ira-int.h (struct live_range, live_range_t): Renamed from struct
15372 ira_allocno_live_range and allocno_live_range_t; all uses changed.
15373 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
15376 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
15378 * thumb2.md (thumb2_tlobits_cbranch): Delete.
15379 (peephole2 to convert zero_extract/compare of single bit to
15380 lshift/compare): New.
15382 2010-06-24 Anatoly Sokolov <aesok@post.ru>
15384 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
15385 recursive call and call to 'int_const_binop'.
15386 (build_range_check, fold_cond_expr_with_comparison, unextend,
15387 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
15388 multiple_of_p): Adjust call to const_binop.
15390 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
15392 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
15393 determine size of XFmode operand.
15394 (XFmode extended DFmode push splitter): Ditto.
15395 (XFmode extended SFmode push splitter): Ditto.
15397 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
15400 * config/i386/i386.md (extract_code): New.
15401 (<u>divmodqi4): Likewise.
15402 (divmodhiqi3): Likewise.
15403 (udivmodhiqi3): Likewise.
15404 (<u>divqi3): Remvoved.
15406 2010-06-24 Jakub Jelinek <jakub@redhat.com>
15408 PR middle-end/44492
15409 * recog.h (struct recog_data): Add is_asm field.
15410 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
15411 present in constraints of inline-asm operand and memory operand
15412 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
15413 (extract_insn): Initialize recog_data.is_asm.
15414 * doc/md.texi (Constraints): Document operand side-effect rules.
15416 2010-06-24 Andi Kleen <ak@linux.intel.com>
15418 * c-parser.c (c_parser_conditional_expression): Call
15419 warn_for_omitted_condop.
15420 * doc/invoke.texi: Document omitted condop warning.
15422 2010-06-24 Nick Clifton<nickc@redhat.com>
15424 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
15425 insn in the sequence is a jump insn before setting its label.
15427 2010-06-24 Alan Modra <amodra@gmail.com>
15429 * collect2.c (main): Match exactly --version and --help.
15431 2010-06-24 DJ Delorie <dj@redhat.com>
15433 * config/m32c/m32c-pragma.c: Don't include rtl.h.
15435 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
15437 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
15438 using X87MODEF mode iterator.
15439 (pushsf splitter): Macroize splitter using P mode iterator.
15440 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
15443 (*movxf_internal): Rename from *movxf_integer.
15444 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
15445 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
15446 (*movdf_internal): Rename from *movdf_integer.
15447 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
15448 (*movsf_internal): Rename from *movdf_1.
15450 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
15452 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
15453 (const_gimple_seq_node): Removed typedefs.
15455 * gimple.h (gimple_seq_node_d, gimple_seq_node)
15456 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
15458 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
15460 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
15461 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
15462 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
15463 and CODE_FOR_vec_extract_lo_v4df.
15465 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
15466 Changed to define_insn_and_split.
15467 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
15468 (vec_extract_lo_v16hi): Likewise.
15469 (vec_extract_lo_v32qi): Likewise.
15470 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
15471 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
15473 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
15476 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
15477 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
15478 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
15479 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
15480 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
15483 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
15486 * df-core.c (struct df): Rename to df_d.
15487 * df.h (struct df): Likewise.
15488 * dse.h (struct df): Remove forward declaration.
15489 * recog.h (struct insn_data): Rename to:
15490 (struct_insn_data_d). Adjusted all users.
15492 2010-06-23 Arnaud Charlet <charlet@adacore.com
15495 * doc/install.texi: Update requirements to build GNAT.
15497 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
15499 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
15501 (m68k_sched_attr_opx_type): Remove unreachable return.
15502 (m68k_sched_attr_opy_type): Likewise.
15503 (m68k_sched_attr_size): Likewise.
15504 (sched_get_opxy_mem_type): Likewise.
15505 (m68k_sched_attr_op_mem): Likewise.
15507 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
15509 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
15510 new statement and adjust VDEF only if necessary. Remove superfluous
15511 call to maybe_clean_or_replace_eh_stmt.
15512 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
15514 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
15515 * tree-inline.c (copy_bb): ...and not there.
15517 2010-06-22 Cary Coutant <ccoutant@google.com>
15519 * dwarf2out.c (is_nested_in_subprogram): New function.
15520 (should_move_die_to_comdat): Use it.
15521 (copy_ancestor_tree): Don't mark DIEs here.
15522 (copy_decls_walk): Start walk from root of newly-added tree;
15523 mark DIEs here instead.
15525 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
15527 * config/i386/i386.md (unit): Also check sseishft1.
15529 2010-06-22 Jan Hubicka <jh@suse.cz>
15531 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
15534 2010-06-22 Jan Hubicka <jh@suse.cz>
15536 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
15537 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
15538 Return true if something changed.
15539 * df.h (df_confluence_function_n): Return bool.
15540 * df-core.c (df_worklist_propagate_forward,
15541 df_worklist_propagate_backward): Track changes and ages.
15542 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
15544 * dse.c (dse_confluence_n): Return always true.
15546 2010-06-22 Jan Hubicka <jh@suse.cz>
15548 * bitmap.c (bitmap_clear_bit): Micro optimize.
15550 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
15552 * config/i386/i386.md (SWI1248x): New mode iterator.
15557 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
15558 SWI1248x mode iterator.
15559 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
15560 using SWI124 mode iterator.
15561 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
15563 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
15564 *pushdi2_prologue_rex64 using P mode iterator.
15565 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
15566 using SWI48 mode iterator.
15567 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
15568 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
15569 using SWI1248x mode iterator.
15570 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
15571 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
15572 SWI48 mode iterator.
15573 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
15575 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
15576 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
15577 SWI12 mode iterator.
15578 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
15579 SWI12 mode iterator.
15580 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
15581 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
15582 SWI24 mode iterator.
15583 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
15584 SWI48 mode iterator.
15585 (mov<mode>_insn_1): New expander.
15586 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
15587 using SWI48x mode iterator.
15589 (*movoi_internal_avx): Rename from *movoi_internal.
15590 (*movti_internal_rex64): Rename from *movti_rex64.
15591 (*movti_internal_sse): Rename from *movti_sse.
15592 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
15593 (*movdi_internal): Rename from *movdi_2.
15594 (*movsi_internal): Rename from *movsi_1.
15595 (*movhi_internal): Rename from *movhi_1.
15596 (*movqi_internal): Rename from *movqi_1.
15598 (insv): Update the call to gen_movsi_insv_1 for rename.
15599 * config/i386/i386.c (promote_duplicated_reg): Ditto.
15601 2010-06-22 Jan Hubicka <jh@suse.cz>
15603 * passes.c (execute_function_todo): Move call of statistics_fini_pass
15605 (execute_todo) ... this one.
15607 2010-06-22 Alan Modra <amodra@gmail.com>
15610 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15611 * caller-save.c (insert_restore, insert_save): Use non-validate
15612 form of adjust_address.
15614 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15617 * config/pa/pa.c (override_options): Disable
15618 -freorder-blocks-and-partition.
15620 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
15623 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
15625 * config/i386/i386.md (type): Add sseishft1
15627 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
15628 (ppro_insn_load): Likewise.
15629 (ppro_insn_store): Likewise.
15630 (ppro_insn_both): Likewise.
15632 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
15633 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
15635 (*vec_extractv2di_1_avx): Likewise.
15636 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
15637 type. Remove atom_unit.
15638 (*vec_extractv2di_1_sse2): Likewise.
15640 2010-06-21 DJ Delorie <dj@redhat.com>
15642 * diagnostic.h (diagnostic_classification_change_t): New.
15643 (diagnostic_context): Add history and push/pop list.
15644 (diagnostic_push_diagnostics): Declare.
15645 (diagnostic_pop_diagnostics): Declare.
15646 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
15647 from pragmas in a history chain instead of the global table.
15648 (diagnostic_push_diagnostics): New.
15649 (diagnostic_pop_diagnostics): New.
15650 (diagnostic_report_diagnostic): Scan history chain to find state
15651 of diagnostics as of the diagnostic location.
15652 * opts.c (set_option): Pass UNKNOWN_LOCATION to
15653 diagnostic_classify_diagnostic.
15654 (enable_warning_as_error): Likewise.
15655 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
15656 use in the history chain.
15657 * doc/extend.texi: Document pragma GCC diagnostic changes.
15659 2010-06-21 Jakub Jelinek <jakub@redhat.com>
15661 * dwarf2out.c (add_linkage_name): New function. Don't add
15662 anything to DW_TAG_member DIEs.
15663 (add_name_and_src_coords_attributes): Use it.
15664 (gen_variable_die): Call it for C++ static data members if
15665 specification is DW_TAG_member.
15667 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
15668 C++ char16_t and char32_t.
15670 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
15671 * genattrtab.c: Include vecprim.h.
15672 (cached_attrs, cached_attr_count, attrs_seen_once,
15673 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
15674 attrs_cached_after): New variables.
15675 (find_attrs_to_cache): New function.
15676 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
15677 (write_test_expr): Add attrs_cached argument, return it too,
15678 attempt to cache non-const attributes used more than once in
15679 a single case handling.
15680 (write_attr_get): Use find_attrs_to_cache, for caching candidates
15681 emit cached_* variables. Adjust write_attr_set callers.
15682 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
15683 to find attributes that should be cached in this block. Adjust
15684 write_test_expr callers.
15685 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
15687 (make_automaton_attrs): Adjust write_test_expr caller.
15689 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
15690 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
15691 (make_automaton_attrs): If find_tune_attr returns non-NULL,
15692 write separate internal_dfa_insn_code_* and insn_default_latency_*
15693 functions for each attribute's value and emit init_sched_attrs
15694 function and function pointers.
15695 * genattr.c (const_attrs, reservations): New variables.
15696 (gen_attr): Add const attributes to const_attrs vector.
15697 (check_tune_attr, find_tune_attr): New functions.
15698 (main): Add reservations to reservations vector. If find_tune_attr
15699 returns true, add prototype for init_sched_attrs and make
15700 internal_dfa_insn_code and insn_default_latency function pointers,
15701 otherwise define init_sched_attrs as dummy macro.
15702 * cfgexpand.c: Include insn-attr.h.
15703 (gimple_expand_cfg): Call init_sched_attrs.
15705 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
15708 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
15709 va_arg from a set of register save slots into a temporary,
15710 if the container is bigger than type size, do the copying
15711 using smaller mode or using memcpy.
15714 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
15716 (sel_print_to_dot): Remove macro.
15717 (sel_print): Likewise. New prototype.
15718 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
15719 (sel_print): New function.
15721 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15723 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
15724 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
15726 2010-06-21 Nick Clifton <nickc@redhat.com>
15728 * config/rx/rx.h (PTRDIFF_TYPE): Define.
15729 (SMALL_REGISTER_CLASS): Define (to zero).
15730 (PRINT_OPERAND): Delete.
15731 (PRINT_OPERAND_ADDRESS): Delete.
15732 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
15733 (rx_print_operand_address): Delete prototype.
15734 * config/rx/rx.c (rx_print_operand): Make static.
15735 Allow %H and %L to handle CONST_DOUBLEs.
15736 (rx_print_operand_address): Make static.
15737 (rx_gen_move_template): Rename local variable 'template' to
15739 (rx_function_arg): Do not pass unknown sized objects in registers.
15740 (TARGET_PRINT_OPERAND): Define.
15741 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15743 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15745 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
15747 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
15749 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
15750 stack-alignment for simple leaf-functions.
15752 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
15754 * doc/install.texi: Document bootstrap-lto.
15756 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
15759 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
15760 (input_function): Drop them here, if VTA is disabled.
15762 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
15765 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
15767 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
15768 ix86_swapped_fp_comparsion_operator instead of
15769 ix86_fp_comparison_operator.
15771 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
15772 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
15773 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
15774 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
15775 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
15776 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
15778 2010-06-20 Joseph Myers <joseph@codesourcery.com>
15781 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
15782 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
15783 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
15784 (decode_cmdline_option): Update for this return value. Set
15785 orig_option_with_args_text field. Set arg field for unknown
15786 options. Make static.
15787 (decode_cmdline_options_to_array): New.
15788 (prune_options): Update handling of find_opt return value.
15789 * opts.c (read_cmdline_option): Take decoded option. Return void.
15790 (read_cmdline_options): Take decoded options.
15791 (decode_options): Add parameters for decoded options. Use
15792 decode_cmdline_options_to_array. Use decoded options for -O
15793 scan. Use integral_argument for -O parameters. Update call to
15794 read_cmdline_options.
15795 (enable_warning_as_error): Update handling of find_opt return value.
15796 * opts.h: Update comment on unknown options.
15797 (struct cl_decoded_option): Update comments on opt_index and arg.
15798 Add orig_option_with_args_text.
15799 (decode_cmdline_option): Remove.
15800 (decode_cmdline_options_to_array): Declare.
15801 (decode_options): Update prototype.
15802 * toplev.c (save_argv): Remove.
15803 (save_decoded_options, save_decoded_options_count): New.
15804 (read_integral_parameter): Remove.
15805 (print_switch_values): Use decoded options.
15806 (toplev_main): Don't set save_argv. Update call to decode_options.
15807 * toplev.h (read_integral_parameter): Remove.
15808 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
15810 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
15813 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
15815 * constraints.md (Pw, Px): New constraints.
15816 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
15818 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
15820 * config/i386/sse.md (fma4modesuffixf4): Removed.
15821 (ssemodesuffixf2s): Likewise.
15822 (ssemodesuffixf4): Likewise.
15823 (ssemodesuffixf2c): Likewise.
15824 (ssescalarmodesuffix2s): Likewise.
15825 (avxmodesuffixf2c): Likewise.
15826 (ssemodesuffix): New.
15827 (ssescalarmodesuffix): Likewise.
15828 Update patterns with ssemodesuffix and ssescalarmodesuffix.
15830 2010-06-19 Philip Herron <herron.philip@googlemail.com>
15832 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
15834 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
15836 * stor-layout.c (debug_rli): Remove unused local variables.
15838 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
15840 PR rtl-optimization/40900
15841 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
15842 original expression for later reuse.
15843 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
15844 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
15846 2010-06-18 Anatoly Sokolov <aesok@post.ru>
15848 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
15849 double_int_fits_in_uhwi_p): Implement as static inline.
15850 (double_int_xor): New inline function.
15851 (double_int_lrotate, double_int_rrotate, double_int_max,
15852 double_int_umax, double_int_smax, double_int_min, double_int_umin,
15853 double_int_smin): Declare.
15854 (lrotate_double, rrotate_double): Remove declaration.
15855 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
15856 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
15857 (double_int_lrotate, double_int_rrotate, double_int_max,
15858 double_int_umax, double_int_smax, double_int_min, double_int_umin,
15859 double_int_smin): New function.
15860 * fold-const.c (int_const_binop): Clean up, use double_int_*
15862 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
15863 double_int_* and immed_double_int_const functions.
15865 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
15867 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
15868 * function.c (types_used_by_cur_var_decl): Likewise.
15869 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
15871 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
15873 * tree.h (record_layout_info): Change type of pending_statics field
15875 * stor-layout.c (start_record_layout): Store NULL into
15877 (debug_rli): Call debug_vec_tree instead of debug_tree.
15878 (place_field): Likewise.
15879 (finish_record_layout): Likewise.
15881 2010-06-18 Alan Modra <amodra@gmail.com>
15883 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
15885 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15888 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
15889 for SET source operand from SET destination operand.
15891 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
15893 PR rtl-optimization/39871
15894 * reload1.c (init_eliminable_invariants): For flag_pic, disable
15895 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
15896 (function_invariant_p): Rule out a plus of frame or arg pointer with
15898 * ira.c (find_reg_equiv_invariant_const): Likewise.
15900 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
15902 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
15903 print_operand_address and puts to output the operand for CONST.
15905 2010-06-17 Jakub Jelinek <jakub@redhat.com>
15908 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
15911 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
15913 * v850-protos.h (print_operand): Delete.
15914 (print_operand_address): Delete.
15915 * v850.h (PRINT_OPERAND): Delete.
15916 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15917 (PRINT_OPERAND_ADDRESS): Delete.
15918 * v850.c (print_operand_address): Rename to...
15919 (v850_print_operand_address): ...this. Make static. Call
15920 v850_print_operand.
15921 (print_operand): Rename to...
15922 (v850_print_operand): ...this. Make static. Call
15923 v850_print_operand_address.
15924 (v850_print_operand_punct_valid_p): New function.
15925 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15926 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15928 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
15930 * config/sh/sh-protos.h (print_operand): Delete.
15931 (print_operand_address): Delete.
15932 * config/sh/sh.h (PRINT_OPERAND): Delete.
15933 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15934 (PRINT_OPERAND_ADDRESS): Delete.
15935 * config/sh/sh.c (sh_print_operand_address): Make static.
15936 (sh_print_operand): Make static. Call sh_print_operand_address
15937 and sh_print_operand.
15938 (sh_print_operand_punct_valid_p): New function.
15939 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15940 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15942 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
15944 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
15945 (mcore_print_operand_address): Delete.
15946 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
15947 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15948 (PRINT_OPERAND_ADDRESS): Delete.
15949 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
15950 (mcore_print_operand): Make static.
15951 (mcore_print_operand_punct_valid_p): New function.
15952 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
15953 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15955 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
15957 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
15958 (print_operand_address): Delete.
15959 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
15960 (PRINT_OPERAND_ADDRESS): Delete.
15961 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
15963 (m68hc11_print_operand): Make static.
15964 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15966 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
15968 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
15969 (m32r_print_operand_address): Delete.
15970 * config/m32r/m32r.h (m32r_punct_chars): Delete.
15971 (PRINT_OPERAND): Delete.
15972 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15973 (PRINT_OPERAND_ADDRESS): Delete.
15974 * config/m32r/m32r.c (m32r_punct_chars): Make static.
15975 (m32r_print_operand_address): Make static.
15976 (m32r_print_operand): Make static.
15977 (m32r_print_operand_punct_valid_p): New function.
15978 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
15979 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15981 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
15983 * config/iq2000/iq2000-protos.h (print_operand): Delete.
15984 (print_operand_address): Delete.
15985 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
15986 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15987 (PRINT_OPERAND_ADDRESS): Delete.
15988 (iq2000_print_operand_punct): Delete.
15989 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
15990 (iq2000_print_operand_address): Make static.
15991 (iq2000_print_operand): Make static.
15992 (iq2000_print_operand_punct_valid_p): New function.
15993 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
15994 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15996 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
15998 * config/frv/frv-protos.h (frv_print_operand): Delete.
15999 (frv_print_operand_address): Delete.
16000 * config/frv/frv.h (PRINT_OPERAND): Delete.
16001 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16002 (PRINT_OPERAND_ADDRESS): Delete.
16003 * config/frv/frv.c (frv_print_operand_address): Make static.
16004 (frv_print_operand): Make static.
16005 (frv_print_operand_punct_valid_p): New function.
16006 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16007 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16009 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16011 * tree.h (vec_member): Declare.
16012 * tree.c (vec_member): Define.
16014 2010-06-17 Richard Guenther <rguenther@suse.de>
16016 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
16017 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
16019 2010-06-17 Richard Guenther <rguenther@suse.de>
16021 * tree-inline.c (declare_return_variable): Remove bogus code.
16023 2010-06-17 Richard Guenther <rguenther@suse.de>
16025 * gimplify.c (gimplify_bind_expr): Always promote complex
16026 and vector variables to registers if possible.
16028 2010-06-17 Richard Guenther <rguenther@suse.de>
16030 * expr.c (get_inner_reference): Use double_int for bit_offset
16033 2010-06-16 DJ Delorie <dj@redhat.com>
16035 * common.opt (-fstrict-volatile-bitfields): new.
16036 * doc/invoke.texi: Document it.
16037 * fold-const.c (optimize_bit_field_compare): For volatile
16038 bitfields, use the field's type to determine the mode, not the
16040 * expr.c (expand_assignment): Likewise.
16041 (get_inner_reference): Likewise.
16042 (expand_expr_real_1): Likewise.
16043 * expmed.c (store_fixed_bit_field): Likewise.
16044 (extract_bit_field_1): Likewise.
16045 (extract_fixed_bit_field): Likewise.
16047 2010-06-16 Richard Guenther <rguenther@suse.de>
16049 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
16051 2010-06-16 Douglas B Rupp <rupp@gnat.com>
16053 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
16054 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
16055 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
16056 * debug.c: Likewise.
16057 * sdbout.c: Likewise.
16058 * vmsdbgout.c: Likewise.
16059 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
16060 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
16061 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
16062 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
16063 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
16064 * dwarf2out.c (dw_fde_struct): New fields
16065 dw_fde_vms_{end,begin}_prologue.
16066 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
16067 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
16068 (dwarf2out_vms_end_prologue): New function.
16069 (dwarf2out_vms_begin_epilogue): New function.
16070 (dw_val_struct): New value dw_val_class_vms_delta.
16071 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
16072 begin_epilogue for VMS.
16073 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
16074 new static functions.
16075 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
16076 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
16078 (print_die): New case dw_val_class_vms_delta.
16079 (attr_checksum): Likewise.
16080 (same_dw_val_p: Likewise.
16081 (size_of_die): Likewise.
16082 (value_format): Likewise.
16083 (output_die): Likewise.
16084 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
16085 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
16086 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
16087 dwarf2out_cfi_begin_epilogue
16088 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
16090 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
16092 * config/cris/cris-protos.h (cris_print_operand): Delete.
16093 (cris_print_operand_address): Delete.
16094 * config/cris/cris.h (PRINT_OPERAND): Delete.
16095 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16096 (PRINT_OPERAND_ADDRESS): Delete.
16097 * config/cris/cris.c (cris_print_operand_address): Make static.
16098 (cris_print_operand): Make static.
16099 (cris_print_operand_punct_valid_p): New function.
16100 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16101 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16103 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
16105 * config/arm/arm-protos.h (arm_print_operand): Delete.
16106 (arm_print_operand_address): Delete.
16107 * config/arm/arm.h (PRINT_OPERAND): Delete.
16108 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16109 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
16110 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
16111 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
16112 (arm_print_operand): Make static.
16113 (arm_print_operand_punct_valid_p): New function.
16114 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16115 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16117 2010-06-16 Nick Clifton <nickc@redhat.com>
16119 * config/rx/constraints.md (NEGint4): New constraint.
16120 * config/rx/rx.md (attr cc): Add set_zsc.
16121 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
16124 (call_internal): Clobber the cc0 register.
16125 (call_value_internal): Likewise.
16126 (cstoresi4): Likewise.
16127 (movsieq): Likewise.
16128 (movsine): Likewise.
16129 (addsi3): Add alternative to handle small negative constants.
16130 (sunsi3): Likewise.
16131 (addsi3): Do not set the O bit in the cc0 register.
16132 (adddi3): Likewise.
16133 (subsi3): Likewise.
16134 (subdi3): Likewise.
16135 (andsi3): Reorder alternatives to prefer shorter forms.
16136 (mulsi3): Likewise.
16137 (iorsi3): Likewise.
16138 (negsi2): Note that the cc0 flags are set.
16139 (rotlsi3): Note that only the Z and S bits are set in cc0.
16140 (lshrsi3): Likewise.
16141 (ashlsi3): Likewise.
16142 (subsf3): Use %Q for the MEM operand.
16143 (fix_truncsfsi2): Likewise.
16144 (floatsisf2): Likewise.
16145 (bitset): Remove early clobber from destination.
16146 (bitset_in_memory): Likewise.
16147 (lrintsf2): Clobber the cc0 register.
16148 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
16149 (rx_print_operand): Handle %N.
16151 2010-06-16 Jan Hubicka <jh@suse.cz>
16153 * df-core.c (df_compact_blocks): Free problem_temps vector.
16155 2010-06-16 Martin Jambor <mjambor@suse.cz>
16157 PR tree-optimization/43905
16158 * tree-sra.c: Include tree-inline.h.
16159 (create_abstract_origin): Removed.
16160 (modify_function): Version the call graph node instead of creating
16161 abstract origins and dealing with same_body aliases.
16162 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
16163 function is versionable.
16164 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
16166 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
16168 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
16169 (CHOOSE_DYNAMIC_LINKER): Update.
16171 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
16173 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
16174 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
16175 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
16176 *prefetch_3dnow_rex.
16178 2010-06-15 Anatoly Sokolov <aesok@post.ru>
16180 * target.h (struct asm_out):Add declare_constant_name field.
16181 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
16182 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
16183 * output.h (default_asm_declare_constant_name): Declare.
16184 (assemble_label): Update prototype.
16185 * varasm.c (assemble_constant_contents): Use
16186 targetm.asm_out.declare_constant_name target hook.
16187 (assemble_label): Add 'file' argument.
16188 (default_asm_declare_constant_name): New function.
16189 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
16190 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
16191 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
16193 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
16194 * config/darwin.c (darwin_asm_declare_constant_name): New function.
16195 (machopic_output_indirection): Update assemble_label argument list.
16196 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
16197 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
16199 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
16201 PR middle-end/44391
16202 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
16203 size_one_node for pointer types. Do not call gmp_cst_to_tree.
16205 2010-06-15 Richard Guenther <rguenther@suse.de>
16207 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
16209 2010-06-15 Paul Brook <paul@codesourcery.com>
16211 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
16214 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
16216 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
16217 don't get a vector type for output.
16219 2010-06-15 Jakub Jelinek <jakub@redhat.com>
16222 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
16223 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
16224 (LANG_HOOKS_DECLS): Add it.
16225 * gimplify.c (omp_notice_variable): Call
16226 lang_hooks.decls.omp_report_decl.
16228 2010-06-15 Martin Jambor <mjambor@suse.cz>
16231 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
16232 on the newly dead SSA name.
16234 2010-06-15 Alan Modra <amodra@gmail.com>
16236 * doc/invoke.texi: Add mcmodel to powerpc options.
16237 * configure.ac: Add HAVE_LD_LARGE_TOC test.
16238 * configure: Regenerate.
16239 * config.in: Regenerate.
16240 * config/rs6000/linux64.opt (mcmodel): New.
16241 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
16242 (TARGET_CMODEL, SET_CMODEL): Define.
16243 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
16244 select CMODEL_MEDIUM default.
16245 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
16246 (TARGET_CMODEL): Define default.
16247 * config/rs6000/rs6000.c (cmodel): New variable.
16248 (rs6000_explicit_options): Add cmodel field.
16249 (rs6000_handle_option): Handle -mcmodel.
16250 (create_TOC_reference): Add largetoc_reg param. Generate high,
16251 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
16252 (rs6000_delegitimize_address): Recognise new toc reference rtl
16253 and minimal-toc rtl.
16254 (rs6000_legitimize_reload_address): Handle new toc references.
16255 (print_operand_address): Handle legitimate_constant_pool_address_p
16256 match before lo_sum.
16257 (rs6000_eliminate_indexed_memrefs): Tidy.
16258 (rs6000_emit_move): Tweak threshold for inlining constants.
16259 Keep rs6000_emit_allocate_stack large stack frame offsets
16260 loaded into r0 inline.
16261 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
16262 (tocrel_base, tocrel_offset): New variables.
16263 (toc_relative_expr_p): Set them here.
16264 (print_operand_address): Skip over any offset on constant pool address.
16265 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
16266 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
16267 (offsettable_ok_by_alignment): New function.
16268 (rs6000_emit_move): Address suitably aligned local symbol_refs
16269 relative to the toc pointer for -mcmodel=medium.
16270 (legitimate_constant_pool_address_p): Make param const_rtx. Add
16271 strict param. Allow lo_sum version of addressing. Verify reg
16272 used for -mminimal-toc and -mcmodel != small. Update all callers.
16273 * config/rs6000/constraints.md: Update for above change.
16274 * config/rs6000/predicates.md: Likewise.
16275 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
16277 (tls_gd): Split for -mcmodel=medium/large.
16278 (tls_gd_high, tls_gd_low): New.
16279 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
16280 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
16281 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
16282 (largetoc_high, largetoc_low): New.
16283 (cmptf_internal2): Add clobber.
16284 * config/rs6000/rs6000-protos.h: Update.
16286 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
16288 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
16289 true if no prefetch is going to be generated for a given group.
16290 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
16291 estimate the prefetch_count.
16292 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
16293 prefetch count by considering the unroll_factor and prefetch_mod
16294 for is_loop_prefetching_profitable.
16296 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
16298 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
16299 anything if the argument is not a MEM.
16301 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
16306 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
16308 (canonicalize_loop_ivs): Likewise.
16310 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
16313 * haifa-sched.c (setup_insn_reg_pressure_info,
16314 update_register_pressure): Reject debug insns.
16315 (ready_sort): Don't setup reg pressure for debug insns.
16316 (schedule_insn): Don't update reg pressure for debug insns.
16318 2010-06-14 Richard Guenther <rguenther@suse.de>
16320 * lto-streamer.c (cached_bp): Remove.
16321 (bitpack_delete): Likewise.
16322 (bitpack_create): Likewise.
16323 (bp_get_next_word): Likewise.
16324 (bp_pack_value, bp_unpack_value): Move ...
16325 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
16327 (struct bitpack_d): Likewise.
16328 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
16329 New inline functions.
16330 * lto-streamer-out.c (lto_output_bitpack): Remove.
16331 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
16332 (pack_value_fields): Adjust.
16333 (lto_write_tree): Likewise.
16334 (output_gimple_stmt): Likewise.
16335 (output_function): Likewise.
16336 * lto-streamer-in.c (input_gimple_stmt): Adjust.
16337 (input_function): Likewise.
16338 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
16339 (lto_input_bitpack): Remove.
16340 (lto_materialize_tree): Adjust.
16341 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
16342 * lto-cgraph.c (lto_output_edge): Adjust.
16343 (lto_output_node): Likewise.
16344 (lto_output_varpool_node): Likewise.
16345 (lto_output_ref): Likewise.
16346 (input_node): Likewise.
16347 (input_varpool_node): Likewise.
16348 (input_ref): Likewise.
16349 (input_edge): Likewise.
16350 (output_node_opt_summary): Likewise.
16351 (input_node_opt_summary): Likewise.
16352 * ipa-pure-const.c (pure_const_write_summary): Likewise.
16353 (pure_const_read_summary): Likewise.
16354 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
16355 (ipa_read_indirect_edge_info): Likewise.
16356 (ipa_write_node_info): Likewise.
16357 (ipa_read_node_info): Likewise.
16359 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
16362 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
16363 (vec_extract_lo_v16hi): Likewise.
16364 (vec_extract_lo_v32qi): Likewise.
16366 2010-06-14 Jakub Jelinek <jakub@redhat.com>
16369 * tree.h (build_call_expr): Don't define as vararg macro, instead
16371 * builtins.c (build_call_nofold): Remove.
16372 (expand_builtin_int_roundingfn, expand_builtin_pow,
16373 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
16374 expand_builtin_memset_args, expand_builtin_strcmp,
16375 expand_builtin_strncmp, expand_builtin_memory_chk): Use
16376 build_call_nofold_loc instead of build_call_nofold.
16377 (build_call_expr): New function.
16379 PR tree-optimization/44508
16380 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
16381 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
16382 don't eliminate trivially dead stmts.
16383 * tree-vrp.c (vrp_finalize): Pass false as last argument
16384 to substitute_and_fold.
16385 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
16386 to substitute_and_fold.
16387 * tree-ssa-ccp.c (ccp_finalize): Likewise.
16390 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
16392 2010-06-14 Ira Rosen <irar@il.ibm.com>
16394 PR tree-optimization/44507
16395 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
16396 to build initial vector for BIT_AND_EXPR.
16397 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
16399 2010-06-14 Jakub Jelinek <jakub@redhat.com>
16401 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
16402 adjust z10prop set_attr.
16404 2010-06-13 Jan Hubicka <jh@suse.cz>
16406 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
16407 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
16408 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
16409 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
16410 datastructure checks into checking asserts.
16411 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
16412 * tree-ssa-sccvn.c (VN_INFO): Likewise.
16413 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
16414 df_ref_create_structure): Likewise.
16415 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
16416 pool_free): Use gcc_checking_assert.
16417 * alias.c (get_alias_set): Likewise.
16418 * var-tracking.c (variable_htab_free, shared_hash_copy,
16419 canonicalize_values_mark, variable_merge_over_cur): Likewise.
16420 * lto-streamer.c (bp_unpack_value): Likewise.
16422 2010-06-13 Richard Guenther <rguenther@suse.de>
16424 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
16425 Do not stream but initialize TYPE_CANONICAL to NULL.
16426 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
16427 * gimple.c (gimple_types_compatible_p): Disregard
16428 TYPE_STRUCTURAL_EQUALITY_P.
16429 (gimple_register_type): Use TYPE_CANONICAL as cache.
16430 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
16431 before registering common types.
16432 * config/i386/i386.c (ix86_function_arg_boundary): Do not
16433 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
16434 * tree.h (TYPE_CANONICAL): Clarify documentation.
16436 2010-06-13 Anatoly Sokolov <aesok@post.ru>
16438 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
16439 LIBCALL_VALUE): Remove macros.
16440 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
16441 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16442 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16443 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
16444 (ia64_function_value): Make static. Handle receiving the function
16445 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
16447 2010-06-12 Jan Hubicka <jh@suse.cz>
16449 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
16452 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
16454 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
16456 2010-06-12 Jan Hubicka <jh@suse.cz>
16458 * df-core.c (df_clear_bb_info): New function.
16459 (df_set_blocks): bb_info is always allocated.
16460 (df_get_bb_info): Use block_info_elt_size.
16461 (df_set_bb_info): Likewise.
16462 (df_compact_blocks): Update for new block_info.
16463 (grow_bb_info): New function.
16464 * df-problems.c (df_grow_bb_info): Move to df-core.c
16465 (df_rd_set_bb_info): Remove.
16466 (df_rd_free_bb_info): Do not free block pool.
16467 (df_rd_alloc): Do not create pool, use check for
16468 obstack presence instead of NULL pointer for new blocks.
16469 (df_rd_free): DO not free alloc pool; clear block_info.
16470 (problem_RD): Add size of block info structure.
16471 (df_lr_set_bb_info): Remove.
16472 (df_lr_free_bb_info): Do not free block pool.
16473 (df_lr_alloc): Do not create pool, use check for
16474 obstack presence instead of NULL pointer for new blocks.
16475 (df_lr_free): DO not free alloc pool; clear block_info.
16476 (problem_LR): Add size of block info structure.
16477 (df_live_set_bb_info): Remove.
16478 (df_live_free_bb_info): Do not free block pool.
16479 (df_live_alloc): Do not create pool, use check for
16480 obstack presence instead of NULL pointer for new blocks.
16481 (df_live_free): DO not free alloc pool; clear block_info.
16482 (problem_LIVE): Add size of block info structure.
16483 (problem_CHAIN): Add size of block info structure.
16484 (df_byte_lr_set_bb_info): Remove.
16485 (df_byte_lr_free_bb_info): Do not free block pool.
16486 (df_byte_lr_alloc): Do not create pool, use check for
16487 obstack presence instead of NULL pointer for new blocks.
16488 (df_byte_lr_free): DO not free alloc pool; clear block_info.
16489 (problem_BYTE_LR): Add size of block info structure.
16490 (problem_NOTE): Add size of block info structure.
16491 (df_byte_MD_set_bb_info): Remove.
16492 (df_byte_MD_free_bb_info): Do not free block pool.
16493 (df_byte_MD_alloc): Do not create pool, use check for
16494 obstack presence instead of NULL pointer for new blocks.
16495 (df_byte_MD_free): DO not free alloc pool; clear block_info.
16496 (problem_BD): Add size of block info structure.
16497 * df-scan.c (df_scan_free_internal): Free block pool.
16498 (df_scan_set_bb_info): Remove.
16499 (df_scan_free_bb_info): Check for artificial_defs instead
16500 of bb_info being non-NULL.
16501 (df_scan_alloc): DO not create df_scan_block pool.
16502 (problem_SCAN): Set size of block info.
16503 (df_bb_refs_record): Do not allocate bb_info.
16504 * df.h (df_problem): Add block_info_elt_size.
16505 (struct dataflow): Change block_info to void *.
16506 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
16507 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
16508 in-line structures.
16510 2010-06-12 Jan Hubicka <jh@suse.cz>
16512 PR tree-optimize/44485
16513 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
16514 containing use of return value of noreturn function.
16516 2010-06-12 Anatoly Sokolov <aesok@post.ru>
16518 * targhooks.c (default_function_value): Don't use
16519 FUNCTION_OUTGOING_VALUE.
16520 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
16521 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
16523 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
16525 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
16526 Add crtfastmath.o to extra_parts.
16527 * config/mips/crtfastmath.c: New.
16528 * config/mips/linux.h (ENDFILE_SPEC): New.
16530 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
16532 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
16533 old_type in parameter.
16534 (gcc_type_for_value): Update call to gcc_type_for_interval.
16535 (compute_type_for_level_1): Renamed compute_type_for_level.
16536 Update call to gcc_type_for_interval.
16538 2010-06-11 Joseph Myers <joseph@codesourcery.com>
16540 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
16541 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
16543 2010-06-11 Joseph Myers <joseph@codesourcery.com>
16545 * opts-common.c: Include options.h.
16546 (integral_argument): Move from opts.c.
16547 (decode_cmdline_option): New. Based on read_cmdline_option.
16548 * opts.c (integral_argument): Move to opts-common.c.
16549 (read_cmdline_option): Move most contents to
16550 decode_cmdline_option. Use %qs in diagnostics.
16551 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
16552 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
16553 decode_cmdline_option): New.
16555 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
16558 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
16559 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
16560 (partiysi2_cmp): Ditto.
16561 (*partiyhi2_cmp): Ditto.
16562 (*parityqi2_cmp): Remove.
16564 2010-06-11 Jan Hubicka <jh@suse.cz>
16566 * bitmap.h (bmp_iter_next_bit): New.
16567 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
16569 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
16570 Eric Botcazou <ebotcazou@adacore.com>
16572 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
16575 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
16577 * config/i386/i386.md (unspec): New define_c_enum.
16580 2010-06-10 Jakub Jelinek <jakub@redhat.com>
16582 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
16584 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
16586 PR middle-end/44483
16587 * tree-if-conv.c (bb_predicate_s): New struct.
16588 (bb_predicate_p): New.
16589 (bb_has_predicate): New.
16590 (bb_predicate): New.
16591 (set_bb_predicate): New.
16592 (bb_predicate_gimplified_stmts): New.
16593 (set_bb_predicate_gimplified_stmts): New.
16594 (add_bb_predicate_gimplified_stmts): New.
16595 (init_bb_predicate): New.
16596 (free_bb_predicate): New.
16597 (is_predicated): Use bb_predicate.
16598 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
16599 (predicate_bbs): Same. Gimplify the condition of the basic blocks
16600 before processing their successors.
16601 (clean_predicate_lists): Removed.
16602 (find_phi_replacement_condition): Use bb_predicate.
16603 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
16605 (insert_gimplified_predicates): New.
16606 (combine_blocks): Call insert_gimplified_predicates.
16607 (tree_if_conversion): Call free_bb_predicate instead of
16608 clean_predicate_lists.
16610 2010-10-11 Paul Brook <paul@codesourcery.com>
16612 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
16613 * config/arm/arm.c (all_architectures): Change v7e-m default to
16615 * config/arm/arm-cores.def: Add cortex-m4.
16616 * config/arm/arm-tune.md: Regenerate.
16618 2010-06-11 Jan Hubicka <jh@suse.cz>
16620 * ipa-pure-const.c (special_builtlin_state): New function.
16621 (check_call): Use it instead of special casign BUILT_IN_RETURN.
16622 (propagate_pure_const): Use it.
16624 2010-06-11 Jan Hubicka <jh@suse.cz>
16626 * df-problems.c (df_live_scratch): Convert to bitmap_head.
16627 (df_live_alloc): Initialize df_live_scratch when initializing
16629 (df_live_transfer_function): Update uses of df_live_scratch.
16630 (df_live_free): Free problem_data; clear df_live_scratch before
16631 releasing the obstack.
16632 (df_md_free): Free problem data.
16634 2010-06-11 Jan Hubicka <jh@suse.cz>
16636 * doc/invoke.texi (Wsuggest-attribute): Document.
16637 (Wmissing-noreturn): Remove.
16638 * ipa-pure-const.c (warn_function_noreturn): New function.
16639 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
16640 warn_missing_noreturn.
16641 * common.opt (Wsuggest-attribute=noreturn): New.
16642 * tree-flow.h (warn_function_noreturn): Declare.
16643 * tree-cfg.c (execute_warn_function_noreturn): Use
16644 warn_function_noreturn.
16645 (gate_warn_function_noreturn): New.
16646 (pass_warn_function_noreturn): Update.
16648 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16650 * c-typeck.c (handle_warn_cast_qual): Add loc
16651 parameter. Improve warning message.
16652 (build_c_cast): Pass location to handle_warn_cast_qual.
16654 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
16656 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
16657 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
16659 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
16661 2010-06-10 Dodji Seketeli <dodji@redhat.com>
16663 Fix bootstap on mips
16664 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
16665 be naming typedefs.
16667 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
16669 * system.h (helper_const_non_const_cast): New inline for
16670 gcc version <= 4.0.
16671 (CONST_CAST2): For gcc version <= 4.0 use
16672 new helper to do const/non-const casting.
16674 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16676 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
16677 * Makefile.in (OBJS-common): Include insn-enums.o.
16678 (insn-enums.o): New rule.
16679 (simple_generated_c): Add insn-enums.c.
16680 (build/genenums.o): New rule.
16681 (genprogmd): Add "enums".
16682 * genconstants.c (print_enum_type): Declare a C string array
16684 * genenums.c: New file.
16685 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
16686 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
16687 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
16689 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16691 * doc/md.texi (define_enum_attr): Document.
16692 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
16693 * read-md.h (lookup_enum_type): Declare.
16694 * read-md.c (lookup_enum_type): New function.
16695 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
16696 * genattrtab.c (attr_desc): Add an enum_name field.
16697 (evaluate_eq_attr): Take the associated attribute as argument.
16698 Get the enum prefix from the enum_name field, if defined.
16699 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
16700 (simplify_test_exp): Pass attr to evaluate_eq_attr.
16701 (add_attr_value): New function, split out from...
16702 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
16703 (write_test_expr): Pass attr to evaluate_eq_attr.
16704 (write_attr_get): Use the enum_name as the enum tag, if defined.
16705 (write_attr_valueq): Use the enum_name as a prefix, if defined.
16706 (find_attr): Initialize enum_name.
16707 (main): Handle DEFINE_ENUM_ATTR.
16708 * gensupport.c (process_rtx): Likewise.
16709 * config/mips/mips.h (mips_tune_attr): Delete.
16710 * config/mips/mips.md (cpu): Use define_attr_enum.
16712 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16714 * doc/md.texi (define_c_enum, define_enum): Document.
16715 * read-md.h (md_constant): Add a parent_enum field.
16716 (enum_value, enum_type): New structures.
16717 (upcase_string, traverse_enum_types): Declare.
16718 * read-md.c (enum_types): New variable.
16719 (upcase_string, add_constant): New functions.
16720 (handle_constants): Don't create the hash table here.
16722 (traverse_md_constants): Don't check for a null md_constants.
16723 (decimal_string, handle_enum, traverse_enum_types): New functions.
16724 (read_md_files): Initialize md_constants and md_enums.
16725 * genconstants.c (print_md_constant): Ignore info argument.
16726 Only print constants that belong to no enum.
16727 (print_enum_type): New function.
16728 (main): Don't pass stdout to print_md_constant. Call print_enum_type
16729 for each defined enum type.
16730 * config/mips/mips.md (processor): New define_enum.
16731 (unspec): New define_c_enum.
16732 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
16733 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
16734 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
16735 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
16736 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
16737 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
16738 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
16739 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
16740 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
16741 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
16742 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
16743 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
16744 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
16745 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
16746 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
16747 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
16748 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
16749 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
16750 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
16751 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
16752 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
16753 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
16754 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
16755 (UNSPEC_RDDSP): Move to mips-dsp.md.
16756 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
16757 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
16758 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
16759 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
16760 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
16761 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
16762 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
16763 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
16764 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
16765 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
16766 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
16767 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
16768 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
16769 Moved to mips-dspr2.md.
16770 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
16771 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
16772 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
16773 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
16774 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
16775 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
16776 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
16777 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
16778 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
16779 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
16780 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
16781 UNSPEC_LOONGSON_PSADBH)
16782 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
16783 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
16784 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
16785 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
16786 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
16787 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
16788 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
16789 (cpu): Update comment.
16790 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
16791 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
16792 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
16793 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
16794 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
16795 UNSPEC_LOONGSON_PCMPEQ)
16796 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
16797 UNSPEC_LOONGSON_PINSR_0)
16798 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
16799 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
16800 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
16801 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
16802 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
16803 UNSPEC_LOONGSON_PSADBH)
16804 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
16805 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
16806 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
16807 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
16808 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
16809 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
16810 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
16811 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
16812 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
16813 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
16814 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
16815 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
16816 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
16817 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
16818 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
16819 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
16820 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
16821 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
16822 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
16823 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
16824 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
16825 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
16826 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
16827 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
16828 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
16829 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
16830 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
16831 (UNSPEC_RDDSP): Moved from mips.md.
16832 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
16833 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
16834 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
16835 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
16836 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
16837 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
16838 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
16839 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
16840 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
16841 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
16842 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
16843 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
16844 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
16845 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
16846 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
16847 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
16848 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
16849 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
16850 (UNSPEC_SCC): Moved from mips.md.
16851 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
16852 "processor_type" to "processor".
16853 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
16854 * config/mips/mips.h (processor_type): Delete.
16855 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
16856 "processor_type" to "processor".
16858 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16860 * configure.ac (tm_include_list): Add insn-constants.h.
16861 * configure: Regenerate.
16862 * Makefile.in (GTM_H): Move insn-constants.h here from...
16864 * mkconfig.sh: Remove special handling for insn-constants.h.
16866 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16868 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
16869 (BUILD_MD): ...this new variable.
16870 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
16871 that include the old contents of simple_generated_h and
16872 simple_generated_c.
16873 (simple_generated_h, simple_generated_c): Include them. Add
16875 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
16876 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
16877 Remove these dependencies from the main rule and include
16878 insn-conditions.md in the command line only if it appears
16879 in the dependency list.
16880 (insn-constants.h, s-constants): Delete.
16881 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
16883 (build/genmddeps.o): Likewise.
16884 (genprogrtl): New variable that contains everything from genprogmd
16885 except mddeps and constants.
16886 (genprogmd): Redefine in terms of genprogrtl. Make these programs
16887 depend on $(BUILD_MD)
16888 (genprog): New variable. Make these programs depend on
16890 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
16891 (main): Use read_md_files instead of init_rtx_reader_args.
16892 * genconstants.c: As for genmddeps.c.
16893 * read-md.h (read_skip_construct): Declare.
16894 * read-md.c (read_skip_construct): New function.
16895 (handle_file): Allow a null handle_directive, skipping the
16897 (parse_include): Update the comment accordingly.
16899 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16901 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
16902 * genmddeps.c: Include read-md.h.
16903 (main): Call init_rtx_reader_args instead of init_md_reader_args.
16904 * genattr.c (main): Likewise.
16905 * genattrtab.c (main): Likewise.
16906 * genautomata.c (main): Likewise.
16907 * gencodes.c (main): Likewise.
16908 * genconditions.c (main): Likewise.
16909 * genconfig.c (main): Likewise.
16910 * genconstants.c (main): Likewise.
16911 * genemit.c (main): Likewise.
16912 * genextract.c (main): Likewise.
16913 * genflags.c (main): Likewise.
16914 * genopinit.c (main): Likewise.
16915 * genoutput.c (main): Likewise.
16916 * genpeep.c (main): Likewise.
16917 * genrecog.c (main): Likewise.
16918 * genpreds.c (main): Likewise.
16919 * gensupport.h (in_fname): Move to read-md.h.
16920 (init_md_reader_args_cb): Rename to...
16921 (init_rtx_reader_args_cb): ...this and return a bool.
16922 (init_md_reader_args): Rename to...
16923 (init_rtx_reader_args): ...this and return a bool.
16924 (include_callback): Move to read-md.h.
16925 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
16926 (file_name_list, first_dir_md_include): Move to read-md.c
16927 (first_bracket_include): Delete unused variable.
16928 (last_dir_md_include): Move to read-md.c.
16929 (process_include): Delete, moving code to read-md.c:handle_include.
16930 (process_rtx): Don't handle INCLUDE.
16931 (save_string): Delete.
16932 (rtx_handle_directive): New function.
16933 (init_md_reader_args_cb): Rename to...
16934 (init_rtx_reader_args_cb): ...this and return a boolean success value.
16936 (init_md_reader_args): Rename to...
16937 (init_rtx_reader_args): ...this and return a boolean success value.
16938 * rtl.def (INCLUDE): Delete.
16939 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
16941 * read-rtl.c (read_conditions): Don't gobble ')' here.
16942 (read_mapping): Likewise.
16943 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
16944 Handle top-level non-rtx constructs here rather than in read_rtx_1.
16945 Store the whole queue in *X. Remove call to init_md_reader.
16946 (read_rtx_1): Rename to...
16947 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
16948 Don't handle top-level non-rtx constructs here. Don't handle (nil)
16950 (read_nested_rtx): New function. Handle (nil) here rather than
16952 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
16954 * read-md.h (directive_handler_t): New type.
16955 (in_fname, include_callback): Moved from read-md.h.
16956 (read_constants, init_md_reader): Delete.
16957 (read_md_files): Declare.
16958 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
16959 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
16961 (read_constants): Rename to...
16962 (handle_constants): ...this. Don't gobble ')' here.
16963 (handle_include, handle_file, handle_toplevel_file)
16964 (parse_include): New functions, mostly taken from gensupport.c.
16965 (init_md_reader): Subsume into...
16966 (read_md_files): ...this new function.
16968 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16970 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
16971 (unread_char): Decrement read_md_lineno after putting back '\n'.
16972 * read-md.c (fatal_with_file_and_line): Push back any characters
16973 that we decide not to add to the context.
16974 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
16975 fatal_expected_char in cases where '/' ends a line (for example).
16976 (read_name): Don't increment read_md_lineno here.
16977 (read_escape): Likewise.
16978 (read_quoted_string): Likewise.
16979 (read_braced_string): Likewise.
16981 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16983 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
16984 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
16985 * genconstants.c: Include read-md.h.
16986 * read-rtl.c (md_constants): Move to read-md.c.
16987 (md_name): Move to read-md.h.
16988 (initialize_iterators): Use leading_string_hash instead of def_hash
16989 and leading_string_eq_p instead of def_name_eq_p.
16990 (read_name): Move to read-md.c.
16991 (def_hash, def_name_eq_p): Delete.
16992 (read_constants, traverse_md_constants): Move to read-md.c.
16993 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
16994 * read-md.h: Include hashtab.h.
16995 (md_name): Moved from read-rtl.c.
16996 (md_constant): Moved from read-md.h.
16997 (leading_string_hash, leading_string_eq_p, read_name)
16998 (read_constants, traverse_md_constants): Declare.
16999 * read-md.c (md_constants): Moved from read-rtl.c.
17000 (leading_string_hash, leading_string_eq_p): New functions.
17001 (read_name, read_constants, traverse_md_constants): Moved from
17004 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17006 * read-rtl.c (md_name): New structure.
17007 (read_name): Take an md_name instead of a buffer pointer.
17008 Use the "string" field instead of strcpy when expanding constants.
17009 (read_constants): Remove the tmp_char argument. Update the calls
17010 to read_name, using two local name buffers instead of the tmp_char
17011 argument. Merge the constant-creation code.
17012 (read_conditions): Remove the tmp_char argument. Update the calls
17013 to read_name, using a local name buffer instead of the tmp_char
17015 (read_mapping): Replace tmp_char variable with a local name buffer.
17016 Update the calls to read_name.
17017 (read_rtx_1): Likewise. Update the calls to read_constants and
17020 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17022 * Makefile.in (build/read-md.o): Depend on errors.h.
17023 * read-md.h (error_with_line): Declare.
17024 * read-md.c: Include errors.h.
17025 (message_with_line_1): New function, extracted from...
17026 (message_with_line): ...here.
17027 (error_with_line): New function.
17028 * genattrtab.c: If a call to message_with_line is followed by
17029 "have_error = 1;", replace both statements with a call to
17031 * genoutput.c: Likewise.
17032 * genpreds.c: Likewise.
17033 * genrecog.c: If a call to message_with_line is followed by
17034 "error_count++;", replace both statements with a call to
17036 (errorcount): Delete.
17037 (main): Don't check it.
17038 * gensupport.c: If a call to message_with_line is followed by
17039 "errors = 1;", replace both statements with a call to error_with_line.
17041 (process_define_cond_exec): Check have_error instead of errors.
17042 (init_md_reader_args_cb): Likewise. Don't set errors.
17044 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17046 * read-md.h (read_md_file): Declare.
17047 (read_char, unread_char): New functions.
17048 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
17049 (read_quoted_string, read_string): Remove FILE * argument.
17050 * read-md.c (read_md_file): New variable.
17051 (read_md_filename, read_md_lineno): Update comments and remove
17052 unnecessary initialization.
17053 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
17054 (read_escape, read_quoted_string, read_braced_string, read_string):
17055 Remove FILE * argument. Update calls accordingly, using read_char
17056 and unread_char instead of getc and ungetc.
17057 * rtl.h (read_rtx): Remove FILE * argument.
17058 * read-rtl.c (iterator_group): Remove FILE * argument from
17060 (iterator_traverse_data): Remove "infile" field.
17061 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
17062 (add_mapping, read_name, read_constants, read_conditions)
17063 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
17064 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
17065 Remove file arguments from all calls, using read_char and unread_char
17066 instead of getc and ungetc.
17067 * gensupport.c (process_include): Preserve read_md_file around
17068 the include. Set read_md_file to the handle of the included file.
17069 Update call to read_rtx.
17070 (init_md_reader_args_cb): Set read_md_file to the handle of the file
17071 and remove local FILE *. Update calls to read_rtx.
17073 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17075 * read-md.h (read_rtx_lineno): Rename to...
17076 (read_md_lineno): ...this.
17077 (read_rtx_filename): Rename to...
17078 (read_md_filename): ...this.
17079 (copy_rtx_ptr_loc): Rename to...
17080 (copy_md_ptr_loc): ...this.
17081 (print_rtx_ptr_loc): Rename to...
17082 (print_md_ptr_loc): ...this.
17083 * read-md.c: Likewise. Update references after renaming.
17084 (string_obstack): Replace RTL with MD in comment.
17085 (set_rtx_ptr_loc): Rename to...
17086 (set_md_ptr_loc): ...this.
17087 (get_rtx_ptr_loc): Rename to...
17088 (get_md_ptr_loc): ...this.
17089 * genconditions.c: Update references after renaming.
17090 * genemit.c: Likewise.
17091 * genoutput.c: Likewise.
17092 * genpreds.c: Likewise.
17093 * gensupport.c: Likewise.
17094 * read-rtl.c: Likewise.
17096 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17098 * Makefile.in (READ_MD_H): New variable.
17099 (BUILD_RTL): Add build/read-md.o.
17100 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
17101 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
17102 (build/genattrtab.o, build/genconditions.o build/genemit.o)
17103 (build/genextract.o, build/genflags.o, build/genoutput.o)
17104 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
17105 (build/read-md.o): New rule.
17106 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
17107 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
17108 * coretypes.h: ...here.
17109 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
17110 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
17111 * genattr.c: Include read-md.h.
17112 * genattrtab.c: Likewise.
17113 * genconditions.c: Likewise.
17114 * genemit.c: Likewise.
17115 * genextract.c: Likewise.
17116 * genflags.c: Likewise.
17117 * genoutput.c: Likewise.
17118 * genpreds.c: Likewise.
17119 * genrecog.c: Likewise.
17120 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
17121 (join_c_conditions, print_c_condition, read_rtx_filename)
17122 (read_rtx_lineno): Move to read-md.h.
17123 * read-rtl.c: Include read-md.h.
17124 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
17125 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
17126 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
17127 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
17128 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
17129 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
17130 (read_braced_string, read_string): Move to read-md.c.
17131 (read_rtx): Move some initialization to init_md_reader and call
17132 init_md_reader here.
17133 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
17135 * gensupport.c: Include read-md.h.
17136 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
17137 * read-md.h, read-md.c: New files.
17139 2010-06-10 Anatoly Sokolov <aesok@post.ru>
17141 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17142 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17143 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
17144 * config/moxie/moxie.c (moxie_function_value): Make static.
17145 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
17146 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17148 2010-06-10 Martin Jambor <mjambor@suse.cz>
17150 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
17151 * dbgcnt.def (tree_sra): New counter.
17152 * tree-sra.c: Include dbgcnt.h.
17153 (gate_intra_sra): Check tree_sra debug counter.
17155 2010-06-10 Martin Jambor <mjambor@suse.cz>
17157 PR tree-optimization/44258
17158 * tree-sra.c (build_access_subtree): Return false iff there is a
17160 (build_access_trees): Likewise.
17161 (analyze_all_variable_accesses): Disqualify candidates if
17162 build_access_trees returns true for them.
17164 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
17167 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
17168 tail-recurse into canonical node. Fast-forward over
17169 non-canonical VALUEs.
17171 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
17174 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
17175 (*addsi_1_zext) <TYPE_LEA>: Likewise.
17176 (add lea splitter): Likewise.
17177 (add_zext lea splitter): Likewise.
17179 2010-06-10 Joseph Myers <joseph@codesourcery.com>
17181 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
17183 2010-06-10 Jan Hubicka <jh@suse.cz>
17185 * df-problems.c (df_live_problem_data): Add live_bitmaps.
17186 (df_live_alloc): Initialize problem data and live_osbtacks.
17187 (df_live_finalize): Remove obstack, problem data; do not
17189 (df_live_top_dump, df_live_bottom_dump): Do not dump old
17190 data when not allocated.
17191 (df_live_verify_solution_start): Do not allocate problem data.
17192 (df_live_verify_solution_end): Check if out is allocated.
17193 (struct df_md_problem_data): New structure.
17194 (df_md_alloc): Allocate problem data.
17195 (df_md_free): Free problem data; do not clear bitmaps.
17197 2010-06-10 Jan Beulich <jbeulich@novell.com>
17200 * configure.ac: Replace $() with ${} when intending to expand
17201 variables rather than invoking commands.
17202 * configure: Re-generate.
17204 2010-06-10 Jan Hubicka <jh@suse.cz>
17206 PR rtl-optimization/44460
17207 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
17208 TYPE_NEEDS_CONSTRUCTING sanity check.
17210 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17212 * doc/include/fdl.texi: Move to GFDL version 1.3.
17214 * doc/cpp.texi: Move to GFDL version 1.3.
17215 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
17216 * doc/gccint.texi: Move to GFDL version 1.3.
17217 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
17218 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
17219 * doc/invoke.texi: Move to GFDL version 1.3.
17221 2010-06-09 Jan Hubicka <jh@suse.cz>
17223 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
17225 (propagate) ... here; swap the order.
17227 2010-06-09 Jan Hubicka <jh@suse.cz>
17229 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
17230 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
17231 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
17232 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
17234 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
17236 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
17237 Do not the gather memory reference in the outer loop if the step
17240 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
17242 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
17243 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
17244 8 to 4. Minor change of the related comments.
17246 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
17248 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
17249 the scev analysis when the variable is not used outside the loop
17250 in a close phi node: call compute_overall_effect_of_inner_loop.
17252 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
17254 * graphite-sese-to-poly.c (single_pred_cond): Renamed
17255 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
17256 (build_sese_conditions_before): Renamed call to single_pred_cond.
17257 (build_sese_conditions_after): Same.
17259 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
17261 * graphite-poly.h: Fix comments and indentation.
17262 * graphite-sese-to-poly.c: Same.
17263 (build_sese_conditions_before): Compute stmt and gbb only when needed.
17264 * tree-chrec.c: Fix comments and indentation.
17265 (tree-ssa-loop-niter.c): Same.
17267 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
17269 PR rtl-optimization/42461
17270 * dce.c (deletable_insn_p): Return true for const or pure calls again.
17271 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
17273 2010-06-09 Jan Hubicka <jh@suse.cz>
17275 * bitmap.c (bitmap_and): Walk array forward.
17276 (bitmap_and_compl_into): Likewise.
17277 (bitmap_xor): Likewise.
17278 (bitmap_xor_into): Likewise.
17279 (bitmap_equal_p): Likewise.
17280 (bitmap_intersect_p): Likewise.
17281 (bitmap_intersect_compl_p): Likewise.
17282 (bitmap_ior_and_into): Likewise.
17283 (bitmap_elt_copy): Likewise.
17284 (bitmap_and_compl): Likewise.
17285 (bitmap_elt_ior): Likewise.
17287 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
17289 * opts-common.c (prune_options): Ensure replacement argv array
17290 is correctly terminated by a NULL entry.
17292 2010-06-09 Jan Hubicka <jh@suse.cz>
17294 * cgraph.h (varpool_first_static_initializer,
17295 varpool_next_static_initializer): Make checking only when
17297 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
17298 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
17299 gcc_assert to gcc_checking_assert.
17300 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
17301 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
17302 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
17303 op_iter_init_phiuse, op_iter_init_phidef,
17304 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
17305 gcc_checking_assert.
17306 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
17307 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
17308 partition_is_global, live_on_entry, live_on_exit,
17309 live_merge_and_clear): Likewise.
17310 * system.h (gcc_checking_assert): New macro.
17311 * gimple.h (set_bb_seq): Use gcc_checking_assert.
17313 2010-06-09 Jason Merrill <jason@redhat.com>
17315 * Makefile.in (TAGS): Collect tags info from c-family.
17317 2010-06-09 Jan Hubicka <jh@suse.cz>
17319 * gimple.h (gcc_gimple_checking_assert): New macro.
17320 (gimple_set_def_ops, gimple_set_use_ops,
17321 gimple_set_vuse, gimple_set_vdef,
17322 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
17323 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
17324 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
17325 gimple_asm_output_op, gimple_asm_output_op_ptr,
17326 gimple_asm_set_output_op, gimple_asm_clobber_op,
17327 gimple_asm_set_clobber_op, gimple_asm_label_op,
17328 gimple_asm_set_label_op, gimple_try_set_kind,
17329 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
17330 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
17331 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
17332 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
17333 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
17334 gimple_omp_for_set_initial, gimple_omp_for_final,
17335 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
17336 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
17337 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
17338 conditional with ENABLE_GIMPLE_CHECKING.
17339 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
17341 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
17343 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
17344 (get_computation_cost_at): Use it.
17345 (determine_use_iv_cost_condition): Likewise.
17346 (determine_iv_cost): Likewise.
17348 2010-06-09 Richard Guenther <rguenther@suse.de>
17350 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
17353 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
17355 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
17357 2010-06-09 Martin Jambor <mjambor@suse.cz>
17359 PR tree-optimization/44423
17360 * tree-sra.c (dump_access): Dump also grp_assignment_read.
17361 (analyze_access_subtree): Pass negative allow_replacements to children
17362 if the current type is scalar.
17364 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
17367 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
17368 * doc/plugins.texi (Plugin license check): Update information
17369 on type of plugin_is_GPL_compatible.
17370 * Makefile.in (PLUGINCC): Define as $(COMPILER).
17371 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
17373 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
17375 * config/arm/arm.c (thumb2_reorg): New function.
17376 (arm_reorg): Call it.
17377 * config/arm/thumb2.md (define_peephole2 for flag clobbering
17378 arithmetic operations): Delete.
17380 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
17383 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
17386 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
17389 * gcc-plugin.h: Encapsulate all declarations in extern "C".
17391 2010-06-08 Jan Hubicka <jh@suse.cz>
17393 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
17394 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
17396 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
17398 PR tree-optimization/39874
17399 PR middle-end/28685
17400 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
17402 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
17403 same_bool_result_p): New.
17404 (and_var_with_comparison, and_var_with_comparison_1,
17405 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
17406 (or_var_with_comparison, or_var_with_comparison_1,
17407 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
17408 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
17409 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
17410 of combine_comparisons.
17411 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
17413 2010-06-08 Anatoly Sokolov <aesok@post.ru>
17415 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17416 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17417 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
17418 pdp11_function_value_regno_p): New functions.
17419 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17420 TARGET_FUNCTION_VALUE_REGNO_P): Define.
17422 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
17424 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
17425 Thumb-2 in the MINUS case.
17427 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17429 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
17431 * doc/gty.texi (GTY Options): Document typed GC allocation and
17432 variable_size GTY option.
17434 * ggc-internal.h: New.
17436 * ggc.h: Update copyright year.
17437 (digit_string): Move to stringpool.c.
17438 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
17439 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
17440 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
17441 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
17442 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
17443 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
17444 (ggc_force_collect, ggc_get_size, ggc_statistics)
17445 (ggc_print_common_statistics): Move to ggc-internal.h.
17446 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
17447 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
17448 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
17449 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
17450 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
17451 (ggc_alloc_zone_pass_stat): Remove.
17452 (ggc_internal_alloc_stat, ggc_internal_alloc)
17453 (ggc_internal_cleared_alloc_stat): New.
17454 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
17455 (ggc_internal_vec_alloc_stat)
17456 (ggc_internal_cleared_vec_alloc_stat)
17457 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
17458 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
17459 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
17460 (ggc_cleared_alloc_ptr_array_two_args): New.
17461 (htab_create_ggc, splay_tree_new_ggc): Redefine.
17462 (ggc_splay_alloc): Change the type of the first argument to
17463 enum gt_types_enum.
17464 (ggc_alloc_string): Make macro.
17465 (ggc_alloc_string_stat): New.
17466 (ggc_strdup): Redefine.
17467 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
17468 (ggc_alloc_rtvec_sized): New.
17469 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
17470 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
17471 (ggc_internal_cleared_alloc_zone_stat)
17472 (ggc_internal_zone_alloc_stat)
17473 (ggc_internal_zone_cleared_alloc_stat)
17474 (ggc_internal_zone_vec_alloc_stat)
17475 (ggc_alloc_zone_rtx_def_stat)
17476 (ggc_alloc_zone_tree_node_stat)
17477 (ggc_alloc_zone_cleared_tree_node_stat)
17478 (ggc_alloc_cleared_gimple_statement_d_stat): New.
17480 * ggc-common.c: Include ggc-internal.h.
17481 (ggc_internal_cleared_alloc_stat): Rename from
17482 ggc_alloc_cleared_stat.
17483 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
17484 (ggc_calloc): Remove.
17485 (ggc_cleared_alloc_htab_ignore_args): New.
17486 (ggc_cleared_alloc_ptr_array_two_args): New.
17487 (ggc_splay_alloc): Add obj_type parameter.
17488 (init_ggc_heuristics): Formatting fixes.
17490 * ggc-none.c: Update copyright year.
17491 (ggc_alloc_stat): Rename to ggc_alloc_stat.
17492 (ggc_alloc_cleared_stat): Rename to
17493 ggc_internal_cleared_alloc_stat.
17494 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
17496 * ggc-page.c: Update copyright year. Include ggc-internal.h.
17497 Remove references to ggc_alloc in comments.
17498 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
17499 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
17500 (new_ggc_zone, destroy_ggc_zone): Remove.
17501 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
17503 * ggc-zone.c: Include ggc-internal.h. Remove references to
17504 ggc_alloc in comments.
17505 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
17506 (ggc_internal_alloc_zone_pass_stat): New.
17507 (ggc_internal_cleared_alloc_zone_stat): New.
17508 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
17509 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
17510 (new_ggc_zone, destroy_ggc_zone): Remove.
17512 * stringpool.c: Update copyright year. Include ggc-internal.h
17513 (digit_vector): Make static.
17514 (digit_string): Moved from ggc.h.
17515 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
17516 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
17518 * Makefile.in (GGC_INTERNAL_H): New.
17519 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
17520 $(GGC_INTERNAL_H) to dependencies.
17522 * gentype.c: Update copyright year.
17523 (walk_type): Accept variable_size GTY option.
17524 (USED_BY_TYPED_GC_P): New macro.
17525 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
17526 whitespace at the end of strings.
17527 (get_type_specifier, variable_size_p): New functions.
17528 (alloc_quantity, alloc_zone): New enums.
17529 (write_typed_alloc_def): New function.
17530 (write_typed_struct_alloc_def): Likewise.
17531 (write_typed_typed_typedef_alloc_def): Likewise.
17532 (write_typed_alloc_defns): Likewise.
17533 (output_typename, write_splay_tree_allocator_def): Likewise.
17534 (write_splay_tree_allocators): Likewise.
17535 (main): Call write_typed_alloc_defns and
17536 write_splay_tree_allocators.
17538 * lto-streamer.h (lto_file_decl_data_ptr): New.
17540 * passes.c (order): Define using cgraph_node_ptr.
17542 * strinpool.c (struct string_pool_data): Declare nested_ptr using
17545 * gimple.h (union gimple_statement_d): Likewise.
17547 * rtl.h (struct rtx_def): Likewise.
17548 (struct rtvec_def): Likewise.
17550 * tree.h (union tree_node): Likewise.
17552 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
17554 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
17556 * tree-scalar-evolution.c (scev_initialize): Likewise.
17558 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
17560 * dwarf2asm.c (dw2_force_const_mem): Likewise.
17562 * omp-low.c (lower_omp_critical): Likewise.
17564 * bitmap.h (struct bitmap_head_def): Update comment to not
17565 reference ggc_alloc.
17567 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
17569 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
17571 * ipa-prop.c (duplicate_ggc_array): Rename to
17572 duplicate_ipa_jump_func_array. Use typed GC allocation.
17573 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
17575 * gimple.c (gimple_alloc_stat): Use
17576 ggc_alloc_cleared_gimple_statement_d_stat.
17578 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
17580 * tree.c (make_node_stat): Use
17581 ggc_alloc_zone_cleared_tree_node_stat.
17582 (make_tree_vec_stat): Likewise.
17583 (build_vl_exp_stat): Likewise.
17584 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
17585 (make_tree_binfo_stat): Likewise.
17586 (tree_cons_stat): Likewise.
17588 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
17589 (shallow_copy_rtx_stat): Likewise.
17590 (make_node_stat): Likewise.
17592 * lto-symtab.c: Fix comment.
17594 * tree-cfg.c (create_bb): Update comment to not reference
17596 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
17598 * varpool.c (varpool_node): Use typed GC allocation.
17599 (varpool_extra_name_alias): Likewise.
17601 * varasm.c (emutls_decl): Likewise.
17602 (get_unnamed_section): Likewise.
17603 (get_noswitch_section): Likewise.
17604 (get_section): Likewise.
17605 (get_block_for_section): Likewise.
17606 (build_constant_desc): Likewise.
17607 (create_constant_pool): Likewise.
17608 (force_const_mem): Likewise.
17610 * tree.c (build_vl_exp_stat): Likewise.
17611 (build_real): Likewise.
17612 (build_string): Likewise.
17613 (decl_debug_expr_insert): Likewise.
17614 (decl_value_expr_insert): Likewise.
17615 (type_hash_add): Likewise.
17616 (build_omp_clause): Likewise.
17618 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
17620 * tree-ssa.c (init_tree_ssa): Likewise.
17622 * tree-ssa-structalias.c (heapvar_insert): Likewise.
17624 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17626 * tree-ssa-loop-niter.c (record_estimate): Likewise.
17628 * tree-ssa-alias.c (get_ptr_info): Likewise.
17630 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17632 * tree-phinodes.c (allocate_phi_node): Likewise.
17634 * tree-iterator.c (tsi_link_before): Likewise.
17635 (tsi_link_after): Likewise.
17637 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17639 * tree-dfa.c (create_var_ann): Likewise.
17641 * tree-cfg.c (create_bb): Likewise.
17643 * toplev.c (alloc_for_identifier_to_locale): Likewise.
17644 (general_init): Likewise.
17646 * stringpool.c (stringpool_ggc_alloc): Likewise.
17647 (gt_pch_save_stringpool): Likewise.
17649 * sese.c (if_region_set_false_region): Likewise.
17651 * passes.c (do_per_function_toporder): Likewise.
17653 * optabs.c (set_optab_libfunc): Likewise.
17654 (set_conv_libfunc): Likewise.
17656 * lto-symtab.c (lto_symtab_register_decl): Likewise.
17658 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
17659 (input_eh_region): Likewise.
17660 (input_eh_lp): Likewise.
17661 (make_new_block): Likewise.
17662 (unpack_ts_real_cst_value_fields): Likewise.
17664 * lto-section-in.c (lto_new_in_decl_state): Likewise.
17666 * lto-cgraph.c (input_node_opt_summary): Likewise.
17668 * loop-init.c (loop_optimizer_init): Likewise.
17670 * lambda.h (lambda_vector_new): Likewise.
17672 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
17674 * ira.c (update_equiv_regs): Likewise.
17676 * ipa.c (cgraph_node_set_new): Likewise.
17677 (cgraph_node_set_add): Likewise.
17678 (varpool_node_set_new): Likewise.
17679 (varpool_node_set_add): Likewise.
17681 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
17682 (duplicate_ipa_jump_func_array): Likewise.
17683 (ipa_read_node_info): Likewise.
17685 * ipa-cp.c (ipcp_create_replace_map): Likewise.
17687 * integrate.c (get_hard_reg_initial_val): Likewise.
17689 * gimple.c (gimple_alloc_stat): Likewise.
17690 (gimple_build_omp_for): Likewise.
17691 (gimple_seq_alloc): Likewise.
17692 (gimple_copy): Likewise.
17694 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
17695 (gsi_insert_after_without_update): Likewise.
17697 * function.c (add_frame_space): Likewise.
17698 (insert_temp_slot_address): Likewise.
17699 (assign_stack_temp_for_type): Likewise.
17700 (allocate_struct_function): Likewise.
17701 (types_used_by_var_decl_insert): Likewise.
17703 * except.c (init_eh_for_function): Likewise.
17704 (gen_eh_region): Likewise.
17705 (gen_eh_region_catch): Likewise.
17706 (gen_eh_landing_pad): Likewise.
17707 (add_call_site): Likewise.
17709 * emit-rtl.c (get_mem_attrs): Likewise.
17710 (get_reg_attrs): Likewise.
17711 (start_sequence): Likewise.
17712 (init_emit): Likewise.
17714 * dwarf2out.c (new_cfi): Likewise.
17715 (queue_reg_save): Likewise.
17716 (dwarf2out_frame_init): Likewise.
17717 (new_loc_descr): Likewise.
17718 (find_AT_string): Likewise.
17719 (new_die): Likewise.
17720 (add_var_loc_to_decl): Likewise.
17721 (clone_die): Likewise.
17722 (clone_as_declaration): Likewise.
17723 (break_out_comdat_types): Likewise.
17724 (new_loc_list): Likewise.
17725 (loc_descriptor): Likewise.
17726 (add_loc_descr_to_each): Likewise.
17727 (add_const_value_attribute): Likewise.
17728 (tree_add_const_value_attribute): Likewise.
17729 (add_comp_dir_attribute): Likewise.
17730 (add_name_and_src_coords_attributes): Likewise.
17731 (lookup_filename): Likewise.
17732 (store_vcall_insn): Likewise.
17733 (dwarf2out_init): Likewise.
17735 * dbxout.c (dbxout_init): Likewise.
17737 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
17739 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
17741 * config/score/score7.c (score7_output_external): Likewise.
17743 * config/score/score3.c (score3_output_external): Likewise.
17745 * config/s390/s390.c (s390_init_machine_status): Likewise.
17747 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
17748 (rs6000_init_machine_status): Likewise.
17749 (output_toc): Likewise.
17751 * config/pa/pa.c (pa_init_machine_status): Likewise.
17752 (get_deferred_plabel): Likewise.
17754 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
17756 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
17758 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
17760 * config/mep/mep.c (mep_init_machine_status): Likewise.
17761 (mep_note_pragma_flag): Likewise.
17763 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
17765 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
17767 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
17769 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
17770 (i386_pe_maybe_record_exported_symbol): Likewise.
17772 * config/i386/i386.c (get_dllimport_decl): Likewise.
17773 (ix86_init_machine_status): Likewise.
17774 (assign_386_stack_local): Likewise.
17776 * config/frv/frv.c (frv_init_machine_status): Likewise.
17778 * config/darwin.c (machopic_indirection_name): Likewise.
17780 * config/cris/cris.c (cris_init_machine_status): Likewise.
17782 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
17784 * config/avr/avr.c (avr_init_machine_status): Likewise.
17786 * config/arm/arm.c (arm_init_machine_status): Likewise.
17788 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
17789 (alpha_need_linkage): Likewise.
17790 (alpha_use_linkage): Likewise.
17792 * cgraph.c (cgraph_allocate_node): Likewise.
17793 (cgraph_create_edge_1): Likewise.
17794 (cgraph_create_indirect_edge): Likewise.
17795 (cgraph_add_asm_node): Likewise.
17797 * cfgrtl.c (init_rtl_bb_info): Likewise.
17799 * cfgloop.c (alloc_loop): Likewise.
17800 (rescan_loop_exit): Likewise.
17802 * cfg.c (init_flow): Likewise.
17803 (alloc_block): Likewise.
17804 (unchecked_make_edge): Likewise.
17806 * c-parser.c (c_parse_init): Likewise.
17807 (c_parse_file): Likewise.
17809 * c-decl.c (bind): Likewise.
17810 (record_inline_static): Likewise.
17811 (push_scope): Likewise.
17812 (make_label): Likewise.
17813 (lookup_label_for_goto): Likewise.
17814 (finish_struct): Likewise.
17815 (finish_enum): Likewise.
17816 (c_push_function_context): Likewise.
17818 * bitmap.c (bitmap_element_allocate): Likewise.
17819 (bitmap_gc_alloc_stat): Likewise.
17821 * alias.c (record_alias_subset): Likewise.
17822 (init_alias_analysis): Likewise.
17824 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
17826 * fold-const.c (fold_comparison): Remove redundant parenthesis.
17827 * tree-inline.c (expand_call_inline): Pass translated return value of
17828 cgraph_inline_failed_string to diagnostic function.
17830 2010-06-08 Andrew Pinski <pinskia@gmail.com>
17831 Shujing Zhao <pearly.zhao@oracle.com>
17834 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
17835 implicit bad conversions is initialization.
17836 (error_init): Use gmsgid instead of msgid for argument name and change
17837 the call for error.
17838 (pedwarn_init): Use gmsgid instead of msgid for argument name and
17839 change the call for pedwarn.
17840 (warning_init): Use gmsgid instead of msgid for argument name and
17841 change the call for warning.
17843 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
17845 * config/mips/mips-protos.h (mips_print_operand): Delete.
17846 (mips_print_operand_address): Delete.
17847 * config/mips/mips.h (mips_print_operand_punct): Delete.
17848 (PRINT_OPERAND): Delete.
17849 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17850 (PRINT_OPERAND_ADDRESS): Delete.
17851 * config/mips/mips.c (mips_print_operand_punct): Make static.
17852 (mips_print_operand_address): Make static.
17853 (mips_print_operand): Make static. Call
17854 mips_print_operand_punct_valid_p.
17855 (mips_print_operand_punct_valid_p): New function.
17856 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17857 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17859 2010-06-07 Jan Hubicka <jh@suse.cz>
17861 PR middle-end/44454
17862 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
17865 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
17867 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
17870 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17872 * doc/sourcebuild.texi (Effective-Target Keywords, Other
17873 attributes): Document gas.
17875 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
17877 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
17878 <TYPE_LEA>: Split instruction.
17879 <default>: Remove alternative 2 handling.
17880 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
17881 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
17882 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
17884 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
17885 (ashift_zext lea splitter): Use DImode for multiplication.
17887 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
17888 to generate addition.
17890 2010-06-07 Joseph Myers <joseph@codesourcery.com>
17892 * common.opt (fira-verbose): Use Var.
17893 (fpcc-struct-return): Use Init instead of VarExists.
17894 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
17896 * flags.h (flag_signed_char, flag_short_enums,
17897 flag_pcc_struct_return, flag_ira_verbose,
17898 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
17899 * toplev.c (flag_detailed_statistics, flag_signed_char,
17900 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
17901 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
17902 * toplev.h (flag_crossjumping, flag_if_conversion,
17903 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
17904 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
17905 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
17906 flag_cprop_registers, time_report, flag_ira_loop_pressure,
17907 flag_ira_coalesce, flag_ira_move_spills,
17908 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
17910 2010-06-07 Jan Hubicka <jh@suse.cz>
17912 * df-core.c (df_analyze_problem): Do verification after allocation.
17914 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
17915 (df_lr_alloc): Initialize problem data; move bitmaps to
17916 lr_bitmaps obstack.
17917 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
17918 (df_lr_verify_solution_start): Do not initialize problem data;
17919 allocate bitmaps in lr_bitmaps.
17920 (df_lr_verify_solution_end): Do not free problem data.
17922 2010-06-07 Jan Hubicka <jh@suse.cz>
17924 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
17925 if caller is noreturn.
17926 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
17927 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
17928 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
17929 * ipa-pure-const.c (check_decl): Add IPA parameter.
17930 (state_from_flags): New function.
17931 (better_state, worse_state): New functions.
17932 (check_call): When in IPA mode, do not care about callees.
17933 (check_load, check_store): Update.
17934 (check_ipa_load, check_ipa_store): New.
17935 (check_stmt): When in IPA mode, use IPA checkers.
17936 (analyze_function): Use state_from_flags.
17937 (propagate): Check indirect edges and references.
17939 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
17941 PR rtl-optimization/44404
17942 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
17943 of count_occurrences to see if it's safe to modify mem_insn.
17945 2010-06-07 Richard Guenther <rguenther@suse.de>
17947 * gimplify.c (gimplify_cleanup_point_expr): For empty body
17948 and EH-only cleanup drop the cleanup instead of inserting it
17951 2010-06-07 Ira Rosen <irar@il.ibm.com>
17953 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
17955 * targhooks.c (default_builtin_vectorization_cost): New function.
17956 * targhooks.h (default_builtin_vectorization_cost): Declare.
17957 * target.h (enum vect_cost_for_stmt): Define.
17958 (builtin_vectorization_cost): Change argument and comment.
17959 * tree-vectorizer.h: Remove cost model macros.
17960 * tree-vect-loop.c: Include target.h.
17961 (vect_get_cost): New function.
17962 (vect_estimate_min_profitable_iters): Replace cost model macros with
17963 calls to vect_get_cost.
17964 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
17965 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
17966 default implementation.
17967 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
17968 calls to target hook builtin_vectorization_cost.
17969 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
17971 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
17972 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
17973 implementation to return costs.
17974 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
17975 * config/spu/spu.h: Remove vectorizer cost model macros.
17976 * config/i386/i386.h: Likewise.
17977 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
17978 a call to target hook builtin_vectorization_cost.
17980 2010-06-06 Sriraman Tallam <tmsriram@google.com>
17983 * config/i386/i386.c (override_options): Turn zee pass on for level 2
17984 and above and defer till target is known.
17985 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
17986 turn off otherwise.
17988 2010-05-25 Jan Hubicka <jh@suse.cz>
17990 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
17991 (df_compact_blocks): Likewise.
17992 * df.h (struct df): Turn hardware_regs_used,
17993 regular_block_artificial_uses, eh_block_artificial_uses,
17994 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
17996 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
17997 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
17998 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
17999 df_scan_blocks, df_insn_delete, df_insn_rescan,
18000 df_insn_rescan_debug_internal, df_insn_rescan_all,
18001 df_process_deferred_rescans, df_process_deferred_rescans,
18002 df_notes_rescan, df_get_call_refs, df_get_call_refs,
18003 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
18004 df_record_entry_block_defs, df_record_exit_block_uses,
18005 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
18006 df_scan_verify): Update.
18008 2010-05-25 Dodji Seketeli <dodji@redhat.com>
18011 * c-common.c (is_typedef_decl): Move this definition ...
18012 * tree.c (is_typedef_decl): ... here.
18013 (typdef_variant_p): Move definition here from cp/tree.c.
18014 * c-common.h (is_typedef_decl): Move this declaration ...
18015 * tree.h (is_typedef_decl): ... here.
18016 (typedef_variant_p): Move declaration here from cp/cp-tree.h
18017 * dwarf2out.c (is_naming_typedef_decl): New function.
18018 (gen_tagged_type_die): Split out of ...
18019 (gen_type_die_with_usage): ... this function. When an anonymous
18020 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
18021 is emitted for the typedef.
18022 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
18023 anonymous tagged types.
18025 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
18028 * c-decl.c (grokdeclarator): Delete warning.
18030 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
18032 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
18033 newly built CALL_EXPR.
18034 * tree-profile.c (tree_profiling): Don't profile functions produced
18035 for built-in stuff.
18037 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
18041 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
18042 endianness-independent.
18044 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
18046 * c-common.c: Move to c-family/.
18047 * c-common.def: Likewise.
18048 * c-common.h: Likewise.
18049 * c-cppbuiltin.c: Likewise.
18050 * c-dump.c: Likewise.
18051 * c-format.c: Likewise.
18052 * c-format.h : Likewise.
18053 * c-gimplify.c: Likewise.
18054 * c-lex.c: Likewise.
18055 * c-omp.c: Likewise.
18057 * c-opts.c: Likewise.
18058 * c-pch.c: Likewise.
18059 * c-ppoutput.c: Likewise.
18060 * c-pragma.c: Likewise.
18061 * c-pragma.h: Likewise.
18062 * c-pretty-print.c: Likewise.
18063 * c-pretty-print.h: Likewise.
18064 * c-semantics.c: Likewise.
18065 * stub-objc.c: Likewise.
18067 * gengtype.c (get_file_langdir): Special-case files in c-family/.
18068 (get_output_file_with_visibility): Fix name for c-common.h.
18069 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
18071 * c-tree.h: Update include path for moved files.
18072 * c-lang.c: Likewise.
18073 * c-lang.h: Likewise.
18074 * c-parser.c: Likewise.
18075 * c-convert.c: Likewise.
18076 * c-decl.c: Likewise.
18077 * c-objc-common.c: Likewise.
18078 * configure.ac: Make sure c-family/ exists in the build directory.
18079 * configure: Regenerate.
18080 * Makefile.in: Update paths for moved files. Regroup files per
18081 location and update dependencies. Move generated_files down after
18084 * config/spu/spu-c.c: Update paths for moved files.
18085 * config/mep/mep-pragma.c: Likewise.
18086 * config/darwin-c.c: Likewise.
18087 * config/i386/msformat-c.c: Likewise.
18088 * config/i386/i386-c.c: Likewise.
18089 * config/avr/avr-c.c: Likewise.
18090 * config/sol2-c.c: Likewise.
18091 * config/ia64/ia64-c.c: Likewise.
18092 * config/rs6000/rs6000-c.c: Likewise.
18093 * config/arm/arm.c: Likewise.
18094 * config/arm/arm-c.c: Likewise.
18095 * config/h8300/h8300.c: Likewise.
18096 * config/v850/v850-c.c: Likewise.
18098 * config/t-darwin: Fix dependencies for moved files.
18099 * config/t-sol2: Fix dependencies for moved files.
18100 * config/mep/t-mep: Fix dependencies for moved files.
18101 * config/ia64/t-ia64: Fix dependencies for moved files.
18102 * config/rs6000/t-rs6000: Fix dependencies for moved files.
18103 * config/v850/t-v850: Fix dependencies for moved files.
18104 * config/v850/t-v850e: Fix dependencies for moved files.
18106 * config/m32c/m32c-pragma.c
18108 * po/exgettext: Look in c-family/ also.
18110 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
18112 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
18113 (mark_control_dependent_edges_necessary): Call it instead of marking
18114 the last statement manually.
18115 (propagate_necessity): Likewise.
18117 2010-06-05 Jan Hubicka <jh@suse.cz>
18119 * basic-block.h (compute_dominance_frontiers): Updated.
18120 (compute_idf): Likewise.
18122 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
18123 for dominance frontiers.
18124 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
18125 (insert_updated_phi_nodes_for): Likewise.
18126 (update_ssa): Likewise.
18127 * cfganal.c (compute_dominance_frontiers_1): Likewise.
18128 (compute_dominance_frontiers): Likewise.
18129 (compute_idf): Likewise.
18130 * df-problems.c (df_md_local_compute): Likewise.
18132 2010-06-05 Anatoly Sokolov <aesok@post.ru>
18134 * target.h (struct gcc_target): Add memory_move_cost field.
18135 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
18136 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
18137 * targhooks.c (default_memory_move_cost): New function.
18138 * targhooks.h (default_memory_move_cost): Declare function.
18139 * reload.h (memory_move_cost): Declare.
18140 (memory_move_secondary_cost): Change type of 'in' argument to bool.
18141 * reginfo.c (memory_move_cost): New function.
18142 (memory_move_secondary_cost): Change type of 'in' argument to bool.
18143 * ira.h (ira_memory_move_cost): Update comment.
18144 * ira.c (ira_memory_move_cost): Update comment.
18145 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
18146 with memory_move_cost.
18147 * postreload.c (reload_cse_simplify_set): (Ditto.).
18148 * reload1.c (choose_reload_regs): (Ditto.).
18149 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
18150 (MEMORY_MOVE_COST): Revise documentation.
18152 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
18153 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
18154 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
18155 type of 'in' argument to bool.
18156 (TARGET_MEMORY_MOVE_COST): Define.
18158 2010-06-05 Jan Hubicka <jh@suse.cz>
18160 * ipa-pure-const.c (propagate): Fix typo in handling of functions
18161 that cannot return. Be more careful when merging the results with
18162 previously known ones.
18164 2010-06-05 Matthias Klose <doko@ubuntu.com>
18166 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
18167 function to add the -iplugindir option.
18168 (find_plugindir_spec_function): Add new declaration and function.
18169 (static_spec_func): Use it for "find-plugindir".
18171 2010-06-05 Jakub Jelinek <jakub@redhat.com>
18174 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
18175 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
18176 statement expression.
18178 2010-06-05 Jan Hubicka <jh@suse.cz>
18180 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
18181 (df_rd_problem_data): Convert sparse_invalidated_by_call,
18182 dense_invalidated_by_call to bitmap head.
18183 (df_rd_alloc, df_rd_bb_local_compute_process_def,
18184 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
18185 df_rd_start_dump, df_lr_verify_transfer_functions,
18186 df_live_verify_transfer_functions, df_chain_create_bb,
18187 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
18188 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
18189 df_simulate_one_insn_forwards, df_md_alloc,
18190 df_md_bb_local_compute_process_def,
18191 df_md_bb_local_compute_process_def, df_md_local_compute,
18192 df_md_transfer_function df_md_free): Update.
18194 2010-06-05 Joseph Myers <joseph@codesourcery.com>
18197 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
18198 target type for ADDR_EXPR; require no changes to qualifiers except
18199 for function types.
18200 * c-tree.h (c_build_type_variant): Remove.
18202 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
18204 * genautomata.c (get_excl_set): Do work per element, not per char.
18205 (check_presence_pattern_sets): Similar.
18206 (check_absence_pattern_sets): Similar.
18208 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
18210 * genautomata.c (curr_state_pass_num): Delete.
18211 (min_issue_delay_pass_states): Delete.
18212 (min_issue_delay): Delete.
18213 (initiate_min_issue_delay_pass_states): Delete.
18214 (output_min_issue_delay_table): Compute min_issue_delay_vect
18215 using a breadth-first search variant.
18216 (output_tables): Don't call initiate_min_issue_delay_pass_states.
18218 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
18221 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
18222 (df_byte_lr_bb_local_compute): Likewise.
18224 2010-06-03 Jason Merrill <jason@redhat.com>
18226 Implement noexcept operator (5.3.7)
18227 * c-common.c (c_common_reswords): Add noexcept.
18228 * c-common.h (enum rid): Add RID_NOEXCEPT.
18230 2010-06-04 Joseph Myers <joseph@codesourcery.com>
18232 * config/darwin-driver.c (darwin_default_min_version): Use
18233 GCC-specific formats in diagnostics.
18234 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
18236 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
18237 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
18238 eval_spec_function, handle_braces, process_brace_body, main,
18239 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
18240 getenv_spec_function, compare_version_strings,
18241 version_compare_spec_function): Use GCC-specific formats in
18244 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
18246 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
18247 that operand 0 and operand 1 are equal.
18248 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
18249 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
18250 and operand 1 are equal.
18251 <default>: Ditto. Remove ??? comment.
18252 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
18253 and operand 1 are equal.
18254 <default>: Ditto. Remove ??? comment.
18255 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
18257 (*add<mode>_4) <default>: Ditto.
18258 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
18260 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
18262 * config/i386/i386-protos.h (ix86_print_operand): Declare.
18263 * config/i386/i386.c (ix86_print_operand): Make non-static.
18264 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
18265 * output.h (output_operand): Declare.
18266 * final.c (output_operand): Make non-static.
18268 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
18270 PR rtl-optimization/44013
18271 * sched-deps.c (add_dependence_list_and_free): Don't free lists
18272 when processing debug insns.
18275 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
18276 recursing. Check that recursion is bounded. Rename inner var
18277 to avoid hiding incoming argument.
18279 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
18281 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
18282 operands[2] == 255.
18286 (*addqi_ext_1_rex64): Ditto.
18287 (*addqi_ext_1): Ditto.
18289 (*addqi_4): Check for incdec_operand in QImode.
18291 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
18292 using SWI mode iterator.
18293 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
18294 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
18296 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
18297 using SWI mode iterator.
18299 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
18302 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
18303 * c-format.c (gcc_diag_flag_specs): Add hash.
18304 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
18305 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
18306 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
18307 pp_c_cv_qualifiers. Handle qualifiers spelling here.
18308 (pp_c_type_qualifier_list): Call the function above.
18309 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
18310 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
18311 (WARN_FOR_QUALIFIERS): New macro.
18312 (convert_for_assignment): Use it.
18314 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
18316 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
18318 2010-06-04 Jan Hubicka <jh@suse.cz>
18320 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
18321 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
18322 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
18323 DF_BYTE_LR_OUT): Update for embedded bitmaps.
18324 * fwprop.c (single_def_use_enter_block): Likewise.
18325 * ddg.c (create_ddg_dep_from_intra_loop_link,
18326 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
18327 * loop-iv.c (latch_dominating_def): Likewise.
18328 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
18329 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
18330 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
18331 df_rd_transfer_function, df_rd_top_dump,
18332 df_rd_bottom_dump): Update.
18333 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
18334 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
18335 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
18336 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
18337 df_lr_verify_solution_start, df_lr_verify_solution_end,
18338 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
18339 df_live_free_bb_info, df_live_alloc, df_live_reset,
18340 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
18341 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
18342 df_live_verify_solution_start, df_live_verify_solution_end,
18343 df_live_verify_transfer_functions, df_chain_create_bb,
18344 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
18345 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
18346 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
18347 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
18348 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
18349 df_byte_lr_transfer_function, df_byte_lr_top_dump,
18350 df_byte_lr_bottom_dump, df_create_unused_note,
18351 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
18352 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
18353 df_md_transfer_function, df_md_init, df_md_confluence_0,
18354 df_md_confluence_n,
18355 df_md_top_dump, df_md_bottom_dump): Update.
18356 (struct df_lr_problem_data): Embedd bitmap headers.
18358 2010-06-04 Jan Hubicka <jh@suse.cz>
18360 * dce.c (dce_process_block): Do not re-scan already marked
18363 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
18365 PR rtl-optimization/39871
18366 PR rtl-optimization/40615
18367 PR rtl-optimization/42500
18368 PR rtl-optimization/42502
18369 * ira.c (init_reg_equiv_memory_loc: New function.
18370 (ira): Call it twice.
18371 * reload.h (calculate_elim_costs_all_insns): Declare.
18372 * ira-costs.c: Include "reload.h".
18373 (regno_equiv_gains): New static variable.
18374 (init_costs): Allocate it.
18375 (finish_costs): Free it.
18376 (ira_costs): Call calculate_elim_costs_all_insns.
18377 (find_costs_and_classes): Take estimated elimination costs
18379 (ira_adjust_equiv_reg_cost): New function.
18380 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
18381 * reload1.c (init_eliminable_invariants, free_reg_equiv,
18382 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
18383 (elim_bb): New static variable.
18384 (reload): Move code out of here into init_eliminable_invariants and
18385 free_reg_equiv. Call them.
18386 (calculate_elim_costs_all_insns): New function.
18387 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
18388 all callers changed. If FOR_COSTS is true, don't call alter_reg,
18389 but call note_reg_elim_costly if we turned a valid memory address
18390 into an invalid one.
18391 * Makefile.in (ira-costs.o): Depend on reload.h.
18393 2010-06-04 Julian Brown <julian@codesourcery.com>
18395 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
18398 2010-06-04 Richard Guenther <rguenther@suse.de>
18401 * cgraph.h (struct varpool_node): Add lto_file_data field.
18402 * lto-cgraph.c (input_varpool_node): Initialize it.
18404 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
18406 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
18407 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
18408 predicate in "type" attribute calculation.
18409 (*addsi_1_zext): Ditto.
18410 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
18411 (*addsi_2_zext): Ditto.
18412 (*add<mode>_3): Ditto.
18413 (*addsi_3_zext): Ditto.
18414 (*add<mode>_5): Ditto.
18416 2010-06-03 Jan Hubicka <jh@suse.cz>
18418 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
18420 * cfganal.c (compute_dominance_frontiers_1): Likewise.
18422 2010-06-03 Jan Hubicka <jh@suse.cz>
18424 * df-problems.c (df_create_unused_note, df_note_bb_compute):
18425 micro-optimize the checks when to add new note.
18427 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
18429 * final.c (output_asm_insn): Call
18430 targetm.asm_out.print_operand_punct_valid_p. Update comments.
18431 (output_operand): Call targetm.asm_out.print_operand. Update comments.
18432 (output_address): Call targetm.asm_out.print_operand_address.
18434 * target.h (struct gcc_target): Add print_operand,
18435 print_operand_address, and print_operand_punct_valid_p fields.
18436 * targhooks.h (default_print_operand): Declare.
18437 (default_print_operand_address): Declare.
18438 (default_print_operand_punct_valid_p): Declare.
18439 * targhooks.c (default_print_operand): Define.
18440 (default_print_operand_address): Define.
18441 (default_print_operand_punct_valid_p): Define.
18442 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
18443 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
18444 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
18445 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
18446 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
18447 * vmsdbgout.c (addr_const_to_string): Update comment.
18448 * config/i386/i386.c (print_operand): Rename to...
18449 (ix86_print_operand): ...this. Make static.
18450 (print_operand_address): Rename to...
18451 (ix86_print_operand_address): ...this. Make static. Call
18452 ix86_print_operand instead of PRINT_OPERAND.
18453 (ix86_print_operand_punct_valid_p): New function.
18454 (TARGET_PRINT_OPERAND): Define.
18455 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18456 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18457 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
18458 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18459 (PRINT_OPERAND): Delete.
18460 (PRINT_OPERAND_ADDRESS): Delete.
18461 * config/i386/i386-protos.h (print_operand): Delete prototype.
18462 (print_operand_address): Delete prototype.
18464 2010-06-03 Richard Guenther <rguenther@suse.de>
18466 PR tree-optimization/44403
18467 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
18468 Preserve pointer qualifiers.
18469 (vect_create_data_ref_ptr): Likewise.
18471 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
18474 * defaults.h (MAX_FIXED_MODE_SIZE): New.
18476 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
18478 2010-06-03 Jakub Jelinek <jakub@redhat.com>
18481 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
18482 return false if merging the bbs would lead to goto_locus
18483 location being lost from the IL.
18485 2010-06-03 Jan Hubicka <jh@suse.cz>
18486 Jakub Jelinek <jakub@redhat.com>
18488 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
18489 set->regs[i] is NULL or has just one entry.
18491 2010-06-03 Jan Hubicka <jh@suse.cz>
18493 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
18494 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
18496 2010-06-03 Paul Brook <paul@codesourcery.com>
18498 * config/arm/arm.c (FL_TUNE): Define.
18499 (arm_default_cpu, arm_cpu_select): Remove.
18500 (all_cores): Populate core field.
18501 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
18502 (arm_find_cpu): New function.
18503 (arm_handle_option): Lookup cpu/architecture names.
18504 (arm_override_options): Cleanup mcpu/march/mtune handling.
18505 (arm_file_start): Ditto.
18507 2010-06-03 Alan Modra <amodra@gmail.com>
18510 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
18511 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
18512 rtx to gen_load_toc_v4_PIC_1b. Tidy.
18513 (rs6000_emit_load_toc_table): Likewise.
18515 2010-06-02 Jan Hubicka <jh@suse.cz>
18517 * passes.c (init_optimization_passes): Put ipa reference
18518 after ipa pure-const.
18520 2010-06-02 Jan Hubicka <jh@suse.cz>
18522 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
18523 calls_read_all and calls_write_all.
18524 (get_reference_optimization_summary): Fix formatting.
18525 (is_proper_for_analysis): Check that decl is not readonly.
18526 (propagate_bits): Check CONST/PURE/noreturn flags.
18527 (ipa_init): Move all_module_statics to optimization_summary_obstack.
18528 (analyze_function): Ignore indirect edges.
18529 (copy_global_bitmap): For all module statics, do nothing.
18530 (generate_summary): Do not print calls_read_all/calls_write_all.
18531 (read_write_all_from_decl): Take node as argument; check
18532 cgraph_node_cannot_return.
18533 (propagate): Reorganize read_all/write_all computation;
18534 check indirect edges; check ecf flags; use all_module_statics
18535 in the results; do not free all_module_statics.
18536 (stream_out_bitmap): Handle all_module_statics.
18537 (ipa_reference_write_optimization_summary): Likewise; use
18538 varpool/cgraph encoders to get boundaries.
18539 (ipa_reference_read_optimization_summary): Read in all_module_statics;
18540 use it when possible.
18542 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18545 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
18546 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
18548 * doc/extend.texi (powerpc builtins): Document vec_recip,
18549 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
18551 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
18552 (rs6000_emit_swrsqrt): Ditto.
18553 (rs6000_emit_swdivsf): Delete.
18554 (rs6000_emit_swdivdf): Ditto.
18555 (rs6000_emit_swrsqrtsf): Ditto.
18557 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
18558 describe the reciprocal estimate support for each type.
18559 (recip_options): Map -mrecip=<opt> into option bits.
18560 (gen_2arg_fn_t): New typedef for binary rtx gen function.
18561 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
18562 reciprocal estimate instructions.
18563 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
18564 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
18565 Set up rs6000_recip_bits based on the -mrecip* options. Print the
18566 cost information if -mdebug=cost or -mdebug=reg.
18567 (rs6000_override_options): Set -mrecip-precision for power6, and
18568 power7 machines. If -mvsx or -mdfp, enable various options that
18569 came in previous instruction set ISAs, unless the option was
18570 explicitly disabled by the command line option. Parse
18571 -mrecip=<opt> options.
18572 (rs6000_builtin_vectorized_function): Add support for vectorizing
18573 the reciprocal estimate builtins and expansions.
18574 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
18575 (bdesc_2arg): Add reciprocal estimate builtins.
18576 (bdesc_1arg): Add reciprocal square root estimate builtins.
18577 (rs6000_expand_builtin): Rewrite to use a switch statement,
18578 instead of multiple if/then/elses. Add reciprocal estimate builtins.
18579 (rs6000_init_builtins): Create declarations for reciprocal
18581 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
18582 sized, prefer traditional floating point registers, if integer
18583 vector types, prefer altivec registers. Don't actually look at
18584 the memory address any more.
18585 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
18587 (rs6000_load_constant_and_splat): New helper function to load up
18588 the constant for reciprocal estimate instructions.
18589 (rs6000_emit_madd): New helper function for generating
18590 multiply/add type instructions, based on the current switches.
18591 (rs6000_emit_msub): Ditto.
18592 (rs6000_emit_mnsub): Ditto.
18593 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
18594 replace a divide with a reciprocal estimate and fixup, adding
18595 support for machines with high precision and vectors.
18596 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
18597 low precision machines.
18598 (rs6000_emit_swdiv): New common function to be called to replace a
18599 division with reciprocal estimate and fixup.
18600 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
18601 for double and vector types. Add support for high precision machines.
18603 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
18604 the reciprocal estimate instructions can be generated.
18605 (TARGET_FRE): Ditto.
18606 (TARGET_FRSQRTES): Ditto.
18607 (TARGET_FRSQRTE): Ditto.
18608 (RS6000_RECIP_*): New macros for reciprocal estimate support.
18610 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
18611 square root estimate on vectors.
18612 (re<mode>2): New insn for reciprocal division estimate on vectors.
18614 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
18616 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
18617 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
18618 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
18619 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
18620 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
18621 (RS6000_BUILTIN_RSQRT): Ditto.
18622 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
18623 floating point builtin.
18625 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
18626 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
18627 __RECIP_PRECISION__ based on the command line switches.
18628 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
18630 * config/rs6000/rs6000.opt (-mrecip): Document add support for
18631 replacing division instructions with reciprocal estimate and fixup.
18632 (-mrecip=<opt>): New option.
18633 (-mrecip-precision): Ditto.
18635 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
18636 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
18637 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
18640 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
18641 (UNSPEC_VREFP): Ditto.
18642 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
18643 conterparts with regard to support of -mno-fused-madd and -ffast-math.
18644 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
18645 reciprocal estimate instructions to be generated.
18646 (altivec_vrefp): Ditto.
18648 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
18650 (rreg): New mode attribute for reciprocal estimate support.
18651 (recip<mode>3): New insn for division using reciprocal estimate
18652 and fixup builtins.
18653 (divide define_split): New define_split to convert floating point
18654 division to use reciprocal estimate if the user used the
18655 appropriate options and the split is run when we can add new
18656 pseudo registers for the fixup.
18657 (rsqrt<mode>2): New insn for reciprocal square root support.
18658 (recipsf3): Move into recip<mode>3.
18660 (fres): Use TARGET_FRES.
18661 (rsqrtsf2): Move into rsqrt<mode>2.
18662 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
18663 (copysignsf3): Add support for VSX.
18664 (fred): Use TARGET_FRE.
18666 (rsqrtdf_internal1): New function for frsqrte instruciton.
18668 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
18669 (vec_rsqrt): Ditto.
18671 2010-06-03 Richard Guenther <rguenther@suse.de>
18673 PR middle-end/44291
18674 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
18675 (set_user_assembler_libfunc): Likewise.
18677 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
18679 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
18681 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
18683 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
18684 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
18685 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
18686 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
18687 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
18688 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
18689 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
18690 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
18691 * defaults.h: Updated for above mentioned changes.
18693 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
18695 * c-common.c: Remove header include of tm_p.h.
18696 * Makefile.in (c-common.o): Remove TM_P_H dependency.
18698 2010-06-02 Jakub Jelinek <jakub@redhat.com>
18700 * tree.h (struct tree_decl_map): New type.
18701 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
18702 (tree_decl_map_hash): New prototype.
18703 (debug_expr_for_decl, value_expr_for_decl): Change into
18704 tree_decl_map hashtab from tree_map.
18705 (init_ttree): Adjust initialization.
18706 (tree_decl_map_hash): New function.
18707 (decl_debug_expr_lookup, decl_debug_expr_insert,
18708 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
18710 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18712 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
18714 * configure: Regenerate.
18715 * config.in: Regenerate.
18717 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
18718 (X86_64_EMULATION): Define.
18719 (TARGET_LD_EMULATION): Use them.
18721 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
18722 (SPARC64_EMULATION): Define.
18723 (LINK_ARCH_SPEC): Use them.
18725 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
18727 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
18728 smallest_mode_for_size for computing the precision types of new
18729 graphite IVs. Do not call lang_hooks.types.type_for_size.
18731 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
18733 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
18735 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
18737 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
18739 PR middle-end/44363
18740 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
18741 return false instead.
18743 2010-06-02 Jan Hubicka <jh@suse.cz>
18745 PR middle-end/44295
18746 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
18747 create new cgraph node to check callee.
18749 2010-06-02 Richard Guenther <rguenther@suse.de>
18751 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
18753 2010-06-02 Richard Guenther <rguenther@suse.de>
18755 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
18756 (lto_wrapper_cleanup): ... this. Do not exit.
18757 (fatal): Adjust. Exit here.
18758 (fatal_perror): Likewise.
18759 (fatal_signal): New function.
18760 (main): Set up signal handlers to cleanup temporary files.
18761 * Makefile.in (lto-wrapper.o): Adjust dependencies.
18763 2010-06-02 Richard Guenther <rguenther@suse.de>
18765 PR tree-optimization/44377
18766 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
18768 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18770 * config/s390/2097.md (z10_fhex): Remove insn reservation.
18771 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
18772 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
18773 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
18775 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
18777 2010-06-02 Jan Hubicka <jh@suse.cz>
18779 * bitmap.c (bitmap_descriptor): Add search_iter.
18780 (bitmap_find_bit): Increment it.
18781 (print_statistics): Print it.
18783 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
18785 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
18786 instead of gimple_build_call_vec. Delete unnecessary local variable.
18788 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
18790 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
18791 change from yesterday.
18793 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
18795 * c-ada-spec.c: Clean up redundant includes.
18797 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
18799 * gimplify.c: Do not include except.h and optabs.h.
18800 (gimplify_body): Do not initialize RTL profiling.
18801 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
18802 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
18803 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
18804 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
18807 * tree-pretty-print.h: Include pretty-print.h.
18808 * gimple-pretty-print.h: Include pretty-print.h.
18810 * tree-pretty-print.c: Do not include diagnostic.h.
18811 * tree-vrp.c: Likewise.
18812 * tree-tailcall.c: Likewise
18813 * tree-scalar-evolution.c: Likewise
18814 * tree-ssa-dse.c: Likewise
18815 * tree-chrec.c: Likewise
18816 * tree-ssa-sccvn.c: Likewise
18817 * tree-ssa-copyrename.c: Likewise
18818 * tree-nomudflap.c: Likewise
18819 * tree-call-cdce.c: Likewise
18820 * tree-stdarg.c: Likewise
18821 * tree-ssa-math-opts.c: Likewise
18822 * tree-nrv.c: Likewise
18823 * tree-ssa-sink.c: Likewise
18824 * tree-browser.c: Likewise
18825 * tree-ssa-loop-ivcanon.c: Likewise
18826 * tree-ssa-loop.c: Likewise
18827 * tree-parloops.c: Likewise
18828 * tree-ssa-address.c: Likewise
18829 * tree-ssa-ifcombine.c: Likewise
18830 * tree-if-conv.c: Likewise
18831 * tree-data-ref.c: Likewise
18832 * tree-affine.c: Likewise
18833 * tree-ssa-phiopt.c: Likewise
18834 * tree-ssa-coalesce.c: Likewise
18835 * tree-ssa-pre.c: Likewise
18836 * tree-ssa-live.c: Likewise
18837 * tree-predcom.c: Likewise
18838 * tree-ssa-forwprop.c: Likewise
18839 * tree-ssa-dce.c: Likewise
18840 * tree-ssa-ter.c: Likewise
18841 * tree-ssa-loop-prefetch.c: Likewise
18842 * tree-optimize.c: Likewise
18843 * tree-ssa-phiprop.c: Likewise
18844 * tree-object-size.c: Likewise
18845 * tree-outof-ssa.c: Likewise
18846 * tree-ssa-structalias.c: Likewise
18847 * tree-switch-conversion.c: Likewise
18848 * tree-ssa-reassoc.c: Likewise
18849 * tree-ssa-operands.c: Likewise
18850 * tree-vectorizer.c: Likewise
18851 * tree-vect-data-refs.c: Likewise
18852 * tree-vect-generic.c: Likewise
18853 * tree-vect-stmts.c: Likewise
18854 * tree-vect-patterns.c: Likewise
18855 * tree-vect-slp.c: Likewise
18856 * tree-vect-loop.c: Likewise
18857 * tree-ssa-loop-ivopts.c: Likewise
18858 * tree-ssa-loop-im.c: Likewise
18859 * tree-ssa-loop-niter.c: Likewise
18860 * tree-ssa-loop-unswitch.c: Likewise
18861 * tree-ssa-loop-manip.c: Likewise
18862 * tree-ssa-loop-ch.c: Likewise
18863 * tree-dump.c: Likewise
18864 * tree-complex.c: Likewise
18866 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
18867 * tree-ssa-uninit.c: Likewise
18868 * tree-ssa-threadupdate.c: Likewise
18869 * tree-ssa-uncprop.c: Likewise
18870 * tree-ssa-ccp.c: Likewise
18871 * tree-ssa-dom.c: Likewise
18872 * tree-ssa-propagate.c: Likewise
18873 * tree-ssa-alias.c: Likewise
18874 * tree-dfa.c: Likewise
18875 * tree-cfgcleanup.c: Likewise
18876 * tree-sra.c: Likewise
18877 * tree-ssa-copy.c: Likewise
18878 * tree-ssa.c: Likewise
18879 * tree-profile.c: Likewise
18880 * tree-cfg.c: Likewise
18881 * tree-ssa-threadedge.c: Likewise
18882 * tree-vect-loop-manip.c: Likewise
18884 * tree-inline.c: Do not include diagnostic.h and expr.h.
18886 (copy_decl_for_dup_finish): Do not use NULL_RTX.
18888 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
18889 * tree-loop-distribution.c: Likewise.
18891 2010-06-01 Jan Hubicka <jh@suse.cz>
18893 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
18895 2010-06-01 Jan Hubicka <jh@suse.cz>
18897 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
18898 remove return value.
18899 (split_bbs_on_noreturn_calls) .... here.
18900 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
18901 * tree-flow.h (fixup_noreturn_call): New.
18903 2010-06-01 Jan Hubicka <jh@suse.cz>
18905 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
18907 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
18909 * tree.h (build_nt_call_list): Delete.
18910 * tree.c (build_nt_call_list): Delete.
18912 2010-06-01 Jan Hubicka <jh@suse.cz>
18914 * fwprop.c: Make emit-rtl.h include last.
18915 * rtlanal.c: Include emit-rtl.h.
18916 * genautomata.c: Output emit-rtl include into insn-automata.c
18917 * df-scan.c: Include emit-rtl.h.
18918 * haifa-sched.c: Indlude emit-rtl.h.
18919 * mode-switching.c: Indlude emit-rtl.h.
18920 * graph.c: Indlude emit-rtl.h.
18921 * sel-sched.c: Include emit-rtl.h.
18922 * sel-sched-ir.c: Include emit-rtl.h.
18923 * ira-build.c: Include emit-rtl.h.
18924 * emit-rtl.c (first_insn, last_insn): Remove defines.
18925 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
18926 Move to emit-rtl.h.
18927 (set_new_first_and_last_insn, get_last_insn_anywhere,
18928 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
18929 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
18930 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
18931 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
18932 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
18933 Use accessor functions.
18934 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
18935 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
18936 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
18937 mem_expr_equal_p): Move here from rtl.h.
18938 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
18939 Move here from emit-rtl.c; make inline.
18940 * cfglayout.h: Include emit-rtl.h.
18941 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
18942 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
18943 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
18944 mem_expr_equal_p, get_insns, set_first-insn,
18945 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
18946 * reg-stack.c: Include emit-rtl.h.
18949 2010-06-01 Jan Hubicka <jh@suse.cz>
18951 * cgraph.h (tree_function_versioning): Update prototype.
18952 (cgraph_function_versioning): Update prototype.
18953 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
18955 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
18956 (cgraph_materialize_clone, save_inline_function_body): Update use of
18957 tree_function_versioning.
18958 * tree-inline.c (copy_bb): Look for previous copied block to link
18959 after; fix debug output.
18960 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
18961 (copy_body): Likewise.
18962 (expand_call_inline): Update use of copy_body.
18963 (tree_function_versioning): Update use of copy body; accept
18964 blocks_to_copy and new_entry.
18966 2010-06-01 Jan Hubicka <jh@suse.cz>
18968 * gegenrtl.c: Remove unnecesary prototypes.
18970 (gendef): Produce static inline.
18972 (main): Do not decode parameters; generate header only.
18973 * Makefile.in (genrtl.c): Remove.
18975 2010-06-01 Jan Hubicka <jh@suse.cz>
18977 * tree-switch-conversion.c (build_one_array): Make it readonly.
18979 2010-06-01 Richard Guenther <rguenther@suse.de>
18981 * optabs.c (init_optabs): Guard all accesses to reinit.
18982 * ipa-pure-const.c (propagate): Fix another typo.
18983 * opts.c (common_handle_option): Split assignment to bool.
18984 * c-opts.c (c_common_handle_option): Likewise.
18986 2010-06-01 Arnaud Charlet <charlet@adacore.com>
18987 Matthew Gingell <gingell@adacore.com>
18989 * doc/invoke.texi: Mention -fdump-ada-spec.
18990 * tree-dump.c (dump_files): Add ada-spec.
18991 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
18992 * tree-pass.h (tree_dump_index): Add TDI_ada.
18993 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
18994 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
18995 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
18996 * c-decl.c: Include c-ada-spec.h.
18997 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
18999 (c_write_global_declarations): Add handling of -fdump-ada-spec.
19000 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
19001 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
19002 * c-ada-spec.h, c-ada-spec.c: New files.
19004 2010-06-01 Richard Guenther <rguenther@suse.de>
19007 * ipa-pure-const.c (get_function_state): Hand back varying state
19008 if we do not have one.
19009 (has_function_state): New function.
19010 (duplicate_node_data): Adjust.
19011 (remove_node_data): Likewise.
19012 (pure_const_write_summary): Likewise.
19013 (propagate): Likewise. Fix typo.
19015 2010-06-01 Jan Hubicka <jh@suse.cz>
19017 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
19018 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
19019 (execute_all_ipa_transforms): Do not play with the states.
19021 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
19023 * config/arm/t-linux-androideabi: New.
19024 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
19026 2010-06-01 Jan Hubicka <jh@suse.cz>
19028 * tree-inline.c (estimate_num_insns): For stdarg functions look
19029 into call statement to count cost of argument passing.
19031 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
19033 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
19034 argument for fprintf.
19035 (ix86_output_addr_diff_elt): Likewise.
19036 (x86_function_profiler): Likewise.
19037 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
19038 (LPREFIX): Likewise.
19039 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
19041 2010-05-31 Jakub Jelinek <jakub@redhat.com>
19044 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
19045 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
19046 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
19047 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
19048 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
19049 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
19050 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
19051 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
19054 2010-05-31 Jan Hubicka <jh@suse.cz>
19056 * tree.h (tree_range_check_failed): Declare noreturn.
19058 2010-05-31 Jan Hubicka <jh@suse.cz>
19060 * gimple.c (gimple_call_builtin_p): New function.
19061 * gimple.h (gimple_call_builtin_p): Declare.
19062 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
19064 (execute_warn_function_return): BUILT_IN_RETURN is return.
19065 (split_critical_edges): Return edges are not critical.
19066 (is_ctrl_altering_stmt): Builtin_in_return is altering.
19067 (gimple_verify_flow_info): Handle built_in_return.
19068 (execute_warn_function_return): Handle built_in_return.
19069 * ipa-pure-const.c (check_call): Ignore builtin_return.
19071 2010-05-31 Jakub Jelinek <jakub@redhat.com>
19073 PR middle-end/44337
19074 * expr.c (expand_assignment): Don't store anything for out-of-bounds
19075 array accesses with non-MEM.
19077 PR tree-optimization/44182
19078 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
19079 newly needs to end a bb is followed by debug stmts, instead return
19080 true from the function at the end.
19081 (maybe_move_debug_stmts_to_successors): New function.
19082 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
19084 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
19087 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
19089 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
19091 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
19092 for nested functions in non-optimized compilation.
19094 2010-05-31 Richard Guenther <rguenther@suse.de>
19096 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
19098 2010-05-30 Jan Hubicka <jh@suse.cz>
19100 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
19102 2010-05-30 Richard Guenther <rguenther@suse.de>
19105 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
19106 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
19109 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
19111 * config/darwin.c (output_objc_section_asm_op): Add comment.
19112 (name_needs_quotes): Add '_' to list of valid comment chars.
19113 (machopic_output_function_base_name): Remove unneeded quotes.
19114 (darwin_encode_section_info): Adjust asm whitespace.
19115 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
19116 (ASM_OUTPUT_LOCAL): Ditto.
19117 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
19118 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
19119 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
19121 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
19123 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
19124 RS6000_OUTPUT_BASENAME unconditionally.
19125 (rs6000_output_function_epilogue): Likewise.
19127 2010-05-30 Jan Hubicka <jh@suse.cz>
19129 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
19132 2010-05-30 Richard Guenther <rguenther@suse.de>
19134 * tree-cfg.c (verify_gimple_assign_single): Implement
19135 verification for COND_EXPR rhs.
19137 2010-05-30 Jan Hubicka <jh@suse.cz>
19139 * cgraph.h (cgraph_dump_file): Declare.
19140 * cgraphunit.c (cgraph_dump_file): Export.
19141 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
19143 2010-05-30 Jan Hubicka <jh@suse.cz>
19145 * dwarf2out.c (reference_to_unused,
19146 premark_types_used_by_global_vars_helper): Avoid creation of new
19149 2010-05-30 Jan Hubicka <jh@suse.cz>
19151 * cgraph.h (cgraph_node_cannot_return,
19152 cgraph_edge_cannot_lead_to_return): New functions.
19153 * cgraph.c (cgraph_node_cannot_return,
19154 cgraph_edge_cannot_lead_to_return): Use them.
19155 * ipa-pure-const.c (pure_const_names): New static var.
19156 (check_call): Handle calls not leading to return.
19157 (pure_const_read_summary): Dump info read.
19158 (propagate): Dump info about propagation process; ignore side effects
19159 of functions not leading to exit; fix handling of pure functions.
19161 2010-05-30 Jan Hubicka <jh@suse.cz>
19163 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
19164 for tail call epilogues.
19166 2010-05-30 Jan Hubicka <jh@suse.cz>
19168 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
19169 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
19172 2010-05-29 Jan Hubicka <jh@suse.cz>
19174 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
19175 node; remove references in node we no longer keep in cgrpah but need
19178 2010-05-29 Jan Hubicka <jh@suse.cz>
19180 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
19182 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19185 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
19187 2010-05-29 Jan Hubicka <jh@suse.cz>
19189 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
19190 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
19191 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
19192 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
19193 debug_names_replaced_by, debug_update_ssa): Likewise.
19194 * sbitmap.c (debug_sbitmap): Likewise.
19195 * genrecog.c (debug_decision, debug_decision_list): Likewise.
19196 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
19197 debug_tree_chain): Likewise.
19198 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
19199 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
19200 * optabs.c (debug_optab_libfuncs): Likewise.
19201 (verify_loop_closed_ssa): Likewise.
19202 * value-prof.c (verify_histograms): Likewise.
19203 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
19204 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
19205 * cfghooks.c (verify_flow_info): Likewise.
19206 * fold-const.c (debug_fold_checksum): Likewise.
19207 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
19208 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
19210 * omega.c (debug_omega_problem): Likewise.
19211 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
19212 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
19213 * dominance.c (verify_dominators, debug_dominance_info,
19214 debug_dominance_tree): Likewise.
19215 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
19216 * df_regno_debug, df_ref_debug,
19217 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
19218 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
19219 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
19220 * sel-sched.c (debug_state): Likewise.
19221 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
19223 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
19224 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
19225 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
19226 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
19228 * c-pretty-print.c (debug_c_tree): Likewise.
19229 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
19230 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
19231 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
19232 * ebitmap.c (debug_ebitmap): Likewise.
19233 * function.c (debug_find_var_in_block_tree): Likewise.
19234 * print-rtl.c (debug_rtx): Likewise.
19235 (debug_rtx_count): Likewise.
19236 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
19237 * stor-layout.c (debug_rli): Likewise.
19238 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
19239 * tree-data-ref.c (debug_data_references,
19240 debug_data_dependence_relations, debug_data_reference,
19241 debug_data_dependence_relation, debug_rdg_vertex,
19242 debug_rdg_component, debug_rdg): Likewise.
19243 * tree-affine.c (debug_aff): Likewise.
19244 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
19246 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
19247 * emit-rtl.c (verify_rtl_sharing): Likewise.
19248 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
19249 debug_value_expressions): Likewise.
19250 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
19251 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
19252 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
19253 * cfglayout.c (verify_insn_chain): Likewise.
19254 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
19255 debug_clast_stmt, debug_generated_program): Likewise.
19256 * ggc-page.c (debug_print_page_list): Likewise.
19257 * tree-ssa-ter.c (debug_ter): Likewise.
19258 * graphite-dependences.c (debug_pddr): Likewise.
19259 * sched-deps.c (debug_ds): Likewise.
19260 * tree-ssa.c (verify_ssa): Likewise.
19261 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
19262 debug_scattering_functions, debug_iteration_domains, debug_pdr,
19263 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
19264 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
19265 * tree-inline.c (debug_find_tree): Likewise.
19266 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
19267 debug_ppl_powerset_matrix): Likewise.
19268 * var-tracking.c (debug_dv): Likewise.
19269 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
19270 * cfgloop.c (verify_loop_structure): Likewise.
19271 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
19272 * c-common.c (verify_sequence_points): Likewise.
19273 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
19274 debug_candidates, debug_rgn_dependencies): Likewise.
19275 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
19276 * debug_constraint_graph, debug_solution_for_var,
19277 debug_sa_points_to_info): Likewise.
19278 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
19280 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
19281 debug_loops, debug_loop, debug_loop_num): Likewise.
19282 * passes.c (debug_pass): Likewise.
19283 (dump_properties): Likewise; add cfglayout property.
19284 (debug_properties): Likewise.
19285 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
19286 * varpool.c (debug_varpool): Likewise.
19287 * regcprop.c (debug_value_data): Likewise.
19288 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
19289 debug_immediate_uses_for): Likewise.
19291 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
19294 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
19295 Filter out insn-flags.h.
19297 2010-05-29 Jan Hubicka <jh@suse.cz>
19299 * cgraph.h (struct varpool_node_set_def,
19300 struct cgraph_node_set_def): Remove unused AUX pointer.
19301 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
19304 2010-05-29 Jan Hubicka <jh@suse.cz>
19306 PR middle-end/44324
19307 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
19309 2010-05-29 Richard Guenther <rguenther@suse.de>
19311 * lto-streamer.c (cached_bp): New global variable.
19312 (bitpack_create): Return the cached bitpack, if available.
19313 (bitpack_delete): Clear and cache the bitpack, if appropriate.
19314 (bp_pack_value): Remove redundant asserts.
19316 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
19318 PR middle-end/44306
19319 * tree-if-conv.c (is_true_predicate): New.
19320 (is_predicated): Use is_true_predicate.
19321 (add_to_predicate_list): Same. Do not use unshare_expr.
19322 (add_to_dst_predicate_list): Same.
19324 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
19326 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
19328 (predicate_bbs): Same.
19329 (clean_predicate_lists): Same.
19330 (find_phi_replacement_condition): Do not AND the predicate from
19333 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
19336 * Makefile.in (build/gencondmd.o): Add a missing `\'.
19338 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19341 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
19342 (negdf2): Adjust expander pattern and use negdf2_slow.
19343 (negsf2): Likewise.
19345 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
19347 * basic-block.h (struct control_flow_graph): Move last_label_uid field
19349 * df.h (struct df_base_ref): Move regno field up.
19350 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
19351 * expr.h (struct separate_ops): Move location field up.
19352 * optabs.h (struct optab_d): Move libcall_basename field down.
19353 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
19354 * config/i386/i386.h (struct machine_function): Convert call_abi field
19355 into a bitfield. Move cfa field to the end of the structure.
19357 2010-05-29 Jan Hubicka <jh@suse.cz>
19359 * varpool.c (varpool_get_node): Fix lookup.
19361 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19363 * config/spu/spu-protos.h: Do not include rtl.h. Protect
19364 RTL specific prototypes with #ifdef RTX_CODE.
19365 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
19366 * config/spu/t-spu-elf: Fix dependencies.
19368 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
19370 2010-05-29 Mike Stump <mikestump@comcast.net>
19373 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
19374 TM_H when building to avoid dependency loops.
19376 2010-05-29 Jan Hubicka <jh@suse.cz>
19378 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
19379 refs and body; not the whole node for masters of materialized clones.
19381 2010-05-29 Mike Stump <mikestump@comcast.net>
19383 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
19385 2010-05-29 Jan Hubicka <jh@suse.cz>
19387 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
19388 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
19389 use of clone_function_name.
19390 * cgraph.h (cgraph_create_virtual_clone,
19391 cgraph_function_versioning): update prototypes.
19392 (clone_function_name): Declare.
19393 * ipa-cp.c (ipcp_insert_stage): Update call of
19394 cgraph_create_virtual_clone.
19395 * omp-low.c (create_omp_child_function_name): Use
19396 cgraph_create_virtual_clone.
19397 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
19398 (cgraph_function_versioning): Take SUFFIX argument; produce new name
19399 and make decl local.
19401 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19403 * vec.h: Include statistics.h
19404 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
19407 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19409 * c-lex.c: Do not include c-tree.h.
19410 * c-pretty-print.c: Likewise.
19411 * c-opts.c: Likewise.
19412 * c-gimplify.c: Likewise.
19413 * c-common.c: Likewise.
19414 * c-dump.c: Likewise. Include c-common.h.
19416 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19418 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
19419 before including diagnostic-core.h.
19420 (c_cpp_error): New prototype moved from c-tree.h.
19421 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
19422 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
19423 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
19424 (c_cpp_error): Prototype moved to c-common.h.
19425 * Makefile.in: Update dependency for C_COMMON_H.
19427 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19429 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
19430 * c-common.c (c_register_addr_space): Remove here.
19431 * c-decl.c (c_register_addr_space): Re-add here.
19433 2010-05-28 Mike Stump <mikestump@comcast.net>
19435 * config/darwin-c.c: Remove c-tree.h include.
19437 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19439 * gcc.c: Include diagnostic.h.
19440 (error_count): Remove. All users changed to use errorcount.
19441 (programname): Remove. All users changed to use progname.
19442 (fancy_abort, internal_error, fatal_error, error, warning, inform,
19444 (execute): Don't include "Internal error" and bug reporting
19445 information in argument of internal_error call.
19446 (process_command): Don't increment error_count after calling
19448 (input_filename): Rename to gcc_input_filename. All users
19450 (main): Call diagnostic_initialize. Register delete_temp_files
19451 with atexit. Use seen_error to test for errors.
19452 * gcc.h: Include diagnostic-core.h.
19453 (fatal_error, error, warning): Remove.
19454 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
19455 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
19456 (gcc.o): Update dependencies.
19458 2010-05-28 Jeff Law <law@redhat.com>
19460 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
19462 * ira.h (ira_bad_reload_regno): Declare
19463 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
19465 * ira-color.c (update_curr_costs): Free updated hard reg costs.
19466 (ira_reassign_conflict_allocnos): Remove bogus asserts.
19467 (allocno_reload_assign): Likewise.
19469 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
19471 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
19474 2010-05-28 Richard Guenther <rguenther@suse.de>
19477 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
19478 Stream fixed-point constants mode.
19479 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
19480 and TYPE_PRECISION.
19481 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
19482 Stream fixed-point constants mode.
19483 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
19484 and TYPE_PRECISION.
19486 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
19488 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
19489 only place it was called from.
19490 (number_of_latch_executions): Do not return chrec_dont_know when the
19491 may_be_zero is a runtime condition: instead, return a COND_EXPR
19492 including the may_be_zero condition.
19493 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
19495 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
19498 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
19500 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
19501 generate COND_EXPRs for degenerate_phi_result.
19503 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
19505 PR middle-end/44293
19506 * tree-if-conv.c (if_convertible_loop_p): Check the
19507 if-convertibility of phi nodes in non predicated BBs.
19509 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19511 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
19513 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19516 * gcc.c (inform, warning, inform): New functions.
19517 (fatal_ice): Rename to internal_error; change cmsgid parameter to
19518 gmsgid. All callers changed.
19519 (notice): Rename to fnotice; add parameter fp. All callers changed.
19520 (fatal_error): Rename to fatal_signal. All users changed.
19521 (fatal): Rename to fatal_error; change cmsgid parameter to
19522 gmsgid. All callers changed.
19523 (process_command): Use warning instead of error for warnings.
19524 (end_going_arg): Don't use _() around argument of error.
19525 (do_spec_1): Use inform for message from %n specs. Use warning
19526 instead of error for warnings.
19527 (main): Use inform for comparison messages. Use warning for
19528 message about unused linker input.
19529 (error): Increment error_count. Print "error: ".
19530 * gcc.h (fatal): Change to fatal_error.
19531 (warning): Declare.
19532 * config/darwin-driver.c (darwin_default_min_version): Use warning
19533 instead of fprintf for warnings.
19534 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
19536 2010-05-28 Julian Brown <julian@codesourcery.com>
19538 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
19539 (*thumb2_addsi3_compare0_scratch): New.
19540 * config/arm/constraints.md (Pv): New.
19541 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
19543 (*addsi3_compare0_scratch): Likewise.
19545 2010-05-28 Jan Hubicka <jh@suse.cz>
19547 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
19549 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
19550 only on local statics.
19552 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
19554 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
19556 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
19559 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
19560 (OPTION_GLIBC): Define.
19562 2010-05-28 Jakub Jelinek <jakub@redhat.com>
19565 * dwarf2out.c (double_int_type_size_in_bits): New function.
19566 (round_up_to_align): Change first argument and return value to
19568 (field_byte_offset): Work internally on double_ints.
19571 * builtins.c (expand_movstr): Use a temporary pseudo instead
19572 of target even when target is not NULL and not const0_rtx, but
19573 fails movstr predicate.
19574 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
19576 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19578 * final.c (rest_of_clean_state): Use %m in errors instead of
19580 * gengtype.c (read_input_list, close_output_files): Use xstrerror
19581 instead of strerror.
19582 * toplev.c (process_options): Use %m in errors instead of strerror
19584 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
19587 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
19589 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
19590 (ix86_canonical_va_list_type): Make static. Add declaration.
19591 (ix86_enum_va_list): Make static. Reindent.
19592 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
19593 (ix86_canonical_va_list_type): Ditto.
19594 (ix86_enum_va_list): Ditto.
19596 2010-05-28 Richard Guenther <rguenther@suse.de>
19598 * lto-wrapper.c (run_gcc): With -save-temps generate a
19599 user-visible ltrans filename. Fixup ltrans unit numbering.
19601 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
19603 * c-common.c (c_common_nodes_and_builtins): Replace use
19604 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
19605 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
19606 to ix86_enum_va_list.
19607 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
19608 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
19609 (TARGET_ENUM_VA_LIST_P): Add hook description.
19610 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
19611 * target.h (gcc_target): Add enum_va_list hook.
19614 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
19615 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
19616 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
19618 2010-05-28 Alan Modra <amodra@gmail.com>
19621 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
19622 emit_library_call machinery to set up __tls_get_addr calls.
19624 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19626 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
19628 2010-05-28 Dodji Seketeli <dodji@redhat.com>
19630 Revert fix for PR c++/44188
19631 * c-common.c (is_typedef_decl): Revert the moving of this
19633 * tree.c (is_typedef_decl): ... here.
19634 (typdef_variant_p): Revert the moving of this definition
19635 here from cp/tree.c.
19636 * c-common.h (is_typedef_decl): Revert the moving of this
19638 * tree.h (is_typedef_decl): ... here.
19639 (typedef_variant_p): Revert the moving of this declaration here
19641 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
19642 (gen_tagged_type_die): Revert the splitting out of ...
19643 (gen_type_die_with_usage): ... this function. Revert the anonymous
19644 tagged type handling.
19645 (gen_typedef_die): Revert emitting DW_TAG_typedef for
19646 typedefs naming anonymous tagged types.
19648 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
19650 * config/rs6000/rs6000-modes.def (PSImode): Delete.
19652 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
19654 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
19655 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
19657 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
19659 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
19660 XER_REGS to CA_REGS throughout.
19661 * config/rs6000/rs6000.h: Same.
19662 (ADDITIONAL_REGISTER_NAMES): Add "xer".
19663 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
19664 that mode_iterator "P" is the size for arithmetic carries as well.
19665 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
19667 2010-05-28 Jakub Jelinek <jakub@redhat.com>
19670 * combine.c (struct rtx_subst_pair): Define unconditionally.
19671 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
19672 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
19673 Call make_compound_operation on pair->to.
19674 (propagate_for_debug): Don't call make_compound_operation here.
19675 Always use simplify_replace_fn_rtx.
19677 2010-05-27 Sterling Augustine <sterling@tensilica.com>
19679 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
19680 * config/xtensa/xtensa.c (override_options): Check
19681 TARGET_FORCE_NO_PIC and set flag_pic.
19682 * config/xtensa/xtensa.opt: Document -mforce-no-pic
19684 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
19687 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
19688 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
19690 2010-05-27 Joseph Myers <joseph@codesourcery.com>
19692 * diagnostic-core.h: New. Contents moved from diagnostic.h and
19694 * diagnostic.c: Don't include toplev.h.
19695 (progname): Define. Moved from toplev.c.
19696 (seen_error): New function.
19697 * diagnostic.h: Include diagnostic-core.h.
19698 (diagnostic_t, emit_diagnostic): Don't declare here.
19699 * toplev.c (progname): Move to toplev.c.
19700 (emit_debug_global_declarations, compile_file, finalize,
19701 do_compile, toplev_main): Use seen_error.
19702 * toplev.h: Include diagnostic-core.h.
19703 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
19704 internal_error, warning, warning_at, error, error_n, error_at,
19705 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
19706 verbatim, fnotice, progname): Move to diagnostic-core.h.
19707 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
19708 (expand_builtin_expect): Use seen_error.
19709 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
19710 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
19711 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
19712 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
19713 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
19714 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
19715 errorcount for errors.
19716 * c-opts.c (c_common_finish): Use seen_error.
19717 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
19718 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
19719 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
19720 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
19721 (get_coverage_counts): Use seen_error.
19722 * dwarf2out.c (dwarf2out_finish): Use seen_error.
19723 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
19724 gimplify_body): Use seen_error.
19725 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
19726 * ipa-pure-const.c (gate_pure_const): Use seen_error.
19727 * ipa-reference.c (gate_reference): Use seen_error.
19728 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
19729 * lambda-code.c: Include diagnostic-core.h instead of
19731 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
19732 * lto-compress.c: Include diagnostic-core.h instead of
19734 * lto-section-in.c: Include diagnostic-core.h instead of
19736 * lto-streamer-out.c: Include diagnostic-core.h instead of
19738 * lto-streamer.c: Include diagnostic-core.h instead of
19740 (gate_lto_out): Use seen_error.
19741 * matrix-reorg.c: Include diagnostic-core.h instead of
19743 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
19744 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
19745 (gate_expand_omp, lower_omp_1): Use seen_error.
19746 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
19747 (rest_of_decl_compilation, rest_of_type_compilation,
19748 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
19749 * tree-cfg.c (label_to_block_fn): Use seen_error.
19750 * tree-inline.c (optimize_inline_calls): Use seen_error.
19751 * tree-mudflap.c (mudflap_finish_file): Use
19753 * tree-optimize.c (gate_all_optimizations,
19754 gate_all_early_local_passes, gate_all_early_optimizations): Use
19756 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
19757 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
19758 (varpool_remove_unreferenced_decls,
19759 varpool_assemble_pending_decls): Use seen_error.
19760 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
19761 (TOPLEV_H, DIAGNOSTIC_H): Update.
19762 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
19763 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
19764 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
19765 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
19766 coverage.o, lambda-code.o): Update dependencies.
19768 2010-05-25 Dodji Seketeli <dodji@redhat.com>
19771 * c-common.c (is_typedef_decl): Move this definition ...
19772 * tree.c (is_typedef_decl): ... here.
19773 (typdef_variant_p): Move definition here from cp/tree.c.
19774 * c-common.h (is_typedef_decl): Move this declaration ...
19775 * tree.h (is_typedef_decl): ... here.
19776 (typedef_variant_p): Move declaration here from cp/cp-tree.h
19777 * dwarf2out.c (is_naming_typedef_decl): New function.
19778 (gen_tagged_type_die): Split out of ...
19779 (gen_type_die_with_usage): ... this function. When an anonymous
19780 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
19781 is emitted for the typedef.
19782 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
19783 anonymous tagged types.
19785 2010-05-27 Jason Merrill <jason@redhat.com>
19787 * print-tree.c (debug_vec_tree): New fn.
19788 (print_vec_tree): New fn.
19789 * tree.h: Declare them.
19790 * gdbinit.in (pvt): New command.
19792 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
19794 * gdbinit.in (pdd): New command.
19796 2010-05-27 Jan Hubicka <jh@suse.cz>
19798 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
19799 (update_caller_keys): Return early if there are no callers;
19800 only update fibheap when decresing the key.
19801 (update_callee_keys): Avoid recursion.
19802 (decide_inlining_of_small_functions): When badness does not match;
19803 re-insert into fibheap.
19805 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
19807 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
19808 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
19809 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
19810 (ALL_HOST_OBJS): Now a union of the above two.
19811 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
19812 all files in ALL_HOST_FRONTEND_OBJS.
19813 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
19815 * c-common.c: Pretend to be a backend file by undefining
19816 IN_GCC_FRONTEND (still need rtl.h here).
19818 2010-05-27 Jan Hubicka <jh@suse.cz>
19820 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
19821 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
19823 2010-05-27 Jan Hubicka <jh@suse.cz>
19825 * sched-ebb.c: Rename struct deps to struct deps_desc.
19827 * sel-sched-ir.c: Likewise.
19828 * sched-deps.c: Likewise.
19829 * sched-int.h: Likewise.
19830 * sched-rgn.c: Likewise.
19832 2010-05-27 Jon Beniston <jon@beniston.com>
19835 * config/lm32/lm32.h: Remove definition of
19836 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
19838 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
19841 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
19843 2010-05-27 Richard Guenther <rguenther@suse.de>
19845 PR tree-optimization/44284
19846 * tree-vect-stmts.c (vectorizable_assignment): Handle
19847 sign-changing conversions as simple copy.
19849 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
19851 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
19853 (__gthread_active_p): Check for pthread_create if compiling against
19856 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
19858 Support compilation for Android platform. Reimplement -mandroid.
19860 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
19861 (*android*): Set ANDROID_DEFAULT.
19862 (arm*-*-linux*): Include linux-android.h.
19863 (arm*-*-eabi*): Don't include previous -mandroid implementation.
19864 * config/arm/eabi.h: Remove, move Android-specific parts ...
19865 * config/linux-android.h: ... here. New file.
19866 * config/arm/eabi.opt: Rename to ...
19867 * config/linux-android.opt: ... this.
19868 (mandroid): Allow -mno-android option. Initialize based on
19870 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
19871 Move logic to corresponding LINUX_TARGET_* macros.
19872 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
19873 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
19874 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
19875 Android definitions.
19876 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
19877 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
19880 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
19882 Add support for Bionic C library
19884 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
19886 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
19887 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
19889 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
19890 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
19891 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
19892 to support multiple C libraries. Handle Bionic.
19893 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
19894 (BIONIC_DYNAMIC_LINKER64): Define.
19895 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
19897 (TARGET_HAS_SINCOS): Enable for Bionic.
19899 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
19900 the last option specified on command line take effect.
19901 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
19903 (mglibc, muclibc): Update.
19905 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
19906 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
19909 * doc/invoke.texi (-mglibc, -muclibc): Update.
19910 (-mbionic): Document.
19912 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19914 * c-common.h (c_register_addr_space): Add prototype.
19915 (ADDR_SPACE_KEYWORD): Remove.
19916 * c-common.c (c_register_addr_space): New function.
19917 (c_addr_space_name): Reimplement.
19918 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
19920 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
19921 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
19923 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
19924 Remove TARGET_ADDR_SPACE_KEYWORDS.
19926 2010-05-27 Joseph Myers <joseph@codesourcery.com>
19928 * input.c: New file.
19929 * input.h (main_input_filename): Move declaration to toplev.h.
19930 * toplev.c (input_location, line_table): Move to input.c
19931 * toplev.h (main_input_filename): Move declaration from input.h.
19932 * tree.c (expand_location): Move to input.c.
19933 * Makefile.in (OBJS-common): Add input.o.
19934 (input.o): Add dependencies.
19936 2010-05-27 Richard Guenther <rguenther@suse.de>
19938 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
19939 for non-existant files.
19940 (fork_execute): Mark args_name file as deleted.
19942 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
19945 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
19946 (narrow_signed_type): Likewise.
19948 2010-05-26 Jan Hubicka <jh@suse.cz>
19950 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
19951 edge only when checking is enabled; check using former_clone_of;
19952 check inline clones too.
19953 (cgraph_materialize_clone): Record former_clone_of pointer.
19954 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
19955 combining redirections; dump args_to_skip bitmap
19956 (cgraph_materialize_all_clones): Do no redirection here.
19957 * ipa-inline.c (inline_transform): Do redirection here.
19958 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
19961 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
19963 * config/avr/avr-c.c: Do not include regs.h.
19964 Include cpplib.h for cpp_define and tree.h for c-common.h.
19965 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
19966 * config/avr/t-avr: Fix dependencies for avr-c.o.
19968 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
19970 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
19971 string instead of SYMBOL_REF rtx.
19972 * rtl.h (set_stack_check_libfunc): Move prototype from here...
19973 * libfuncs.h: ...to here. Adjust for explow.c change.
19975 2010-05-26 Joseph Myers <joseph@codesourcery.com>
19977 * pretty-print.c: Don't include ggc.h.
19978 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
19979 (identifier_to_locale): Use them for allocation.
19980 * pretty-print.h (identifier_to_locale_alloc,
19981 identifier_to_locale_free): Declare.
19982 * toplev.c (alloc_for_identifier_to_locale): New.
19983 (general_init): Set identifier_to_locale_alloc and
19984 identifier_to_locale_free.
19985 * Makefile.in (pretty-print.o): Update dependencies.
19987 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
19989 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
19990 pointer types if they have different alignment or mode.
19992 2010-05-26 Anatoly Sokolov <aesok@post.ru>
19994 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19995 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19996 * config/sparc/sparc-protos.h (function_value): Remove declaration.
19997 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
19998 sparc_function_value_regno_p): New functions.
19999 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20000 TARGET_FUNCTION_VALUE_REGNO_P): Define.
20001 (function_value): Rename to...
20002 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
20003 argument to 'outgoing'.
20004 (function_arg_record_value, function_arg_union_value,
20005 function_arg_vector_value): Update comment.
20007 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
20009 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
20010 (fde_needed_for_eh_p): New predicate.
20011 (output_call_frame_info): Use it throughout to decide whether FDEs
20012 are needed for EH purpose.
20013 (dwarf2out_begin_prologue): Reorder assignments.
20015 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20017 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
20018 special case loop->header.
20019 (is_predicated): New.
20020 (if_convertible_loop_p): Call it.
20022 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20024 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
20025 iterator in parameter. Do not generate code during the analysis.
20026 (tree_if_convert_cond_stmt): Removed.
20027 (tree_if_convert_stmt): Removed.
20028 (predicate_bbs): New.
20029 (if_convertible_loop_p): Call predicate_bbs.
20030 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
20031 now contains all the analysis part.
20033 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20035 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
20036 statements in the analysis part.
20037 (tree_if_convert_stmt): Update comment.
20038 (remove_conditions_and_labels): New.
20039 (combine_blocks): Call remove_conditions_and_labels.
20040 (tree_if_conversion): Update comment.
20042 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20044 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
20045 than 2 predecessors or more than 2 successors.
20047 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20049 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
20050 of loops in which the data dependence analysis fails.
20052 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20054 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
20055 CDI_POST_DOMINATORS.
20056 (tree_if_conversion): Same.
20058 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20060 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
20062 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20064 * tree-if-conv.c: Update copyright years. Fix comments.
20067 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
20069 * builtin-types.def (BT_INT128): New primitive type.
20070 (BT_UINT128): Likewise.
20071 * c-common.c (c_common_r): Add __int128 keyword.
20072 (c_common_type_for_size): Handle __int128.
20073 (c_common_type_for_mode): Likewise.
20074 (c_common_signed_or_unsigned_type): Likewise.
20075 (c_common_nodes_and_builtins): Add builtin type
20076 if target supports 128-bit integer scalar.
20077 * c-common.h (enum rid): Add RID_INT128.
20078 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
20079 if target supports 128-bit integer scalar.
20080 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
20081 (finish_declspecs): Likewise.
20082 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
20083 (c_token_starts_declspecs): Likewise.
20084 (c_parser_declspecs): Likewise.
20085 (c_parser_attributes): Likewise.
20086 (c_parser_objc_selector): Likewise.
20087 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
20088 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
20089 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
20090 * tree.c (make_or_reuse_type): Likewise.
20091 (make_unsigned_type): Likewise.
20092 (build_common_tree_nodes_2): Likewise.
20093 * tree.h (enum integer_type_kind): Add itk_int128 and
20094 itk_unsigned_int128.
20095 (int128_integer_type_node): New define.
20096 (int128_unsigned_type_node): New define.
20097 * doc/extend.texi: Add documentation about __int128 type.
20099 2010-05-26 Richard Guenther <rguenther@suse.de>
20101 * tree-ssa-sccvn.c (copy_nary): Adjust.
20102 (copy_phis): Rename to ...
20103 (copy_phi): ... this. Adjust.
20104 (copy_references): Rename to ...
20105 (copy_reference): ... this. Adjust.
20106 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
20107 result into the valid table.
20109 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20111 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
20112 insn-config.h, insn-codes.h, recog.h, and optabs.h.
20114 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20116 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
20118 2010-05-26 Richard Guenther <rguenther@suse.de>
20120 * opts.c (common_handle_option): Handle OPT_Ofast.
20122 2010-05-26 Joseph Myers <joseph@codesourcery.com>
20124 * diagnostic.c: Don't include opts.h.
20125 (permissive_error_option): Define.
20126 (diagnostic_initialize): Take n_opts parameter. Allocate memory
20127 for classify_diagnostic. Don't use memset for
20128 classify_diagnostic. Initialize new and recently added fields.
20129 (diagnostic_classify_diagnostic): Use context->n_opts instead of
20131 (diagnostic_report_diagnostic): Pass context parameter to
20132 diagnostic_report_warnings_p. Use option_enabled and option_name
20133 hooks from context.
20134 (emit_diagnostic): Use permissive_error_option.
20135 (permerror): Likewise.
20136 * diagnostic.h: Don't include options.h.
20137 (struct diagnostic_context): Add n_opts, opt_permissive,
20138 inhibit_warnings, warn_system_headers, option_enabled and
20139 option_name fields. Change classify_diagnostic to a pointer.
20140 * opts-diagnostic.h: New file.
20141 * opts.c: Include opts-diagnostic.h.
20142 (common_handle_option): Set global_dc fields for -Wfatal-errors,
20143 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
20144 (option_name): New function.
20145 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
20146 (c_common_handle_option): Set global_dc->permissive for
20148 * c-common.c (c_cpp_error): Save and restore
20149 global_dc->warn_system_headers, not variable warn_system_headers.
20150 * toplev.c: Include opts-diagnostic.h.
20151 (general_init): Update call to diagnostic_initialize. Set
20152 global_dc->show_column, global_dc->option_enabled and
20153 global_dc->option_name.
20154 (process_options): Don't set global_dc fields here.
20155 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
20156 (diagnostic.o, opts.o, toplev.o): Update dependencies.
20158 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
20160 * config/picochip/picochip.md (movsi): Split a movsi from a
20161 const after reload.
20163 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20165 * ggc-zone.c: Update copyright year.
20166 (poison_region): Mark memory for Valgrind as undefined before
20167 memset () call and inaccessible afterwards.
20168 (ggc_pch_total_size): Change type of i to int.
20170 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20172 * ggc-common.c (ggc_free_overhead): Allow empty slot.
20174 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20176 * ggc-common.c: Update copyright year.
20177 (ggc_rlimit_bound): Remove prototype. Compile only if
20178 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
20179 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
20180 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
20181 (ggc_min_heapsize_heuristic): Likewise.
20183 2010-05-26 Richard Guenther <rguenther@suse.de>
20185 PR rtl-optimization/44164
20186 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
20187 no-common access-path disambiguation.
20188 (indirect_ref_may_alias_decl_p): Adjust.
20189 (indirect_refs_may_alias_p): Likewise.
20190 (refs_may_alias_p_1): Likewise.
20192 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20194 * c-typeck.c: Do not include expr.h.
20196 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20198 * rtl.h (decl_default_tls_model): Move prototype from here...
20199 * output.h: ...to here.
20200 * c-decl.c: Do not include rtl.h.
20201 * c-pragma.c: Likewise.
20202 * c-parser.c: Likewise.
20203 * c-gimplify.c: Likewise. And also not hard-reg-set.
20204 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
20205 FIXME note for it. Add a FIXME note for expr.h.
20206 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
20207 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
20210 2010-05-26 Jakub Jelinek <jakub@redhat.com>
20213 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
20214 or total_size is larger than red zone size for non-V4 ABI, emit a
20215 stack_tie resp. frame_tie insn before stack pointer restore.
20216 * config/rs6000/rs6000.md (frame_tie): New insn.
20218 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
20220 * function.h (struct function): Add can_throw_non_call_exceptions bit.
20221 * lto-streamer-in.c (input_function): Stream it in.
20222 * lto-streamer-out.c (output_function): Stream it out.
20223 * function.c (allocate_struct_function): Set it.
20224 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
20225 for flag_non_call_exceptions.
20226 * cfgbuild.c (control_flow_insn_p): Likewise.
20227 (make_edges): Likewise.
20228 * cfgexpand.c (expand_stack_alignment): Likewise.
20229 * combine.c (distribute_notes): Likewise.
20230 * cse.c (cse_extended_basic_block): Likewise.
20231 * except.c (insn_could_throw_p): Likewise.
20232 * gcse.c (simple_mem): Likewise.
20233 * ipa-pure-const.c (check_call): Likewise.
20234 (check_stmt ): Likewise.
20235 * lower-subreg.c (lower-subreg.c): Likewise.
20236 * optabs.c (emit_libcall_block): Likewise.
20237 (prepare_cmp_insn): Likewise.
20238 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
20239 * postreload.c (rest_of_handle_postreload): Likewise.
20240 * reload1.c (reload_as_needed): Likewise.
20241 (emit_input_reload_insns): Likewise.
20242 (emit_output_reload_insns): Likewise.
20243 (fixup_abnormal_edges): Likewise.
20244 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
20245 * store-motion.c (find_moveable_store): Likewise.
20246 * tree-eh.c (stmt_could_throw_p): Likewise.
20247 (tree_could_throw_p): Likewise.
20248 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20249 * config/arm/arm.c (arm_expand_prologue): Likewise.
20250 (thumb1_expand_prologue): Likewise.
20251 * config/rx/rx.md (cbranchsf4): Likewise.
20253 * config/s390/s390.c (s390_emit_prologue): Likewise.
20254 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
20255 (inline_forbidden_into_p): New predicate.
20256 (expand_call_inline): Use it to forbid inlining.
20257 (tree_can_inline_p): Likewise.
20259 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
20261 * config/i386/i386-c.c: Do not include rtl.h.
20262 * config/i386/t-i386: Update dependencies.
20264 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
20266 * attribs.c: Do not include rtl.h.
20267 * Makefile.in: Update dependencies.
20269 2010-05-25 Anatoly Sokolov <aesok@post.ru>
20271 * double-int.h (double_int_and): New.
20272 * combine.c (try_combine): Clean up, use double_int_* and
20273 immed_double_int_const functions.
20275 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20277 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
20278 stderr to /dev/null instead of grep -q.
20279 * configure: Regenerate.
20281 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
20283 * Makefile.in (EXCEPT_H): Fix typo.
20285 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
20287 * ira-build.c (update_conflict_hard_reg_costs): New.
20288 (ira_build): Call update_conflict_hard_reg_costs.
20290 2010-05-25 Jakub Jelinek <jakub@redhat.com>
20293 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
20295 (intersect_loc_chains): Walk the s2var's loc_chain together
20296 with s1node chain as long as the locations are equal, don't
20297 call find_loc_in_1pdv in that case.
20300 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
20301 (copy_bind_expr): ... instead of here.
20302 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
20303 if the block hasn't been remapped.
20304 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
20305 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
20307 2010-05-25 Richard Guenther <rguenther@suse.de>
20309 PR middle-end/44069
20310 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
20311 out-of-bounds array accesses.
20313 2010-05-25 Richard Guenther <rguenther@suse.de>
20315 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
20316 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
20317 (run_gcc): Re-organize to make cleanup easier.
20319 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20321 * config/s390/s390.c (optimization_options): Fix and move the
20322 flag_prefetch_loop_arrays override ...
20323 (override_options): ... here.
20325 2010-05-25 Joseph Myers <joseph@codesourcery.com>
20327 * diagnostic.c: Don't include plugin.h.
20328 (diagnostic_report_diagnostic): Don't handle plugins specially
20329 here. Pass context to internal_error callback.
20330 * diagnostic.h (struct diagnostic_context): Add context parameter
20331 to internal_error callback.
20332 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
20333 * plugin.h (struct diagnostic_context): Declare.
20334 (warn_if_plugins, plugins_internal_error_function): Declare.
20335 * toplev.c (general_init): Set global_dc->internal_error.
20336 * Makefile.in (diagnostic.o): Update dependencies.
20338 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
20340 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
20341 * config/rs6000/t-darwin64: New.
20342 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
20345 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
20348 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
20349 match the original (and intended) behaviour before r159557. This
20350 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
20353 2010-05-25 Richard Guenther <rguenther@suse.de>
20355 * doc/invoke.texi: Document -Ofast.
20356 * target.h (struct gcc_target): Add handle_ofast.
20357 * target-def.h (TARGET_HANDLE_OFAST): Add.
20358 (TARGET_INITIALIZER): Adjust.
20359 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
20360 * common.opt (Ofast): Add.
20362 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
20364 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
20365 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
20367 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
20370 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
20371 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
20372 false_rtx. Use false_rtx to compute the correct *ptest for reversed
20373 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
20375 2010-05-25 Jakub Jelinek <jakub@redhat.com>
20377 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
20378 DW_OP_minus with negated offset instead of DW_OP_plus.
20379 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
20381 2010-05-25 Wei Guozhi <carrot@google.com>
20383 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
20384 tst instruction and a new alternative.
20385 * config/arm/constraints.md (Pu): New constraint.
20387 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
20389 * function.c (assign_stack_local_1): Initialize variable
20390 to avoid warning when bootstrapping at -O3.
20392 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
20394 * configure.ac (all_lang_makefiles): Remove everything related to it.
20395 * configure: Regenerate.
20396 * Makefile.in: Fix reference to ada Make-lang.in.
20397 Remove support for LANG_MAKEFILES.
20399 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
20400 Sandra Loosemore <sandra@codesourcery.com>
20402 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
20403 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
20404 description. Add arm_neon_fp16_ok.
20405 (Add Options): Add arm_neon and arm_neon_fp16.
20407 2010-05-24 Joseph Myers <joseph@codesourcery.com>
20409 * diagnostic.c: Don't include flags.h.
20410 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
20411 context parameters. Check flags in the context passed as a parameter.
20412 (diagnostic_build_prefix): Add context parameter. Check
20413 show_column flag in context.
20414 (diagnostic_action_after_output): Check fatal_errors flag in context.
20415 (diagnostic_report_current_module): Check show_column flag in context.
20416 (default_diagnostic_starter): Update call to
20417 diagnostic_build_prefix.
20418 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
20419 (emit_diagnostic): Pass context to permissive_error_kind.
20420 (permerror): Pass context to permissive_error_kind.
20421 * diagnostic.h (struct diagnostic_context): Add show_column,
20422 pedantic_errors, permissive and fatal_errors fields.
20423 (diagnostic_build_prefix): Update prototype.
20425 * toplev.c (process_options): Set flags in global_dc from
20426 flag_show_column, flag_pedantic_errors, flag_permissive,
20428 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
20429 to diagnostic_build_prefix.
20430 * Makefile.in (diagnostic.o): Update dependencies.
20432 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
20434 * config/i386/ia32intrin.h (__crc32q): Define only if
20435 __SSE4_2__ is defined.
20437 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
20440 PR middle-end/43602
20441 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
20442 DECL_VISIBILITY_SPECIFIED.
20443 (emutls_decl): Set DECL_PRESERVE_P and copy
20444 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
20445 (emutls_finalize_control_var): New callback.
20446 (emutls_finish): Finalize emutls control variables.
20447 * toplev.c (compile_file): Move the call to emutls_finish ()
20448 before varpool_assemble_pending_decls ().
20450 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
20452 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
20453 added to the preprocessor condition.
20455 2010-05-24 Paul Brook <paul@codesourcery.com>
20457 * gengtype-lex.l: Add HARD_REG_SET.
20458 * expr.c (expand_expr_real_1): Record writes to hard registers.
20459 * function.c (rtl_data): Add asm_clobbers.
20460 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
20461 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
20462 Use crtl->asm_clobbers.
20464 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20466 * doc/makefile.texi (Makefile): Mention stages 'profile'
20467 and 'feedback' for profiledbootstrap.
20469 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
20472 * config/i386/i386.c (def_builtin): Properly check
20473 OPTION_MASK_ISA_64BIT.
20475 2010-05-23 Joseph Myers <joseph@codesourcery.com>
20477 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
20478 typedefs with different but compatible types. Allow duplicate
20479 typedefs with the same type except for pedantic non-C1X, but give
20480 warning for variably modified types.
20481 * c-typeck.c (tagged_types_tu_compatible_p,
20482 function_types_compatible_p, type_lists_compatible_p,
20483 comptypes_internal): Add parameter different_types_p; set
20484 *different_types_p for different but compatible types. All
20486 (comptypes_check_different_types): New.
20487 * c-tree.h (comptypes_check_different_types): Declare.
20489 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
20491 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
20492 * jump.c: Include basic-block.h.
20493 * profile.c: Likewise.
20494 * tree-profile.c: Likewise.
20495 * coverage.c: Likewise.
20496 * basic-block.h (optimize_function_for_size_p): Move to function.h.
20497 (optimize_function_for_speed_p): Likewise.
20498 * function.h (optimize_function_for_size_p,
20499 optimize_function_for_speed_p): Moved here from basic-block.h.
20500 * Makefile.in: Update dependencies.
20502 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20504 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
20505 before calling make; allow override through $MAKE.
20506 * doc/invoke.texi (Optimize Options): Document override.
20508 2010-05-23 Anatoly Sokolov <aesok@post.ru>
20510 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
20511 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20512 (rs6000_mode_dependent_address_ptr): Make static.
20513 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20514 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
20517 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
20520 * config/i386/i386.c: Make sure that the correct regparm is passed.
20522 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
20524 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
20525 * sbitmap.c: ...to here to internalize sbitmap element access.
20526 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
20527 Explain why basic-block.h is included.
20528 * function.h: Include tm.h for CUMULATIVE_ARGS.
20529 * Makefile.in: Update dependencies.
20531 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
20533 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
20535 * sbitmap.h (struct sbitmap_def): Do not typedef here.
20536 * sbitmap.c: Include sbitmap.h.
20537 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
20538 hard-reg-set.h. Split everything related to regsets out from here...
20539 * regset.h: ...to here. New file.
20540 * df.h: Include regset.h and sbitmap.h.
20541 * tree-flow.h: Likewise.
20542 * cfgloop.h: Likewise.
20543 * except.h: Do not include sbitmap.h. Include hashtab.h.
20544 * cgraph.h: Include vec.h and function.h.
20545 * reload.h (struct insn_chain): Change types of live_throughout
20546 and dead_or_set from regset_head to bitmap_head.
20547 (compute_use_by_pseudos): Be defined also if regset.h is not included.
20548 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
20549 spilled_regs from regset_head to bitmap_head to avoid dependency
20551 * sel-sched-ir.h: Include regset.h.
20552 * reload.c: Include df.h before reload.h.
20553 * caller-save.c: Likewise.
20554 * reload1.c: Likewise.
20556 (mark_elimination): Update type of r to bitmap, consistent with
20558 * dominance.c: Include bitmap.h.
20559 * modulo-sched.c: Include df.h.
20560 * cfganal.c: Include bitmap.h and sbitmap.h.
20561 * cfgbuild.c: Include sbitmap.h.
20562 * lcm.c: Include sbitmap.h.
20563 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
20564 * domwalk.c: Include sbitmap.h, exclude ggc.h.
20565 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
20566 * cselib.c: Include bitmap.h.
20567 * tree-optimize.c: Include regset.h.
20568 * stmt.c: Include bitmap.h.
20569 * Makefile.in: Update dependencies.
20571 2010-05-22 Jan Hubicka <jh@suse.cz>
20573 * cgraph.h (struct varpool_node): Add same_comdat_group.
20574 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
20576 (output_varpool): Update call of lto_output_varpool_node.
20577 (input_varpool): Read same_comdat_group pointer.
20578 (input_varpool_1): Fixup same_comdat_group pointer.
20579 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
20580 group is needed, all are.
20581 * varpool.c (varpool_remove_node): Remove node from same comdat group
20583 (varpool_analyze_pending_decls): Walk same comdat groups.
20585 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
20587 * rtl.h (union rtunion_def): Remove rt_bit member.
20588 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
20589 * print-rtl (print_rtx): Do not print the member.
20590 * gengtype.c (adjust_field_rtx_def): Do not handle it.
20591 * gengenrtl.c (type_from_format): Likewise.
20592 (accessor_from_format): Likewise.
20594 2010-05-22 Joseph Myers <joseph@codesourcery.com>
20596 * dbgcnt.c: Include toplev.h instead of errors.h.
20597 * ira-emit.c: Don't include errors.h.
20598 * ira.c: Include toplev.h instead of errors.h.
20599 * lto-compress.c: Include toplev.h instead of errors.h.
20600 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
20601 ira.o, dbgcnt.o): Update dependencies.
20603 2010-05-22 Richard Guenther <rguenther@suse.de>
20605 * gimple.c (gimple_types_compatible_p): Check type qualifications
20606 before merging pointer to complete and pointer to incomplete type.
20607 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
20608 we use our own resolution algorithm. The gold linker plugin
20609 doesn't do the job we want it to do here.
20611 2010-05-22 Anatoly Sokolov <aesok@post.ru>
20613 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20614 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20615 (sparc_mode_dependent_address_p): New function.
20617 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
20619 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
20621 * timevar.c: Do not include any core headers.
20622 (timevar_print): De-i18n-ize.
20623 (print_time): Likewise.
20624 * timevar.h (timevar_push, timevar_pop): Make inline functions.
20626 2010-05-21 Joseph Myers <joseph@codesourcery.com>
20628 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
20630 (diagnostic_initialize): Initialize x_data not last_function.
20631 (diagnostic_report_current_function): Move to tree-diagnostic.c.
20632 (default_diagnostic_starter): Call
20633 diagnostic_report_current_module not
20634 diagnostic_report_current_function.
20635 (diagnostic_report_diagnostic): Initialize x_data not
20637 (verbatim): Likewise.
20638 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
20640 (struct diagnostic_context): Change last_function to x_data.
20641 (diagnostic_auxiliary_data): Replace with
20642 diagnostic_context_auxiliary_data and
20643 diagnostic_info_auxiliary_data.
20644 (diagnostic_last_function_changed, diagnostic_set_last_function,
20645 diagnostic_report_current_function): Move to tree-diagnostic.h.
20646 (print_declaration, dump_generic_node, print_generic_stmt,
20647 print_generic_stmt_indented, print_generic_expr,
20648 print_generic_decl, debug_c_tree, dump_omp_clauses,
20649 print_call_name, debug_generic_expr, debug_generic_stmt,
20650 debug_tree_chain, default_tree_printer): Move to
20651 tree-pretty-print.h.
20652 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
20653 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
20654 gimple-pretty-print.h.
20655 * pretty-print.c: Don't include tree.h
20656 (pp_base_format): Don't handle %K here.
20657 (pp_base_tree_identifier): Move to tree-pretty-print.c.
20658 * pretty-print.h (text_info): Change abstract_origin to x_data.
20659 (pp_tree_identifier, pp_unsupported_tree,
20660 pp_base_tree_identifier): Move to tree-pretty-print.h.
20661 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
20662 tree-pretty-print.h: New files.
20663 * tree-pretty-print.c: Include tree-pretty-print.h.
20664 (percent_K_format): New. Moved from pretty-print.c.
20665 (pp_base_tree_identifier): Move from pretty-print.c.
20666 * c-objc-common.c: Include tree-pretty-print.h.
20667 (c_tree_printer): Handle %K here.
20668 * langhooks.c: Include tree-diagnostic.h.
20669 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
20670 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
20671 (default_tree_printer): Handle %K using percent_K_format.
20672 (general_init): Use default_tree_diagnostic_starter.
20673 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
20674 (free_lang_data): Use default_tree_diagnostic_starter.
20675 * c-pretty-print.c: Include tree-pretty-print.h.
20676 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20677 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20678 * dwarf2out.c: Include tree-pretty-print.h.
20679 * except.c: Include tree-pretty-print.h.
20680 * gimple-pretty-print.c: Include tree-pretty-print.h and
20681 gimple-pretty-print.h.
20682 * gimplify.c: Include tree-pretty-print.h.
20683 * graphite-poly.c: Include tree-pretty-print.h and
20684 gimple-pretty-print.h.
20685 * ipa-cp.c: Include tree-pretty-print.h.
20686 * ipa-inline.c: Include gimple-pretty-print.h.
20687 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20688 * ipa-pure-const.c: Include gimple-pretty-print.h.
20689 * ipa-struct-reorg.c: Include tree-pretty-print.h and
20690 gimple-pretty-print.h.
20691 * ipa-type-escape.c: Include tree-pretty-print.h.
20692 * print-rtl.c: Include tree-pretty-print.h.
20693 * print-tree.c: Include gimple-pretty-print.h.
20694 * sese.c: Include tree-pretty-print.h.
20695 * tree-affine.c: Include tree-pretty-print.h.
20696 * tree-browser.c: Include tree-pretty-print.h.
20697 * tree-call-cdce.c: Include gimple-pretty-print.h.
20698 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20699 * tree-chrec.c: Include tree-pretty-print.h.
20700 * tree-data-ref.c: Include tree-pretty-print.h and
20701 gimple-pretty-print.h.
20702 * tree-dfa.c: Include tree-pretty-print.h.
20703 * tree-if-conv.c: Include tree-pretty-print.h and
20704 gimple-pretty-print.h.
20705 * tree-inline.c: Include tree-pretty-print.h.
20706 * tree-into-ssa.c: Include tree-pretty-print.h and
20707 gimple-pretty-print.h.
20708 * tree-nrv.c: Include tree-pretty-print.h.
20709 * tree-object-size.c: Include tree-pretty-print.h and
20710 gimple-pretty-print.h.
20711 * tree-outof-ssa.c: Include tree-pretty-print.h and
20712 gimple-pretty-print.h.
20713 * tree-parloops.c: Include tree-pretty-print.h and
20714 gimple-pretty-print.h.
20715 * tree-predcom.c: Include tree-pretty-print.h and
20716 gimple-pretty-print.h.
20717 * tree-scalar-evolution.c: Include tree-pretty-print.h and
20718 gimple-pretty-print.h.
20719 * tree-sra.c: Include tree-pretty-print.h.
20720 * tree-ssa-address.c: Include tree-pretty-print.h.
20721 * tree-ssa-alias.c: Include tree-pretty-print.h.
20722 * tree-ssa-ccp.c: Include tree-pretty-print.h and
20723 gimple-pretty-print.h.
20724 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
20725 * tree-ssa-copy.c: Include tree-pretty-print.h and
20726 gimple-pretty-print.h.
20727 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
20728 * tree-ssa-dce.c: Include tree-pretty-print.h and
20729 gimple-pretty-print.h.
20730 * tree-ssa-dom.c: Include tree-pretty-print.h and
20731 gimple-pretty-print.h.
20732 * tree-ssa-dse.c: Include gimple-pretty-print.h.
20733 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
20734 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
20735 * tree-ssa-live.c: Include tree-pretty-print.h and
20736 gimple-pretty-print.h.
20737 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
20738 gimple-pretty-print.h.
20739 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
20740 gimple-pretty-print.h.
20741 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
20742 gimple-pretty-print.h.
20743 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
20744 gimple-pretty-print.h.
20745 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
20746 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
20747 * tree-ssa-operands.c: Include tree-pretty-print.h and
20748 gimple-pretty-print.h.
20749 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
20750 gimple-pretty-print.h.
20751 * tree-ssa-pre.c: Include tree-pretty-print.h and
20752 gimple-pretty-print.h.
20753 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
20754 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
20755 gimple-pretty-print.h.
20756 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
20757 gimple-pretty-print.h.
20758 * tree-ssa-sink.c: Include gimple-pretty-print.h.
20759 * tree-ssa-ter.c: Include tree-pretty-print.h and
20760 gimple-pretty-print.h.
20761 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
20762 * tree-ssa.c: Include tree-pretty-print.h and
20763 gimple-pretty-print.h.
20764 * tree-stdarg.c: Include gimple-pretty-print.h.
20765 * tree-switch-conversion.c: Include gimple-pretty-print.h.
20766 * tree-tailcall.c: Include tree-pretty-print.h and
20767 gimple-pretty-print.h.
20768 * tree-vect-data-refs.c: Include tree-pretty-print.h and
20769 gimple-pretty-print.h.
20770 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
20771 gimple-pretty-print.h.
20772 * tree-vect-loop.c: Include tree-pretty-print.h and
20773 gimple-pretty-print.h.
20774 * tree-vect-patterns.c: Include gimple-pretty-print.h.
20775 * tree-vect-slp.c: Include tree-pretty-print.h and
20776 gimple-pretty-print.h.
20777 * tree-vect-stmts.c: Include tree-pretty-print.h and
20778 gimple-pretty-print.h.
20779 * tree-vectorizer.c: Include tree-pretty-print.h.
20780 * tree-vrp.c: Include tree-pretty-print.h and
20781 gimple-pretty-print.h.
20782 * value-prof.c: Include tree-pretty-print.h and
20783 gimple-pretty-print.h.
20784 * var-tracking.c: Include tree-pretty-print.h.
20785 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
20786 (tree-diagnostic.o): New dependencies.
20787 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
20788 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
20789 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
20790 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
20791 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
20792 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
20793 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
20794 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
20795 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
20796 tree-ssa-address.o, tree-ssa-loop-niter.o,
20797 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
20798 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
20799 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
20800 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
20801 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
20802 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
20803 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
20804 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
20805 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
20806 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
20807 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
20808 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
20809 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
20810 tree-switch-conversion.o, var-tracking.o, value-prof.o,
20811 cfgexpand.o, pretty-print.o): Update dependencies.
20813 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
20815 * tree-ssa-structalias.c: Remove tm_p.h from include.
20817 2010-05-21 Jeff Law <law@redhat.com>
20819 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
20821 2010-05-21 Jason Merrill <jason@redhat.com>
20823 * tree-eh.c (cleanup_is_dead_in): New.
20824 (lower_try_finally): Don't generate a dead cleanup region.
20825 (lower_cleanup): Likewise.
20827 2010-05-21 Jakub Jelinek <jakub@redhat.com>
20830 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
20831 unchain each use from the cyclic next_regno_use chain first.
20833 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
20835 * real: Do not include gmp.h, mpfr.h, and mpc.h.
20836 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
20837 (real_value_negate, real_value_abs): New prototypes.
20838 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
20839 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
20840 new include file for interface between MPFR and REAL_VALUE_TYPE.
20841 * real.c: Include realmpfr.h.
20842 (real_arithmetic2): Remove legacy function.
20843 (real_value_negate): New.
20844 (real_value_abs): New.
20845 (mfpr_from_real, real_from_mpfr): Move from here...
20846 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
20847 * builtins.c: Include realmpfr.h.
20848 * fold-const.c: Include realmpfr.h.
20849 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
20850 (fold_negate_const): Likewise.
20851 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
20852 * toplev.c: Include realmpfr.h.
20853 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
20854 and real_value_negate.
20855 * fixed-value.c (check_real_for_fixed_mode): Likewise.
20856 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
20857 (vfp3_const_double_index): Likewise.
20858 (arm_print_operand): Likewise.
20859 * Makefile.in: Update dependencies.
20861 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20863 * config/s390/s390.c (override_options): Increase the default
20864 of max-completely-peel-times.
20866 2010-05-21 Julian Brown <julian@codesourcery.com>
20867 Mark Mitchell <mark@codesourcery.com>
20869 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
20870 sibling calls for Thumb-1.
20871 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
20872 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
20874 (*call_insn, *call_value_insn): Don't use for Thumb-2.
20875 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
20877 (return): New expander.
20878 (*arm_return): New name for ARM return insn.
20879 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
20881 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
20883 * config.gcc (sparc64-*-rtems*): New target.
20885 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
20887 * tree.c (build_function_decl_skip_args): Fix grammar.
20888 (build_function_type_list_1): Fix typos, adjust formatting.
20890 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
20892 * tree.h: Include real.h and fixed-value.h as basic datatypes.
20893 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
20894 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
20895 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
20896 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
20897 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
20898 tree-pretty-print.c, tree-loop-distribution.c,
20899 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
20900 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
20901 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
20902 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
20903 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
20904 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
20905 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
20906 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
20907 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
20908 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
20909 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
20910 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
20911 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
20912 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
20913 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
20914 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
20915 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
20916 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
20917 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
20918 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
20919 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
20920 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
20921 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
20922 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
20923 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
20924 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
20925 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
20926 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
20927 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
20928 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
20929 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
20930 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
20931 config/score/score7.c, config/score/score.c, config/arm/arm.c,
20932 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
20933 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
20934 config/bfin/bfin.c: Clean up redundant includes.
20935 * Makefile.in: Update accordingly.
20937 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
20939 PR middle-end/44204
20940 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
20941 statement has no arguments.
20943 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
20946 * varasm.c (emutls_decl): Merge attributes to new decl.
20948 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
20950 PR middle-end/44101
20951 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
20952 around the uniquized constructor if its type requires a conversion.
20954 2010-05-21 Jakub Jelinek <jakub@redhat.com>
20957 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
20958 at -O0 goto_locus of any of the incoming edges differs from
20959 goto_locus of outgoing edge, or gimple_location of any of the
20962 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
20964 * ira.c (ira_non_ordered_class_hard_regs): Define.
20965 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
20966 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
20967 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
20968 cost of unaligned hard regs when allocating multi-reg pseudos.
20970 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
20972 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
20973 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
20974 for TARGET_NO_FLOAT.
20975 * config/mips/mips.c (mips_file_start): Expand conditional expression
20976 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
20977 (mips_override_options): Move -mno-float override -msoft-float and
20979 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
20980 Condition(TARGET_SUPPORTS_NO_FLOAT).
20981 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
20982 __mips_no_float here.
20983 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
20984 (TARGET_SUPPORTS_NO_FLOAT): Define.
20985 * config/mips/sdemtk.opt: Delete.
20987 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
20989 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
20991 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
20994 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
20995 * configure: Regenerate.
20996 * config.in: Regenerate.
20997 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
20998 instead of sahf only for 64bit targets.
21000 2010-05-20 Jakub Jelinek <jakub@redhat.com>
21003 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
21004 setup_ref_regs for DEBUG_INSNs.
21006 2010-05-20 Jan Hubicka <jh@suse.cz>
21008 PR middle-end/44197
21009 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
21011 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
21014 * df-scan.c (df_ref_compare): Stabilize sort.
21016 2010-05-20 Jakub Jelinek <jakub@redhat.com>
21018 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
21019 argument. Don't use DW_OP_piece if offset is non-zero,
21020 put offset into second DW_OP_bit_piece argument.
21021 (dw_sra_loc_expr): Adjust callers. For memory expressions
21024 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
21027 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
21028 settings for 16-bit-constant "addo" alternative.
21030 2010-05-19 James E. Wilson <wilson@codesourcery.com>
21032 * config/mips/mips-dsp.md (add<DSPV:mode>3,
21033 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
21036 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
21037 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
21040 2010-05-19 Joseph Myers <joseph@codesourcery.com>
21042 * diagnostic.c (FLOAT, FFS): Don't undefine.
21043 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
21044 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
21047 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21049 * combine.c (propagate_for_debug): Call make_compound_operation
21050 on the source value.
21051 (try_combine): When implementing a split chosen by find_split_point,
21052 either copy i2src or set it to null. Assert that i2src is not null
21053 before substituting into CALL_INSN_FUNCTION_USAGE.
21055 2010-05-19 Anatoly Sokolov <aesok@post.ru>
21057 * double-int.h (double_int_ior): New function.
21058 * tree.h (build_int_cst_wide_type): Remove.
21059 * tree.c (build_int_cst_wide_type): Remove.
21060 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
21061 of build_int_cst_wide_type.
21062 * stor-layout.c (set_sizetype): (Ditto.).
21063 * dojump.c (do_jump): Use build_int_cstu instead of
21064 build_int_cst_wide_type.
21066 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
21068 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
21069 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
21070 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
21071 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
21072 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
21073 propagate the 'data' argument to copy_tree_r.
21074 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
21075 Propagate 'data' argument to walk_tree.
21076 (copy_if_shared): New function.
21077 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
21078 (unmark_visited): New function.
21079 (unshare_body): Call copy_if_shared instead of doing it manually.
21080 (unvisit_body): Call unmark_visited instead of doing it manually.
21082 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
21084 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
21085 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
21086 * hooks.c: Likewise.
21087 * target-def.h (TARGET_FOLD_BUILTIN): Define to
21088 hook_tree_tree_int_treep_bool_null.
21089 * target.h (struct gcc_target): Update signature of fold_builtin
21091 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
21092 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
21093 instead of the call expression.
21094 (fold_builtin_call_array): Pass n and argarray directly.
21095 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
21097 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
21098 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
21099 `i' and use it in place of `arity'.
21100 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
21101 Dereference `args' directly.
21102 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
21104 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21106 * doc/sourcebuild.texi (Effective-Target Keywords): Document
21108 (Directives): Document optional dg-require-effective-target
21111 2010-05-19 Richard Guenther <rguenther@suse.de>
21114 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
21116 2010-05-19 Richard Guenther <rguenther@suse.de>
21118 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
21119 * common.opt (fwhopr=): New.
21120 * opts.c (common_handle_option): Handle OPT_fwhopr.
21121 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
21122 * collect2.c (main): Match -fwhopr*.
21123 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
21124 Execute ltrans stage in parallel when jobs is bigger than 1.
21126 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21128 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
21129 pentiumpro on Solaris 8/x86 with Sun as.
21130 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
21132 (gcc_cv_as_ix86_quad): Check for .quad directive.
21133 * configure: Regenerate.
21134 * config.in: Regenerate.
21135 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
21137 2010-05-19 Martin Jambor <mjambor@suse.cz>
21139 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
21140 also for indirect edges. Actual printing moved...
21141 (ipa_print_node_jump_functions_for_edge): ...here.
21142 (ipa_compute_jump_functions): Renamed to
21143 ipa_compute_jump_functions_for_edge and made static.
21144 (ipa_compute_jump_functions): New function.
21145 (make_edge_direct_to_target): Check if the number of arguments on
21146 the newly direct edge is the same as the number of parametrs of
21148 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
21149 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
21150 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
21151 analysis functions unconditionally, call the new
21152 ipa_analyze_params_uses on the node instead of every edge.
21154 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
21156 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
21158 (dump_mem_ref): Adopt debug code to handle a tree as step. This
21159 also checks for a constant int vs. non-constant but
21160 loop-invariant steps.
21161 (find_or_create_group): Change the sort algorithm to only consider
21162 steps that are constant ints.
21163 (idx_analyze_ref): Adopt code to handle a tree instead of a
21164 HOST_WIDE_INT for step.
21165 (gather_memory_references_ref): Handle tree instead of int and be
21166 prepared to see a NULL_TREE.
21167 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
21168 prefetches if the step cannot be calculated at compile time.
21169 (issue_prefetch_ref): Issue prefetches for non-constant but
21170 loop-invariant steps.
21172 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
21175 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
21177 * tree.h (build_call_list): Remove.
21178 * tree.c (build_call_list): Remove.
21180 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
21182 * tree.h (build_call_list): Remove.
21183 * tree.c (build_call_list): Remove.
21185 2010-05-18 Jan Hubicka <jh@suse.cz>
21187 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
21189 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
21191 PR rtl-optimization/43332
21192 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
21194 2010-05-18 Anatoly Sokolov <aesok@post.ru>
21196 * tree.h (build_int_cstu): Implement as static inline.
21197 * tree.c (build_int_cstu): Remove function.
21198 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
21201 2010-05-18 Richard Guenther <rguenther@suse.de>
21204 * lto-wrapper.c (verbose): New variable. Initialize from -v.
21205 (debug): Initialize from -save-temps.
21206 (collect_execute): Print command-line when verbose.
21207 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
21208 for ltrans invocation. Produce -dumpbase flag again.
21209 (process_args): Remove.
21211 * collect2.c (maybe_run_lto_and_relink): Only pass object
21212 files to lto-wrapper.
21213 * gcc.c (LINK_COMMAND_SPEC): Likewise.
21215 2010-05-18 Jan Hubicka <jh@suse.cz>
21217 * opts.c (decode_options): Do not disable whopr at ipa_cp.
21218 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
21220 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
21223 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
21225 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
21228 2010-05-18 Jakub Jelinek <jakub@redhat.com>
21231 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
21232 rtx_equal_p inline.
21234 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
21236 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
21237 lto-macho as lto_binary_reader.
21239 * darwin.c (darwin_asm_named_section): Do not add assembler comment
21240 after .section directive; just print it before the directive instead.
21242 2010-05-17 Jan Hubicka <jh@suse.cz>
21244 * cgraph.c (cgraph_create_virtual_clone): Only check
21245 versionable_function_p when not in wpa and checking is enabled.
21246 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
21247 there are no more functions to materialize.
21249 2010-05-17 Jan Hubicka <jh@suse.cz>
21251 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
21252 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
21254 (output_cgraph): Call output_cgraph_opt_summary.
21255 (input_cgrpah): Call input_cgraph_opt_summary.
21256 (output_cgraph_opt_summary_p, output_node_opt_summary,
21257 input_node_opt_summary, input_cgraph_opt_section): New functions.
21258 * lto-section-in.c (lto_section_name): Add cgraphopt.
21259 * tree-inline.c (tree_function_versioning): Handle parm_num.
21260 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
21261 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
21263 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
21265 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
21266 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
21267 the insn to prefetch ratio heuristic to loops with known trip count.
21269 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
21271 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
21272 (schedule_prefetches): Do not generate a prefetch if the unroll factor
21273 is far from what is required by the prefetch.
21275 2010-05-17 Jan Hubicka <jh@suse.cz>
21277 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
21278 (ipcp_estimate_growth): Likewise.
21279 (ipcp_const_param_count): Likewise.
21280 (ipcp_insert_stage): Likewise.
21281 * ipa-prop.c (visit_load_for_mod_analysis): New function.
21282 (visit_store_addr_for_mod_analysis): Set used flag.
21283 (ipa_detect_param_modifications): Set used flag for SSE params;
21284 update use of walk_stmt_load_store_addr_ops.
21285 (ipa_print_node_params): Print used flag.
21286 (ipa_write_node_info): Stream used flag.
21287 (ipa_read_node_info): Likewise.
21288 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
21289 (ipa_is_param_used): New function.
21290 (lto_ipa_fixup_call_notes): Remove unused declaration.
21292 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21295 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
21296 * configure: Regenerate.
21297 * config.in: Regenerate.
21298 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
21299 !HAVE_AS_IX86_REP_LOCK_PREFIX.
21300 Don't emit whitespace.
21301 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
21302 (*rep_movsi): Likewise.
21303 (*rep_movsi_rex64): Likewise.
21304 (*rep_movqi): Likewise.
21305 (*rep_movqi_rex64): Likewise.
21306 (*rep_stosdi_rex64): Likewise.
21307 (*rep_stossi): Likewise.
21308 (*rep_stossi_rex64): Likewise.
21309 (*rep_stosqi): Likewise.
21310 (*rep_stosqi_rex64): Likewise.
21311 (*cmpstrnqi_nz_1): Use {%;} after repz.
21312 (*cmpstrnqi_nz_rex_1): Likewise.
21313 (*cmpstrnqi_1): Likewise.
21314 (*cmpstrnqi_rex_1): Likewise.
21315 (*strlenqi_1): Use {%;} after repnz.
21316 (*strlenqi_rex_1): Likewise.
21317 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
21318 (*sync_compare_and_swap<mode>): Likewise.
21319 (sync_double_compare_and_swap<mode>): Likewise.
21320 (*sync_double_compare_and_swapdi_pic): Likewise.
21321 (sync_old_add<mode>): Likewise.
21322 (sync_add<mode>): Likewise.
21323 (sync_sub<mode>): Likewise.
21324 (sync_<code><mode>): Likewise.
21326 2010-05-17 Martin Jambor <mjambor@suse.cz>
21328 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
21329 otr_token and polymorphic.
21330 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
21331 (cgraph_clone_edge): Copy the above fields.
21332 * tree.c (get_binfo_at_offset): New function.
21333 * tree.h (get_binfo_at_offset): Declare.
21334 * ipa-prop.h (enum jump_func_type): Added known_type jump function
21335 type, reordered items, updated comments.
21336 (union jump_func_value): Added base_type field, reordered fields.
21337 (enum ipa_lattice_type): Moved down in the file.
21338 (struct ipa_param_descriptor): New field polymorphic.
21339 (ipa_is_param_polymorphic): New function.
21340 * ipa-prop.c: Include gimple.h and gimple-fold.h.
21341 (ipa_print_node_jump_functions): Print known type jump functions.
21342 (compute_complex_pass_through): Renamed to...
21343 (compute_complex_assign_jump_func): this.
21344 (compute_complex_ancestor_jump_func): New function.
21345 (compute_known_type_jump_func): Likewise.
21346 (compute_scalar_jump_functions): Create known type and complex ancestor
21348 (ipa_note_param_call): New parameter polymorphic, set the corresponding
21349 flag in the call note accordingly.
21350 (ipa_analyze_call_uses): Renamed to...
21351 (ipa_analyze_indirect_call_uses): this. New parameter target, define
21352 variable var only in the block where it is used.
21353 (ipa_analyze_virtual_call_uses): New function.
21354 (ipa_analyze_call_uses): Likewise.
21355 (combine_known_type_and_ancestor_jfs): Likewise.
21356 (update_jump_functions_after_inlining): Implemented handling of a
21357 number of new jump function types combination.
21358 (print_edge_addition_message): Removed.
21359 (make_edge_direct_to_target): New function.
21360 (try_make_edge_direct_simple_call): Likewise.
21361 (try_make_edge_direct_virtual_call): Likewise.
21362 (update_call_notes_after_inlining): Renamed to...
21363 (update_indirect_edges_after_inlining): this. Moved edge creation for
21364 indirect calls to try_make_edge_direct_simple_call, also calls
21365 try_make_edge_direct_virtual_call for virtual calls.
21366 (ipa_print_node_params): Changed the header message.
21367 (ipa_write_jump_function): Stream also known type jump functions.
21368 (ipa_read_jump_function): Likewise.
21369 (ipa_write_indirect_edge_info): Stream new fields in
21370 cgraph_indirect_call_info.
21371 (ipa_read_indirect_edge_info): Likewise.
21372 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
21375 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21377 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
21379 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
21381 * tree.h (CALL_EXPR_ARGS): Delete.
21382 (call_expr_arglist): Delete.
21383 * tree.c (call_expr_arglist): Delete.
21384 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
21385 targetm.fold_builtin.
21386 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
21387 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
21388 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
21389 arglist parameter. Use CALL_EXPR_ARG.
21390 (picochip_expand_builtin_3op): Likewise.
21391 (picochip_expand_builtin_2opvoid): Likewise.
21392 (picochip_expand_array_get): Likewise.
21393 (picochip_expand_array_put): Likewise.
21394 (picochip_expand_array_testport): Likewise.
21395 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
21396 rather than arglist.
21397 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
21399 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
21400 than TREE_VALUE and TREE_CHAIN.
21401 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
21402 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
21405 2010-05-17 Jakub Jelinek <jakub@redhat.com>
21408 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
21409 to have no fallthru edge.
21411 PR middle-end/44102
21412 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
21413 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
21414 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
21415 add BARRIER after previous bb if needed.
21417 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
21419 * tree.c (build_function_type_list_1): Remove bogus assert condition.
21421 2010-05-17 Alan Modra <amodra@gmail.com>
21423 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
21424 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
21425 with copy_reg rtx param.
21426 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
21427 Correct cases where code for ABI_V4 did not initialise the reg
21428 used to access frame. Also leave frame_reg_rtx as sp for large
21429 frames that save no regs.
21431 2010-05-17 Martin Jambor <mjambor@suse.cz>
21433 PR middle-end/44133
21434 * tree-sra.c (create_access_replacement): New parameter rename, mark
21435 the replaement for renaming only when it is true.
21436 (get_access_replacement): Pass true in the rename parameter of
21437 create_access_replacement.
21438 (get_unrenamed_access_replacement): New function.
21439 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
21440 replacement declaration from it.
21442 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
21444 * function.c (try_fit_stack_local, add_frame_space): New static
21446 (assign_stack_local_1): Use them. Look for opportunities to use
21447 space previously wasted on alignment.
21448 * function.h (struct frame_space): New.
21449 (struct rtl_data): Add FRAME_SPACE_LIST member.
21450 * reload1.c (something_was_spilled): New static variable.
21451 (alter_reg): Set it.
21452 (reload): Test it in addition to testing if the frame size changed.
21454 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
21456 * config/s390/s390.c: Define sane prefetch settings and activate
21457 flag_prefetch_loop_arrays on -O3.
21458 * config/s390/s390.h: Declare that read can use write prefetch.
21460 2010-05-17 Jakub Jelinek <jakub@redhat.com>
21462 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
21465 2010-05-16 Jan Hubicka <jh@suse.cz>
21467 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
21468 function body; do not check stdarg field of struct function.
21470 2010-05-16 Jan Hubicka <jh@suse.cz>
21472 * cgraph.c (dump_cgraph_node): Dump versionable flag.
21473 * cgraph.h (cgraph_local_info): Add versionable flag.
21474 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
21475 (ipcp_versionable_function_p): Use it.
21476 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
21479 2010-05-16 Jan Hubicka <jh@suse.cz>
21481 * cgraph.c (cgraph_clone_node): Take decl argument and insert
21482 clone into hash when it is different from orig.
21483 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
21484 * cgraph.h (cgraph_clone_node): Update prototype.
21485 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
21486 (lto_cgraph_encoder_delete): Delete body map.
21487 (lto_cgraph_encoder_size): Move to header.
21488 (lto_cgraph_encoder_encode_body_p,
21489 lto_set_cgraph_encoder_encode_body): New.
21490 (lto_output_node): Do not take written_decls argument; output clone_of
21492 (add_node_to): Add include_body_argument; call
21493 lto_set_cgraph_encoder_encode_body on master of the clone.
21494 (add_references): Update use of add_node_to.
21495 (compute_ltrans_boundary): Likewise.
21496 (output_cgraph): Do not create written_decls bitmap.
21497 (input_node): Take nodes argument; stream in clone_of correctly.
21498 (input_cgraph_1): Update use of input_node.
21499 * lto-streamer-out.c (lto_output): Use encoder info to decide
21500 what bodies to output.
21501 * ipa-inline.c (cgraph_clone_inlined_nodes,
21502 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
21503 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
21504 (lto_cgraph_encoder_size): Define here.
21505 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
21508 2010-05-16 Richard Guenther <rguenther@suse.de>
21510 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
21512 * ipa-type-escape.c (gate_type_escape_vars): Run when
21513 -fipa-struct-reorg runs.
21514 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
21515 * common.opt (fipa-type-escape): Remove.
21517 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
21519 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
21520 (decode_options): Likewise.
21521 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
21523 2010-05-16 Jan Hubicka <jh@suse.cz>
21525 * ipa.c (function_and_variable_visibility): Also bring local all
21528 2010-05-16 Richard Guenther <rguenther@suse.de>
21530 * alias.c (nonoverlapping_memrefs_p): Remove use of
21531 IPA type-escape information.
21533 2010-05-16 Joseph Myers <joseph@codesourcery.com>
21535 * c-common.c (c_common_reswords): Add _Static_assert for C.
21536 * c-parser.c (c_token_starts_declaration,
21537 c_parser_next_token_starts_declaration,
21538 c_parser_static_assert_declaration_no_semi,
21539 c_parser_static_assert_declaration): New.
21540 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
21541 Handle static assertions if static_assert_ok.
21542 (c_parser_external_declaration, c_parser_declaration_or_fndef,
21543 c_parser_compound_statement_nostart, c_parser_label,
21544 c_parser_for_statement, c_parser_objc_methodprotolist,
21545 c_parser_omp_for_loop): All callers of
21546 c_parser_declaration_or_fndef changed.
21547 (c_parser_struct_declaration): Handle static assertions.
21548 (c_parser_compound_statement_nostart): Use
21549 c_parser_next_token_starts_declaration and
21550 c_token_starts_declaration to detect start of declarations.
21551 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
21554 2010-05-16 Anatoly Sokolov <aesok@post.ru>
21556 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21557 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21558 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21559 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21560 (mmix_function_outgoing_value): Rename to...
21561 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
21562 (mmix_function_value_regno_p): Make static.
21563 (mmix_libcall_value): New function.
21564 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
21565 mmix_function_value_regno_p): Remove declaration.
21567 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
21569 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
21570 BUILT_IN_ALLOCA if stack checking is enabled.
21572 2010-05-16 Richard Guenther <rguenther@suse.de>
21574 * var-tracking.c (vars_copy_1): Inline ...
21575 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
21576 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
21577 (variable_merge_over_cur): Adjust. Merge asserts.
21578 (variable_merge_over_src): Likewise.
21579 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
21580 (variable_post_merge_new_vals): Merge asserts.
21581 (variable_post_merge_perm_vals): Likewise.
21582 (find_mem_expr_in_1pdv): Likewise.
21583 (dataflow_set_different_value): Remove.
21584 (onepart_variable_different_p): Merge asserts.
21585 (variable_different_p): Likewise.
21586 (dataflow_set_different_1): Inline ...
21587 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
21588 (emit_notes_for_differences_1): Merge asserts.
21590 2010-05-16 Richard Guenther <rguenther@suse.de>
21592 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
21593 * optabs.c (libfunc_decl_hash): Likewise.
21594 * varasm.c (emutls_decl): Likewise.
21596 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
21598 * c-decl.c: Don't include gimple.h.
21599 (merge_decls): Do not copy gimple_body.
21601 2010-05-15 Jason Merrill <jason@redhat.com>
21603 * c.opt: Add -fnothrow-opt.
21605 2010-05-15 Jan Hubicka <jh@suse.cz>
21607 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
21609 * passes.c (ipa_write_summaries): Write all analyzed nodes.
21611 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
21613 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
21614 * Makefile.in: Add it.
21615 Fix all other Makefile dependencies for changes below.
21616 * tree.h: Include it instead of defining VEC primitives here.
21617 * gimple.h: Likewise.
21619 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
21620 * except.h: Include vecir.h, break dependence on tree.h.
21622 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
21624 * tree-iterator.c: ...to here.
21625 * tree-iterator.h: Fix file introduction comment. Add extern markers.
21627 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
21629 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
21630 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
21631 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
21632 tree-mudflap.h, and target.h.
21633 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
21634 predict.h, tree-inline.h, gimple.h, and langhooks.h.
21635 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
21636 Add FIXME for why gimple.h is still included (should be unnecessary
21637 since GCC 4.5 gimplification unit-at-a-time).
21638 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
21639 * c-pragma.c: Add FIXME for why function.h needs to be included just
21640 for cfun, at front-end level.
21641 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
21642 Do not include ggc.h, but include vecprim.h for VEC(char).
21643 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
21644 Explain why target.h is included.
21645 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
21646 Explain why gimple.h is included.
21647 * c-ppoutput.c: Do not include tm.h.
21648 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
21649 * c-parses.c: Explain why rtl.h is included, and that this (and only
21650 this) is also why tm.h must be included.
21651 Do not include except.h.
21652 * c-lang.c: Do not include ggc.h.
21654 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
21656 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
21658 2010-05-15 Joseph Myers <joseph@codesourcery.com>
21660 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
21661 unions by default if those structs and unions have no tags. Do
21662 not condition anonymous struct and unions handling on flag_iso.
21663 Allow anonymous structs and unions for C1X.
21664 (finish_struct): Do not diagnose lack of named fields when
21665 anonymous structs and unions present for C1X. Accept flexible
21666 array members in structure with anonymous structs or unions but no
21667 directly named fields.
21668 * doc/extend.texi (Unnamed Fields): Update.
21670 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
21672 * gimple.h (compare_field_offset): Rename into...
21673 (gimple_compare_field_offset): ...this.
21674 * gimple.c (compare_field_offset): Rename into...
21675 (gimple_compare_field_offset): ...this. Compare the full access if
21676 the offset is self-referential.
21677 (gimple_types_compatible_p): Adjust for above renaming.
21678 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
21679 DECL_NONADDRESSABLE_P flag of fields before merging them.
21681 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
21683 * tree.h (ctor_to_list): Delete.
21684 * tree.c (ctor_to_list): Delete.
21686 2010-05-15 Jan Hubicka <jh@suse.cz>
21688 * ipa-reference.c: Include toplev.h
21689 (is_proper_for_analysis): Only add to all_module_statics
21690 if it is allocated.
21691 (write_node_summary_p, stream_out_bitmap,
21692 ipa_reference_write_optimization_summary,
21693 ipa_reference_read_optimization_summary): New.
21694 (struct ipa_opt_pass_d pass_ipa_reference): Add
21695 optimization summary streaming.
21696 * lto-cgraph.c (referenced_from_this_partition_p,
21697 reachable_from_this_partition_p): New functions.
21698 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
21699 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
21700 * opts.c (decode_options): Enable ipa_reference.
21701 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
21702 * lto-streamer.h (referenced_from_this_partition_p,
21703 reachable_from_this_partition_p): Declare.
21705 2010-05-15 Richard Guenther <rguenther@suse.de>
21707 PR tree-optimization/44038
21708 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
21709 taking the address of a V_C_E of a constant.
21711 2010-05-14 Jan Hubicka <jh@suse.cz>
21713 * tree.h (memory_identifier_string): Remove.
21714 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
21715 (ipa_reference_global_vars_info_d): Remove statics_not_read and
21716 statics_not_written.
21717 (ipa_reference_optimization_summary_d): New structure.
21718 (ipa_reference_optimization_summary_t): New type and vector.
21719 (ipa_reference_vars_info_d): Embedd structures instead of using
21721 (reference_vars_to_consider): Remove out of GGC space.
21722 (module_statics_escape): Remove.
21723 (global_info_obstack): Rename to ...
21724 (optimization_summary_obstack): ... this one.
21725 (initialization_status_t): Remove.
21726 (memory_identifier_string): Remove.
21727 (get_reference_vars_info): Fix indenting.
21728 (set_reference_vars_info): Likewise.
21729 (get_reference_optimization_summary): New.
21730 (set_reference_optimization_summary): New.
21731 (get_global_reference_vars_info): Remove.
21732 (ipa_reference_get_read_global): Remove.
21733 (ipa_reference_get_written_global): Remove.
21734 (ipa_reference_get_not_read_global): Update.
21735 (ipa_reference_get_not_written_global): Update.
21736 (is_proper_for_analysis): Outlaw addressable.
21737 (propagate_bits): Update for new datastructures.
21738 (analyze_variable): Remove.
21739 (init_function_info): Update for new datastructures.
21740 (clean_function_local_data): Remove.
21741 (clean_function): Remove.
21742 (copy_global_bitmap): Use optimizations_summary_obstack.
21743 (duplicate_node_data): Duplicate optimization summary only.
21744 (remove_node_data): Remove optimization summary only.
21745 (generate_summary): Do not analyze variables; do not compute
21746 module_statics_escape; do not prune solutions by it.
21747 (read_write_all_from_decl): Fix typos in comments.
21748 (propagate): Doscover readonly and nonaddressable first;
21749 update for new datastructures; share global bitmaps.
21750 * ipa-reference.h (ipa_reference_get_read_global,
21751 ipa_reference_get_written_global): Remove.
21752 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
21753 * Makefile.in: Remove ipa-refereference from GT files.
21755 2010-05-14 Jakub Jelinek <jakub@redhat.com>
21758 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
21759 for all SYMBOL_REF_DECLs.
21761 2010-05-14 Jan Hubicka <jh@suse.cz>
21763 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
21764 (varpool_all_refs_explicit_p): New inline function.
21765 * ipa-reference.c: Update comment.
21766 (module_statics_written): Remove.
21767 (get_static_decl): Remove.
21768 (ipa_init): Do not initialize module_statics_written.
21769 (analyze_function): Likewise.
21770 (generate_summary): Likewise; do not compute module_statics_readonly
21771 and do not update variable flags.
21772 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
21773 * ipa.c: Inlucde flags.h
21774 (cgraph_local_node_p): New.
21775 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
21776 promote functions to local.
21777 (ipa_discover_readonly_nonaddressable_vars): New function.
21778 (function_and_variable_visibility): Use cgraph_local_node_p.
21779 * varpool.c (varpool_finalize_decl): Set force_output for
21780 DECL_PRESERVE_P vars.
21782 2010-05-14 Jan Hubicka <jh@suse.cz>
21784 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
21786 2010-05-14 Richard Guenther <rguenther@suse.de>
21788 PR tree-optimization/44119
21789 * tree-ssa-pre.c (eliminate): Properly mark replacement of
21790 a PHI node necessary.
21792 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
21794 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
21796 2010-05-14 Jason Merrill <jason@redhat.com>
21799 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
21800 (gimple_call_set_nothrow): New.
21801 * gimple.c (gimple_build_call_from_tree): Call it.
21802 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
21805 * gimplify.c (gimplify_seq_add_stmt): No longer static.
21806 * gimple.h: Declare it.
21807 * gimple.c (gimple_build_eh_filter): No ops.
21809 2010-05-14 Jan Hubicka <jh@suse.cz>
21811 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
21812 nodes already in queue.
21813 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
21814 re-enqueueing node.
21816 2010-05-14 Jakub Jelinek <jakub@redhat.com>
21819 * cfgexpand.c (expand_debug_expr): If non-memory op0
21820 has BLKmode, return NULL.
21822 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
21824 * config.gcc: Add support for --with-cpu option for bdver1.
21825 * config/i386/i386.h (TARGET_BDVER1): New macro.
21826 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
21827 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
21828 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
21829 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
21830 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
21831 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
21832 (processor_type): Add PROCESSOR_BDVER1.
21833 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
21834 processor_type in config/i386/i386.h.
21835 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
21836 movaps <reg, reg> instead of movapd <reg, reg> when replacing
21837 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
21838 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
21839 to emit packed xor instead of packed double/packed integer
21840 xor for SSE and AVX when moving a zero value.
21841 * config/i386/sse.md: Add check for
21842 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
21843 movapd/movdqa for SSE and AVX.
21844 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
21845 single logical operations i.e and, or and xor instead of packed double
21846 logical operations for SSE and AVX.
21847 * config/i386/i386-c.c (ix86_target_macros_internal):
21848 Add PROCESSOR_BDVER1.
21849 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
21850 (has_fma4, has_xop): New.
21851 * config/i386/i386.c (bdver1_cost): New variable.
21852 (m_BDVER1): New macro.
21853 (m_AMD_MULTIPLE): Add m_BDVER1.
21854 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
21855 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
21856 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
21857 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
21858 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
21859 x86_tune_sse_partial_reg_dependency,
21860 x86_tune_sse_unaligned_load_optimal,
21861 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
21862 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
21863 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
21864 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
21865 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
21866 Enable/disable for bdver1.
21867 (processor_target_table): Add bdver1_cost.
21868 (cpu_names): Add bdver1.
21869 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
21870 processor_alias_table.
21871 (ix86_expand_vector_move_misalign): Change.
21872 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
21873 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
21874 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
21875 of movupd/movdqu for SSE and AVX.
21876 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
21877 (ix86_tune_adjust_cost): Add code for bdver1.
21878 (standard_sse_constant_opcode): Add check for
21879 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
21880 of packed double xor for SSE and AVX.
21882 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
21884 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
21885 result to unsigned.
21887 2010-05-14 Tristan Gingold <gingold@adacore.com>
21889 * toplev.c (default_debug_hooks): Remove this variable.
21890 (process_options): Remove assignments to default_debug_hooks.
21892 2010-05-14 Martin Jambor <mjambor@suse.cz>
21894 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
21895 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
21896 * langhooks.h (struct lang_hooks_for_decls): Removed field
21898 * tree.c (free_lang_data): Remove assignment to
21899 lang_hooks.fold_obj_type_ref.
21900 * tree.def (OBJ_TYPE_REF): Update comment.
21902 2010-05-14 Richard Guenther <rguenther@suse.de>
21904 PR tree-optimization/44124
21905 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
21907 2010-05-14 Alan Modra <amodra@gmail.com>
21910 * config/rs6000/rs6000.c (struct machine_function): Reorder
21911 fields for better packing. Add lr_save_state.
21912 (rs6000_ra_ever_killed): Return lr_save_state if set.
21913 (rs6000_emit_eh_reg_restore): Set lr_save_state.
21915 2010-05-13 Jan Hubicka <jh@suse.cz>
21917 * varpool.c (decide_is_variable_needed): Drop code checking
21918 TREE_SYMBOL_REFERENCED.
21920 2010-05-13 Jan Hubicka <jh@suse.cz>
21922 * final.c (output_addr_const): Do not call mark_decl_referenced.
21923 * cgraphunit.c (process_function_and_variable_attributes): Use
21924 mark_needed_node dirrectly.
21925 (assemble_thunk): Do not call mark_decl_referenced.
21927 2010-05-13 Anatoly Sokolov <aesok@post.ru>
21929 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
21931 2010-05-13 Jeff Law <law@redhat.com>
21933 * ira-conflicts.c (print_allocno_conflicts): New function broken out
21935 (print_conflicts): Call print_allocno_conflicts.
21937 2010-05-13 Jakub Jelinek <jakub@redhat.com>
21940 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
21943 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
21945 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
21946 t-mingw-w64 or t-mingw-w32 for multilib configuration.
21947 * config/i386/t-mingw-w32: New.
21948 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
21950 2010-05-13 Martin Jambor <mjambor@suse.cz>
21952 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
21954 * gimple-fold.c (get_base_binfo_for_type): New function.
21955 (gimple_get_relevant_ref_binfo): Likewise.
21956 (gimple_fold_obj_type_ref_known_binfo): Likewise.
21957 (gimple_fold_obj_type_ref): Likewise.
21958 (fold_gimple_call): Simplify condition for folding virtual calls
21959 and call gimple_fold_obj_type_ref.
21960 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
21961 (gimple_fold_obj_type_ref_known_binfo): Likewise.
21963 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
21965 * config/rs6000/rs6000-protos.h
21966 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
21967 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
21968 (rs6000_debug_mode_dependent_address)
21969 (rs6000_mode_dependent_address_ptr): Likewise.
21971 2010-05-13 Jakub Jelinek <jakub@redhat.com>
21974 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
21976 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
21977 * tree-sra.c (create_access_replacement): Call unshare_expr before
21978 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
21979 * dwarf2out.c: Include tree-flow.h.
21980 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
21981 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
21982 Handle DW_OP_bit_piece.
21983 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
21984 construct_piece_list, adjust_piece_list): New functions.
21985 (add_var_loc_to_decl): Handle SRA optimized variables.
21986 Adjust for var_loc_note to loc field renaming.
21987 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
21988 in VAR_LOCATION note.
21989 (new_loc_descr_op_bit_piece): New function.
21990 (dw_sra_loc_expr): New function.
21991 (dw_loc_list): Use it. Don't handle the last range after the
21992 loop, handle it inside of the loop. Adjust for var_loc_note
21993 to loc field renaming.
21994 (add_location_or_const_value_attribute): Only special case
21995 single entry loc lists if loc is NOTE_P. Adjust for
21996 var_loc_note to loc field renaming.
21997 (dwarf2out_var_location): Don't set newloc->var_loc_note
21998 and newloc->next here.
22000 2010-05-12 Jan Hubicka <jh@suse.cz>
22002 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
22004 * cgraph.h (cgraph_only_called_directly_p,
22005 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
22006 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
22007 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
22009 * ipa.c (cgraph_remove_unreachable_nodes): Use
22010 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
22012 * tree-inline.c (copy_bb): Check address_taken flag.
22013 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
22014 externally_visible flag.
22016 2010-05-12 Jason Merrill <jason@redhat.com>
22020 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
22021 * sdbout.c (plain_type_1): Likewise.
22022 * dwarf2out.c (is_base_type): Likewise.
22023 (gen_type_die_with_usage): Likewise. Generate
22024 DW_TAG_unspecified_type for any LANG_TYPE.
22026 2010-05-12 Jan Hubicka <jh@suse.cz>
22028 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
22030 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
22031 (cgraph_clone_edge): Update.
22032 (cgraph_node_remove_callees): Remove indirect calls too.
22033 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
22034 (cgraph_create_indirect_edge): Update prototype.
22035 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
22036 is_proper_for_analysis.
22037 (add_new_function, visited_nodes, function_insertion_hook_holder,
22038 get_local_reference_vars_info, mark_address_taken, mark_address,
22039 mark_load, mark_store, check_asm_memory_clobber, check_call,
22040 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
22041 (ipa_init): Do not initialize visited_nodes;
22042 function_insertion_hook_holder.
22043 (analyze_variable): Rewrite.
22044 (analyze_function): Rewrite.
22045 (copy_local_bitmap): Remove.
22046 (duplicate_node_dat): Do not duplicate local info.
22047 (generate_summary): Simplify to only walk cgraph.
22048 (write_node_summary_p, ipa_reference_write_summary,
22049 ipa_reference_read_summary): Remove.
22050 (propagate): Do not remove function insertion;
22052 (pass_ipa_reference): NULLify summary handling fields.
22053 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
22054 (input_edge): Input ecf_flags.
22055 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
22056 (update_indirect_edges_after_inlining): Ignore edges with unknown
22059 2010-05-12 Sriraman Tallam <tmsriram@google.com>
22061 * implicit-zee.c: New file.
22062 * tree-pass.h (pass_implicit_zee): Declare.
22063 * passes.c (init_optimization_passes): Add zee pass.
22064 * common.opt (fzee): New flag.
22065 * timevar.def (TV_ZEE): Define.
22066 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
22068 * Makefile.in (implicit-zee.o): Add new build file.
22070 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
22071 Nathan Froyd <froydnj@codesourcery.com>
22073 * c-common.c (sync_resolve_params): Remove write-only variable.
22075 2010-05-12 Anatoly Sokolov <aesok@post.ru>
22077 * target.h (struct gcc_target): Add mode_dependent_address_p field.
22078 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
22079 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
22080 * targhooks.c (default_mode_dependent_address_p): New function.
22081 * targhooks.h (default_mode_dependent_address_p): Declare function.
22082 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
22083 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
22084 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
22085 target hook. Change return type to bool.
22086 * recog.h (mode_dependent_address_p): Change return type to bool.
22088 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
22089 Nathan Froyd <froydnj@codesourcery.com>
22091 * tree-mudflap.c (build_function_type_0, build_function_type_1,
22092 build_function_type_2, build_function_type_3): Remove.
22093 (mudflap_init): Use build_function_type_list.
22095 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
22096 Nathan Froyd <froydnj@codesourcery.com>
22098 * coverage.c (build_fn_info_value): Call build_constructor instead of
22099 build_constructor_from_list.
22100 (build_ctr_info_value): Likewise.
22101 (build_gcov_info): Likewise.
22103 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
22105 * tree.c (build_constructor): Compute TREE_CONSTANT for the
22106 resultant constructor.
22107 (build_constructor_single): Don't set TREE_CONSTANT.
22108 (build_constructor_from_list): Don't compute TREE_CONSTANT.
22110 2010-05-12 Jan Hubicka <jh@suse.cz>
22112 * cgraph.h (struct varpool_node): Add aux.
22113 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
22114 * varpool.c (varpool_remove_node): Do not remove initializer.
22115 (varpool_reset_queue): Export.
22116 (varpool_finalize_decl): Volatile vars are forced to be output.
22117 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
22119 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
22120 process_references, varpool_can_remove_if_no_refs): New functions.
22121 (cgraph_remove_unreachable_nodes): Handle variables too.
22123 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
22126 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
22128 2010-05-12 Jakub Jelinek <jakub@redhat.com>
22130 PR middle-end/44085
22131 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
22132 change value of ORT_TASK.
22133 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
22134 (omp_notice_threadprivate_variable): New function.
22135 (omp_notice_variable): Call it for threadprivate variables.
22136 If enclosing ctx is a task, print enclosing task rather than
22137 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
22138 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
22139 if task has untied clause.
22142 * dwarf2out.c (base_type_die): Don't add name attribute here.
22143 (modified_type_die): Instead of sizetype use
22144 its underlying original type. If a DW_TAG_base_type doesn't
22145 have name added, add __unknown__.
22146 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
22147 always call force_type_die instead.
22149 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
22151 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
22152 for __stack_chk_guard.
22154 2010-05-11 Jakub Jelinek <jakub@redhat.com>
22156 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
22157 don't call start_source_file debug hook here...
22158 (finish_options): ... but here, after outputting predefined and
22159 command line defines and undefs.
22161 PR middle-end/44071
22162 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
22164 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
22165 optimizing away empty bb with no successors, move over its
22166 footer chain to fallthru predecessor.
22167 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
22168 (rtl_split_edge): For asm goto call patch_jump_insn even if
22169 splitting fallthru edge.
22172 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
22173 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
22174 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
22175 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
22179 * c-parser.c (c_parser_expression): Mark LHS of a comma
22180 expression as read if it is a decl, handled component or
22181 COMPOUND_EXPR with that on the RHS.
22182 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
22183 if it is a decl or handled component.
22185 2010-05-11 Jan Hubicka <jh@suse.cz>
22187 * lto-symtab.c (lto_symtab_free): New function.
22188 * lto-streamer.h (lto_symtab_free): Declare.
22190 2010-05-11 Jan Hubicka <jh@suse.cz>
22192 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
22193 that if function is needed it is reachable.
22194 (lto_output_node): See if it the function is reachable or referenced.
22195 (output_cgraph): Update call of lto_output_node.
22196 * lto-streamer.h (reachable_from_other_partition_p): Declare.
22198 2010-05-11 Jan Hubicka <jh@suse.cz>
22200 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
22203 2010-05-11 Jan Hubicka <jh@suse.cz>
22205 PR tree-optimize/44063
22206 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
22208 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
22210 (estimate_function_body_sizes): Compute sizes even when disregarding.
22212 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
22214 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
22216 2010-05-11 Jan Hubicka <jh@suse.cz>
22218 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
22219 into every boundary.
22221 2010-05-11 Jan Hubicka <jh@suse.cz>
22223 * matrix-reorg.c (matrix_reorg): Rebuild edges.
22225 2010-05-11 Jan Hubicka <jh@suse.cz>
22227 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
22228 lto_streamer_cache_delete): Put nodes into heap.
22229 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
22232 2010-05-11 Jan Hubicka <jh@suse.cz>
22234 * cgraphbuild.c (cgraph_rebuild_references): New.
22235 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
22236 out extern inlines.
22237 * cgraph.h (cgraph_rebuild_references): Declare.
22238 * tree-inline.c (tree_function_versioning): Use it.
22239 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
22241 2010-05-11 Jan Hubicka <jh@suse.cz>
22243 * cgraph.c: Include ipa-utils.h
22244 (cgraph_create_virtual_clone): Update references.
22245 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
22247 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
22249 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
22250 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
22253 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
22255 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
22257 2010-05-11 Jakub Jelinek <jakub@redhat.com>
22259 * gcc.c (execute): For -### don't quote arguments that
22260 contain just alphanumerics and _/-. characters.
22261 * doc/invoke.texi: Document that change for -###.
22264 * df-problems.c (struct dead_debug): Add to_rescan field.
22265 (dead_debug_init): Clear to_rescan field.
22266 (dead_debug_finish): Rescan all debug insns in to_rescan
22267 bitmap and free the bitmap.
22268 (dead_debug_insert_before): Instead of rescanning debug insns
22269 immediately queue their rescanning until dead_debug_finish.
22270 (df_note_bb_compute): After dead_debug_add do continue instead
22273 2010-05-10 Jakub Jelinek <jakub@redhat.com>
22276 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
22277 clear also INSN_REG_USE_LIST.
22279 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22281 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
22283 2010-05-10 Jan Hubicka <jh@suse.cz>
22285 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
22288 2010-05-10 Jan Hubicka <jh@suse.cz>
22290 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
22292 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
22293 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
22294 (lto_streamer_cache_create): Init alloc pool.
22295 (lto_streamer_cache_delete): Free alloc pool.
22296 * lto-streamer.h: Include alloc pool.
22297 (lto_streamer_cache_d): Use alloc pool.
22298 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
22300 2010-05-10 Jan Hubicka <jh@suse.cz>
22302 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
22303 * cgraphbuild.c: Include except.h
22304 (record_type_list, record_eh_tables): New function.
22305 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
22307 2010-05-10 Jan Hubicka <jh@suse.cz>
22309 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
22310 __frame_dummy_init_array_entry, force_to_data): Attribute as used
22311 rather than unused.
22313 2010-05-10 Michael Matz <matz@suse.de>
22315 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
22316 (can_reassociate_p): Use FLOAT_TYPE_P.
22317 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
22318 (vect_force_simple_reduction): ... this.
22319 * tree-parloops.c (gather_scalar_reductions): Use
22320 vect_force_simple_reduction.
22321 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
22322 vect_is_simple_reduction, add modify argument, if true rewrite
22323 "a-b" into "a+(-b)".
22324 (vect_is_simple_reduction, vect_force_simple_reduction): New
22326 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
22328 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
22329 Vladimir Makarov <vmakarov@redhat.com>
22331 PR rtl-optimization/44012
22332 * ira-build.c (remove_unnecessary_allocnos): Nullify
22333 regno_allocno_map of the removed allocno.
22335 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22337 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
22339 * configure: Regenerate.
22341 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22343 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
22345 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
22346 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
22348 * configure: Regenerate.
22350 2010-05-10 Richard Guenther <rguenther@suse.de>
22352 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
22353 marked if the entry identifier is marked.
22355 2010-05-10 Richard Guenther <rguenther@suse.de>
22357 * c-common.c (struct c_common_attributes): Add fnspec attribute.
22358 (handle_fnspec_attribute): New function.
22359 * gimple.h (gimple_call_return_flags): Declare.
22360 (gimple_call_arg_flags): Likewise.
22361 * gimple.c (gimple_call_arg_flags): New function.
22362 (gimple_call_return_flags): Likewise.
22363 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
22364 New argument flags.
22365 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
22366 return value flags.
22367 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
22368 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
22370 (make_heapvar_for): ... this new function.
22371 (handle_rhs_call): Handle fnspec attribute argument specifiers.
22372 (handle_lhs_call): Likewise.
22373 (find_func_aliases): Adjust.
22375 2010-05-10 Richard Guenther <rguenther@suse.de>
22377 PR tree-optimization/44050
22378 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
22380 2010-05-10 Wei Guozhi <carrot@google.com>
22383 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
22385 2010-05-09 Joseph Myers <joseph@codesourcery.com>
22388 * c-typeck.c (lookup_field): Take a type directly. Update
22390 (build_component_ref): Update call to lookup_field.
22391 (set_init_label): Use lookup_field to find initialized field.
22392 Handle returned list of fields like a sequence of designators.
22394 2010-05-09 Richard Guenther <rguenther@suse.de>
22396 PR middle-end/44024
22397 * fold-const.c (tree_single_nonzero_warnv_p): Properly
22398 handle &FUNCTION_DECL.
22400 2010-05-09 Joseph Myers <joseph@codesourcery.com>
22403 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
22404 structures and unions recursively.
22405 (detect_field_duplicates): Move duplicate detection with a hash to
22406 detect_field_duplicates_hash. Always use a hash if anonymous
22407 structures or unions are present.
22408 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
22411 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
22414 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
22415 detect Atom, Core 2 and Core i7.
22417 2010-05-09 Richard Guenther <rguenther@suse.de>
22419 * gcc.c (store_arg): Handle temporary file deletion for
22422 2010-05-09 Richard Guenther <rguenther@suse.de>
22424 PR middle-end/44043
22425 * ipa-inline.c (estimate_function_body_sizes): Return after
22426 disregarding inline limits.
22428 2010-05-09 Richard Guenther <rguenther@suse.de>
22430 * gcc.c (store_arg): Revert last change.
22432 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
22434 PR middle-end/28685
22435 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
22436 (optimize_ops_list): Call it.
22438 2010-05-08 Richard Guenther <rguenther@suse.de>
22440 PR tree-optimization/44030
22441 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
22442 NECESSARY flag if we propagate from a inserted expression.
22444 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
22446 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
22447 domain types as equal if they are both PLACEHOLDER_EXPRs.
22449 2010-05-08 Richard Guenther <rguenther@suse.de>
22451 * lto-wrapper.c (run_gcc): Remove linker output from
22452 command line for LTRANS invocation.
22454 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
22456 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
22457 lto-macho as lto_binary_reader.
22458 * target.h (struct gcc_target): New hooks lto_start and lto_end.
22459 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
22460 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
22461 in lto_start and lto_end calls.
22462 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
22464 (scan_prog_file): Update is_elf_or_coff call.
22465 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
22467 * collect2.c (main): Fix enum comparison.
22469 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
22471 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
22472 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
22473 and TARGET_ASM_LTO_END.
22474 * darwin.c: Include obstack.h and lto-streamer.h.
22475 (lto_section_names_offset, lto_section_names_obstack,
22476 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
22478 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
22479 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
22480 to a temporary file.
22481 (darwin_asm_lto_end): New function. Restore asm_out_file.
22482 (darwin_asm_named_section): For LTO sections, replace the name with
22483 the offset of the section name in a string table, and build this
22485 (darwin_file_start): Initialize global vars for LTO support.
22486 (darwin_file_end): If output to asm_out_file was redirected, append it
22487 to the proper asm_out_file here. Add the section names section.
22489 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
22491 * c-pragma.c (pending_weak_d, pending_weak): New.
22492 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
22493 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
22494 handle_pragma_weak): Update the uses of pending_weaks.
22496 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22498 PR documentation/44016
22499 * doc/standards.texi (Standards): Link to unversioned
22500 cxx0x_status.html page.
22502 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
22505 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
22506 in addition to TREE_USED, to avoid "set but unused" warnings.
22508 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
22510 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
22511 (is_loop_prefetching_profitable): Do not insert prefetches
22512 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
22513 times the prefetch ahead distance.
22515 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
22517 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
22518 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
22519 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
22522 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
22524 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
22525 a diagnostic info when the insn-to-mem ratio is too small.
22527 2010-05-07 Richard Guenther <rguenther@suse.de>
22529 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
22531 (store_arg): Queue temp_filename for deletion instead of
22532 the whole argument.
22534 2010-05-07 Richard Guenther <rguenther@suse.de>
22536 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
22537 (run_gcc): Handle LTRANS phase invocation.
22538 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
22540 2010-05-07 Jakub Jelinek <jakub@redhat.com>
22542 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
22543 this is also meaningful on PARM_DECLs and RESULT_DECLs.
22545 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22547 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
22549 2010-05-07 Richard Guenther <rguenther@suse.de>
22551 PR tree-optimization/44020
22552 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
22553 code when PRE is not yet initialized.
22555 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22557 * config/mips/dbxmdebug.h: Remove.
22558 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
22560 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
22562 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
22563 with null pointer and also warn about ordered comparison of zero with
22564 pointer if -Wextra.
22566 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
22568 * graphite-blocking.c
22569 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
22570 * graphite-clast-to-gimple.c
22571 (clast_to_gcc_expression): Same.
22572 (precision_for_value): Same.
22573 (precision_for_interval): Same.
22574 (gcc_type_for_interval): Same.
22575 (graphite_create_new_guard): Same.
22576 (compute_bounds_for_level): Same.
22577 (graphite_create_new_loop_guard): Same.
22578 * graphite-interchange.c
22579 (build_linearized_memory_access): Same.
22580 (pdr_stride_in_loop): Same.
22581 (memory_strides_in_loop_1): Same.
22582 (memory_strides_in_loop): Same.
22583 (extend_scattering): Same.
22584 (psct_scattering_dim_for_loop_depth): Same.
22585 (pbb_number_of_iterations): Same.
22587 (debug_iteration_domains): Same.
22589 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
22590 (ppl_set_inhomogeneous_gmp): Same.
22591 (ppl_strip_loop): Same.
22592 (ppl_lexico_compare_linear_expressions): Same.
22593 (ppl_read_polyhedron_matrix): Same.
22594 (ppl_max_for_le_pointset): Same.
22596 (ppl_read_polyhedron_matrix): Same.
22597 (tree_int_to_gmp): Same.
22598 (gmp_cst_to_tree): Same.
22599 (ppl_set_inhomogeneous): Same.
22600 (ppl_set_inhomogeneous_tree): Same.
22601 (ppl_set_coef): Same.
22602 (ppl_set_coef_tree): Same.
22603 * graphite-sese-to-poly.c
22604 (build_pbb_scattering_polyhedrons): Same.
22605 (build_scop_scattering): Same.
22606 (scan_tree_for_params_right_scev): Same.
22607 (scan_tree_for_params): Same.
22608 (find_params_in_bb): Same.
22609 (find_scop_parameters): Same.
22610 (add_upper_bounds_from_estimated_nit): Same.
22611 (build_loop_iteration_domains): Same.
22612 (add_condition_to_domain): Same.
22613 (pdr_add_memory_accesses): Same.
22615 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
22617 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
22618 CLooG's value_* macros to their respective mpz_* counterparts.
22619 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
22620 (graphite_create_new_loop_guard): Same.
22621 * graphite-interchange.c (build_linearized_memory_access): Same.
22622 (pdr_stride_in_loop): Same.
22623 (memory_strides_in_loop_1): Same.
22624 (1st_interchange_profitable_p): Same.
22625 * graphite-poly.c (extend_scattering): Same.
22626 (psct_scattering_dim_for_loop_depth): Same.
22627 (pbb_number_of_iterations): Same.
22628 (pbb_number_of_iterations_at_time): Same.
22629 * graphite-poly.h (new_1st_loop): Same.
22630 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
22631 (oppose_constraint): Same.
22632 (insert_constraint_into_matrix): Same.
22633 (ppl_set_inhomogeneous_gmp): Same.
22634 (ppl_set_coef_gmp): Same.
22635 (ppl_strip_loop): Same.
22636 (ppl_lexico_compare_linear_expressions): Same.
22637 (ppl_max_for_le_pointset): Same.
22638 (ppl_min_for_le_pointset): Same.
22639 (ppl_build_realtion): Same.
22640 * graphite-ppl.h (gmp_cst_to_tree): Same.
22641 (ppl_set_inhomogeneous): Same.
22642 (ppl_set_inhomogeneous_tree): Same.
22643 (ppl_set_coef): Same.
22644 (ppl_set_coef_tree): Same.
22645 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
22646 (build_scop_scattering): Same.
22647 (add_value_to_dim): Same.
22648 (scan_tree_for_params_right_scev): Same.
22649 (scan_tree_for_params_int): Same.
22650 (scan_tree_for_params): Same.
22651 (find_params_in_bb): Same.
22652 (find_scop_parameters): Same.
22653 (add_upper_bounds_from_estimated_nit): Same.
22654 (build_loop_iteration_domains): Same.
22655 (create_linear_expr_from_tree): Same.
22656 (add_condition_to_domain): Same.
22657 (pdr_add_memory_accesses): Same.
22659 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
22660 Jason Merrill <jason@redhat.com>
22662 * c-common.c (c_common_reswords): Add nullptr.
22663 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
22664 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
22665 (gen_type_die_with_usage): Likewise.
22666 * dbxout.c (dbxout_type): Likewise.
22667 * sdbout.c (plain_type_1): Likewise.
22669 2010-05-06 Jason Merrill <jason@redhat.com>
22671 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
22672 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
22674 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
22676 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
22677 stripping WITH_SIZE_EXPR.
22678 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
22681 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22683 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
22684 list of obsolete configurations.
22685 Disabled check for obsolete configurations.
22686 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
22687 Removed support for previous versions.
22688 * config/mips/iris.h: Removed.
22689 * config/mips/iris5.h: Removed.
22690 * config/mips/iris6.h: Merged old iris.h contents.
22691 (TARGET_IRIX): Removed.
22692 (DRIVER_SELF_SPECS): Removed mabi=32.
22693 (IDENT_ASM_OP): Removed undef.
22694 (STARTFILE_SPEC): Removed mabi=32.
22695 (ENDFILE_SPEC): Likewise.
22696 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
22697 (MACHINE_TYPE): Update for IRIX 6.5.
22698 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
22699 TARGET_IRIX by TARGET_IRIX6.
22700 (mips_file_start): Likewise.
22701 (mips_output_external): Remove IRIX 5/6 O32 support.
22702 (mips_output_function_prologue): Likewise.
22703 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
22705 (TARGET_CPU_CPP_BUILTINS): Likewise.
22706 (TARGET_IRIX): Removed.
22707 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
22708 (MULTILIB_DIRNAMES): Removed 32.
22709 (MULTILIB_OSDIRNAMES): Removed ../lib.
22710 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
22711 (Specific, mips-sgi-irix5): Document removal.
22712 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
22713 Remove references to older IRIX 6 releases and the O32 ABI.
22715 2010-05-06 Jakub Jelinek <jakub@redhat.com>
22718 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
22719 instead of DF_REF_REAL_REG.
22721 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
22724 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
22725 handling to still return true for x64 targets.
22727 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
22729 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
22731 2010-05-06 Jan Hubicka <jh@suse.cz>
22733 PR tree-optimization/43791
22734 * ipa-inline.c (update_caller_keys): Remove bogus
22735 disregard_inline_limits check.
22737 2010-05-06 Michael Matz <matz@suse.de>
22739 PR tree-optimization/43984
22740 * tree-ssa-pre.c (inserted_phi_names): Remove.
22741 (inserted_exprs): Change to bitmap.
22742 (create_expression_by_pieces): Set bits, don't append to vector.
22743 (insert_into_preds_of_block): Don't handle inserted_phi_names.
22744 (eliminate): Don't look at inserted_phi_names, remove deleted
22745 insns from inserted_exprs.
22746 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
22747 (init_pre, fini_pre): Allocate and free bitmaps.
22748 (execute_pre): Insert insns on edges before elimination.
22750 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
22752 * tree.c (initializer_zerop): Handle STRING_CST.
22754 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
22757 * doc/invoke.texi (Wimplicit): Document as C only.
22758 * opts.c (common_handle_option): Add argument kind.
22759 (handle_option): Rename as read_cmdline_option. Factor out code to...
22760 (handle_option): ... here. New.
22761 (handle_options): Rename as read_cmdline_options.
22762 (decode_options): Update call.
22763 (set_option): Use option index instead of option pointer. Classify
22764 diagnostics correctly.
22765 (enable_warning_as_error): Call handle_option.
22766 * opts.h (set_option): Update declaration.
22767 (handle_option): Declare.
22768 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
22769 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
22770 * c-opts.c (set_Wimplicit): Delete.
22771 (c_family_lang_mask): New static constant.
22772 (c_common_handle_option): Add argument kind. Use handle_option
22773 instead of set_Wimplicit.
22774 (c_common_post_options): warn_implicit and warn_implicit_int
22775 are disabled by default.
22776 * c-common.c (warn_implicit): Do not define here.
22777 * c-common.h (warn_implicit): Do not declare here.
22778 (c_common_handle_option): Update declaration.
22779 * lto-opts.c (lto_reissue_options): Update call to set_option.
22781 2010-05-06 Richard Guenther <rguenther@suse.de>
22783 PR tree-optimization/43571
22784 * domwalk.c (walk_dominator_tree): Walk the dominator
22785 sons in more optimal order.
22787 2010-05-06 Richard Guenther <rguenther@suse.de>
22789 PR tree-optimization/43934
22790 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
22791 (stmt_cost): Likewise.
22792 (extract_true_false_args_from_phi): New helper.
22793 (determine_max_movement): For PHI nodes verify we can hoist them
22794 and compute their cost.
22795 (determine_invariantness_stmt): Handle PHI nodes.
22796 (move_computations_stmt): Likewise. Hoist PHI nodes in
22797 if-converted form using COND_EXPRs.
22798 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
22799 (tree_ssa_lim): Likewise.
22800 * tree-flow.h (tree_ssa_lim): Adjust prototype.
22801 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
22803 2010-05-06 Richard Guenther <rguenther@suse.de>
22805 PR tree-optimization/43987
22806 * tree-ssa-structalias.c (could_have_pointers): For possibly
22807 address-taken variables force pointers to be recorded.
22808 (create_variable_info_for_1): Likewise.
22809 (push_fields_onto_fieldstack): Pass in wheter all fields
22810 must have pointers.
22811 (find_func_aliases): Query types instead of vars whether
22812 they contain pointers where appropriate.
22814 2010-05-06 Jan Hubicka <jh@suse.cz>
22816 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
22817 (record_reference, mark_address, mark_load, mark_store): Record
22819 (record_references_in_initializer): Update call of record_references.
22820 (rebuild_cgraph_edges): Remove all references before rebuiding.
22821 * cgraph.c (cgraph_create_node): Clear ref list.
22822 (cgraph_remove_node): Remove references.
22823 (dump_cgraph_node): Dump references.
22824 (cgraph_clone_node): Clone references.
22825 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
22826 (struct cgraph_node, varpool_node): Add ref_lst.
22827 * ipa-ref.c: New file.
22828 * ipa-ref.h: New file.
22829 * ipa-ref-inline.h: New file.
22830 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
22831 (referenced_from_other_partition_p): New function.
22832 (lto_output_varpool_node): Take set arugment; call
22833 referenced_from_other_partition.
22834 (lto_output_ref): New.
22835 (add_references): New.
22836 (output_refs): New.
22837 (output_cgraph): Compute boundary based on references; output refs.
22838 (output_varpool): Accept cgraph_node_set argument.
22841 (input_cgraph): Call input_refs.
22842 * lto-section-in.c (lto_section_name): Add refs.
22843 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
22844 (ipa-ref.o): New file.
22845 * varpool.c (varpool_node): Clear ipa ref list.
22846 (varpool_remove_node): Remove references.
22847 (dump_varpool_node): Dump references.
22848 (varpool_assemble_decl): Only compile finalized ones.
22849 (varpool_extra_name_alias): Initialize ref list.
22850 * lto-streamer.c (lto-get_section_name): Add .refs section.
22851 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
22852 (referenced_from_other_partition_p): Declared.
22854 2010-05-06 Ira Rosen <irar@il.ibm.com>
22856 PR tree-optimization/43901
22857 * tree-vect-stmts.c (vectorizable_call): Assert that vector
22858 type is not NULL if it's transformation phase, and return
22859 FALSE if it's analysis.
22860 (vectorizable_conversion, vectorizable_operation,
22861 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
22863 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
22865 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
22867 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
22869 * config/mips/mips-protos.h
22870 (mips_small_register_classes_for_mode_p): Delete prototype.
22872 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
22874 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
22875 * config/arm/arm.c (multiple_operation_profitable_p,
22876 compute_offset_order): New static functions.
22877 (load_multiple_sequence, store_multiple_sequence): Use them.
22878 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
22879 memory offsets, not register numbers.
22880 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
22882 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
22884 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
22885 (get_pending_sizes, put_pending_size, put_pending_sizes):
22886 Update the uses of pending_sizes.
22887 * c-decl.c (store_parm_decls): Likewise.
22888 * c-tree.h (struct c_arg_info): Likewise.
22889 * tree.h: Update the prototype for get_pending_sizes and
22892 2010-05-05 Jason Merrill <jason@redhat.com>
22895 * c-common.c (handle_aligned_attribute): Respect
22896 ATTR_FLAG_TYPE_IN_PLACE.
22899 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
22900 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
22901 (TARGET_INITIALIZER): Use it.
22902 * c-common.c (attribute_takes_identifier_p): Call it.
22903 * c-common.h: Update prototype.
22904 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
22905 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
22907 2010-05-05 Jakub Jelinek <jakub@redhat.com>
22910 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
22911 DW_ID_down_case for Fortran compilation units.
22913 2010-05-05 Jan Hubicka <jh@suse.cz>
22915 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
22918 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
22920 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
22921 a variable-sized RESULT_DECL.
22923 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
22925 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
22927 2010-05-05 Jason Merrill <jason@redhat.com>
22930 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
22932 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
22934 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
22935 Jakub Jelinek <jakub@redhat.com>
22938 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
22939 (dead_debug_init, dead_debug_finish): New functions.
22940 (dead_debug_add, dead_debug_insert_before): Likewise.
22941 (df_note_bb_compute): Initialize a dead_debug object, add dead
22942 debug uses to it, insert debug bind insns before death insns,
22943 reset debug insns that refer to pending uses at the end.
22944 * rtl.h (make_debug_expr_from_rtl): New prototype.
22945 * varasm.c (make_debug_expr_from_rtl): New function.
22947 2010-05-05 Jan Hubicka <jh@suse.cz>
22949 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
22950 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
22951 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
22952 lto_varpool_encoder_deref, lto_varpool_encoder_size,
22953 lto_varpool_encoder_encode_initializer_p,
22954 lto_set_varpool_encoder_encode_initializer): New functions.
22955 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
22956 call output_varpool.
22957 (input_varpool_node): Do not always set analyzed.
22958 (input_cgraph_1): Return vector of cgraph nodes.
22959 (input_varpool_1): Return vector of varpools.
22960 (input_cgraph): Free the vectors.
22961 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
22962 output only initializers needed.
22963 (lto_output): Only call output_cgraph.
22964 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
22965 * lto-section-out.c (lto_new_out_decl_state): Initialize
22966 state->varpool_node_encoder.
22967 * lto-streamer.h (lto_varpool_encoder_d): New.
22968 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
22969 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
22970 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
22971 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
22972 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
22974 (output_varpool, input_varpool): Remove declarations.
22976 2010-05-05 Jan Hubicka <jh@suse.cz>
22978 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
22979 with body can prevail.
22981 2010-05-05 Jan Hubicka <jh@suse.cz>
22983 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
22986 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22988 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
22990 * gengtype.h (erro_at_line): Constify pos argument.
22992 * gengtype.c: Include hashtab.h.
22993 (enum gc_used): Document GC_MAYBE_POINTED_TO.
22994 (error_at_line): Constify pos argument.
22995 (do_typedef): Initialize p->opt field.
22996 (get_file_gtfilename): Fix comment typo.
22997 (struct walk_type_data): Constify line field.
22998 (get_output_file_for_structure): New function.
22999 (write_local_func_for_structure): Constify orig_s argument.
23000 Use get_output_file_for_structure.
23001 (write_func_for_structure): Use get_output_file_for_structure.
23002 (INDENT): New define.
23003 (dump_pair, dump_type, dump_type_list, dump_typekind)
23004 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
23005 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
23007 (seen_types): New variable.
23008 (main): New variable do_dump. Process "-d" command line option.
23009 Call dump_everything if dump requested.
23011 2010-05-05 Jakub Jelinek <jakub@redhat.com>
23013 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
23014 in a temporary instead of invoking the macro multiple times.
23015 (track_expr_p): Likewise.
23017 2010-05-04 Neil Vachharajani <nvachhar@google.com>
23019 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
23021 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
23022 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
23023 conditions for printing notes.
23024 * common.opt (-Wcoverage-mismatch): Allow negative, default to
23025 true, update documentation.
23026 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
23028 2010-05-04 Jakub Jelinek <jakub@redhat.com>
23031 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
23034 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
23037 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
23038 (*sse_prologue_save_insn1): Likewise.
23039 (SSE prologue save splitter): Likewise.
23041 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
23043 * tree.c (free_lang_data_in_one_sizepos): New inline function.
23044 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
23045 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
23046 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
23047 all decls. Call it on DECL_FIELD_OFFSET of fields.
23048 (find_decls_types_r): Follow DECL_VALUE_EXPR.
23049 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
23051 2010-05-04 Martin Jambor <mjambor@suse.cz>
23053 * tree-sra.c (build_access_from_expr_1): The first parameter type
23054 changed to simple tree.
23055 (build_access_from_expr): Likewise, gsi parameter was eliminated.
23056 (scan_assign_result): Renamed to assignment_mod_result, enum elements
23058 (build_accesses_from_assign): Removed all parameters except for a
23059 simple gimple statement. Now returns a simple bool.
23060 (scan_function): All non-analysis parts moved to separate functions
23061 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
23062 parameters and updated both callers.
23063 (sra_modify_expr): Removed parameter data.
23064 (sra_modify_function_body): New function.
23065 (perform_intra_sra): Call sra_modify_function_body to modify the
23067 (replace_removed_params_ssa_names): Parameter data changed into
23068 adjustments vector.
23069 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
23070 changed the parameter dont_convert to convert with the opposite
23072 (sra_ipa_modify_assign): Parameter data changed into adjustments
23073 vector, return value changed to bool.
23074 (ipa_sra_modify_function_body): New function.
23075 (sra_ipa_reset_debug_stmts): Updated a comment.
23076 (modify_function): Use ipa_sra_modify_function_body to modify function
23079 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
23081 PR middle-end/43671
23082 * alias.c (true_dependence): Handle the same VALUE in x and mem.
23083 (canon_true_dependence): Likewise.
23084 (write_dependence_p): Likewise.
23086 2010-05-04 Jan Hubicka <jh@suse.cz>
23088 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
23089 * cgraphbuild.c: Include ipa-utils.h
23090 (record_reference_ctx): New struct.
23091 (record_reference): Simplify to work on initializers; not statements.
23092 (mark_address, mark_load, mark_store): New.
23093 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
23094 walk PHI nodes too.
23095 (record_references_in_initializer): Update use of record_reference.
23096 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
23097 walk PHI nodes too.
23099 2010-05-04 Jan Hubicka <jh@suse.cz>
23101 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
23102 node will be removed anyway.
23103 (lto_varpool_replace_node): Allow also unanalyzed nodes;
23104 relink aliases of node into prevailing node.
23105 * varpool.c (varpool_remove_node): Remove aliases properly;
23106 when removing node, remove all its aliases too; remove DECL_INITIAL
23107 of removed node; ggc_free the varpool node.
23109 2010-05-04 Richard Guenther <rguenther@suse.de>
23111 PR tree-optimization/43879
23112 * tree-ssa-structalias.c (alias_get_name): Use
23113 DECL_ASSEMBLER_NAME if available.
23114 (create_function_info_for): Return the varinfo node.
23115 (ipa_pta_execute): Associate same-body aliases and extra names
23116 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
23118 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
23120 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
23122 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
23125 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
23126 only if HONOR_REG_ALLOC_ORDER is not defined.
23128 2010-05-04 Richard Guenther <rguenther@suse.de>
23130 PR tree-optimization/43949
23131 * tree-vrp.c (extract_range_from_binary_expr): Only handle
23134 2010-04-26 Jason Merrill <jason@redhat.com>
23136 * c.opt (-fstrict-enums): New.
23137 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
23139 2010-05-03 David Ung <davidu@mips.com>
23140 James E. Wilson <wilson@codesourcery.com>
23142 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
23143 emit the trap instruction before the divide for TUNE_74K.
23145 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
23147 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
23148 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
23149 based on the above, for new target hook.
23151 * hooks.c (hook_bool_mode_true): New generic hook.
23152 * hooks.h (hook_bool_mode_true): Add prototype.
23154 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
23156 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
23157 target hook, set to hook_bool_mode_false.
23158 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
23159 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
23160 with targetm.small_register_classes_for_mode_p.
23161 (find_reusable_reload): Likewise.
23162 (combine_reloads): Likewise.
23163 * reload1.c (reload_as_needed): Likewise.
23164 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
23165 * ifcvt.c (noce_process_if_block, check_cond_move_block,
23166 dead_or_predicable): Likewise.
23167 * regmove.c (optimize_reg_copy_1): Likewise.
23168 * calls.c (prepare_call_address): Likewise.
23169 (precompute_register_parameters): Likewise.
23171 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
23173 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
23174 implementation of the hook that considers all register classes
23175 small except for SH64.
23176 (sh_override_options): Use the new hook.
23177 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
23180 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
23182 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
23183 implementation of the hook that considers all register classes
23185 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
23188 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
23190 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
23191 implementation of the hook that considers all register classes
23193 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
23196 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
23198 * config/m32c/m32c.h: Likewise.
23199 * config/pdp11/pdp11.h: Likewise.
23200 * config/avr/avr.h: Likewise.
23201 * config/xtensa/xtensa.h: Likewise.
23202 * config/m68hc11/m68hc11.h: Likewise.
23203 * config/mn10300/mn10300.h: Likewise.
23204 * config/mcore/mcore.h: Likewise.
23205 * config/h8300/h8300.h: Likewise.
23206 * config/bfin/bfin.h: Likewise.
23208 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
23209 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
23211 2010-05-03 Anatoly Sokolov <aesok@post.ru>
23213 * double-int.h (tree_to_double_int): Remove macro.
23214 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
23215 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
23216 (tree_to_double_int): New function.
23217 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
23219 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
23221 2010-05-03 Richard Guenther <rguenther@suse.de>
23223 PR tree-optimization/43971
23224 * tree-ssa-structalias.c (get_constraint_for_1): Fix
23225 constraints in the !flag_delete_null_pointer_checks case.
23227 2010-05-03 Jakub Jelinek <jakub@redhat.com>
23230 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
23231 result mode matches original rtl mode.
23233 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
23236 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
23238 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23240 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
23241 when processing flag options.
23243 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23245 * gcov-iov.c (main): Change format string placeholder
23246 from %#08x to 0x%08x.
23247 * genchecksum.c (dosum): Change format string placeholder
23248 from %#02x to 0x%02x.
23250 2010-05-02 Richard Guenther <rguenther@suse.de>
23252 PR tree-optimization/43879
23253 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
23255 2010-05-02 Bruno Haible <bruno@clisp.org>
23257 * doc/extend.texi (Function Attributes): Fix a typo.
23259 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23262 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
23263 placeholder from 0x%x to %#x.
23264 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
23265 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
23266 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
23267 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
23268 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
23269 * config/i386/i386.c (ix86_target_string): Ditto.
23270 * config/i386/i386.c (output_pic_addr_const): Ditto.
23271 (print_operand): Ditto.
23273 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23275 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
23276 placeholder from 0x%x to %#x.
23277 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
23278 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
23279 (ASM_OUTPUT_DEBUG_DATA): Ditto.
23280 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
23281 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
23282 * optc-gen.awk: Ditto.
23283 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
23284 (HOST_WIDE_INT_PRINT_HEX): Ditto.
23285 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
23286 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
23288 2010-05-01 Anatoly Sokolov <aesok@post.ru>
23290 * target.h (struct calls): Add function_value_regno_p field.
23291 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
23292 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
23293 * targhooks.c (default_function_value_regno_p): New function.
23294 * targhooks.h (default_function_value_regno_p): Declare function.
23295 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
23296 * builtins.c. (apply_result_size): (Ditto.).
23297 * combine.c. (likely_spilled_retval_p): (Ditto.).
23298 * mode-switching.c. Include 'target.h'.
23299 (create_pre_exit): Use function_value_regno_p hook.
23300 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
23301 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
23302 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
23304 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
23305 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
23306 (ix86_function_value_regno_p): Declare as static, change argument
23307 type to const unsigned int.
23308 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
23310 2010-05-01 Richard Guenther <rguenther@suse.de>
23312 PR tree-optimization/43949
23313 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
23315 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
23317 2010-05-01 Anatoly Sokolov <aesok@post.ru>
23319 * rtl.h (CONST_DOUBLE_P): Define.
23320 (rtx_to_double_int): Declare.
23321 * emit-rtl.c (rtx_to_double_int): New function.
23322 * dwarf2out.c (insert_double): New function.
23323 (loc_descriptor, add_const_value_attribute): Clean up, use
23324 rtx_to_double_int and insert_double functions.
23326 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
23328 * doc/extend.texi (Inline): Add missing return keyword to examples.
23329 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
23332 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
23334 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
23335 the variable part of the offset as well. Use highest_pow2_factor for
23336 all alignment checks.
23338 2010-04-30 Richard Guenther <rguenther@suse.de>
23340 PR tree-optimization/43879
23341 * tree-ssa-structalias.c (type_could_have_pointers): Functions
23344 2010-04-30 Jan Hubicka <jh@suse.cz>
23346 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
23348 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
23350 2010-04-30 Jan Hubicka <jh@suse.cz>
23352 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
23354 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
23355 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
23356 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
23357 cgraph_node_set_needs_ltrans_p): Remove.
23359 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
23361 * sdbout.c: Include vec.h, do not include varray.h.
23362 (deferred_global_decls, sdbout_global_decl,
23363 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
23364 * toplev.c: Do not include varray.h.
23365 (dump_memory_report): Do not dump VARRAY statistics.
23366 * gengtype.c (open_base_file): Ignore varray.h.
23367 * Makefile.in: Update for abovementioned changes.
23368 Remove all traces of varray.c and varray.h.
23369 * varray.c: Remove file.
23370 * varray.h: Remove file.
23372 2010-04-30 Jan Hubicka <jh@suse.cz>
23374 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
23377 2010-04-30 Jan Hubicka <jh@suse.cz>
23379 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
23382 2010-04-30 Richard Guenther <rguenther@suse.de>
23384 * tree-ssa-structalias.c (get_constraint_for_1): Generate
23385 constraints for CONSTRUCTOR.
23387 2010-04-30 Richard Guenther <rguenther@suse.de>
23390 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
23391 first after all lowering passes.
23393 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
23395 * toplev.c: Include varray.h for statistics dumping.
23396 * tree.h: Do not declare varray_head_tag.
23397 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
23398 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
23399 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
23400 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
23401 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
23402 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
23403 c-common.c, c-common.h, reg-stack.c, basic-block.h,
23404 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
23406 * Makefile.in: Update for abovementioned changes.
23408 2010-04-30 Jakub Jelinek <jakub@redhat.com>
23411 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
23413 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
23415 * config/picochip/picochip.c (picochip_legitimize_address): Define.
23416 Use this function to do machine-specific conversion.
23417 (picochip_legitimize_reload_address): Likewise.
23418 (picochip_legitimate_address_p): Check valid base register only if
23420 (picochip_check_conditional_copy): Check for modw only if opnd is
23422 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
23423 to call the function in c.
23424 * config/picochip/picochip-protos.h
23425 (picochip_legitimize_reload_address): Define.
23426 * config/picochip/picochip.md (supported_compare1): Define.
23428 2010-04-30 Jan Hubicka <jh@suse.cz>
23430 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
23431 (cgraph_global_info): Remove inlined.
23432 (LTO_cgraph_tag_names): Remove.
23433 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
23434 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
23435 simplify cgraph tags and document.
23436 (lto_output_node): Use only LTO_cgraph_unavail_node and
23437 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
23438 for_functions_valid, global info, process and output flags.
23439 (input_overwrite_node): Initialize estimated stack size and
23440 estimated growth. Do not read flags we no longer store.
23441 (input_node): Likewise do not read info no longer stored.
23442 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
23445 2010-04-30 Richard Guenther <rguenther@suse.de>
23447 PR tree-optimization/43879
23448 * tree-ssa-structalias.c (get_constraint_for_1): Properly
23449 handle non-zero initializers.
23451 2010-04-30 Richard Guenther <rguenther@suse.de>
23453 * builtins.c (fold_builtin_1): Delete free (0).
23455 2010-04-29 Jan Hubicka <jh@suse.cz>
23457 * gengtype.c (open_base_files): Add lto-streamer.h
23458 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
23459 (pass_ipa_cp): GGC collect.
23460 * toplev. (compile_file): Do not output symbols.
23461 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
23462 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
23463 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
23464 * lto-section-in.c: Include ggc.h
23465 (lto_new_in_decl_state): Alloc in GGC.
23466 (lto_delete_in_decl_state): Likewise.
23467 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
23470 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
23473 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
23474 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
23475 (HONOR_REG_ALLOC_ORDER): Describe new macro.
23476 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
23477 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
23478 account only if HONOR_REG_ALLOC_ORDER is not defined.
23479 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
23480 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
23482 2010-04-29 Jon Grant <04@jguk.org>
23484 * collect2.c (vflag): Change type from int to bool.
23486 (helpflag): New global bool.
23487 (main): Set vflag and debug with boolean, not integer truth values.
23488 Accept new "--help" option and output usage text if found.
23489 * collect2.h (vflag): Update prototype.
23492 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
23495 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
23497 2010-04-29 Richard Guenther <rguenther@suse.de>
23500 * plugin.h (invoke_plugin_callbacks): Annotate arguments
23501 with ATTRIBUTE_UNUSED.
23503 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
23506 * config/i386/i386.c (get_some_local_dynamic_name): Replace
23507 INSN_P with NONDEBUG_INSN_P.
23508 (distance_non_agu_define): Likewise.
23509 (distance_agu_use): Likewise.
23511 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
23513 From Dominique d'Humieres <dominiq@lps.ens.fr>
23515 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
23518 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
23520 * plugin.h (invoke_plugin_callbacks): New inline function.
23521 * plugin.c (flag_plugin_added): New global flag.
23522 (add_new_plugin): Initialize above flag.
23523 (invoke_plugin_callbacks): Rename to ...
23524 (invoke_plugin_callbacks_full): ... this.
23526 2010-04-28 Jan Hubicka <jh@suse.cz>
23528 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
23529 (lto_varpool_replace_node): New.
23530 (lto_symtab_resolve_symbols): Resolve varpool nodes.
23531 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
23532 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
23533 * cgraph.h (varpool_node_ptr): New type.
23534 (varpool_node_ptr): New vector.
23535 (varpool_node_set_def): New structure.
23536 (varpool_node_set): New type.
23537 (varpool_node_set): New vector.
23538 (varpool_node_set_element_def): New structure.
23539 (varpool_node_set_element, const_varpool_node_set_element): New types.
23540 (varpool_node_set_iterator): New type.
23541 (varpool_node): Add prev pointers, add used_from_other_partition,
23542 in_other_partition.
23543 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
23544 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
23545 varpool_get_node, varpool_remove_node): Declare.
23546 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
23547 varpool_node_set_size): New inlines.
23548 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
23549 * tree-pass.h (varpool_node_set_def): Forward declare.
23550 (ipa_opt_pass_d): Summary writting takes vnode sets too.
23551 (ipa_write_optimization_summaries): Update prototype.
23552 * ipa-cp.c (ipcp_write_summary): Update.
23553 * ipa-reference.c (ipa_reference_write_summary): Update.
23554 * lto-cgraph.c (lto_output_varpool_node): New static function.
23555 (output_varpool): New function.
23556 (input_varpool_node): New static function.
23557 (input_varpool_1): New function.
23558 (input_cgraph): Input varpool.
23559 * ipa-pure-const.c (pure_const_write_summary): Update.
23560 * lto-streamer-out.c (lto_output): Update, output varpool too.
23561 (write_global_stream): Kill WPA hack.
23562 (produce_asm_for_decls): Update.
23563 (output_alias_pair_p): Handle variables.
23564 (output_unreferenced_globals): Output only needed partition of varpool.
23565 * ipa-inline.c (inline_write_summary): Update.
23566 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
23568 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
23569 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
23570 varpool_node_set_new, varpool_node_set_add,
23571 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
23572 debug_varpool_node_set): New functions.
23573 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
23574 (execute_one_pass): Process new decls too.
23575 (ipa_write_summaries_2): Pass around vsets.
23576 (ipa_write_summaries_1): Likewise.
23577 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
23579 (ipa_write_optimization_summaries_1): Pass around vsets.
23580 (ipa_write_optimization_summaries): Likewise.
23581 * varpool.c (varpool_get_node): New.
23582 (varpool_node): Update doubly linked lists.
23583 (varpool_remove_node): New.
23584 (dump_varpool_node): More dumping.
23585 (varpool_enqueue_needed_node): Update doubly linked lists.
23586 (decide_is_variable_needed): Kill ltrans hack.
23587 (varpool_finalize_decl): Kill lto hack.
23588 (varpool_assemble_decl): Skip decls in other partitions.
23589 (varpool_assemble_pending_decls): Update doubly linkes lists.
23590 (varpool_empty_needed_queue): Likewise.
23591 (varpool_extra_name_alias): Likewise.
23592 * lto-streamer.c (lto_get_section_name): Add vars section.
23593 * lto-streamer.h (lto_section_type): Update.
23594 (output_varpool, input_varpool): Declare.
23596 2010-04-28 Mike Stump <mikestump@comcast.net>
23598 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
23600 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
23602 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
23603 record or union type with RECORD_OR_UNION_TYPE_P predicate.
23604 (lto_input_ts_type_tree_pointers): Likewise.
23605 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
23606 (lto_output_ts_type_tree_pointers): Likewise.
23608 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
23610 Uniquization of constants at the Tree level
23611 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
23612 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
23614 (tree_output_constant_def): Declare.
23615 * gimplify.c (gimplify_init_constructor): When using block copy, first
23616 uniquize the constant constructor on the RHS.
23617 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
23618 DECL_IN_CONSTANT_POOL flag.
23619 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
23620 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
23622 (assemble_variable): Deal with symbols belonging to the tree constant
23624 (get_constant_section): Add ALIGN parameter and simplify.
23625 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
23626 (assemble_constant_contents): Use the expression of the VAR_DECL.
23627 (output_constant_def_contents): Use the alignment of the VAR_DECL.
23628 (tree_output_constant_def): New global function.
23629 (mark_constant): Use the expression of the VAR_DECL.
23630 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
23632 (output_object_block): Likewise and assemble the expression.
23634 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
23636 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
23637 hash_tree, eq_tree): New tree hash table.
23638 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
23639 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
23640 lto_orig_address_remove): Reimplement.
23642 2010-04-28 Xinliang David Li <davidxl@google.com>
23645 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
23646 (compute_uninit_opnds_pos): New function.
23647 (is_non_loop_exit_postdominating): New function.
23648 (compute_control_dep_chain): New function.
23649 (find_pdom): New function.
23650 (convert_control_dep_chain_into_preds): New function.
23651 (find_predicates): New function.
23652 (find_control_equiv_block): New function.
23653 (collect_phi_def_edges): New function.
23654 (find_def_preds): New function.
23655 (find_dom): New function.
23656 (dump_predicates): New function.
23657 (get_cmp_code): New function.
23658 (is_value_included_in): New function.
23659 (find_matching_predicate_in_rest_chains): New function.
23660 (use_pred_not_overlap_with_undef_path_pred): New function.
23661 (is_use_properly_guarded): New function.
23662 (normalize_cond_1): New function.
23663 (is_and_or_or): New function.
23664 (normalize_cond): New function.
23665 (is_gcond_subset_of): New function.
23666 (is_subset_of_any): New function.
23667 (is_or_set_subset_of): New function.
23668 (is_and_set_subset_of): New function.
23669 (is_norm_cond_subset_of): New function.
23670 (is_pred_expr_subset_of): New function.
23671 (is_pred_chain_subset_of): New function.
23672 (is_included_in): New function.
23673 (is_superset_of): New function.
23674 (find_uninit_use): New function.
23675 (warn_uninitialized_phi): New function.
23676 (compute_possibly_undefined_names): New function.
23677 (ssa_undefined_value_p): New function.
23678 (execute_late_warn_uninitialized): New function.
23679 * tree-ssa.c (ssa_undefined_value_p): Removed.
23680 (warn_uninit): Changed to extern.
23681 (warn_uninitialized_phi): Removed.
23682 (warn_uninitialized_vars): Changed to extern.
23683 (execute_late_warn_uninitialized): Removed
23684 * tree-flow.h: Add new prototypes.
23685 * timevar.def: Add new time variable.
23686 * Makefile.in: Add new build file.
23688 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
23690 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
23693 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23696 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
23698 2010-04-28 Martin Jambor <mjambor@suse.cz>
23700 * cgraph.h (struct cgraph_node): New field indirect_calls.
23701 (struct cgraph_indirect_call_info): New type.
23702 (struct cgraph_edge): Removed field indirect_call. New fields
23703 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
23704 (cgraph_create_indirect_edge): Declare.
23705 (cgraph_make_edge_direct): Likewise.
23706 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
23707 * ipa-prop.h (struct ipa_param_call_note): Removed.
23708 (struct ipa_node_params): Removed field param_calls.
23709 (ipa_create_all_structures_for_iinln): Declare.
23710 * cgraph.c: Described indirect edges and uids in initial comment.
23711 (cgraph_add_edge_to_call_site_hash): New function.
23712 (cgraph_edge): Search also among the indirect edges, use
23713 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
23714 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
23715 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
23717 (initialize_inline_failed): Assign a reason to indirect edges.
23718 (cgraph_create_edge_1): New function.
23719 (cgraph_create_edge): Moved some functionality to
23720 cgraph_create_edge_1.
23721 (cgraph_create_indirect_edge): New function.
23722 (cgraph_edge_remove_callee): Add an assert checking for
23724 (cgraph_edge_remove_caller): Special-case indirect edges.
23725 (cgraph_remove_edge): Likewise.
23726 (cgraph_set_edge_callee): New function.
23727 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
23728 (cgraph_make_edge_direct): New function.
23729 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
23730 the declaration of the call statement matches.
23731 (cgraph_node_remove_callees): Special-case indirect edges.
23732 (cgraph_clone_edge): Likewise.
23733 (cgraph_clone_node): Clone also the indirect edges.
23734 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
23735 indirect_call, dump count of indirect_calls edges.
23736 * ipa-prop.c (iinlining_processed_edges): New variable.
23737 (ipa_note_param_call): Create indirect edges instead of
23738 creating notes. New parameter node.
23739 (ipa_analyze_call_uses): New parameter node, pass it on to
23740 ipa_note_param_call.
23741 (ipa_analyze_stmt_uses): Likewise.
23742 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
23743 (print_edge_addition_message): Work on edges rather than on notes.
23744 (update_call_notes_after_inlining): Likewise, renamed to
23745 update_indirect_edges_after_inlining.
23746 (ipa_create_all_structures_for_iinln): New function.
23747 (ipa_free_node_params_substructures): Do not free notes.
23748 (ipa_edge_duplication_hook): Propagate bits within
23749 iinlining_processed_edges bitmap.
23750 (ipa_node_duplication_hook): Do not duplicate notes.
23751 (free_all_ipa_structures_after_ipa_cp): Renamed to
23752 ipa_free_all_structures_after_ipa_cp.
23753 (free_all_ipa_structures_after_iinln): Renamed to
23754 ipa_free_all_structures_after_iinln.
23755 (ipa_write_param_call_note): Removed.
23756 (ipa_read_param_call_note): Removed.
23757 (ipa_write_indirect_edge_info): New function.
23758 (ipa_read_indirect_edge_info): Likewise.
23759 (ipa_write_node_info): Do not stream notes, do stream information
23761 (ipa_read_node_info): Likewise.
23762 (lto_ipa_fixup_call_notes): Removed.
23763 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
23764 * ipa-inline.c (pass_ipa_inline): Likewise.
23765 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
23766 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
23767 * tree-inline.c (copy_bb): Removed an unnecessary double check for
23769 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
23771 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
23772 (output_cgraph): Stream also indirect edges.
23773 (lto_output_edge): Added capability to stream indirect edges.
23774 (input_edge): Likewise.
23775 (input_cgraph_1): Likewise.
23776 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
23779 2010-04-28 Richard Guenther <rguenther@suse.de>
23781 PR tree-optimization/43879
23782 PR tree-optimization/43909
23783 * tree-ssa-structalias.c (struct variable_info): Add
23784 only_restrict_pointers flag.
23785 (new_var_info): Initialize it. Increment stats.total_vars here.
23786 (create_function_info_for): Do not increment stats.total_vars here.
23787 (get_function_part_constraint): Fix build with C++.
23788 (insert_into_field_list): Remove.
23789 (push_fields_onto_fieldstack): Properly merge fields.
23790 (create_variable_info_for): Split and simplify.
23791 (create_variable_info_for_1): New piece.
23792 (intra_create_variable_infos): Properly make restrict constraints
23795 2010-04-28 Richard Guenther <rguenther@suse.de>
23798 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
23800 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
23801 Jan Hubicka <hubicka@ucw.cz>
23803 * doc/invoke.texi (-Wsuggest-attribute=const,
23804 -Wsuggest-attribute=pure): Document.
23805 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
23806 (function_always_visible_to_compiler_p,
23807 suggest_attribute, warn_function_pure, warn_function_const):
23809 (check_call): Improve debug info.
23810 (analyze_function): Do not check availability.
23811 (add_new_function): Check availability.
23812 (propagate): Output warnings.
23813 (skip_function_for_local_pure_const): New function.
23814 (local_pure_const): Use it; output warnings.
23815 * common.opt (Wsuggest-attribute=const,
23816 Wsuggest-attribute=pure): New.
23818 2010-04-27 Jakub Jelinek <jakub@redhat.com>
23820 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
23821 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
23822 or DW_CFA_def_cfa_offset{,_sf}.
23824 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
23826 * tree.h: Fix truncated long macros.
23828 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
23830 * collect2.c (TARGET_64BIT): Redefine to target's default.
23831 * tlink.c: Likewise.
23832 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
23833 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
23834 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
23835 for underscoring __USER_LABEL_PREFIX__.
23836 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
23837 (SUB_LINK_ENTRY32): New.
23838 (SUB_LINK_ENTRY64): New.
23839 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
23840 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
23841 (SUB_LINK_ENTRY64): New.
23842 (SUB_LINK_ENTRY): New.
23843 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
23844 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
23845 x64 target is choosen.
23846 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
23847 * configure: Regenerated.
23848 * configure.ac (leading-mingw64-underscores): Option added.
23850 2010-04-27 Jan Hubicka <jh@suse.cz>
23852 * doc/invoke.texi (-fipa-profile): Document.
23853 * opts.c (decode_options): Enable ipa-profile at -O1.
23854 * timevar.def (TV_IPA_PROFILE): Define.
23855 * common.opt (fipa-profile): Add.
23856 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
23858 (cgraph_propagate_frequency): Handle only local ones.
23859 * tree-pass.h (pass_ipa_profile): Declare.
23860 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
23861 (pass_ipa_profile): Use TV_IPA_PROFILE.
23862 * ipa.c (ipa_profile): New function.
23863 (gate_ipa_profile): Likewise.
23864 (pass_ipa_profile): New global variable.
23865 * passes.c (pass_ipa_profile): New.
23867 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
23869 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
23871 2010-04-27 Martin Jambor <mjambor@suse.cz>
23873 PR middle-end/43812
23874 * ipa.c (dissolve_same_comdat_group_list): New function.
23875 (function_and_variable_visibility): Call
23876 dissolve_same_comdat_group_list when comdat group contains external or
23878 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
23879 lists are circular and that they contain only DECL_ONE_ONLY nodes.
23881 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
23883 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
23884 (const_hash_1) <VECTOR_CST>: New case.
23885 (compare_constant) <VECTOR_CST>: Likewise.
23886 <ADDR_EXPR>: Deal with LABEL_REFs.
23887 (copy_constant) <VECTOR_CST>: New case.
23889 2010-04-27 Jan Hubicka <jh@suse.cz>
23891 * cgraph.c (cgraph_propagate_frequency): New function.
23892 * cgraph.h (cgraph_propagate_frequency): Declare.
23893 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
23894 cgraph_propagate_frequency.
23896 2010-04-27 Jakub Jelinek <jakub@redhat.com>
23898 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
23900 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
23903 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
23904 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
23905 here to determine which regs to push and how much stack to reserve.
23907 2010-04-27 Jie Zhang <jie@codesourcery.com>
23909 * doc/gimple.texi (gimple_statement_with_ops): Remove
23910 addresses_taken field.
23911 (gimple_statement_with_memory_ops): Likewise.
23913 2010-04-27 Jan Hubicka <jh@suse.cz>
23915 * tree-inline.c (eni_inlining_weights): Remove.
23916 (estimate_num_insns): Special case more builtins.
23918 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
23921 * c-typeck.c (build_binary_op): Move forward check for comparison
23922 pointer with null pointer constant and adjust the diagnostic message.
23924 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
23927 * configure.ac (gcc_cv_as_section_has_align): Set if installed
23928 binutils supports extended .section directive needed by LTO, or
23929 warn if older binutils found.
23930 (LTO_BINARY_READER): New AC_SUBST'd variable.
23931 (LTO_USE_LIBELF): Likewise.
23932 * config.gcc (lto_binary_reader): New target-specific configure
23934 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
23935 (LTO_USE_LIBELF): Likewise.
23936 * configure: Regenerate.
23938 * collect2.c (is_elf): Rename from this ...
23939 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
23940 object files in addition to ELF-formatted ones.
23941 (scan_prog_file): Caller updated. Also allow for LTO info marker
23942 symbol to be prefixed or not by an extra underscore.
23944 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
23945 * config/i386/winnt.c: Also #include lto-streamer.h
23946 (i386_pe_asm_named_section): Specify 1-byte section alignment for
23947 LTO named sections.
23948 (i386_pe_asm_output_aligned_decl_common): Add comment.
23949 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
23951 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
23954 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
23955 Add missing earlyclobber for second alternative.
23957 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
23959 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
23960 bits for artificial defs at the top of the block.
23961 * fwprop.c (single_def_use_enter_block): Don't call it.
23963 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
23966 * configure.ac: Use "$gcc_cv_nm -g" on darwin
23967 instead of "$gcc_cv_objdump -T".
23968 Use "-undefined dynamic_lookup" on darwin.
23969 * configure: Regenerate.
23971 2010-04-26 Jakub Jelinek <jakub@redhat.com>
23974 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
23976 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
23978 * c-parser.c (struct c_token): Move location field up.
23979 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
23980 (struct c_declspecs): Convert typespec_word, storage_class, and
23981 default_int_p into bitfields.
23982 (struct c_declarator): Move loc field up.
23984 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
23986 * cfgloop.h (struct loop): Move can_be_parallel field up.
23987 * ipa-prop.h (struct ip_node_params): Move bitfields up.
23988 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
23990 (struct iv_cand): Convert pos field into a bitfield.
23991 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
23993 (struct _stmt_vec_info): Shuffle fields for better packing.
23995 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
23997 * varasm.c (IN_NAMED_SECTION): Remove guard.
23998 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
23999 (IN_NAMED_SECTION_P): ...this.
24000 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
24001 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
24003 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
24005 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
24006 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
24007 of shadowing it. Fix comments.
24009 2010-04-26 Jan Hubicka <jh@suse.cz>
24011 * cgraph.c (cgraph_create_node): Set node frequency to normal.
24012 (cgraph_clone_node): Copy function frequency.
24013 * cgraph.h (node_frequency): New enum
24014 (struct cgraph_node): Add.
24015 * final.c (rest_of_clean_state): Update.
24016 * lto-cgraph.c (lto_output_node): Output node frequency.
24017 (input_overwrite_node): Input node frequency.
24018 * tre-ssa-loop-ivopts (computation_cost): Update.
24019 * lto-streamer-out.c (output_function): Do not output function
24021 * predict.c (maybe_hot_frequency_p): Update and handle functions
24023 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
24025 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
24026 (compute_function_frequency): Set noreturn functions to be executed
24028 (choose_function_section): Update.
24029 * lto-streamer-in.c (input_function): Do not input function frequency.
24030 * function.c (allocate_struct_function): Do not initialize function
24032 * function.h (function_frequency): Remove.
24033 (struct function): Remove function frequency.
24034 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
24035 (try_update): Update.
24036 * tree-inline.c (initialize_cfun): Do not update function frequency.
24037 * passes.c (pass_init_dump_file): Update.
24038 * i386.c (ix86_compute_frame_layout): Update.
24039 (ix86_pad_returns): Update.
24041 2010-04-26 Jie Zhang <jie@codesourcery.com>
24043 PR tree-optimization/43833
24044 * tree-vrp.c (range_int_cst_p): New.
24045 (range_int_cst_singleton_p): New.
24046 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
24047 when both operands are constants. Use range_int_cst_p in
24050 2010-04-26 Jan Hubicka <jh@suse.cz>
24052 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
24054 2010-04-26 Richard Guenther <rguenther@suse.de>
24057 * gimple.c (gimple_decl_printable_name): Deal gracefully
24058 with a NULL DECL_NAME.
24060 2010-04-26 Richard Guenther <rguenther@suse.de>
24063 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
24064 if emitting debug information and it is either a function
24065 or a namespace decl.
24067 2010-04-26 Ira Rosen <irar@il.ibm.com>
24069 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
24070 determine if the statement is vectorizable, and a macro to access it.
24071 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
24072 Skip statements that can't be vectorized. If the analysis fails,
24073 mark the statement as unvectorizable if vectorizing basic block.
24074 (vect_compute_data_refs_alignment): Likewise.
24075 (vect_verify_datarefs_alignment): Skip statements marked as
24076 unvectorizable. Add print.
24077 (vect_analyze_group_access): Skip statements that can't be
24078 vectorized. If the analysis fails, mark the statement as
24079 unvectorizable if vectorizing basic block.
24080 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
24081 * tree-vect-stmts.c (vectorizable_store): Fix the number of
24082 generated stmts for SLP.
24083 (new_stmt_vec_info): Initialize the new field.
24084 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
24085 statements marked as unvectorizable.
24087 2010-04-25 Joseph Myers <joseph@codesourcery.com>
24089 * c-common.c (flag_isoc1x): New.
24090 (flag_isoc99): Update comment.
24091 * c-common.h (flag_isoc1x): New.
24092 (flag_isoc99): Update comment.
24093 * c-cppbuiltin.c (builtin_define_float_constants): Also define
24094 __<type>_DECIMAL_DIG__.
24095 * c-opts.c (set_std_c1x): New.
24096 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
24097 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
24098 * c.opt (-std=c1x, -std=gnu1x): New options.
24099 * doc/cpp.texi: Mention -std=c1x.
24100 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
24101 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
24102 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
24103 * doc/standards.texi: Mention C1X.
24104 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
24105 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
24106 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
24109 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
24111 * config/i386/gmon-sol2.c (_mcleanup): Change format string
24112 placeholder from 0x%x to %#x.
24113 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
24114 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
24115 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
24116 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
24117 * config/i386/i386.c (ix86_target_string): Ditto.
24118 (output_pic_addr_const): Ditto.
24119 (print_operand): Ditto.
24121 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
24123 * combine.c (find_split_point): Add third argument. Use it
24124 to find nested multiply-accumulate instructions. Adjust calls.
24125 (try_combine): Adjust call to find_split_point.
24127 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
24129 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
24131 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
24133 PR tree-optimization/41442
24134 * fold-const.c (merge_truthop_with_opposite_arm): New function.
24135 (fold_binary_loc): Call it.
24137 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
24139 * toplev.c (general_init): Set default for fdiagnostics-show-option.
24140 * opts.c (common_handle_option): Allow disabling it.
24141 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
24143 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
24145 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
24146 between modes if both types are integral.
24148 2010-04-23 Richard Guenther <rguenther@suse.de>
24150 PR tree-optimization/43572
24151 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
24153 2010-04-23 Richard Guenther <rguenther@suse.de>
24156 * tree-inline.c (tree_can_inline_p): Also check compatibility
24159 2010-04-23 Martin Jambor <mjambor@suse.cz>
24161 PR tree-optimization/43846
24162 * tree-sra.c (struct access): New flag grp_assignment_read.
24163 (build_accesses_from_assign): Set grp_assignment_read.
24164 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
24165 (enum mark_read_status): New type.
24166 (analyze_access_subtree): Propagate grp_assignment_read, create
24167 accesses also if both direct_read and root->grp_assignment_read.
24169 2010-04-23 Martin Jambor <mjambor@suse.cz>
24171 PR middle-end/43835
24172 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
24173 function does not have type attributes.
24175 2010-04-23 Richard Guenther <rguenther@suse.de>
24178 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
24181 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24183 * sese.h (create_if_region_on_edge): Remove.
24185 * sese.c (create_if_region_on_edge): Make static.
24187 * tree-inline.c: Do not include ggc.h.
24189 * expr.c: Do not include ggc.h.
24191 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
24194 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
24197 * config/sh/sh.c (find_barrier): Don't emit a constant pool
24198 in the middle of insns for casesi_worker_2.
24200 2010-04-22 David Edelsohn <edelsohn@gnu.org>
24202 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
24204 2010-04-22 Ira Rosen <irar@il.ibm.com>
24206 PR tree-optimization/43842
24207 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
24208 loop unrolling in update of exit phis. Fix comment.
24209 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
24210 least two reduction statements in the loop before starting SLP
24213 2010-04-22 Nick Clifton <nickc@redhat.com>
24215 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
24217 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
24219 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
24220 to simplify a + ~a.
24222 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24224 * tree-parloops.c (loop_parallel_p): New argument
24225 parloop_obstack. Pass it down.
24226 (parallelize_loops): New variable parloop_obstack. Initialize it,
24227 pass it down, free it.
24229 * tree-loop-linear.c (linear_transform_loops): Pass down
24232 * tree-data-ref.h (lambda_compute_access_matrices): New argument
24233 of type struct obstack *.
24235 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
24236 scratch_obstack. Initialize it, pass down, free it.
24238 * lambda.h (lambda_loop_new): Remove.
24239 (lambda_matrix_new, lambda_matrix_inverse)
24240 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
24241 argument of type struct obstack *.
24243 * lambda-trans.c (lambda_trans_matrix_new): New argument
24244 lambda_obstack. Pass it down, use obstack allocation for ret.
24245 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
24248 * lambda-mat.c (lambda_matrix_get_column)
24249 (lambda_matrix_project_to_null): Remove.
24250 (lambda_matrix_new): New argument lambda_obstack. Use obstack
24251 allocation for mat.
24252 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
24255 * lambda-code.c (lambda_loop_new): New function.
24256 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
24257 (lambda_compute_auxillary_space, lambda_compute_target_space)
24258 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
24259 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
24260 (build_access_matrix): New argument lambda_obstack. Use obstack
24262 (lambda_compute_step_signs, lambda_compute_access_matrices): New
24263 argument lambda_obstack. Pass it down.
24265 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
24267 * optabs.h (expand_widening_mult): Declare.
24269 2010-04-22 Richard Guenther <rguenther@suse.de>
24271 PR tree-optimization/43845
24272 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
24273 lookup the CALL_EXPR function and arguments.
24275 2010-04-22 Nick Clifton <nickc@redhat.com>
24277 * config/stormy16/stormy16.c
24278 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
24279 * config/stormy16/stormy16.h: Tidy up formatting.
24280 (DONT_USE_BUILTIN_SETJMP): Remove definition.
24281 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
24282 (ineqbranchsi): Delete pattern.
24283 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
24284 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
24285 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
24286 stormy16-lib2-ucmpsi2.c.
24288 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
24290 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
24291 df_simulate_find_noclobber_defs as appropriate. Keep track of an
24292 extra set merge_set_noclobber, and use it to relax the final test
24294 * df.h (df_simulate_find_noclobber_defs): Declare.
24295 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
24297 (df_simulate_find_noclobber_defs): New function.
24299 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
24301 * config/i386/i386.md: Use {} around multi-line preparation statements.
24303 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24305 * c-tree.h (push_init_level, pop_init_level, set_init_index)
24306 (process_init_element): New argument of type struct obstack *.
24308 * c-typeck.c (push_init_level, pop_init_level, set_designator)
24309 (set_init_index, set_init_label, set_nonincremental_init)
24310 (set_nonincremental_init_from_string, find_init_member)
24311 (output_init_element, output_pending_init_elements)
24312 (process_init_element): New argument braced_init_obstack. Pass it
24314 (push_range_stack, add_pending_init): New argument
24315 braced_init_obstack. Use obstack allocation.
24317 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
24318 braced_init_obstack. Pass it down.
24319 (c_parser_braced_init): New variables ret, braced_init_obstack.
24320 Initialize obstack, pass it down and finally free it.
24322 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
24324 PR middle-end/29274
24325 * tree-pass.h (pass_optimize_widening_mul): Declare.
24326 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
24327 gate_optimize_widening_mul): New static functions.
24328 (pass_optimize_widening_mul): New.
24329 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
24330 <case MULT_EXPR>: Remove support for widening multiplies.
24331 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
24332 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
24333 simplify_gen_unary rather than directly building extensions.
24334 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
24336 * expmed.c (expand_widening_mult): New function.
24337 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
24339 2010-04-21 Jan Hubicka <jh@suse.cz>
24341 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
24342 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
24343 * lto-wpa-fixup.c: Remove.
24344 * Makefile.in (lto-wpa-fixup.o): Remove.
24345 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
24346 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
24347 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
24349 2010-04-21 Jan Hubicka <jh@suse.cz>
24351 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
24352 add write_optimization_summary, read_optimization_summary.
24353 (ipa_write_summaries_of_cgraph_node_set): Remove.
24354 (ipa_write_optimization_summaries): Declare.
24355 (ipa_read_optimization_summaries): Declare.
24356 * ipa-cp.c (pass_ipa_cp): Update.
24357 * ipa-reference.c (pass_ipa_reference): Update.
24358 * ipa-pure-const.c (pass_ipa_pure_const): Update.
24359 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
24361 * ipa-inline.c (pass_ipa_inline): Update.
24362 * ipa.c (pass_ipa_whole_program): Update.
24363 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
24364 * passes.c (ipa_write_summaries_1): Do not test wpa.
24365 (ipa_write_optimization_summaries_1): New.
24366 (ipa_write_optimization_summaries): New.
24367 (ipa_read_summaries): Do not test ltrans.
24368 (ipa_read_optimization_summaries_1): New.
24369 (ipa_read_optimization_summaries): New.
24371 2010-04-21 Jan Hubicka <jh@suse.cz>
24373 * lto-cgraph.c (lto_output_node): Do not output comdat groups
24374 for boundary nodes.
24375 (output_cgraph): Do not arrange comdat groups for boundary nodes.
24377 2010-04-21 Jakub Jelinek <jakub@redhat.com>
24380 * dwarf2out.c (add_name_and_src_coords_attributes): Add
24381 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
24383 2010-04-21 Jan Hubicka <jh@suse.cz>
24385 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
24387 2010-04-21 Jan Hubicka <jh@suse.cz>
24389 * varpool.c (decide_is_variable_needed): Variable is always needed
24392 2010-04-21 Jan Hubicka <jh@suse.cz>
24394 * opts.c (decode_options): Enable pure-const pass for whopr.
24396 2010-04-21 Jan Hubicka <jh@suse.cz>
24398 * cgraph.c (dump_cgraph_node): Dump also assembler name.
24399 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
24401 (cgraph_decide_inlining): Do not expect callee to be removed in all
24404 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
24406 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
24408 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
24410 * config/i386/i386.md (x86_shrd): Add athlon_decode and
24411 amdfam10_decode attributes.
24413 2010-04-21 Jakub Jelinek <jakub@redhat.com>
24415 PR middle-end/43570
24416 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
24417 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
24418 (lower_copyprivate_clauses): Use private var in outer
24419 context instead of original var. Make sure the types
24420 are correct for VLAs.
24422 2010-04-21 Richard Guenther <rguenther@suse.de>
24424 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
24425 to non-pointer objects.
24427 2010-04-21 Jakub Jelinek <jakub@redhat.com>
24429 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
24430 last chain entry if it starts with the still current label.
24431 (add_location_or_const_value_attribute): Check that
24432 loc_list->first->next is NULL instead of comparing ->first with ->last.
24433 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
24434 to add_var_loc_to_decl.
24436 * dwarf2out.c (output_call_frame_info): For dw_cie_version
24437 >= 4 add also address size and segment size fields into CIE header.
24439 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
24440 long as address size is the same as sizeof (void *) and
24442 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
24443 address size or segment size is unexpected, return DW_EH_PE_omit.
24444 (classify_object_over_fdes): If get_cie_encoding returned
24445 DW_EH_PE_omit, return -1.
24446 (init_object): If classify_object_over_fdes returned -1,
24447 pretend there were no FDEs at all.
24449 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
24451 * config/i386/i386.md (bswap<mode>2): Macroize expander from
24452 bswap{si,di}2 using SWI48 mode iterator.
24453 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
24454 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
24455 set modrm attribute of bswap insn to 0 and remove length attribute.
24456 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
24457 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
24458 set mode attribute to <MODE> and remove length attribute.
24460 2010-04-20 James E. Wilson <wilson@codesourcery.com>
24462 PR rtl-optimization/43520
24463 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
24464 zero available registers.
24466 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24468 * builtins.c (fold_builtin_cproj): Fold more cases.
24470 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24472 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
24473 (fold_builtin_1): Fold builtin cproj.
24474 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
24475 Use ATTR_CONST_NOTHROW_LIST.
24477 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
24479 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
24480 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
24481 ffsi2_no_cmove for !TARGET_CMOVE.
24482 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
24483 (ffssi2): Remove expander.
24484 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
24486 (ctz<mode>2): Ditto from ctz{si,di}2.
24487 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
24489 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
24492 2010-04-20 Jakub Jelinek <jakub@redhat.com>
24494 * dwarf2out.c (AT_linkage_name): Define.
24495 (clone_as_declaration): Handle DW_AT_linkage_name.
24496 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
24497 of DW_AT_MIPS_linkage_name.
24498 (move_linkage_attr): Likewise.
24499 (dwarf2out_finish): Likewise.
24501 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
24503 PR middle-end/41952
24504 * fold-const.c (fold_comparison): New folding rule.
24506 2010-04-20 Anatoly Sokolov <aesok@post.ru>
24508 * double-int.h (double_int_setbit): Declare.
24509 * double-int.c (double_int_setbit): New function.
24510 * rtl.h (immed_double_int_const): Declare.
24511 * emit-rtl.c (immed_double_int_const): New function.
24512 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
24513 and immed_double_int_const functions.
24514 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
24515 expand_copysign_bit): (Ditto.).
24516 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
24517 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
24518 * dojump.c (prefer_and_bit_test): (Ditto.).
24519 * expr.c (convert_modes, reduce_to_bit_field_precision,
24520 const_vector_from_tree): (Ditto.).
24521 * expmed.c (mask_rtx, lshift_value): (Ditto.).
24523 2010-04-20 Jan Hubicka <jh@suse.cz>
24525 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
24526 (dump_cgraph_node): Dump new flags.
24527 * cgraph.h (struct cgraph_node): Add flags
24528 reachable_from_other_partition and in_other_partition.
24529 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
24530 other partition can not be removed.
24531 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
24532 the other partition must be output; silence sanity checking on
24533 leaking functions bodies from other paritition.
24534 * lto-cgraph.c (reachable_from_other_partition_p): New function.
24535 (lto_output_node): Output new flags; do not sanity check that inline
24536 clones are output; drop lto_forced_extern_inline_p code; do not mock
24537 visibility flags at partition boundaries.
24538 (add_node_to): New function.
24539 (output_cgraph): Use it to sort functions so masters appear before
24541 (input_overwrite_node): Input new flags.
24542 * passes.c (ipa_write_summaries): Do not call
24543 lto_new_extern_inline_states.
24544 * lto-section-out.c (forced_extern_inline,
24545 lto_new_extern_inline_states lto_delete_extern_inline_states,
24546 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
24547 * lto-streamer.h (lto_new_extern_inline_states,
24548 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
24549 lto_forced_extern_inline_p): Kill.
24551 2010-04-20 Richard Guenther <rguenther@suse.de>
24553 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
24554 from vars that can have pointers.
24555 (process_constraint): Dump useless constraints.
24557 2010-04-20 Richard Guenther <rguenther@suse.de>
24559 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
24560 (dump_sa_points_to_info): Remove asserts.
24561 (init_base_vars): nothing_id isn't an escape point nor does it
24564 2010-04-20 Jakub Jelinek <jakub@redhat.com>
24566 * tree.h (TYPE_REF_IS_RVALUE): Define.
24567 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
24568 should_move_die_to_comdat, prune_unused_types_walk): Handle
24569 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
24570 (modified_type_die, gen_reference_type_die): Emit
24571 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
24572 if TYPE_REF_IS_RVALUE and -gdwarf-4.
24574 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24577 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
24578 calls for -fpic -m31 if they have been sibcall optimized.
24580 2010-04-19 James E. Wilson <wilson@codesourcery.com>
24582 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
24583 ar.lc fixed and call-used.
24585 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
24587 2010-04-19 Jan Hubicka <jh@suse.cz>
24589 * opts.c (decode_options): Disable whpr incompatible passes.
24590 * lto/lto.c (lto_1_to_1_map): Skip clones.
24591 (read_cgraph_and_symbols): Do not mark everything as needed.
24592 (do_whole_program_analysis): Do map only after optimizing;
24593 set proper cgraph_state; use passmanager.
24595 2010-04-19 DJ Delorie <dj@redhat.com>
24597 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
24598 POINTER_PLUS_EXPR and fix them.
24600 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
24602 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
24603 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
24604 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
24605 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
24606 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
24607 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
24608 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
24609 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
24610 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
24611 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
24612 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
24614 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
24616 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
24617 (check_cond_move_block): Likewise.
24618 (cond_move_process_if_block): Likewise.
24619 (noce_find_if_block): Improve formatting.
24620 (find_if_header): Pass 0 to memset and tweak conditions.
24621 (cond_exec_find_if_block): Fix long lines and tweak conditions.
24623 2010-04-19 Jakub Jelinek <jakub@redhat.com>
24625 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
24628 PR middle-end/43337
24629 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
24630 with non-local decl doesn't need chain.
24632 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
24634 * ira-color.c (allocno_reload_assign): Avoid accumulating
24635 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
24637 2010-04-19 Martin Jambor <mjambor@suse.cz>
24639 * gimple.h (create_tmp_reg): Declare.
24640 * gimplify.c (create_tmp_reg): New function.
24641 (gimplify_return_expr): Use create_tmp_reg.
24642 (gimplify_omp_atomic): Likewise.
24643 (gimple_regimplify_operands): Likewise.
24644 * tree-dfa.c (make_rename_temp): Likewise.
24645 * tree-predcom.c (predcom_tmp_var): Likewise.
24646 (reassociate_to_the_same_stmt): Likewise.
24647 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
24648 (get_replaced_param_substitute): Likewise.
24649 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
24650 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
24651 * tree-ssa-pre.c (get_representative_for): Likewise.
24652 (create_expression_by_pieces): Likewise.
24653 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
24654 (create_tailcall_accumulator): Likewise.
24656 2010-04-19 Martin Jambor <mjambor@suse.cz>
24658 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
24660 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
24662 2010-04-19 Richard Guenther <rguenther@suse.de>
24664 PR tree-optimization/43796
24665 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
24666 from SCEV in the lattice.
24667 (vrp_visit_phi_node): Dump change.
24669 2010-04-19 Richard Guenther <rguenther@suse.de>
24671 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
24672 * configure: Re-generated.
24674 2010-04-19 Richard Guenther <rguenther@suse.de>
24676 PR tree-optimization/43783
24677 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
24678 constant ARRAY_REF operands two and three if possible.
24680 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
24683 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
24685 2010-04-19 Jie Zhang <jie@codesourcery.com>
24688 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
24690 2010-04-19 Ira Rosen <irar@il.ibm.com>
24692 PR tree-optimization/37027
24693 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
24694 and macro to access it.
24695 (vectorizable_reduction): Add argument.
24696 (vect_get_slp_defs): Likewise.
24697 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
24698 statements for possible use in SLP.
24699 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
24700 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
24701 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
24703 (vectorizable_reduction): Likewise.
24704 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
24706 (vectorizable_type_demotion, vectorizable_type_promotion,
24707 vectorizable_store): Likewise.
24708 (vect_analyze_stmt): Update call to vectorizable_reduction.
24709 (vect_transform_stmt): Likewise.
24710 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
24711 (vect_build_slp_tree): Fix indentation. Check that there are no loads
24712 from different interleaving chains in same node.
24713 (vect_slp_rearrange_stmts): New function.
24714 (vect_supported_load_permutation_p): Allow load permutations for
24715 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
24716 inside SLP nodes if necessary.
24717 (vect_analyze_slp_instance): Handle reductions.
24718 (vect_analyze_slp): Try to build SLP instances originating from groups
24720 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
24721 (vect_get_constant_vectors): Create initial vectors for reductions
24722 according to reduction code. Add new argument.
24723 (vect_get_slp_defs): Add new argument, pass it to
24724 vect_get_constant_vectors.
24725 (vect_schedule_slp_instance): Remove SLP tree root statements.
24727 2010-04-19 Jakub Jelinek <jakub@redhat.com>
24729 * tree.h (ENUM_IS_SCOPED): Define.
24730 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
24731 for ENUM_IS_SCOPED enums.
24733 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
24735 * fold-const.c (fold_comparison): Use ssizetype.
24736 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
24737 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
24738 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
24739 * tree-object-size.c (compute_object_sizes): Use size_type_node.
24741 * tree.h (initialize_sizetypes): Remove parameter.
24742 (build_common_tree_nodes): Remove second parameter.
24743 * stor-layout.c (initialize_sizetypes): Remove parameter.
24744 Always create an unsigned type.
24745 (set_sizetype): Assert that the passed type is unsigned and simplify.
24746 * tree.c (build_common_tree_nodes): Remove second parameter.
24747 Adjust call to initialize_sizetypes.
24748 * c-decl.c (c_init_decl_processing): Remove second argument in call to
24749 build_common_tree_nodes.
24751 2010-04-18 Matthias Klose <doko@ubuntu.com>
24753 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
24755 2010-04-18 Ira Rosen <irar@il.ibm.com>
24757 PR tree-optimization/43771
24758 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
24759 load permutation doesn't have gaps.
24761 2010-04-18 Jan Hubicka <jh@suse.cz>
24763 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
24764 (sse_prologue_save_insn expander): Use new pattern.
24765 (sse_prologue_save_insn1): New pattern and splitter.
24766 (sse_prologue_save_insn): Update to deal also with 64bit aligned
24768 * i386.c (setup_incoming_varargs_64): Do not compute jump
24770 (ix86_gimplify_va_arg): Update alignment needed.
24771 (ix86_local_alignment): Do not align all local arrays to 128bit.
24773 2010-04-17 Jan Hubicka <jh@suse.cz>
24775 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
24777 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
24779 * arm.md (negdi2): Remove redundant code to force values into a
24782 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
24784 * arm/bpabi.S: Add EABI alignment attributes to objects.
24785 * arm/bpabi-v6m.S: Likewise.
24786 * arm/crti.asm: Likewise.
24787 * arm/crtn.asm: Likewise.
24788 * arm/lib1funcs.asm: Likewise.
24789 * arm/libunwind.S: Likewise.
24791 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
24793 * arm-protos.h (tune_params): New structure.
24794 * arm.c (current_tune): New variable.
24795 (arm_constant_limit): Delete.
24796 (struct processors): Add pointer to the tune parameters.
24797 (arm_slowmul_tune): New tuning option.
24798 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
24799 (all_cores): Adjust to pick up the tuning model.
24800 (arm_constant_limit): New function.
24801 (arm_override_options): Select the appropriate tuning model. Delete
24802 initialization of arm_const_limit.
24803 (arm_split_constant): Use the new constant-limit model.
24804 (arm_rtx_costs): Pick up the current tuning model.
24805 * arm.md (is_strongarm, is_xscale): Delete.
24806 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
24807 for Xscale variant architectures.
24808 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
24810 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24812 * config/arm/arm.c (arm_gen_constant): Remove unused variable
24814 (arm_rtx_costs_1): Remove unused variable extra_cost.
24815 (arm_unwind_emit_set): Use variable offset.
24816 (thumb1_output_casesi): Remove unused variable flags.
24818 2010-04-16 Jeff Law <law@redhat.com>
24820 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
24821 needing assignment rather than doing a two-phase assignment. Remove
24822 unused variable 'm'.
24824 2010-04-16 Jakub Jelinek <jakub@redhat.com>
24827 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
24829 2010-04-16 Doug Kwan <dougkwan@google.com>
24831 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
24832 (next_operand_entry_id): New static variable.
24833 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
24834 (add_to_ops_vec): Assigned unique ID to operand entry.
24835 (struct oecount_s): New field ID.
24836 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
24837 (undistribute_ops_list): Assign unique IDs to oecounts.
24838 (init_reassoc): reset next_operand_entry_id.
24840 2010-04-16 Doug Kwan <dougkwan@google.com>
24842 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
24843 missing left parenthesis.
24845 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
24847 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
24848 *btdi_rex64 using SWI48 mode iterator.
24849 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
24850 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
24851 *jcc_btdi_mask_rex64.
24853 2010-04-16 Anatoly Sokolov <aesok@post.ru>
24855 * double-int.h (tree_to_double_int): Convert to macro.
24856 * double-int.c (tree_to_double_int): Remove.
24858 2010-04-16 Jakub Jelinek <jakub@redhat.com>
24861 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
24862 with want_address 2 and in case a single element list might be
24863 possible, call it again with want_address 0.
24865 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24867 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
24868 case 'W' print operands for HI mode.
24869 * config/h8300/h8300.h (Y0, Y2) : New constraints.
24870 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
24871 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
24872 * config/h8300/predicate.md (bit_register_indirect_operand): New.
24874 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
24876 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
24877 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
24878 #xx:3 and #xx:4 mode.
24880 * config/h8300/h8300.md (inverted load with HImode dest): Add
24881 support for H8300SX.
24883 * config/h8300/predicate.md (bit_operand): Allow immediate values that
24884 satisfy 'U' constraint.
24886 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24888 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
24889 * configure: Regenerate.
24890 * config.in: Regenerate.
24891 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
24894 2010-04-16 Richard Guenther <rguenther@suse.de>
24896 * tree.h (struct tree_decl_minimal): Move pt_uid ...
24897 (struct tree_decl_common): ... here.
24898 (DECL_PT_UID): Adjust.
24899 (SET_DECL_PT_UID): Likewise.
24900 (DECL_PT_UID_SET_P): Likewise.
24902 2010-04-16 Richard Guenther <rguenther@suse.de>
24904 PR tree-optimization/43572
24905 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
24906 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
24907 * tree-flow.h (is_call_clobbered): Remove.
24908 * tree-flow-inline.h (is_call_clobbered): Likewise.
24909 * tree-dfa.c (dump_variable): Do not dump call clobber state.
24910 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
24911 (execute_return_slot_opt): Adjust.
24912 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
24913 check for call clobbered vars here.
24914 (find_tail_calls): Move tailcall verification to the
24917 2010-04-16 Diego Novillo <dnovillo@google.com>
24919 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
24921 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
24924 * config/arm/arm.md (cbranchqi4): New pattern.
24925 * config/arm/predicates.md (const0_operand,
24926 cbranchqi4_comparison_operator): New predicates.
24928 2010-04-16 Richard Guenther <rguenther@suse.de>
24930 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
24931 (dump_gimple_stmt): Likewise.
24933 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
24935 * recog.h (struct recog_data): New field is_operator.
24936 (struct insn_operand_data): New field is_operator.
24937 * recog.c (extract_insn): Set recog_data.is_operator.
24938 * genoutput.c (output_operand_data): Emit code to set the
24940 * reload.c (find_reloads): Use it rather than testing for an
24941 empty constraint string.
24944 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
24945 If the previous insn is a cbranchsi4_insn with the same arguments,
24946 omit the compare instruction.
24948 * config/arm/arm.md (addsi3_cbranch): If destination is a high
24949 register, inputs must be low registers and we need a low register
24950 scratch. Handle alternative 2 like alternative 3.
24952 2010-04-16 Jakub Jelinek <jakub@redhat.com>
24954 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
24955 don't call get_addr on both. If one expression is a VALUE and
24956 the other a REG, check VALUE's locs if the REG isn't among them.
24958 2010-04-16 Christian Bruel <christian.bruel@st.com>
24960 * config/sh/sh.h (sh_frame_pointer_required): New function.
24961 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
24962 (flag_omit_frame_pointer) Set.
24963 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
24964 (rounded_frame_size): Adjust size with outgoing_args_size.
24965 (sh_set_return_address): Must return from stack pointer.
24966 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
24967 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
24968 (ACCUMULATE_OUTGOING_ARGS): Define.
24969 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
24970 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
24972 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
24975 * config/sh/sh.c (sh_legitimize_reload_address): Use
24976 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
24977 Remove a unneeded check for offset_base.
24979 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
24981 * configure: Regenerated.
24983 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24985 * config/s390/s390.c (s390_call_save_register_used): Switch back
24986 to HARD_REGNO_NREGS.
24988 2010-04-15 Richard Guenther <rguenther@suse.de>
24990 * alias.c (alias_set_subset_of): Handle alias-set zero
24993 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
24994 Julian Brown <julian@codesourcery.com>
24996 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
24997 alternatives according to use of high and low regs.
24998 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
24999 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
25000 optimizing for size on Thumb-2.
25002 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
25004 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
25006 2010-04-15 Richard Guenther <rguenther@suse.de>
25008 * tree-ssa-structalias.c (struct variable_info): Add
25010 (new_var_info): Initialize it.
25011 (dump_constraints): Support printing last added constraints.
25012 (debug_constraints): Adjust.
25013 (dump_constraint_graph): Likewise.
25014 (make_heapvar_for): Check for NULL cfun.
25015 (get_function_part_constraint): New function.
25016 (get_fi_for_callee): Likewise.
25017 (find_func_aliases): Properly implement IPA PTA constraints.
25018 (process_ipa_clobber): New function.
25019 (find_func_clobbers): Likewise.
25020 (insert_into_field_list_sorted): Remove.
25021 (create_function_info_for): Properly allocate vars for IPA mode.
25022 Do not use insert_into_field_list_sorted.
25023 (create_variable_info_for): Properly generate constraints for
25024 global vars in IPA mode.
25025 (dump_solution_for_var): Always dump the solution.
25026 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
25027 (find_what_var_points_to): Adjust.
25028 (pt_solution_set): Change.
25029 (pt_solution_ior_into): New function.
25030 (pt_solution_empty_p): Export.
25031 (pt_solution_includes_global): Adjust.
25032 (pt_solution_includes_1): Likewise.
25033 (pt_solutions_intersect_1): Likewise.
25034 (dump_sa_points_to_info): Check some invariants.
25035 (solve_constraints): Move constraint dumping ...
25036 (compute_points_to_sets): ... here.
25037 (ipa_pta_execute): ... and here.
25038 (compute_may_aliases): Do not re-compute points-to info
25039 locally if IPA info is available.
25040 (ipa_escaped_pt): New global var.
25041 (ipa_pta_execute): Properly implement IPA PTA.
25042 * tree-into-ssa.c (dump_decl_set): Support dumping
25043 decls not in referenced-vars.
25044 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
25045 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
25046 (dump_points_to_solution): Likewise.
25047 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
25048 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
25049 (remap_gimple_stmt): Reset call clobber/use information if necessary.
25050 (copy_decl_to_var): Copy DECL_PT_UID.
25051 (copy_result_decl_to_var): Likewise.
25052 * tree.c (make_node_stat): Initialize DECL_PT_UID.
25053 (copy_node_stat): Copy it.
25054 * tree.h (DECL_PT_UID): New macro.
25055 (SET_DECL_PT_UID): Likewise.
25056 (DECL_PT_UID_SET_P): Likewise.
25057 (struct tree_decl_minimal): Add pt_uid member.
25058 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
25059 (pt_solution_empty_p): Declare.
25060 (pt_solution_set): Adjust.
25061 (ipa_escaped_pt): Declare.
25062 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
25063 * gimple-pretty-print.c (pp_points_to_solution): New function.
25064 (dump_gimple_call): Dump call clobber/use information.
25065 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
25066 * tree-pass.h (TDF_ALIAS): New dump option.
25067 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
25068 * doc/invoke.texi (-fipa-pta): Update documentation.
25070 2010-04-15 Richard Guenther <rguenther@suse.de>
25072 * Makefile.in (OBJS-common): Add gimple-fold.o.
25073 (gimple-fold.o): New rule.
25074 * tree.h (maybe_fold_offset_to_reference,
25075 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
25077 * gimple.h: ... here.
25078 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
25079 may_propagate_address_into_dereference): Move prototypes ...
25080 * gimple.h: ... here.
25081 * tree-ssa-ccp.c (get_symbol_constant_value,
25082 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
25083 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
25084 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
25085 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
25086 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
25087 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
25088 gimplify_and_update_call_from_tree): Move ...
25089 * gimple-fold.c: ... here. New file.
25090 (ccp_fold_builtin): Rename to ...
25091 (gimple_fold_builtin): ... this.
25092 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
25094 2010-04-15 Richard Guenther <rguenther@suse.de>
25096 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
25097 fit_double_type, force_fit_type_double, add_double_with_sign,
25098 neg_double, mul_double_with_sign, lshift_double, rshift_double,
25099 lrotate_double, rrotate_double, div_and_round_double): Move ...
25100 * double-int.c: ... here.
25101 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
25102 add_double, neg_double, mul_double_with_sign, mul_double,
25103 lshift_double, rshift_double, lrotate_double, rrotate_double,
25104 div_and_round_double): Move prototypes ...
25105 * double-int.h: ... here.
25107 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
25110 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
25111 matching constraints to ensure inputs match the output.
25113 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
25116 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
25117 in an input-only operand.
25119 2010-04-15 Anatoly Sokolov <aesok@post.ru>
25121 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
25122 (double_int_not, double_int_lshift, double_int_rshift): Declare.
25123 (double_int_negative_p): Convert to static inline function.
25124 * double-int.c (double_int_lshift, double_int_lshift): New functions.
25125 (double_int_negative_p): Remove.
25126 * tree.h (lshift_double, rshift_double):
25127 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
25128 * fold-const.c (fold_convert_const_int_from_real,
25129 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
25130 (lshift_double): Change type of arith argument to bool.
25131 (rshift_double): Change type of arith argument to bool. Correct
25133 * expmed.c (mask_rtx, lshift_value): (Ditto.).
25135 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
25138 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
25139 at the start and end of the then/else blocks, and omit them from the
25141 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
25142 argument; all callers changed. Pass zero to old_insns_match_p instead.
25143 (flow_find_head_matching_sequence): New function.
25144 (old_insns_match_p): Check REG_EH_REGION notes for calls.
25145 * basic-block.h (flow_find_cross_jump,
25146 flow_find_head_matching_sequence): Declare functions.
25148 2010-04-14 Jason Merrill <jason@redhat.com>
25151 * c-common.c (attribute_takes_identifier_p): New fn.
25152 * c-common.h: Declare it.
25154 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25156 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
25157 splitter condition.
25158 (*udivmod<mode>4): Ditto.
25160 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25162 * config/i386/i386.md (maxmin_int): Rename code attribute from
25163 maxminiprefix and update all users.
25164 (maxmin_float): Ditto from maxminfprefix.
25165 (logic): Ditto from logicprefix.
25166 (absneg_mnemonic): Ditto from absnegprefix.
25167 * config/i386/mmx.md: Update all users of maxminiprefix,
25168 maxminfprefix and logicprefix for rename.
25169 * config/i386/sse.md: Ditto.
25170 * config/i386/sync.md (sync_<code><mode>): Update for
25171 logicprefix rename.
25173 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
25176 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
25177 warnings converted to errors.
25179 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25181 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
25182 used insn_type variable.
25183 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
25184 to avoid set-but-not-used warning.
25186 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25188 * df-core.c (df_ref_debug): Change format string placeholder
25190 * dwarf2asm.c (dw2_asm_output_data_raw,
25191 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
25192 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
25193 * dwarf2out.c (output_cfi, output_cfi_directive,
25194 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
25195 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
25197 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
25198 * print-rtl.c (print_rtx): Ditto.
25200 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25202 PR middle-end/42694
25203 * builtins.c (expand_builtin_pow_root): New function to expand pow
25204 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
25205 series of sqrt and cbrt calls under -ffast-math.
25206 (expand_builtin_pow): Call it.
25208 2010-04-14 Michael Matz <matz@suse.de>
25210 PR tree-optimization/42963
25211 * tree-cfg.c (touched_switch_bbs): New static variable.
25212 (group_case_labels_stmt): New function broken out from ...
25213 (group_case_labels): ... here, use the above.
25214 (start_recording_case_labels): Allocate touched_switch_bbs.
25215 (end_recording_case_labels): Deallocate it, call
25216 group_case_labels_stmt.
25217 (gimple_redirect_edge_and_branch): Remember index of affected BB.
25219 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25221 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
25222 from insn template.
25224 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25226 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
25228 2010-04-13 Jan Hubicka <jh@suse.cz>
25230 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
25231 of optimized out static functions.
25232 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
25233 cost computation. Also sanity check for overflows.
25234 (update_caller_keys): Update cgraph_edge_badness call; properly
25235 update fibheap and sanity check that it is up to date.
25236 (add_new_edges_to_heap): Update cgraph_edge_badness.
25237 (cgraph_decide_inlining_of_small_function): Likewise;
25238 add sanity checking that badness in heap is up to date;
25239 improve dumping of reason; Update badness of calls to the
25240 offline copy of function currently inlined; dump badness
25241 of functions not inlined because of unit growth limits.
25243 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
25245 PR middle-end/32628
25246 * c-common.c (pointer_int_sum): Disregard overflow that occured only
25247 because of sign-extension change when converting to sizetype here...
25248 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
25250 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
25251 the folding to constants. Remove redundant final conversion.
25252 (fold_binary) <associate>: Do not associate if the re-association of
25253 constants alone overflows.
25254 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
25255 to the end of the list.
25256 (multiple_of_p) <COND_EXPR>: New case.
25258 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
25260 * opt-functions.awk (opt_sanitized_name): New.
25262 * optc-gen.awk: Use it
25263 * opth-gen.awk: Use it.
25265 2010-04-13 Martin Jambor <mjambor@suse.cz>
25267 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
25268 (sra_modify_assign): Delete stmts loading dead data even if racc has no
25269 children. Call replace_uses_with_default_def_ssa_name to handle
25272 2010-04-13 Michael Matz <matz@suse.de>
25274 PR middle-end/43730
25275 * builtins.c (expand_builtin_interclass_mathfn): Also create
25276 a register if the predicate doesn't match.
25278 2010-04-13 Diego Novillo <dnovillo@google.com>
25280 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
25281 * c-pch.c: Include timevar.h.
25282 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
25283 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
25284 * ggc-common.c: Include timevar.h.
25285 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
25286 * timevar.def (TV_PCH_SAVE): Define.
25287 (TV_PCH_CPP_SAVE): Define.
25288 (TV_PCH_PTR_REALLOC): Define.
25289 (TV_PCH_PTR_SORT): Define.
25290 (TV_PCH_RESTORE): Define.
25291 (TV_PCH_CPP_RESTORE): Define.
25293 2010-04-13 Michael Matz <matz@suse.de>
25295 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
25297 (can_reassociate_p): New function.
25298 (break_up_subtract_bb, reassociate_bb): Use it.
25300 2010-04-13 Richard Guenther <rguenther@suse.de>
25303 * builtins.c (c_readstr): Fix assert.
25305 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
25307 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
25308 when generating cltd insn.
25310 (*ashl<mode>3_1): Remove special handling for register operand 2.
25311 (*ashlsi3_1_zext): Ditto.
25312 (*ashlhi3_1): Ditto.
25313 (*ashlhi3_1_lea): Ditto.
25314 (*ashlqi3_1): Ditto.
25315 (*ashlqi3_1_lea): Ditto.
25316 (*<shiftrt_insn><mode>3_1): Ditto.
25317 (*<shiftrt_insn>si3_1_zext): Ditto.
25318 (*<shiftrt_insn>qi3_1_slp): Ditto.
25319 (*<rotate_insn><mode>3_1): Ditto.
25320 (*<rotate_insn>si3_1_zext): Ditto.
25321 (*<rotate_insn>qi3_1_slp): Ditto.
25323 2010-04-13 Richard Guenther <rguenther@suse.de>
25325 * tree-ssa-structalias.c (callused_id): Remove.
25326 (call_stmt_vars): New.
25327 (get_call_vi): Likewise.
25328 (lookup_call_use_vi): Likewise.
25329 (lookup_call_clobber_vi): Likewise.
25330 (get_call_use_vi): Likewise.
25331 (get_call_clobber_vi): Likewise.
25332 (make_transitive_closure_constraints): Likewise.
25333 (handle_const_call): Adjust to do per-call call-used handling.
25334 (handle_pure_call): Likewise.
25335 (find_what_var_points_to): Remove general callused handling.
25336 (init_base_vars): Likewise.
25337 (init_alias_vars): Initialize call_stmt_vars.
25338 (compute_points_to_sets): Process call-used and call-clobbered
25339 vars for call statements.
25340 (delete_points_to_sets): Free call_stmt_vars.
25342 2010-04-13 Richard Guenther <rguenther@suse.de>
25344 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
25345 Only add RW dependence for dependence distance zero.
25346 Adjust maximal vectorization factor according to dependences.
25347 Move alignment handling ...
25348 (vect_find_same_alignment_drs): ... here. New function.
25349 (vect_analyze_data_ref_dependences): Adjust.
25350 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
25351 (vect_analyze_data_refs): Adjust minimal vectorization factor
25352 according to data references.
25353 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
25354 dependences before determining the vectorization factor.
25355 Analyze alignment after determining the vectorization factor.
25356 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
25357 dependences before alignment.
25358 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
25360 (vect_analyze_data_refs): Likewise.
25361 (MAX_VECTORIZATION_FACTOR): New define.
25363 2010-04-13 Duncan Sands <baldrick@free.fr>
25365 * except.h (lang_eh_type_covers): Remove.
25366 * except.c (lang_eh_type_covers): Likewise.
25368 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25369 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25371 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
25372 * config/s390/s390.c: Replace UNTIS_PER_WORD with
25373 UNITS_PER_LONG where it is ABI relevant.
25374 (s390_return_addr_rtx): Likewise.
25375 (s390_back_chain_rtx): Likewise.
25376 (s390_frame_area): Likewise.
25377 (s390_frame_info): Likewise.
25378 (s390_initial_elimination_offset): Likewise.
25379 (save_gprs): Likewise.
25380 (s390_emit_prologue): Likewise.
25381 (s390_emit_epilogue): Likewise.
25382 (s390_function_arg_advance): Likewise.
25383 (s390_function_arg): Likewise.
25384 (s390_va_start): Likewise.
25385 (s390_gimplify_va_arg): Likewise.
25386 (s390_function_profiler): Likewise.
25387 (s390_optimize_prologue): Likewise.
25388 (s390_rtx_costs): Likewise.
25389 (s390_secondary_reload): Likewise.
25390 (s390_promote_function_mode): Likewise.
25391 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
25392 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
25393 registers available.
25394 (s390_unwind_word_mode): New function.
25395 (s390_function_value): Split 64 bit values into register pair if
25396 used as return value.
25397 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
25398 function call parameters. Handle parallels.
25399 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
25400 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
25401 (DWARF_CIE_DATA_ALIGNMENT): New macro.
25402 (s390_expand_setmem): Remove unused variable src_addr.
25403 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
25404 deal with 64 bit registers.
25405 * config/s390/s390.h: Define __zarch__ predefined macro.
25406 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
25407 (UNITS_PER_LONG): New macro.
25408 * libjava/include/s390-signal.h: Define extended ucontext
25409 structure containing the upper halfs of the 64 bit registers.
25411 2010-04-13 Simon Baldwin <simonb@google.com>
25413 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
25415 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
25417 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
25418 rvalue on the RHS if the LHS is of a non-renamable type.
25419 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
25421 2010-04-13 Matthias Klose <doko@ubuntu.com>
25423 * gcc.c (cc1_options): Handle -iplugindir before processing
25424 the cc1 spec. Only add -iplugindir once.
25425 (cpp_unique_options): Add -iplugindir option if -fplugin* options
25427 * common.opt (iplugindir): Remove `Separate' property, initialize.
25428 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
25430 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
25431 (distclean): Remove plugin dir.
25432 * doc/invoke.texi: Document -iplugindir.
25434 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
25436 * doc/plugins.texi (Loading Plugins): Document short
25437 -fplugin=foo option.
25438 (Plugin API): Mention default_plugin_dir_name function.
25440 * gcc.c (find_file_spec_function): Add new declaration.
25441 (static_spec_func): Use it for "find-file".
25442 (find_file_spec_function): Add new function.
25443 (cc1_options): Add -iplugindir option if -fplugin* options found.
25445 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
25447 * plugin.c (add_new_plugin): Updated comment, and handle short
25449 (default_plugin_dir_name): Added new function.
25451 * common.opt (iplugindir): New option to set the plugin directory.
25453 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
25455 * config/i386/i386.md (any_rotate): New code iterator.
25456 (rotate_insn): New code attribute.
25458 (SWIM124): New mode iterator.
25459 (<rotate_insn>ti3): New expander.
25460 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
25461 any_rotate code iterator.
25462 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
25463 using any_rotate code iterator and SWIM124 mode iterator.
25464 (ix86_rotlti3): New insn_and_split pattern.
25465 (ix86_rotrti3): Ditto.
25466 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
25467 ix86_rotl{di,ti}3 patterns.
25468 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
25469 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
25470 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
25471 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
25472 code iterator and SWI mode iterator.
25473 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
25474 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
25476 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
25477 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
25478 (bswap rotatert splitter): Add splitter.
25479 (bswap splitter): Macroize splitter using any_rotate code iterator.
25480 Add insn predicate to split only for TARGET_USE_XCHGB or when
25481 optimizing function for size.
25483 2010-04-12 Steve Ellcey <sje@cup.hp.com>
25485 * config/pa/pa.c (emit_move_sequence): Remove use of
25486 deleted variable flag_argument_noalias.
25488 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25490 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
25492 Add to unsupported targets list.
25493 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
25494 sparc*-sun-solaris2.[567]* from target lists.
25495 * configure: Regenerate.
25496 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
25498 Remove Solaris 7 patch references.
25499 (Specific, sparc-sun-solaris2.7): Removed.
25500 (sparc-sun-solaris2*): Update Solaris 7 example.
25501 (sparc64-*-solaris2*): Likewise.
25503 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25505 * config.build (alpha*-dec-osf4*): Remove.
25506 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
25507 of obsolete configurations.
25508 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
25510 * config/alpha/t-osf4: Renamed to ...
25511 * config/alpha/t-osf5: ... this.
25512 * config/alpha/osf.h: Renamed to ...
25513 * config/alpha/osf5.h: ... this.
25514 Merged old osf5.h contents.
25516 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
25517 (EXTRA_SPECS): Removed.
25518 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
25519 reflect removal of Tru64 UNIX V4.0/V5.0 support.
25522 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25524 * doc/contrib.texi (Contributors, Rainer Orth): Update.
25526 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
25529 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
25530 __thiscall convention.
25532 2010-04-12 Steve Ellcey <sje@cup.hp.com>
25534 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
25536 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
25538 2010-04-12 Steve Ellcey <sje@cup.hp.com>
25540 * function.c (assign_parms_initialize_all): Add unused attribute
25543 2010-04-12 Richard Guenther <rguenther@suse.de>
25545 * gsstruct.def (GSS_CALL): New.
25546 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
25547 * gimple.h: Include tree-ssa-alias.h.
25548 (struct gimple_statement_call): New.
25549 (union gimple_statement_struct_d): Add gimple_call member.
25550 (gimple_call_reset_alias_info): Declare.
25551 (gimple_call_use_set): New function.
25552 (gimple_call_clobber_set): Likewise.
25553 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
25554 * gimple.c (gimple_call_reset_alias_info): New function.
25555 (gimple_build_call_1): Call it.
25556 * lto-streamer-in.c (input_gimple_stmt): Likewise.
25557 * tree-inline.c (remap_gimple_stmt): Likewise.
25558 (expand_call_inline): Remove callused handling.
25559 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
25560 * tree-dfa.c (dump_variable): Likewise.
25561 * tree-parloops.c (parallelize_loops): Likewise.
25562 * tree-ssa.c (init_tree_ssa): Likewise.
25563 (delete_tree_ssa): Likewise.
25564 * tree-flow-inline.h (is_call_used): Remove.
25565 * tree-flow.h (struct gimple_df): Remove callused member.
25566 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
25567 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
25568 (ref_maybe_used_by_call_p_1): Simplify.
25569 (call_may_clobber_ref_p_1): Likewise.
25570 * tree-ssa-structalias.c (compute_points_to_sets): Set
25571 the call stmt used and clobbered sets.
25572 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
25573 (find_tail_calls): Verify the tail call.
25575 2010-04-12 Richard Guenther <rguenther@suse.de>
25577 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
25578 single-iteration always-inline inlining.
25579 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
25580 (cgraph_decide_inlining): Do not handle always-inline specially.
25581 (try_inline): Remove always-inline cycle detection special case.
25582 Do not recurse on always-inlines.
25583 (cgraph_early_inlining): Do not iterate if not optimizing.
25584 (cgraph_gate_early_inlining): remove.
25585 (pass_early_inline): Run unconditionally.
25586 (gate_cgraph_decide_inlining): New function.
25587 (pass_ipa_inline): Use it. Do not run the IPA inliner if
25588 not inlining or optimizing.
25589 (cgraph_decide_inlining_of_small_functions): Also consider
25590 always-inline functions.
25591 (cgraph_default_inline_p): Return true for nodes which should
25592 disregard inline limits.
25593 (estimate_function_body_sizes): Assume zero size and time for
25594 nodes which are marked as disregarding inline limits.
25595 (cgraph_decide_recursive_inlining): Do not perform recursive
25596 inlining on always-inline nodes.
25598 2010-04-12 Jakub Jelinek <jakub@redhat.com>
25601 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
25602 for exprs satisfying handled_component_p.
25604 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
25606 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
25607 non-constant aggregate elements.
25609 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
25610 is a real initialization.
25612 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
25615 * c-decl.c (start_function): Move forward check for nested function.
25617 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
25619 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
25620 * config/sh/sh.c: Include reload.h.
25621 (sh_legitimize_reload_address): New.
25622 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
25623 sh_legitimize_reload_address.
25625 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25627 * config/sh/sh.md (*movqi_pop): New insn pattern.
25628 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
25630 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
25632 * config/i386/i386.md (any_shiftrt): New code iterator.
25633 (shiftrt_insn): New code attribute.
25635 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
25636 using any_shiftrt code iterator.
25637 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
25638 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
25639 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
25640 pattern from corresponding peephole2 patterns.
25641 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
25642 using any_shiftrt code iterator.
25643 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
25644 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
25645 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
25646 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
25647 *{ashr,lshr}<mode>3_cmp_zext.
25648 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
25650 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
25652 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
25654 (*lshr<mode>3_cconly): Ditto.
25656 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
25658 * config/i386/i386.md (lshr<mode>3): Macroize expander from
25659 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
25660 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
25661 pattern from *lshr{di,ti}3_1 and corresponding splitters using
25663 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
25664 from corresponding peephole2 patterns.
25665 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
25666 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
25667 and *lshrdi3_1_rex64 using SWI mode iterator.
25668 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
25669 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
25670 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
25671 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
25672 and *lshrdi3_cmp_rex64 using SWI mode iterator.
25673 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
25674 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
25675 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
25676 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
25679 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
25681 * config/i386/i386.md (ashr<mode>3): Macroize expander from
25682 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
25683 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
25684 pattern from *ashr{di,ti}3_1 and corresponding splitters using
25686 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
25687 from corresponding peephole2 patterns.
25688 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
25689 (ashrsi3_cvt): Rename from ashrsi3_31.
25690 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
25691 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
25692 and x86_64_shift_adj_3 using SWI48 mode iterator.
25693 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
25694 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
25695 and *ashrdi3_1_rex64 using SWI mode iterator.
25696 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
25697 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
25698 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
25699 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
25700 and *ashrdi3_cmp_rex64 using SWI mode iterator.
25701 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
25702 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
25703 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
25704 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
25706 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
25707 * config/i386/i386.c (ix86_split_ashr): Update for renamed
25708 x86_shift<mode>_adj_3 expanders.
25710 2010-04-10 Wei Guozhi <carrot@google.com>
25713 * config/arm/arm.c (arm_pic_static_addr): New function.
25714 (legitimize_pic_address): Call arm_pic_static_addr when it detects
25716 (arm_output_addr_const_extra): Output expression for new pattern.
25717 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
25719 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
25721 * ira-costs.c (record_reg_classes): Ignore alternatives that are
25724 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
25725 * web.c: Include "insn-config.h" and "recog.h".
25726 (union_match_dups): New function.
25727 (web_main): Call it.
25728 (union_defs): Don't try to recognize match_dups.
25730 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
25731 if doing so would replace the entire pattern.
25733 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
25737 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
25738 and splitter pattern. Change splitter operand 1 predicate to
25741 2010-04-09 Martin Jambor <mjambor@suse.cz>
25743 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
25744 lattices are addresses of CONST_DECLs with the same initial value.
25745 (ipcp_print_all_lattices): Print values of CONST_DECLs.
25746 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
25748 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
25749 Bernd Schmidt <bernds@codesourcery.com>
25751 * loop-invariant.c (replace_uses): New static function.
25752 (move_invariant_reg): Use it to ensure we can replace the uses.
25754 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
25756 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
25758 (picochip_override_options): Enable section anchors only above -O1.
25759 (picochip_reorg): Fixed a couple of build warnings.
25761 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25763 * configure.ac (plugin -rdynamic test): Log result.
25764 * configure: Regenerate.
25765 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
25766 (RDYNAMIC_SPEC): Define.
25767 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
25769 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25771 * configure.ac: Determine Sun ld version numbers.
25772 (comdat_group): Restrict GNU ld version checks to gld.
25773 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
25774 (enable_comdat): Support --enable-comdat.
25775 * configure: Regenerate.
25776 * doc/install.texi (Configuration): Document --enable-comdat.
25778 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25780 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
25781 * config/sol2-gld.h: ... here.
25782 * config.gcc (sparc*-*-solaris2*): Reflect this.
25783 (i[34567]86-*-solaris2*): Use it.
25785 2010-04-09 Steve Ellcey <sje@cup.hp.com>
25787 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
25789 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
25791 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
25794 * diagnostic.c (diagnostic_initialize): Initialize
25795 some_warnings_are_errors.
25796 (diagnostic_finish): New.
25797 (diagnostic_action_after_output): Call it before exiting.
25798 (diagnostic_report_diagnostic): Do not print message here. Set
25799 some_warnings_are_errors.
25800 * diagnostic.h (diagnostic_context): Delete
25801 issue_warnings_are_errors_message. Add some_warnings_are_errors.
25802 (diagnostic_finish): Declare.
25803 * toplev.c (toplev_main): Call it before exit.
25805 2010-04-09 Jason Merrill <jason@redhat.com>
25808 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
25809 for incomplete type.
25812 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
25813 based on a warning flag.
25815 2010-04-09 Richard Guenther <rguenther@suse.de>
25817 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
25819 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
25822 * varasm.c (default_assemble_visibility): Wrap vars that are
25823 set, but unused, by targets without GAS.
25824 * config/rs6000/rs6000.c (paired_emit_vector_compare):
25825 Remove set, but unused, vars.
25826 (rs6000_legitimize_tls_address): Likewise.
25827 (altivec_expand_dst_builtin): Likewise.
25828 * config/darwin.c (machopic_classify_symbol): Likewise.
25829 (machopic_indirection_name): Likewise.
25831 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
25833 * config/i386/i386.md (DWI): New mode iterator.
25834 (S): New mode attribute.
25835 (shift_operand): Ditto.
25836 (shift_immediate_operand): Ditto.
25837 (ashl_input_operand): Ditto.
25838 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
25839 using SDWIM mode iterator.
25840 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
25841 pattern from *ashl{di,ti}3_1 and corresponding splitters using
25843 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
25844 from corresponding peephole2 patterns.
25845 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
25846 and x86_64_shift_adj_1 using SWI48 mode iterator.
25847 (x86_shift<mode>_adj_2): Ditto.
25848 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
25849 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
25850 using SWI48 mode iterator.
25851 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
25852 *ashldi3_cmp_rex64 using SWI mode iterator.
25853 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
25854 *ashldi3_cconly_rex64 using SWI mode iterator.
25855 * config/i386/i386.c (ix86_split_ashl): Update for renamed
25856 x86_shift<mode>_adj_{1,2}.
25857 (ix86_split_ashr): Ditto.
25858 (ix86_split_lshr): Ditto.
25860 2010-04-09 Richard Guenther <rguenther@suse.de>
25862 * target.h (builtin_conversion): Pass in input and output types.
25863 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
25864 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
25865 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
25866 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
25868 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
25870 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
25872 2010-04-09 Richard Guenther <rguenther@suse.de>
25875 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
25877 2010-04-09 Richard Guenther <rguenther@suse.de>
25879 * tree-vectorizer.h (struct _stmt_vec_info): Document
25880 that vectype is the type of the LHS.
25881 (supportable_widening_operation, supportable_narrowing_operation):
25882 Get both input and output vector types as arguments.
25883 (vect_is_simple_use_1): Declare.
25884 (get_same_sized_vectype): Likewise.
25885 * tree-vect-loop.c (vect_determine_vectorization_factor):
25886 Set STMT_VINFO_VECTYPE to the vector type of the def.
25887 (vectorizable_reduction): Adjust.
25888 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
25889 Adjust. Specify the output vector type.
25890 (vect_pattern_recog_1): Adjust.
25891 * tree-vect-stmts.c (get_same_sized_vectype): New function.
25892 (vectorizable_call): Adjust.
25893 (vectorizable_conversion): Likewise.
25894 (vectorizable_operation): Likewise.
25895 (vectorizable_type_demotion): Likewise.
25896 (vectorizable_type_promotion): Likewise.
25897 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
25899 (vect_is_simple_use_1): New function.
25900 (supportable_widening_operation): Get both input and output
25902 (supportable_narrowing_operation): Likewise.
25903 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
25905 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
25907 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
25908 __thiscall and _thiscall as predefined macros.
25909 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
25910 thiscall attribute handling.
25911 (ix86_comp_type_attributes): Likewise.
25912 (ix86_function_regparm): Likewise.
25913 (ix86_return_pops_args): Likewise.
25914 (init_cumulative_args): Likewise.
25915 (find_drap_reg): Likewise.
25916 (ix86_static_chain): Likewise.
25917 (x86_this_parameter): Likewise.
25918 (x86_output_mi_thunk): Likewise.
25919 (ix86_attribute_table): Add description for thiscall attribute.
25920 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
25921 * doc/extend.texi: Add documentation for thiscall.
25923 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
25926 * c.opt (Wint-to-pointer-cast): Available in C++.
25927 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
25929 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
25931 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
25932 * calls.c (expand_call): Pass the function type to aggregate_value_p.
25933 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
25934 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
25935 function type instead. Reorder and simplify checks.
25937 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
25939 2010-04-08 Jing Yu <jingyu@google.com>
25940 Zdenek Dvorak <ook@ucw.cz>
25942 PR tree-optimization/42720
25943 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
25944 loop unswitch conditions here from ...
25945 (tree_unswitch_single_loop): ... here.
25947 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
25949 * tree-if-conv.c: Fix comments and simplify logic.
25951 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
25953 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
25954 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
25955 (main_tree_if_conversion): Update call to tree_if_conversion.
25957 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
25960 * doc/invoke.texi (-b,-V): Delete.
25961 * doc/tm.texi: Do not mention -b.
25962 * gcc.c (display_help): Delete -b and -V.
25963 (process_command): Delete -b and -V.
25964 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
25966 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
25967 Wolfgang Gellerich <gellerich@de.ibm.com>
25969 Implement target hook for loop unrolling
25970 * target.h (loop_unroll_adjust): Add a new target hook function.
25971 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
25972 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
25973 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
25974 (s390_loop_unroll_adjust): Implement the new target hook for s390.
25975 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
25977 (decide_unroll_stupid): Likewise.
25979 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25982 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
25984 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25986 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
25987 (Specific, *-*-solaris2*): Likewise.
25988 Don't prefer Sun as over GNU as.
25990 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
25992 * config/s390/s390.c (override_options): Adjust the z10 defaults
25993 for max-unroll-times, max-completely-peeled-insns
25994 and max-completely-peel-times.
25996 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25998 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
25999 instructions for z10.
26000 (s390_expand_setmem): Likewise.
26001 (s390_expand_cmpmem): Likewise.
26003 2010-04-08 Richard Guenther <rguenther@suse.de>
26005 PR tree-optimization/43679
26006 * tree-ssa-pre.c (eliminate): Only propagate copies.
26008 2010-04-08 Jakub Jelinek <jakub@redhat.com>
26011 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
26012 set but not used variable warning.
26014 2010-04-08 Wei Guozhi <carrot@google.com>
26017 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
26018 (arm_size_rtx_costs): Call the new function when optimized for size.
26020 2010-04-08 Jakub Jelinek <jakub@redhat.com>
26023 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
26024 op0 is not a MEM, just return NULL instead of assertion
26026 (discover_nonconstant_array_refs): Don't walk debug stmts.
26028 2010-04-08 Doug Kwan <dougkwan@google.com>
26030 * configure.ac: Recognize gold and do not use its version number
26031 to test ld features.
26032 * configure: Regenerate.
26034 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
26036 PR middle-end/40815
26037 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
26038 (negate_value): Move code to push elements to broken_up_substracts ...
26039 (eliminate_plus_minus_pair): ... here. Push operands that have no
26040 negative pair to plus_negates.
26041 (repropagate_negates, init_reassoc, fini_reassoc): Update.
26043 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26045 * doc/install.texi (Configuration): Move description of
26046 --enable-lto, --with-libelf*, --enable-gold from Java section to
26049 * doc/generic.texi (Working with declarations)
26050 (Function Properties, C and C++ Trees): Fix typos.
26051 * doc/sourcebuild.texi (Top Level): Likewise.
26053 2010-04-07 Jakub Jelinek <jakub@redhat.com>
26056 * tree.h (DECL_READ_P): Define.
26057 (struct tree_decl_common): Add decl_read_flag.
26058 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
26059 a set but not used warning.
26060 (merge_decls): Merge DECL_READ_P flag.
26061 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
26062 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
26063 * c-common.c (handle_used_attribute, handle_unused_attribute):
26065 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
26067 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
26069 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
26070 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
26071 c_parser_binary_expression, c_parser_cast_expression,
26072 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
26073 Call default_function_array_read_conversion instead of
26074 default_function_array_conversion where needed.
26075 (c_parser_unary_expression, c_parser_conditional_expression,
26076 c_parser_postfix_expression_after_primary, c_parser_initelt):
26077 Likewise. Call mark_exp_read where needed.
26078 (c_parser_statement_after_labels, c_parser_asm_operands,
26079 c_parser_typeof_specifier, c_parser_sizeof_expression,
26080 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
26082 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
26084 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
26085 (warn_unused_but_set_parameter): Default to warn_unused
26087 * doc/invoke.texi: Document -Wunused-but-set-variable and
26088 -Wunused-but-set-parameter.
26090 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
26091 used count variable.
26092 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
26093 when operandN variables aren't used in the body of the expander
26095 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
26096 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
26097 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
26098 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
26099 FOR_EACH_IMM_USE_ON_STMT): Likewise.
26100 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
26101 * tree.c (PROCESS_ARG): Likewise.
26103 2010-04-07 Simon Baldwin <simonb@google.com>
26105 * diagnostic.h (diagnostic_override_option_index): New macro to
26106 set a diagnostic's option_index.
26107 * c-tree.h (c_cpp_error): Add warning reason argument.
26108 * opts.c (_warning_as_error_callback): New.
26109 (register_warning_as_error_callback): Store callback for
26110 warnings enabled via enable_warning_as_error.
26111 (enable_warning_as_error): Call callback, minor code tidy.
26112 * opts.h (register_warning_as_error_callback): Declare.
26113 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
26114 response to -Werror=.
26115 (c_common_init_options): Register warning_as_error_callback in opts.c.
26116 * common.opt: Add -Wno-cpp option.
26117 * c-common.c (struct reason_option_codes_t): Map cpp warning
26118 reason codes to gcc option indexes.
26119 * (c_option_controlling_cpp_error): New function, lookup the gcc
26120 option index for a cpp warning reason code.
26121 * (c_cpp_error): Add warning reason argument, call
26122 c_option_controlling_cpp_error for diagnostic_override_option_index.
26123 * doc/invoke.texi: Document -Wno-cpp.
26125 2010-04-07 Richard Guenther <rguenther@suse.de>
26127 * ipa-reference.c (mark_load): Use get_base_address.
26128 (mark_store): Likewise.
26130 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
26131 inserting GIMPLE_NOPs into the IL.
26132 * tree-ssa-structalias.c (get_constraint_for_component_ref):
26133 Explicitly strip handled components and indirect references.
26135 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
26136 folding address expressions.
26137 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
26138 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
26139 operand_equal_p to compare decls.
26140 (ptr_deref_may_alias_decl_p): Likewise.
26141 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
26142 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
26143 Handle reversed comparison ops.
26144 * tree-sra.c (asm_visit_addr): Use get_base_address.
26145 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
26146 * ipa-reference.c (mark_address): Use get_base_address.
26148 2010-04-07 Richard Guenther <rguenther@suse.de>
26150 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
26151 Propagate constants everywhere.
26153 2010-04-07 Jakub Jelinek <jakub@redhat.com>
26156 * tree.c (MAX_INT_CACHED_PREC): Define.
26157 (nonstandard_integer_type_cache): New array.
26158 (build_nonstandard_integer_type): Cache results for precision
26159 <= MAX_INT_CACHED_PREC.
26161 2010-04-07 Richard Guenther <rguenther@suse.de>
26163 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
26164 -fargument-noalias-global, -fargument-noalias-anything): Remove.
26165 * common.opt: Likewise.
26166 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
26167 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
26168 (nonoverlapping_memrefs_p): Likewise.
26169 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
26170 * opts.c (common_handle_option): Handle OPT_fargument_alias,
26171 OPT_fargument_noalias, OPT_fargument_noalias_anything and
26172 OPT_fargument_noalias_global for backward compatibility.
26174 2010-04-07 Richard Guenther <rguenther@suse.de>
26176 PR tree-optimization/43270
26177 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
26178 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
26179 * tree-ssa-pre.c (phi_translate_1): Adjust.
26180 (fully_constant_expression): Split out vn_reference handling to ...
26181 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
26182 Fold reads from constant strings.
26183 (vn_reference_lookup): Handle fully constant references.
26184 (vn_reference_lookup_pieces): Likewise.
26185 * Makefile.in (expmed.o-warn): Add -Wno-error.
26187 2010-04-07 Martin Jambor <mjambor@suse.cz>
26189 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
26191 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
26194 * gcc.c: Add -static-libstdc++ to list of recognized options.
26196 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26198 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
26200 2010-04-07 Richard Guenther <rguenther@suse.de>
26202 PR middle-end/42617
26203 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
26204 bases build simple mem attributes to retain points-to information.
26206 2010-04-07 Richard Guenther <rguenther@suse.de>
26208 PR middle-end/42617
26209 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
26210 preserve points-to related information.
26212 2010-04-07 Richard Guenther <rguenther@suse.de>
26214 PR middle-end/42617
26215 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
26216 discard plain indirect references.
26217 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
26218 * tree.c (tree_nop_conversion): Likewise.
26220 2010-04-07 Dodji Seketeli <dodji@redhat.com>
26223 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
26225 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
26227 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
26228 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
26230 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
26232 * tree-if-conv.c: Fix indentation and comments.
26234 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
26236 * tree-if-conv.c: Sort static functions in topological order.
26238 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
26240 * tree-if-conv.c: Fix indentation and comments.
26242 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26244 PR middle-end/43519
26245 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
26246 lang_hooks.types.type_for_size instead of
26247 build_nonstandard_integer_type.
26248 When converting an unsigned type to signed, double its precision.
26249 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
26250 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
26251 (graphite_create_new_loop_guard): When ub + 1 wraps around,
26254 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26256 PR middle-end/43519
26257 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
26258 POINTER_PLUS_EXPR for pointer types.
26260 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26262 PR middle-end/43519
26263 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
26264 * graphite-clast-to-gimple.c: Include langhooks.h.
26265 (max_signed_precision_type): New.
26266 (max_precision_type): Takes two types as arguments.
26267 (precision_for_value): New.
26268 (precision_for_interval): New.
26269 (gcc_type_for_interval): New.
26270 (gcc_type_for_value): New.
26271 (gcc_type_for_clast_term): New.
26272 (gcc_type_for_clast_red): New.
26273 (gcc_type_for_clast_bin): New.
26274 (gcc_type_for_clast_expr): Split up into several functions.
26275 (gcc_type_for_clast_eq): Rewritten.
26276 (compute_bounds_for_level): New.
26277 (compute_type_for_level_1): New.
26278 (compute_type_for_level): New.
26279 (gcc_type_for_cloog_iv): Removed.
26280 (gcc_type_for_iv_of_clast_loop): Rewritten.
26281 (graphite_create_new_loop): Compute the lower and upper bound types
26282 with gcc_type_for_clast_expr.
26283 (graphite_create_new_loop_guard): Same.
26284 (find_cloog_iv_in_expr): Removed.
26285 (compute_cloog_iv_types_1): Removed.
26286 (compute_cloog_iv_types): Removed.
26287 (gloog): Do not call compute_cloog_iv_types.
26288 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
26289 GBB_CLOOG_IV_TYPES.
26290 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
26291 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
26292 (GBB_CLOOG_IV_TYPES): Removed.
26294 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26296 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
26297 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
26298 (detect_commutative_reduction): Same.
26300 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26302 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
26303 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
26305 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
26306 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
26307 (rewrite_commutative_reductions_out_of_ssa): Same.
26308 * passes.c (execute_function_todo): Call verify_ssa for every pass
26309 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
26310 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
26311 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
26312 with an extra argument.
26313 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
26314 verify_ssa only when the extra argument is true.
26315 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
26316 with an extra argument.
26317 (tree_transform_and_unroll_loop): Same.
26319 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26321 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
26322 for all the passes of the LNO having LOOP_CLOSED_SSA.
26323 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
26324 * tree-loop-distribution.c (pass_loop_distribution): Same.
26325 * tree-pass.h (TODO_verify_loops): Removed.
26326 * tree-ssa-loop.c (pass_tree_loop_init): Same.
26328 (pass_tree_unswitch): Same.
26329 (pass_predcom): Same.
26330 (pass_vectorize): Same.
26331 (pass_linear_transform): Same.
26332 (pass_graphite_transforms): Same.
26333 (pass_iv_canon): Same.
26334 (pass_complete_unroll): Same.
26335 (pass_complete_unrolli): Same.
26336 (pass_parallelize_loops): Same.
26337 (pass_loop_prefetch): Same.
26338 (pass_iv_optimize): Same.
26340 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
26342 PR middle-end/32824
26343 * passes.c (init_optimization_passes): Move pass_lim before
26344 pass_copy_prop and pass_dce_loop.
26346 2010-04-06 Jakub Jelinek <jakub@redhat.com>
26349 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
26350 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
26351 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
26352 MULTI_* defines for 4 argument vpermil2p* builtins.
26354 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
26356 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
26357 * config/i386/i386.c (x86_maybe_negate_const_int): New.
26358 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
26359 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
26360 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
26361 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
26362 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
26363 Use x86_maybe_negate_const_int to output insn mnemonic.
26364 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
26365 check from instruction predicate. Update comments.
26366 * config/i386/sync.md (sync_add<mode>): Use
26367 x86_maybe_negate_const_int to output insn mnemonic.
26369 2010-04-06 Jan Hubicka <jh@suse.cz>
26371 PR tree-optimization/42906
26372 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
26373 IGNORE_SELF argument. Set visited_control_parents for fully
26375 (find_obviously_necessary_stmts): Update call of
26376 mark_control_dependent_edges_necessary.
26377 (propagate_necessity): Likewise. Handle PHI edges more curefully.
26379 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
26381 * config/i386/i386.md: Remove comment about 'e' and 'E'
26384 2010-04-06 Richard Guenther <rguenther@suse.de>
26386 PR tree-optimization/43627
26387 * tree-vrp.c (extract_range_from_unary_expr): Widenings
26388 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
26391 2010-04-06 Jakub Jelinek <jakub@redhat.com>
26393 * BASE-VER: Change to 4.6.0.
26396 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
26399 2010-04-06 Richard Guenther <rguenther@suse.de>
26401 PR middle-end/43661
26402 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
26404 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26406 * doc/invoke.texi (Optimize Options): Document that LTO
26407 won't remove object access purely due to incompatible
26410 2010-04-04 Matthias Klose <doko@ubuntu.com>
26412 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
26413 Initialize variable.
26415 2010-04-03 Richard Guenther <rguenther@suse.de>
26417 PR middle-end/42509
26418 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
26419 require a non-NULL MEM_OFFSET.
26421 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
26423 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
26424 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
26425 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
26426 config/alpha/predicates.md, config/arm/arm.md,
26427 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
26428 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
26429 config/darwin9.h, config/darwin.c, config/darwin.h,
26430 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
26431 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
26432 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
26433 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
26434 config/mips/mips.md, config/mn10300/mn10300.c,
26435 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
26436 config/rs6000/aix.h, config/rs6000/dfp.md,
26437 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
26438 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
26439 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
26440 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
26441 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
26442 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
26443 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
26444 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
26445 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
26446 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
26447 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
26448 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
26449 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
26450 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
26451 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
26452 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
26453 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
26454 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
26455 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
26456 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
26457 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
26458 opt-functions.awk, opth-gen.awk, params.def, passes.c,
26459 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
26460 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
26461 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
26462 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
26463 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
26464 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
26465 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
26466 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
26467 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
26468 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
26469 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
26470 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
26471 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
26472 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
26474 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26477 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
26478 * aclocal.m4: Regenerate.
26480 2010-04-02 Richard Guenther <rguenther@suse.de>
26482 PR tree-optimization/43629
26483 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
26484 if we have seen a constant value.
26486 2010-04-02 Joseph Myers <joseph@codesourcery.com>
26488 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
26490 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
26493 * arm.c (legitimize_tls_address): Adjust call to
26494 gen_tls_load_dot_plus_four.
26495 (arm_note_pic_base): New function.
26496 (arm_cannot_copy_insn_p): Use it.
26497 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
26500 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26505 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26507 * Makefile.in ($(out_object_file)): Depend on
26508 gt-$(basename $(notdir $(out_file))).h.
26510 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
26512 * config.gcc (lm32-*-rtems*): Add t-lm32.
26514 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
26516 * config.gcc: Add lm32-*-rtems*.
26517 * config/lm32/rtems.h: New file.
26519 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
26522 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
26524 2010-04-01 Jakub Jelinek <jakub@redhat.com>
26526 * dwarf2out.c (output_compilation_unit_header): For
26527 -gdwarf-4 use version 4 instead of version 3.
26528 (output_line_info): For version 4 and above emit additional
26529 maximum ops per insn header field.
26530 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
26532 * dwarf2out.c (is_c_family, is_java): Remove.
26533 (lower_bound_default): New function.
26534 (add_bound_info, gen_descr_array_type_die): Use it.
26536 2010-04-01 Dodji Seketeli <dodji@redhat.com>
26539 * dwarf2out.c (gen_variable_die): Allow debug info for variable
26540 re-declaration when it happens in a function.
26542 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
26544 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
26545 (cgraph_remove_function_insertion_hook): Same.
26546 (cgraph_call_function_insertion_hooks): Same.
26548 2010-04-01 Richard Guenther <rguenther@suse.de>
26550 PR middle-end/43614
26551 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
26552 and TREE_THIS_VOLATILE.
26553 (copy_ref_info): Likewise.
26554 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
26555 * tree.c (build6_stat): Ignore side-effects of all but arg5
26556 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
26559 2010-04-01 Richard Guenther <rguenther@suse.de>
26561 PR tree-optimization/43607
26562 * ipa-type-escape.c (check_call): Do not access non-existing
26565 2010-04-01 Richard Guenther <rguenther@suse.de>
26567 PR middle-end/43602
26569 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
26570 Jack Howarth <howarth@bromo.med.uc.edu>
26572 * tree-profile.c (tree_init_ic_make_global_vars): Make static
26575 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26577 * doc/install.texi (Prerequisites): Document libelf usability on
26578 IRIX 5/6 and Solaris 2.
26579 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
26580 Update GNU as, GNU ld requirements.
26581 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
26582 Document Sun Studio compiler download.
26583 Update and simplify as, ld recommendations.
26584 (Specific, *-*-solaris2.7): Note obsoletion, removal.
26586 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26588 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
26589 with_tune_32 to pentium4.
26591 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
26593 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
26595 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26597 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
26598 obsoletion, removal.
26600 Document GNU as requirement.
26601 Update configure requirements.
26602 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
26603 Recomment IRIX 6.5.18+.
26604 Document IDF/IDL requirement.
26605 Document GNU as requirement.
26606 Document GNU ld bootstrap failure.
26607 Remove freeware.sgi.com reference.
26609 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26611 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
26612 UNIX V4.0, V5.0 obsoletion, removal.
26613 Remove --with-gc=simple reference.
26614 Update VM requirements during bootstrap.
26615 Remove -oldas bootstrap description.
26616 Update binutils reference.
26617 Remove comparison failure note.
26619 2010-03-31 Richard Guenther <rguenther@suse.de>
26620 Zdenek Dvorak <ook@ucw.cz>
26621 Sebastian Pop <sebastian.pop@amd.com>
26623 PR middle-end/43464
26624 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
26625 with multiple arguments.
26626 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
26628 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
26630 * graphite-dependences.c (print_pddr): Call print_pdr with an
26632 * graphite-poly.c (debug_pdr): Add an extra argument for the
26635 (print_pbb_domain): Same.
26637 (print_scop_context): Same.
26638 (print_scop): Same.
26639 (print_cloog): Same.
26640 (debug_pbb_domain): Same.
26642 (print_pdrs): Same.
26643 (debug_pdrs): Same.
26644 (debug_scop_context): Same.
26645 (debug_scop): Same.
26646 (debug_cloog): Same.
26647 (print_scop_params): Same.
26648 (debug_scop_params): Same.
26649 (print_iteration_domain): Same.
26650 (print_iteration_domains): Same.
26651 (debug_iteration_domain): Same.
26652 (debug_iteration_domains): Same.
26653 (print_scattering_function): Same.
26654 (print_scattering_functions): Same.
26655 (debug_scattering_function): Same.
26656 (debug_scattering_functions): Same.
26657 * graphite-poly.h (debug_pdr): Update declaration.
26659 (print_pbb_domain): Same.
26661 (print_scop_context): Same.
26662 (print_scop): Same.
26663 (print_cloog): Same.
26664 (debug_pbb_domain): Same.
26666 (print_pdrs): Same.
26667 (debug_pdrs): Same.
26668 (debug_scop_context): Same.
26669 (debug_scop): Same.
26670 (debug_cloog): Same.
26671 (print_scop_params): Same.
26672 (debug_scop_params): Same.
26673 (print_iteration_domain): Same.
26674 (print_iteration_domains): Same.
26675 (debug_iteration_domain): Same.
26676 (debug_iteration_domains): Same.
26677 (print_scattering_function): Same.
26678 (print_scattering_functions): Same.
26679 (debug_scattering_function): Same.
26680 (debug_scattering_functions): Same.
26682 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
26684 * graphite-poly.c (print_scattering_function_1): New.
26685 (print_scattering_function): Call it.
26686 (print_scop_params): Remove spaces at the end of lines.
26687 (print_cloog): New.
26688 (debug_cloog): New.
26689 * graphite-poly.h (print_cloog): Declared.
26690 (debug_cloog): Declared.
26692 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
26694 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
26696 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
26697 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
26698 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
26699 to switch between adding the IV bump in loop->latch or in loop->header.
26701 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
26703 * graphite-poly.c (print_scattering_function): Pretty print following
26704 the scoplib format.
26706 (print_pbb_domain): Same.
26707 (dump_gbb_cases): Same.
26708 (dump_gbb_conditions): Same.
26709 (print_pdrs): Same.
26711 (print_scop_params): Same.
26712 (print_scop_context): Same.
26713 (print_scop): Same.
26714 (print_pbb_body): New.
26715 (lst_indent_to): New.
26716 (print_lst): Start new lines with a #.
26717 * graphite-poly.h (pbb_bb): New.
26718 (pbb_index): Use pbb_bb.
26719 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
26721 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
26723 2010-03-31 Jakub Jelinek <jakub@redhat.com>
26725 * dwarf2out.c (size_of_die): For -gdwarf-4 use
26726 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
26727 and 0 instead of 1 for dw_val_class_flag.
26728 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
26729 dw_val_class_range_list, dw_val_class_loc_list,
26730 dw_val_class_lineptr and dw_val_class_macptr, use
26731 DW_FORM_flag_present for dw_val_class_flag and
26732 DW_FORM_exprloc for dw_val_class_loc.
26733 (output_die): For -gdwarf-4 print dw_val_class_loc
26734 size as uleb128 instead of 1 or 2 bytes and don't print
26735 anything for dw_val_class_flag.
26737 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
26738 instead of cselib_lookup following by tweaking locs->setting_insn.
26741 * cselib.c (cselib_process_insn): Clear cselib_current_insn
26742 even before returning from label, setjmp call or volatile asm
26745 2010-03-31 Richard Guenther <rguenther@suse.de>
26747 PR middle-end/43600
26748 * cgraphunit.c (cgraph_output_in_order): Do not allocate
26749 temporary data on stack.
26751 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26753 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
26754 (PUSHSECTION_ASM_OP): Remove.
26755 (POPSECTION_ASM_OP): Remove.
26756 (PUSHSECTION_FORMAT): Remove.
26757 * config/sol2.h (PUSHSECTION_FORMAT): Define.
26758 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
26759 * config/sol2.c (solaris_output_init_fini): Use it.
26761 2010-03-31 Jie Zhang <jie@codesourcery.com>
26764 * opt-functions.awk (var_type_struct): Use signed char type
26765 for simple variables.
26767 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26769 * config/sol2.c: Include output.h.
26770 (solaris_assemble_visibility): New function.
26771 * config/t-sol2 (sol2.o): Add output.h dependency.
26772 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
26773 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
26776 2010-03-31 Jakub Jelinek <jakub@redhat.com>
26779 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
26780 V2SImode or XFmode on PRE_DEC.
26783 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
26786 2010-03-31 Jie Zhang <jie@codesourcery.com>
26789 * reload.h (caller_save_initialized_p): Declare.
26790 * toplev.c (backend_init_target): Don't call
26791 init_caller_save but set caller_save_initialized_p to false.
26792 * caller-save.c (caller_save_initialized_p): Define.
26793 (init_caller_save): Check caller_save_initialized_p.
26794 * ira.c (ira): Call init_caller_save if flag_caller_saves.
26796 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26799 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
26800 and soft-fp/t-softfp to tmake_file.
26801 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
26802 (LIBGCC2_TF_CEXT): Define.
26805 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
26808 * cselib.c (n_useless_values): Document handling of debug locs.
26809 (n_useless_debug_values, n_debug_values): New variables.
26810 (new_elt_loc_list): Don't add to debug values, keep count.
26811 (promote_debug_loc): New.
26812 (cselib_reset_table): Zero new variables.
26813 (entry_and_rtx_equal_p): Promote debug locs.
26814 (discard_useless_locs): Increment n_useless_debug_values for
26816 (remove_useless_values): Adjust n_useless_values and n_debug_values
26817 with n_useless_debug_values.
26818 (add_mem_for_addr): Promote debug locs.
26819 (cselib_lookup_mem): Likewise.
26820 (cselib_lookup_addr): Renamed to...
26821 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
26822 (cselib_log_lookup): ... this. Turn into...
26823 (cselib_lookup_addr): ... new wrapper.
26824 (cselib_lookup_from_insn): New.
26825 (cselib_invalidate_regno): Increment n_useless_debug_values for
26827 (cselib_invalidate_mem): Likewise.
26828 (cselib_process_insn): Take n_deleted and n_debug_values into
26829 account to guard remove_useless_value call.
26830 (cselib_finish): Zero n_useless_debug_values.
26831 * cselib.h (cselib_lookup_from_insn): Declare.
26832 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
26833 (sched_analyze_2): Likewise.
26835 2010-03-30 Jakub Jelinek <jakub@redhat.com>
26837 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
26839 (adjust_mems): Replace narrowing SUBREG of expression containing
26840 just PLUS, MINUS, MULT and ASHIFT of registers and constants
26841 with operations in the narrower mode.
26844 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
26845 regs_invalidated_by_call instead all call_used_reg_set registers.
26847 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
26849 PR middle-end/43430
26850 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
26851 pointer comparisons with types_compatible_p.
26852 * tree-vect-stmts.c (vectorizable_call): Same.
26853 (vectorizable_condition): Same.
26855 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26857 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
26858 stack check if the mask would be zero.
26860 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
26861 Jack Howarth <howarth@bromo.med.uc.edu>
26863 * tree-profile.c (tree_init_ic_make_global_vars): Make static
26866 2010-03-30 Joseph Myers <joseph@codesourcery.com>
26869 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
26871 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
26872 Include ___unordxf2 and ___unordtf2.
26873 * config/i386/libgcc-glibc.ver: Do not define inheritance from
26876 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
26878 * config/lm32/t-lm32: New file.
26879 * config.gcc: Use the above file when targetting lm32.
26881 2010-03-28 Duncan Sands <baldrick@free.fr>
26883 * Makefile.in (PLUGIN_HEADERS): Add except.h.
26885 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
26887 PR middle-end/43431
26888 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
26889 Improve vectorization cost model diagnostic.
26891 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
26893 PR middle-end/43436
26894 * tree-vect-data-refs.c (vect_analyze_data_refs): When
26895 compute_data_dependences_for_loop returns false, early exit
26896 and output an extra diagnostic for the failed data reference
26899 2010-03-29 Richard Guenther <rguenther@suse.de>
26901 PR tree-optimization/43560
26902 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
26903 (can_sm_ref_p): Treat stores to readonly locations as trapping.
26905 2010-03-29 Jie Zhang <jie@codesourcery.com>
26908 * toplev.c (process_options): Set optimization_default_node
26909 and optimization_current_node.
26910 * opts.c (decode_options): Don't set optimization_default_node
26911 and optimization_current_node.
26913 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
26915 * config/rtems.h: Abandon -qrtems_debug.
26917 2010-03-28 Jan Hubicka <jh@suse.cz>
26919 PR tree-optimization/43505
26920 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
26921 map should not be copied.
26923 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26925 PR middle-end/41674
26926 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
26927 cdtors, set DECL_PRESERVE_P.
26928 * ipa.c (cgraph_externally_visible_p): Return true if declaration
26929 should be preseved.
26931 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
26933 PR tree-optimization/43528
26934 * stor-layout.c (place_field): Check that constant fits into
26935 unsigned HWI when skipping calculation of MS bitfield layout.
26937 2010-03-27 Jan Hubicka <jh@suse.cz>
26939 PR middle-end/43391
26940 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
26941 notice_global_symbol work.
26943 2010-03-27 Jakub Jelinek <jakub@redhat.com>
26945 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
26946 instead of dwarf2out_decl.
26947 (struct var_loc_node): Remove section_label field.
26948 (dwarf2out_function_decl): New function.
26949 (dwarf2out_var_location): Don't set section_label field.
26950 (dwarf2out_begin_function): Don't empty decl_loc_table here.
26952 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
26954 PR tree-optimization/43544
26955 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
26956 First argument for builtin vectorized function hook is now a
26957 tree to be able to distinguish between machine specific and
26959 * targhooks.c (default_builtin_vectorized_function): Ditto.
26960 * targhooks.h (default_builtin_vectorized_function): Ditto.
26961 * target.h (struct gcc_target): Ditto.
26962 * tree-vect-stmts.c (vectorizable_function): Ditto.
26963 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
26964 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
26967 2010-03-26 Joseph Myers <joseph@codesourcery.com>
26970 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
26971 nested binding iff it is a FUNCTION_DECL.
26972 (store_parm_decls_newstyle): Pass nested=true to bind for
26973 FUNCTION_DECLs amongst parameters.
26975 2010-03-26 Jakub Jelinek <jakub@redhat.com>
26977 * var-tracking.c (vt_expand_loc_callback): Don't run
26978 cselib_expand_value_rtx_cb in dummy mode if
26979 cselib_dummy_expand_value_rtx_cb returned false.
26981 * var-tracking.c (emit_note_insn_var_location): For one part
26982 notes with offset 0, don't add EXPR_LIST around the location.
26983 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
26984 add_location_or_const_value_attribute): Adjust for that change.
26987 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
26988 into first operand and location into second.
26989 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
26990 dw_cfi_oprnd_loc for DW_CFA_expression.
26991 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
26992 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
26993 assume first argument is regnum and second argument is location.
26995 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
26998 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
26999 of scratch register to DImode. Split to DImode comparison operator.
27000 Use SImode subreg of scratch register in the multiplication.
27001 (*cmp_sadd_sidi): Ditto.
27002 (*cmp_ssub_si): Ditto.
27003 (*cmp_ssub_sidi): Ditto.
27005 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
27008 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
27009 Remove invalid assert and wrong comment.
27011 2010-03-26 Jakub Jelinek <jakub@redhat.com>
27014 * flags.h (final_insns_dump_p): New extern.
27015 * final.c (final_insns_dump_p): New variable.
27016 (rest_of_clean_state): Set it before -fdump-final-insns=
27017 dumping, clear afterwards.
27018 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
27019 MEM_ALIAS_SET on MEMs.
27021 2010-03-26 David S. Miller <davem@davemloft.net>
27023 * configure.ac: Fix sparc GOTDATA_OP bug check.
27024 * configure: Rebuild.
27026 2010-03-26 Alan Modra <amodra@gmail.com>
27028 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
27030 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27032 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
27033 TLS_SECTION_ASM_FLAG.
27035 2010-03-25 Jakub Jelinek <jakub@redhat.com>
27038 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
27039 Clear first_function_block_is_cold.
27042 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
27043 argument if the argument is truth_value_p.
27045 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27047 * config/rs6000/constraints.md: Update copyright year for my changes.
27050 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
27051 used in reg+reg addressing, swap registers.
27053 2010-03-24 Jakub Jelinek <jakub@redhat.com>
27056 * target.h (struct gcc_target): Add code_end hook.
27057 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
27058 if not yet defined.
27059 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
27060 * toplev.c (compile_file): Call targetm.asm_out.code_end
27061 hook before unwind info/debug info output.
27062 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
27063 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
27064 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
27065 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
27066 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
27067 * config/i386/i386.c (ix86_file_end): Renamed to...
27068 (ix86_code_end): ... this. Make static. Don't call
27069 file_end_indicate_exec_stack. Emit unwind info using
27070 final_start_function/final_end_function.
27071 (darwin_x86_file_end): Remove.
27072 (TARGET_ASM_CODE_END): Define.
27073 * config/i386/i386.h (TARGET_ASM_FILE_END,
27074 NEED_INDICATE_EXEC_STACK): Don't define.
27075 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
27076 (TARGET_ASM_FILE_END): Define to darwin_file_end.
27077 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
27078 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
27081 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
27082 at the beginning and final_end_function at the end.
27083 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27085 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27087 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
27088 and Sun as TLS syntax.
27089 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
27090 * configure: Regenerate.
27091 * config.in: Regenerate.
27092 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
27093 (default_elf_asm_named_section): Use it.
27094 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
27095 (i386_output_dwarf_dtprel): Likewise.
27096 (output_addr_const_extra): Likewise.
27097 (output_pic_addr_const): Lowercase @GOTTPOFF.
27098 (output_addr_const_extra): Likewise.
27099 (output_pic_addr_const): Lowercase @GOTNTPOFF.
27100 (output_addr_const_extra): Likewise.
27101 (output_pic_addr_const): Lowercase @INDNTPOFF.
27102 (output_addr_const_extra): Likewise.
27103 (output_pic_addr_const): Lowercase @NTPOFF.
27104 (output_addr_const_extra): Likewise.
27105 (output_pic_addr_const): Lowercase @TPOFF.
27106 (output_addr_const_extra): Likewise.
27107 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
27108 (*tls_global_dynamic_64): Likewise.
27109 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
27110 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
27112 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
27113 (ASM_OUTPUT_TLS_COMMON): Use it.
27114 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
27117 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
27118 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27119 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
27120 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
27121 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
27122 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
27124 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27126 * config/i386/i386.c (override_options): Don't accept
27127 -mtls-dialect=sun any longer.
27128 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
27129 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
27130 (*tls_local_dynamic_base_32_sun): Likewise.
27131 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
27133 2010-03-24 Jakub Jelinek <jakub@redhat.com>
27136 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
27137 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
27140 * ira.c (adjust_cleared_regs): New function.
27141 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
27145 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
27147 * expr.c (expand_expr_real): Restore previous
27148 curr_insn_source_location and curr_insn_block after
27149 expand_expr_real_1 call.
27150 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
27151 instead of expand_expr_real_1.
27153 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
27155 PR rtl-optimization/43413
27156 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
27159 2010-03-22 James E. Wilson <wilson@codesourcery.com>
27162 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
27163 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
27165 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
27167 * config/i386/i386.c (ix86_target_string): Add -mfma.
27168 Fix a typo in comment.
27170 2010-03-22 Mike Stump <mikestump@comcast.net>
27173 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
27174 Don't overly align based upon packed packed fields.
27176 2010-03-22 Jason Merrill <jason@redhat.com>
27178 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
27179 Use () rather than [], and move before the element type.
27181 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27183 * doc/configfiles.texi (Configuration Files): Removed
27184 fixinc/Makefile*, intl/Makefile.*.
27185 * doc/makefile.texi: Fixed markup. Abstract from version
27186 control system used.
27187 (Makefile): Removed obsolete java/parse.y example.
27188 * doc/sourcebuild.texi: Likewise.
27189 (Top Level): Added config, gnattools, libdecnumber, libgcc,
27190 libgomp, libssp. Removed fastjar.
27191 (Miscellaneous Docs): Clarify location.
27192 Added COPYING3, COPYING3.LIB.
27193 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
27195 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27198 * config/i386/i386.c (x86_function_profiler)
27199 [!NO_PROFILE_COUNTERS]: Fix typo.
27200 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
27203 2010-03-22 Janis Johnson <janis187@us.ibm.com>
27204 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27206 * doc/sourcebuild.texi (Test Directives): Split into six
27207 subsections, with most of the current text in new subsections
27208 Directives, Selectors, and Final Actions.
27209 (Directives): Split list of test directives into multiple
27211 (Selectors): Describe use and syntax of selectors.
27212 (Effective-Target Keywords): Describe all existing keywords.
27213 (Add Options): Describe features for dg-add-options.
27214 (Require Support): Describe variants of dg-require-support.
27215 (Final Actions): Describe commands to use in dg-final.
27217 2010-03-22 Michael Matz <matz@suse.de>
27219 PR middle-end/43475
27220 * recog.c (validate_replace_rtx_group): Replace also in
27221 REG_EQUAL and REG_EQUIV notes.
27223 2010-03-22 Richard Guenther <rguenther@suse.de>
27225 PR tree-optimization/43390
27226 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
27227 sure vector extracts are type correct.
27229 2010-03-22 Richard Guenther <rguenther@suse.de>
27231 PR middle-end/40106
27232 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
27233 x * sqrt (x) even when optimizing for size if the target
27234 has native support for sqrt.
27236 2010-03-22 Jakub Jelinek <jakub@redhat.com>
27238 * varasm.c (make_decl_rtl_for_debug): Also clear
27239 flag_mudflap for the duration of make_decl_rtl call.
27242 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
27243 locs from preserved VALUEs.
27245 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27247 PR middle-end/42718
27248 * pa.md (movmemsi): Set align to one if zero.
27249 (movmemdi): Likewise.
27251 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
27254 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
27255 with their corresponding prologue pushes.
27257 2010-03-20 Andrew Pinski <pinskia@gmail.com>
27260 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
27261 at the begining or end.
27262 (spu_expand_epilogue): Likewise.
27264 2010-03-20 Richard Guenther <rguenther@suse.de>
27266 PR rtl-optimization/43438
27267 * combine.c (make_extraction): Properly zero-/sign-extend an
27268 extraction of the low part of a CONST_INT. Also handle
27271 2010-03-19 Mike Stump <mikestump@comcast.net>
27273 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
27274 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
27275 (override_options): Use SUBTARGET32_DEFAULT_CPU.
27277 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
27280 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
27283 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
27285 PR rtl-optimization/42258
27286 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
27287 use that may match DEF.
27290 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
27291 the cost of loading the constant rather than assuming
27293 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
27294 outer code is AND, do the same tests as the andsi3 expander and
27295 return COSTS_N_INSNS (1) if and is cheap.
27297 * optabs.c (avoid_expensive_constant): Fix formatting.
27299 2010-03-19 Michael Matz <matz@suse.de>
27302 * attribs.c (decl_attributes): When rebuilding a function pointer
27303 type use the same qualifiers as the original pointer type.
27305 2010-03-19 Martin Jambor <mjambor@suse.cz>
27307 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
27308 and is_gimple_ip_invariant_address.
27310 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27313 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27315 * config/arm/arm.c (arm_override_options): Turn off
27316 flag_dwarf2_cfi_asm for AAPCS variants.
27318 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27321 * config/arm/arm.c (emit_multi_reg_push): Update comments.
27322 Use PRE_MODIFY instead of PRE_DEC.
27323 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
27324 (vfp_emit_fstmd): Likewise.
27326 2010-03-19 Michael Matz <matz@suse.de>
27329 * builtins.c (expand_builtin_interclass_mathfn,
27330 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
27333 2010-03-19 Richard Guenther <rguenther@suse.de>
27335 PR tree-optimization/43415
27336 * tree-ssa-pre.c (phi_translate): Split out worker to ...
27337 (phi_translate_1): ... this.
27338 (phi_translate): Move all caching here. Cache all NARY
27339 and REFERENCE translations.
27341 2010-03-19 David S. Miller <davem@davemloft.net>
27343 With help from Eric Botcazou.
27344 * config/sparc/sparc.c: Include dwarf2out.h.
27345 (emit_pic_helper): Delete.
27346 (pic_helper_symbol_name): Delete.
27347 (pic_helper_emitted_p): Delete.
27348 (pic_helper_needed): New.
27349 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
27350 (get_pc_thunk_name): New.
27351 (load_pic_register): Remove 'delay_pic_helper' arg. Use
27352 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
27353 Set pic_helper_needed to true. Don't call emit_pic_helper.
27354 (sparc_expand_prologue): Update load_pic_register call.
27355 (sparc_output_mi_thunk): Likewise.
27356 (sparc_file_end): Emit a hidden comdat symbol for the PIC
27357 thunk if possible. Output CFI information as needed.
27359 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
27360 Jack Howarth <howarth@bromo.med.uc.edu>
27363 * config/i386/i386.h: Fix ABI on darwin x86-32.
27365 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
27367 * tree.h: Declare make_decl_rtl_for_debug.
27368 * varasm.c (make_decl_rtl_for_debug): New.
27369 * dwarf2out.c (rtl_for_decl_location): Call it.
27370 * cfgexpand.c (expand_debug_expr): Call it.
27372 2010-03-18 Jakub Jelinek <jakub@redhat.com>
27375 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
27379 * var-tracking.c (vt_init_cfa_base): Do nothing if
27380 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
27382 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
27385 * var-tracking.c (canonicalize_vars_star): New.
27386 (dataflow_post_merge_adjust): Use it.
27388 2010-03-18 Jakub Jelinek <jakub@redhat.com>
27391 * var-tracking.c (non_suitable_const): New function.
27392 (add_uses): For DEBUG_INSNs with constants, don't record any
27393 value, instead just the constant value itself.
27394 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
27395 is not VAR_LOC_UNKNOWN_P, set var to the constant.
27396 (emit_notes_in_bb): Likewise.
27397 (emit_note_insn_var_location): For onepart variables if
27398 cur_loc is a VOIDmode constant, use DECL_MODE.
27400 2010-03-18 Martin Jambor <mjambor@suse.cz>
27402 PR middle-end/42450
27403 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
27404 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
27405 all non-clones. Moved call redirection...
27406 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
27407 (cgraph_materialize_all_clones): Dispose of all
27408 combined_args_to_skip bitmaps.
27409 (verify_cgraph_node): Do not check for edges pointing to wrong
27410 nodes in inline clones.
27411 * tree-inline.c (copy_bb): Call
27412 cgraph_redirect_edge_call_stmt_to_callee.
27413 * ipa.c (cgraph_remove_unreachable_nodes): Call
27414 cgraph_node_remove_callees even when there are used clones.
27416 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
27418 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
27420 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
27423 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
27426 2010-03-18 Michael Matz <matz@suse.de>
27428 PR middle-end/43419
27429 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
27430 into sqrt(x) if we need to preserve signed zeros.
27432 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
27433 Eric Botcazou <ebotcazou@adacore.com>
27435 PR rtl-optimization/43360
27436 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
27437 note if we don't know its invariant status.
27439 2010-03-18 Michael Matz <matz@suse.de>
27441 PR tree-optimization/43402
27442 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
27443 PHI chains of ssa names registered for update.
27445 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
27448 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
27449 non-offsettable and pre_modify update addressing.
27450 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
27451 and "2" alternatives "#".
27452 (*movdd_softfloat32): Make all alternatives "#";
27453 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
27454 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
27455 (*movdf_softfloat32): Make all alternatives "#";
27456 (movdi): Use the new DIFD mode iterator to create a common splitter
27457 for movdi, movdf and movdd patterns.
27459 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
27461 * common.opt (dumpdir): Remove redundant tab.
27463 2010-03-17 Martin Jambor <mjambor@suse.cz>
27465 PR tree-optimization/43347
27466 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
27467 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
27469 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
27471 PR rtl-optimization/42216
27472 * regrename.c (create_new_chain): New function, broken out from...
27473 (scan_rtx_reg): ... here. Call it. Handle the case where we are
27474 appending a use to an empty chain.
27475 (build_def_use): Remove previous changes that convert OP_INOUT to
27476 OP_OUT operands; instead detect the case where an OP_INOUT operand
27477 uses a previously untracked register and create an empty chain for it.
27479 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27481 * doc/extend.texi (Function Attributes): Rewrite unfinished
27482 sentence in ms_abi documentation.
27484 2010-03-17 Alan Modra <amodra@gmail.com>
27486 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
27487 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
27488 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
27489 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
27491 2010-03-16 Richard Henderson <rth@redhat.com>
27493 PR middle-end/43365
27494 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
27495 (lower_try_finally): Save and restore eh_seq around the expansion
27496 of the try-finally.
27498 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
27500 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
27501 statements before splitting block.
27503 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27505 * doc/sourcebuild.texi (Testsuites): Fix markup.
27506 Use pathnames relative to gcc/testsuite.
27507 (Test Directives): Move description of how timeout is determined.
27508 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
27509 (C Tests): Correct gcc.misc-tests directory.
27510 Framework tests now live in gcc.test-framework.
27512 2010-03-16 Richard Guenther <rguenther@suse.de>
27514 PR middle-end/43379
27515 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
27516 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
27518 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
27519 Alexandre Oliva <aoliva@redhat.com>
27521 PR tree-optimization/42917
27522 * lambda-code.c (remove_iv): Skip debug statements.
27523 (lambda_loopnest_to_gcc_loopnest): Likewise.
27524 (not_interesting_stmt): Debug statements are not interesting.
27526 2010-03-16 Jakub Jelinek <jakub@redhat.com>
27530 * cselib.c (cselib_preserve_constants,
27531 cfa_base_preserved_val): New static variables.
27532 (preserve_only_constants): New function.
27533 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
27534 clear its REG_VALUES. If cselib_preserve_constants, don't
27535 empty the whole hash table, but preserve there VALUEs with constants,
27536 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
27537 (cselib_preserve_cfa_base_value): New function.
27538 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
27539 (cselib_init): Change argument to int bitfield. Set
27540 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
27542 (cselib_finish): Clear cselib_preserve_constants and
27543 cfa_base_preserved_val.
27544 * cselib.h (enum cselib_record_what): New enum.
27545 (cselib_init): Change argument to int.
27546 (cselib_preserve_cfa_base_value): New prototype.
27547 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
27548 * dse.c (dse_step1): Likewise.
27549 * cfgcleanup.c (thread_jump): Likewise.
27550 * sched-deps.c (sched_analyze): Likewise.
27551 * gcse.c (local_cprop_pass): Likewise.
27552 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
27553 If FN is non-NULL, call the callback always and whenever it returns
27554 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
27555 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
27556 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
27557 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
27558 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
27559 * var-tracking.c: Include recog.h.
27560 (bb_stack_adjust_offset): Remove.
27561 (vt_stack_adjustments): Don't call it, instead just gather the
27562 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
27563 (adjust_stack_reference): Remove.
27564 (compute_cfa_pointer): New function.
27565 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
27566 (struct adjust_mem_data): New type.
27567 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
27569 (get_address_mode): New function.
27570 (replace_expr_with_values): Use it.
27571 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
27572 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
27573 (adjust_sets): Remove.
27574 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
27575 Use get_address_mode.
27576 (get_adjusted_src): Remove.
27577 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
27578 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
27579 (add_with_sets): Don't call adjust_sets.
27580 (fp_setter, vt_init_cfa_base): New functions.
27581 (vt_initialize): Change return type to bool. Move most of pool etc.
27582 initialization to the beginning of the function from end. Pass
27583 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
27584 If !frame_pointer_needed, call vt_stack_adjustment before mos
27585 vector is filled, call vt_init_cfa_base if argp/framep has been
27586 eliminated to sp. If frame_pointer_needed and argp/framep has
27587 been eliminated to hard frame pointer, set
27588 hard_frame_pointer_adjustment and call vt_init_cfa_base after
27589 encountering fp setter in the prologue. For MO_ADJUST, call
27590 log_op_type before pusing the op into mos vector, not afterwards.
27591 Call adjust_insn before cselib_process_insn/add_with_sets,
27592 call cancel_changes (0) afterwards.
27593 (variable_tracking_main_1): Adjust for vt_initialize calling
27594 vt_stack_adjustments and returning whether it succeeded or not.
27596 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
27598 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
27601 2010-03-15 Jakub Jelinek <jakub@redhat.com>
27603 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
27605 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
27606 drap_reg has not been set.
27608 2010-03-15 Michael Matz <matz@suse.de>
27610 PR middle-end/43300
27611 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
27612 use it to expand block copies.
27613 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
27614 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
27615 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
27617 2010-03-15 Richard Guenther <rguenther@suse.de>
27619 PR tree-optimization/43367
27620 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
27623 2010-03-15 Richard Guenther <rguenther@suse.de>
27625 PR tree-optimization/43317
27626 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
27628 2010-03-15 Martin Jambor <mjambor@suse.cz>
27630 PR tree-optimization/43141
27631 * tree-sra.c (create_abstract_origin): New function.
27632 (modify_function): Call create_abstract_origin.
27634 2010-03-15 Chris Demetriou <cgd@google.com>
27636 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
27639 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27641 PR middle-end/43354
27642 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
27643 call insert_out_of_ssa_copy for default definitions.
27645 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27647 * graphite-clast-to-gimple.c (my_long_long): Defined.
27648 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
27649 * graphite-sese-to-poly.c (my_long_long): Defined.
27650 (scop_ivs_can_be_represented): Use it.
27652 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27654 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
27655 graphite-max-bbs-per-function, and loop-block-tile-size.
27656 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
27658 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
27660 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27662 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
27663 forward declaration.
27664 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
27665 (add_upper_bounds_from_estimated_nit): New.
27666 (build_loop_iteration_domains): Use it.
27668 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27670 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
27672 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27674 PR middle-end/43306
27675 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
27676 should be an INTEGER_CST. Also handle CASE_CONVERT.
27678 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27680 * graphite.c (graphite_initialize): To bound the number of bbs per
27681 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
27682 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
27683 * doc/invoke.texi: Document it.
27685 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27687 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
27688 * graphite-sese-to-poly.h (build_poly_scop): Same.
27690 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27692 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
27693 the number of parameters in the scop. Use as an upper bound
27694 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
27695 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
27696 * doc/invoke.texi: Document it.
27698 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
27700 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
27701 * doc/c-tree.texi: Remove.
27702 * doc/generic.texi: Merge c-tree.texi here.
27703 * doc/gccint.texi (Trees): Remove menu entry.
27704 (c-tree.texi): Remove @include.
27705 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
27706 * doc/languages.texi (Reading RTL): Ditto.
27708 2010-03-12 Steve Ellcey <sje@cup.hp.com>
27711 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
27713 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27715 PR middle-end/42431
27716 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
27717 code added to work around reload clobbering CONST insns.
27719 2010-03-12 Jakub Jelinek <jakub@redhat.com>
27721 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
27722 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
27723 (cselib_preserve_only_values): Remove retain argument, don't
27724 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
27725 * cselib.h (cselib_preserve_only_values): Remove retain argument.
27726 * var-tracking.c (micro_operation): Move insn field before union.
27727 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
27728 (struct variable_tracking_info_def): Remove n_mos field, change
27729 mos into a vector of micro_operations.
27730 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
27731 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
27732 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
27733 changing into a vector.
27734 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
27735 come before all other uops generated by add_stores.
27736 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
27738 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
27739 a vector. Run just one pass over the bbs instead of separate counting
27740 and computation phase.
27741 (vt_finalize): Free VTI (bb)->mos vector instead of array.
27744 * tree-inline.c (remap_decls): Put old_var rather than origin_var
27745 into *nonlocalized_list vector.
27746 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
27747 even if origin is non-NULL.
27748 (gen_variable_die): Likewise.
27749 (process_scope_var): Don't change origin.
27750 (gen_decl_die): Likewise.
27751 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
27752 before adding new edges instead of after it, fix moving over
27755 2010-03-11 David S. Miller <davem@davemloft.net>
27757 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
27759 * configure: Rebuild.
27761 2010-03-11 Martin Jambor <mjambor@suse.cz>
27763 PR tree-optimization/43257
27764 * tree.c (assign_assembler_name_if_neeeded): New function.
27765 (free_lang_data_in_cgraph): Assembler name assignment moved to the
27766 above new function.
27767 * tree.h (assign_assembler_name_if_neeeded): Declare.
27768 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
27769 the function if needed.
27771 2010-03-11 Chris Demetriou <cgd@google.com>
27773 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
27774 include/stdint-gcc.h, and include/stdint.h world-readable.
27776 2010-03-11 Richard Guenther <rguenther@suse.de>
27778 PR tree-optimization/43255
27779 * tree-vrp.c (process_assert_insertions_for): Do not insert
27780 asserts for trivial conditions.
27782 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27784 PR tree-optimization/43280
27785 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
27786 generation. Move calculation of size out of the if branch.
27787 (find_bswap): Modify compare number generation.
27789 2010-03-11 Richard Guenther <rguenther@suse.de>
27792 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
27793 (input_gimple_stmt): Fixup handled component types during
27794 operand read. Also fix up decls in ADDR_EXPRs.
27796 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
27798 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
27799 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
27801 2010-03-10 Jan Hubicka <jh@suse.cz>
27804 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
27805 * varasm.c (get_variable_section): Don't do that here...
27806 (make_decl_rtl): ... and here.
27807 (do_assemble_alias): Produce decl RTL.
27808 (assemble_alias): Likewise.
27810 2010-03-10 Jakub Jelinek <jakub@redhat.com>
27813 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
27814 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
27816 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
27817 (based_loc_descr): Only express drap or vdrap regno based expressions
27818 using DW_OP_fbreg when not optimizing.
27819 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
27820 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
27821 REG_CFA_SET_VDRAP note.
27823 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
27825 PR tree-optimization/43236
27826 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
27827 error in calculation of base address in reverse iteration case.
27828 (generate_builtin): Take number of latch executions if the statement
27831 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
27833 PR middle-end/42859
27834 * tree-eh.c: Include pointer-set.h.
27835 (lower_eh_dispatch): Filter out duplicate case labels and
27836 remove the unneeded edge when the label is unused. Return
27837 true when some edges are removed.
27838 (execute_lower_eh_dispatch): When any lowering resulted in
27839 removing an edge, also delete unreachable blocks.
27841 2010-03-10 Jakub Jelinek <jakub@redhat.com>
27844 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27845 UNSPEC_MACHOPIC_OFFSET.
27847 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
27850 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
27851 (m68k_delegitimize_address): New function.
27853 2010-03-09 Jakub Jelinek <jakub@redhat.com>
27856 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
27859 * var-tracking.c (adjust_sets): New function.
27860 (count_with_sets, add_with_sets): Use it.
27861 (get_adjusted_src): New inline function.
27862 (add_stores): Use it.
27865 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
27866 call cselib_dummy_expand_value_rtx_cb instead of
27867 cselib_expand_value_rtx_cb.
27870 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
27871 * config/i386/i386.c: Include debug.h and dwarf2out.h.
27872 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
27873 and .cfi_endproc around the pic thunks.
27874 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
27875 all queued unwind info register saves are saved before the call.
27876 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
27877 considered as sp-=4 for unwind info and the pop as sp+=4 which
27878 also clobbers dest, but doesn't actually restore it.
27881 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
27882 RTX_FRAME_RELATED_P.
27884 2010-03-09 Jie Zhang <jie@codesourcery.com>
27886 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
27887 whitespaces in output template.
27889 2010-03-09 Jie Zhang <jie@codesourcery.com>
27891 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
27892 out array boundary.
27894 2010-03-08 Jakub Jelinek <jakub@redhat.com>
27896 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
27897 builtins.exp in a separate job.
27899 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
27901 * graphite-sese-to-poly.c (add_param_constraints): Use
27902 lower_bound_in_type and upper_bound_in_type.
27904 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
27906 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
27907 instead of unsigned_type_node.
27909 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
27910 Reza Yazdani <reza.yazdani@amd.com>
27912 PR middle-end/43065
27913 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
27914 on pointer type parameters.
27916 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
27918 PR middle-end/42644
27919 PR middle-end/42130
27920 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
27921 handle conversions from pointer to integers.
27922 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
27923 induction variable, to be able to work with code generated by CLooG.
27924 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
27925 (build_poly_scop): Bail out if we cannot codegen a loop.
27927 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
27929 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
27930 code generation with gloog_error.
27932 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
27934 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
27935 Call fold_convert on all the returned values.
27936 (expand_scalar_variables_expr): Pass to
27937 expand_scalar_variables_ssa_name the type of the resulting expression.
27939 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
27941 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
27942 ppl_min_for_le_pointset.
27943 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
27944 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
27946 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
27948 * graphite-dependences.c (map_into_dep_poly): Removed.
27949 (dependence_polyhedron_1): Use combine_context_id_scat.
27951 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
27953 * graphite-poly.h (struct poly_scattering): Add layout documentation.
27954 (struct poly_bb): Same.
27955 (combine_context_id_scat): New.
27957 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
27959 PR middle-end/42326
27960 * sese.c (name_defined_in_loop_p): Return false for default
27963 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
27965 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
27966 and clean up the logic.
27968 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
27970 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
27973 2010-03-08 Jakub Jelinek <jakub@redhat.com>
27975 * var-tracking.c (remove_cselib_value_chains): Define only for
27977 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
27978 delete_slot_part, emit_notes_for_differences_1): Don't call
27979 remove_cselib_value_chains here.
27980 (set_slot_part, emit_notes_for_differences_2): Don't call
27981 add_cselib_value_chains here.
27982 (preserved_values): New vector.
27983 (preserve_value): New function.
27984 (add_uses, add_stores, vt_add_function_parameters): Use it
27985 instead of cselib_preserve_value.
27986 (changed_values_stack): New vector.
27987 (check_changed_vars_0): New function.
27988 (check_changed_vars_1, check_changed_vars_2): Use it.
27989 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
27990 changed_values_stack VALUEs.
27991 (vt_emit_notes): For all preserved_values call
27992 add_cselib_value_chains. If ENABLE_CHECKING call
27993 remove_cselib_value_chains before verifying value_chains is empty.
27994 Initialize and free changed_values_stack.
27995 (vt_initialize): Initialize preserved_values.
27996 (vt_finalize): Free preserved_values.
27998 2010-03-08 Richard Guenther <rguenther@suse.de>
28000 PR tree-optimization/43269
28001 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
28004 2010-03-08 Martin Jambor <mjambor@suse.cz>
28006 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
28007 (ipa_is_param_called): Removed.
28008 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
28009 (ipa_print_node_params): Do not print the called flag.
28010 (ipa_write_node_info): Do not stream the called flag.
28011 (ipa_read_node_info): Likewise.
28013 2010-03-07 Jakub Jelinek <jakub@redhat.com>
28016 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
28017 * cselib.c (struct expand_value_data): Add dummy field.
28018 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
28020 (cselib_dummy_expand_value_rtx_cb): New function.
28021 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
28023 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
28024 * var-tracking.c: Include pointer-set.h.
28025 (variable): Change n_var_parts to char from int. Add
28026 cur_loc_changed and in_changed_variables fields.
28027 (variable_canonicalize): Remove.
28028 (shared_var_p): New inline function.
28029 (unshare_variable): Maintain cur_loc_changed and
28030 in_changed_variables fields. If var was in changed_variables,
28031 replace it there with new_var. Just copy cur_loc instead of
28032 resetting it to something else.
28033 (variable_union): Don't recompute cur_loc. Use shared_var_p.
28034 (dataflow_set_union): Don't call variable_canonicalize.
28035 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
28036 of their DEBUG_EXPR_TREE_DECLs.
28037 (canonicalize_loc_order_check): Verify that cur_loc is NULL
28038 and in_changed_variables and cur_loc_changed is false.
28039 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
28040 and cur_loc_changed. Don't update cur_loc here.
28041 (variable_merge_over_src): Don't call variable_canonicalize.
28042 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
28043 removing loc that is equal to cur_loc, clear cur_loc,
28044 set cur_loc_changed and ensure variable_was_changed is called.
28045 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
28046 compare pointers in cur_loc check, if it is equal to loc,
28047 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
28048 (variable_different_p): Remove compare_current_location argument,
28049 don't compare cur_loc.
28050 (dataflow_set_different_1): Adjust variable_different_p caller.
28051 (variable_was_changed): If dv had some var in changed_variables
28052 already, reset in_changed_variables flag for it and propagate
28053 cur_loc_changed over to the new variable. On empty var
28054 always set cur_loc_changed. Set in_changed_variables on whatever
28055 var is added to changed_variables.
28056 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
28057 Use shared_var_p. When removing loc that is equal to cur_loc,
28058 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
28059 end, don't set it to something else, just call variable_was_changed.
28060 (delete_slot_part): Use shared_var_p. When cur_loc equals to
28061 loc being removed, clear cur_loc and set cur_loc_changed.
28062 Set cur_loc_changed if all locations have been removed.
28063 (struct expand_loc_callback_data): New type.
28064 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
28065 allocated. Always create SUBREGs if simplify_subreg failed.
28066 Prefer to use cur_loc, when that fails and still in
28067 changed_variables (and seen first time) recompute it. Set
28068 cur_loc_changed of variables which had to change cur_loc and
28069 compute elcd->cur_loc_changed if any of the subexpressions used
28070 had to change cur_loc.
28071 (vt_expand_loc): Adjust to pass arguments in
28072 expand_loc_callback_data structure.
28073 (vt_expand_loc_dummy): New function.
28074 (emitted_notes): New variable.
28075 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
28076 that weren't used for any other decl in current
28077 emit_notes_for_changes call call vt_expand_loc_dummy to update
28078 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
28079 first loc_chain location if NULL before. Always use just
28080 cur_loc instead of first loc_chain location. When cur_loc_changed
28081 is false, when not --enable-checking=rtl just don't emit any note.
28082 When rtl checking, compute the note and assert it is the same
28083 as previous note. Clear cur_loc_changed and in_changed_variables
28084 at the end before removing from changed_variables.
28085 (check_changed_vars_3): New function.
28086 (emit_notes_for_changes): Traverse changed_vars to call
28087 check_changed_vars_3 on each changed var.
28088 (emit_notes_for_differences_1): Clear cur_loc_changed and
28089 in_changed_variables. Recompute cur_loc of new_var.
28090 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
28091 (vt_emit_notes): Initialize and destroy emitted_notes.
28093 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
28095 PR rtl-optimization/42220
28096 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
28097 Use verify_reg_tracked to determine if we should use OP_OUT rather
28099 (build_def_use): If we see an in-out operand for a register that we
28100 know nothing about, treat is an output if possible, fail the block if
28103 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
28106 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
28109 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
28112 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
28113 uses of relevant DEFs that are dead outside the loop too.
28115 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
28117 * var-tracking.c (dataflow_set_merge): Swap src and src2.
28119 2010-01-13 Jakub Jelinek <jakub@redhat.com>
28121 * var-tracking.c (values_to_unmark): New variable.
28122 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28123 values_to_unmark vector. Moved body to...
28124 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
28125 instead queue it into values_to_unmark vector.
28126 (vt_find_locations): Free values_to_unmark vector.
28128 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
28130 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
28131 (site.exp): Export them when plugins are enabled.
28133 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
28135 PR middle-end/42326
28136 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
28137 that contain scevs.
28138 (chrec_fold_multiply): Same.
28140 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
28143 * c-decl.c (build_compound_literal): Return early if init is
28144 an error_mark_node.
28146 2010-03-04 Martin Jambor <mjambor@suse.cz>
28148 PR tree-optimization/43164
28149 PR tree-optimization/43191
28150 * tree-sra.c (type_consists_of_records_p): Reject records with
28151 zero-size bit-fields at the end.
28153 2010-03-04 Mike Stump <mikestump@comcast.net>
28155 * Makefile.in (TAGS): Remove *.y.
28157 2010-03-04 Richard Guenther <rguenther@suse.de>
28159 PR tree-optimization/40761
28160 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
28162 (my_rev_post_order_compute): New function.
28163 (init_pre): Call it.
28165 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
28167 PR middle-end/43209
28168 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
28169 decrease the cost of an IV candidate when the cost is infinite.
28171 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28173 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
28174 Use '3DNow!' for the extension of that name, ensure normal space
28176 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
28178 2010-03-03 Jeff Law <law@redhat.com>
28180 * PR middle-end/32693
28181 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
28182 than gen_rtx_SUBREG.
28183 (extract_bit_field_1): Likewise.
28185 2010-03-03 Janis Johnson <janis187@us.ibm.com>
28187 * doc/sourcebuild.texi (Test directives): Document that arguments
28188 include-opts and exclude-opts are now optional for dg-skip-if,
28189 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
28191 2010-03-03 Jason Merrill <jason@redhat.com>
28194 * cgraph.h (varpool_node): Add extra_name field.
28195 * varpool.c (varpool_extra_name_alias): New.
28196 (varpool_assemble_decl): Emit extra name aliases.
28197 (varpool_mark_needed_node): Look past an extra name alias.
28198 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
28199 * lto-streamer-in.c (lto_input_tree): Read it.
28200 * lto-streamer-out.c (output_unreferenced_globals): Write it.
28202 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
28204 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
28205 (sparc*-*-solaris2*): ...this.
28207 2010-03-03 Jakub Jelinek <jakub@redhat.com>
28210 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
28211 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
28212 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
28213 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
28216 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
28217 fallthrough to default handling, just with want_address 0 instead of 2.
28218 For single element lists, add_AT_loc directly, otherwise create an
28219 artificial variable DIE and stick location list to it.
28222 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
28223 (VAL_EXPR_HAS_REVERSE): Define.
28224 (reverse_op): New function.
28225 (add_stores): For reversible operations add an extra MO_VAL_USE.
28227 2010-03-02 Jason Merrill <jason@redhat.com>
28229 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
28231 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
28233 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
28234 (sparc64-*-linux*): Likewise.
28235 (sparc64-*-solaris2*): Include assembler files before linker ones.
28236 (sparc-*-solaris2*): Simplify and reorder to match previous case.
28237 * config/sparc/gas.h: Delete.
28238 * config/sparc/sol2-64.h: Add copyright notice.
28239 * config/sparc/sol2-gas-bi.h: Likewise.
28240 * config/sparc/sol2-gld.h: Likewise.
28241 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
28242 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
28243 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
28244 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
28245 (sparc_elf_asm_named_section): Rename into...
28246 (sparc_solaris_elf_asm_named_section): ...this. Always define.
28248 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
28250 * config/alpha/alpha.c (override_options): Fix -mtune error message.
28252 2010-03-02 Jeff Law <law@redhat.com>
28254 PR middle-end/42431
28255 * reload1.c (rtx_p, substitute_stack): Declare.
28256 (substitute): Record addresses of changed rtxs.
28257 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
28258 Restore the original rtx when complete.
28259 (reload): Free subsitute_stack when complete.
28261 2010-03-02 Janis Johnson <janis187@us.ibm.com>
28263 * doc/gccint.texi (menu): Add Testsuites as a chapter.
28264 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
28266 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
28267 LTO Testing, gcov Testing, profopt Testing, compat Testing,
28268 Torture Tests): Change from subsection to section.
28270 2010-03-02 Jakub Jelinek <jakub@redhat.com>
28271 Steven Bosscher <steven@gcc.gnu.org>
28273 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
28276 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
28278 PR middle-end/42640
28279 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
28280 the assignment from the new induction variable to the assignment
28281 of the value from the original loop PHI function.
28283 2010-03-01 Janis Johnson <janis187@us.ibm.com>
28284 Daniel Jacobowitz <dan@codesourcery.com>
28286 * doc/sourcebuild.texi (Test directives): Clarify options to
28289 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28291 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
28292 Disable cfi directives unless GCC and gas agree on using read-only
28293 .eh_frame sections for 64-bit.
28294 * configure: Regenerate.
28296 2010-03-01 Richard Guenther <rguenther@suse.de>
28298 PR tree-optimization/43220
28299 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
28300 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
28302 2010-03-01 Richard Guenther <rguenther@suse.de>
28303 Martin Jambor <mjambor@suse.cz>
28305 PR middle-end/41250
28306 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
28307 gimplified parameters.
28309 2010-03-01 Christian Bruel <christian.bruel@st.com>
28311 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
28313 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
28315 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
28317 2010-03-01 Richard Guenther <rguenther@suse.de>
28319 PR middle-end/43213
28320 * expr.c (expand_assignment): Use the alias-oracle to tell
28321 if the rhs aliases the result decl.
28323 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28326 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
28327 to sol_gt_pch_get_address.
28328 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
28329 64-bit, SPARC and x86.
28330 (sol_gt_pch_get_address): New function.
28332 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
28334 * toplev.h (inform_n, error_n): Declare.
28335 * diagnostic.c (inform_n, error_n): New function.
28337 2010-03-01 Jakub Jelinek <jakub@redhat.com>
28339 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
28340 has no rtl yet when processing local_decls, queue it and recheck
28341 if deferred stack allocation hasn't assigned it rtl.
28343 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
28345 * config/sh/sh.c (unspec_bbr_uid): New.
28346 (gen_block_redirect): Use it instead of INSN_UID.
28347 (gen_far_branch): Likewise.
28349 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
28351 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
28352 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
28354 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28356 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
28357 (Warning Options): -Wno-conversion-null is valid for
28358 Objective-C++ as well.
28359 * doc/tm.texi (Named Address Spaces): Likewise.
28360 * doc/plugins.texi (Plugins): Replace TABs with spaces.
28361 * doc/tree-ssa.texi (Tree SSA): Likewise.
28363 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
28366 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
28367 by default. Don't set the default arch for
28368 i[34567]86-*-darwin*|x86_64-*-darwin*.
28370 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
28373 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
28374 default. Set the default 32bit/64bit archs with $with_arch
28375 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
28377 2010-02-27 Richard Guenther <rguenther@suse.de>
28379 PR tree-optimization/43186
28380 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
28381 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
28382 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
28383 unroller iterations.
28385 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
28387 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
28388 required and i[34567]86-*-* targets don't support 64bit ISA.
28390 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
28393 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
28394 the same alias set.
28396 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
28398 * config.gcc: Set the default arch at least to Prescott for
28399 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
28400 if SSE math is enabled.
28402 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
28404 * diagnostic.c (diagnostic_initialize): Update.
28405 (diagnostic_report_diagnostic): Test inhibit_notes_p for
28407 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
28408 (diagnostic_inhibit_notes): New.
28409 * toplev.c (process_options): inhibit notes with -fcompare-debug.
28411 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
28414 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
28415 * doc/standards.texi: Likewise.
28416 * doc/extend.texi: Likewise.
28417 * doc/trouble.texi: Likewise.
28418 * doc/cppopts.texi: Likewise.
28419 * doc/install.texi: Likewise.
28420 * c.opt (std=c90,std=gnu90): New options.
28421 * c-opts.c (c_common_handle_option): Handle them.
28423 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
28426 * c-decl.c (undeclared_variable): Use an informative note.
28428 2010-02-26 Richard Guenther <rguenther@suse.de>
28430 PR tree-optimization/43186
28431 * gimple.h (gimple_fold): Remove.
28432 * gimple.c (gimple_fold): Remove. Inline into single user ...
28433 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
28434 Try harder for conditions.
28436 2010-02-26 Jakub Jelinek <jakub@redhat.com>
28439 * function.c (used_types_insert): Don't skip through named pointer
28440 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
28441 and it is different from the main variant's type.
28443 2010-02-26 Nick Clifton <nickc@redhat.com>
28445 * config/rx/rx.md (sminsi3): Remove bogus alternative.
28447 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
28449 * config.gcc: Support --with-fpmath=sse for x86.
28451 * config/i386/ssemath.h: New.
28453 * doc/install.texi (--with-fpmath=sse): Documented.
28455 2010-02-26 Richard Guenther <rguenther@suse.de>
28457 PR tree-optimization/43188
28458 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
28459 vector types of over-aligned element type.
28461 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
28464 * config/i386/i386.c (expand_vec_perm_blend): Use correct
28465 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
28467 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
28469 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
28471 2010-02-26 Jakub Jelinek <jakub@redhat.com>
28473 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
28474 * var-tracking.c: Include diagnostic.h.
28475 (debug_dv): New function.
28476 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
28479 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
28480 (add_value_chain, add_value_chains, remove_value_chain,
28481 remove_value_chains): Handle DEBUG_EXPRs.
28482 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
28485 * regcprop.c (struct queued_debug_insn_change): New type.
28486 (struct value_data_entry): Add debug_insn_changes field.
28487 (struct value_data): Add n_debug_insn_changes field.
28488 (debug_insn_changes_pool): New variable.
28489 (free_debug_insn_changes, apply_debug_insn_changes,
28490 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
28491 (kill_value_one_regno): Call free_debug_insn_changes if needed.
28492 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
28494 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
28496 (copyprop_hardreg_forward_1): Don't call apply_change_group for
28497 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
28498 changes, call cprop_find_used_regs via note_stores.
28499 (copyprop_hardreg_forward): When copying vd from predecessor
28500 which has any queued DEBUG_INSN changes, make sure the pointers are
28501 cleared. At the end call df_analyze and then if there are any
28502 DEBUG_INSN changes queued at the end of some basic block for still
28503 live registers, apply them.
28504 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
28506 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
28508 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
28511 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
28513 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
28514 targets. Set the default with_cpu/with_arch from arch/cpu.
28515 Allow x86-64 and native for with_cpu/with_arch.
28517 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
28519 * ebitmap.c: Change calls to verify_popcount with calls to
28520 sbitmap_verify_popcount.
28521 (ebitmap_clear_bit): Fixed map->cacheindex test and
28522 map>cache update when bit clearing results in an empty
28525 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
28528 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
28529 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
28530 and support both V2DF and V2DI modes.
28531 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
28532 support both V2DF and V2DI modes.
28533 (general): Delete trailing whitespace from a few patterns.
28535 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28536 V2DF/V2DI interleave high/low builtins.
28538 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
28541 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
28542 interleave high/low functions.
28544 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
28546 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
28547 #pragma extern_prefix.
28549 2010-02-25 Jakub Jelinek <jakub@redhat.com>
28552 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
28553 BLKmode, assert op0 is a MEM and just adjust its mode.
28556 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
28557 if bitpos isn't multiple of mode's bitsize.
28559 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
28561 * c.opt (-ftemplate-depth=): New.
28562 (-ftemplate-depth-): Deprecate.
28563 * optc-gen.awk: Handle -ftemplate-depth=.
28564 * opth-gen.awk: Likewise.
28565 * c-opts.c (c_common_handle_option): Likewise.
28566 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
28568 2010-02-24 Jason Merrill <jason@redhat.com>
28570 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
28572 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28574 * cfg.c (alloc_aux_for_block): Remove inline.
28575 (alloc_aux_for_edge): Likewise.
28577 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28579 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
28581 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28583 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
28584 * config/i386/sol2-gas.h: New file.
28585 * config.gcc (i[34567]86-*-solaris2*): Use it.
28587 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
28590 * c-typeck.c (ep_convert_and_check): New.
28591 (build_conditional_expr): Use it.
28592 (build_binary_op): Likewise.
28594 2010-02-24 Jakub Jelinek <jakub@redhat.com>
28596 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
28599 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
28600 bounds even for -O+.
28601 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
28602 expr needs to have DECL_NAME set.
28604 2010-02-24 Nick Clifton <nickc@redhat.com>
28606 * config/mep/mep.c: Include gimple.h.
28607 (mep_function_uses_sp): Delete unused function.
28608 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
28609 parameters. Use unsigned integers to count args. Return a
28610 NULL_RTX instead of an error_mark_node. Toidy up formatting.
28612 2010-02-23 Jakub Jelinek <jakub@redhat.com>
28615 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
28616 greater or equal to nelt instead of 2 * nelt.
28617 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
28620 2010-02-23 Jason Merrill <jason@redhat.com>
28623 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
28624 in cfun->local_decls even if they have register types.
28627 * stor-layout.c (place_field): Don't warn about unnecessary
28628 DECL_PACKED if the type is packed.
28630 2010-02-23 Jakub Jelinek <jakub@redhat.com>
28633 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
28634 GOTOFF relocs, even when the base reg isn't pic pointer.
28636 2010-02-23 Michael Matz <matz@suse.de>
28639 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
28640 (expand_gimple_basic_block): Generate and use debug temps if there
28641 are debug uses left after the last real use of TERed ssa names.
28642 Unlink debug immediate uses when they are expanded.
28644 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
28647 * config/i386/i386.c (override_options): Reorganise to provide
28648 better error messages.
28650 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
28652 PR middle-end/43083
28653 * graphite-scop-detection.c (create_single_exit_edge): Move
28654 the call to find_single_exit_edge to....
28655 (create_sese_edges): ...here. Don't handle multiple edges
28656 exiting the function.
28657 (build_graphite_scops): Don't handle multiple edges
28658 exiting the function.
28660 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
28662 PR middle-end/43097
28663 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
28664 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
28666 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
28668 PR middle-end/43026
28669 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
28671 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
28674 * c-typeck.c (convert_arguments): Print declaration location.
28675 * c-common.c (validate_nargs): Rename as
28676 builtin_function_validate_nargs.
28677 (check_builtin_function_arguments): Update.
28679 2010-02-22 Richard Guenther <rguenther@suse.de>
28682 * tree-inline.c (declare_return_variable): Use the type of
28683 the call stmt lhs if available.
28685 2010-02-22 Duncan Sands <baldrick@free.fr>
28687 * passes.c (register_pass): Always consider all pass lists when
28688 ref_pass_instance_number is zero.
28690 2010-02-22 Richard Guenther <rguenther@suse.de>
28692 PR tree-optimization/42749
28693 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
28694 parameter. Do arithmetic in the original type.
28695 (update_accumulator_with_ops): Likewise.
28696 (adjust_accumulator_values): Adjust.
28698 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28700 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
28701 (QI to BLKmode splitter): New splitter.
28703 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
28705 * config/i386/i386.c (initial_ix86_tune_features): Turn on
28706 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
28708 2010-02-22 Richard Guenther <rguenther@suse.de>
28710 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
28712 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
28714 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
28715 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
28716 ($(T)crti.o, $(T)crtn.o): Remove rules.
28718 2010-02-21 Tobias Burnus <burnus@net-b.de>
28721 * doc/invoke.texi (-fassociative-math): Document that this
28722 option is automatically enabled for Fortran.
28724 2010-02-20 David S. Miller <davem@davemloft.net>
28726 * configure.ac: Test if linker and assembler properly support
28727 GOTDATA_OP relocations.
28728 * configure: Rebuild.
28729 * config.in: Likewise.
28730 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
28731 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
28732 (movsi_high_pic): Likewise.
28733 (movdi_lo_sum_pic): Likewise.
28734 (movdi_high_pic): Likewise.
28735 (movsi_pic_gotdata_op): New pattern.
28736 (movdi_pic_gotdata_op): Likewise.
28737 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
28738 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
28740 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
28743 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
28744 attribute to ssemul.
28745 (xop_mulv2div2di3_high): Ditto.
28747 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28750 * c.opt (Wconversion-null): New option.
28751 * doc/invoke.texi (Wconversion-null): Document.
28753 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28755 * common.opt (Wlarger-than-): Add Undocumented.
28757 2010-02-19 Mike Stump <mikestump@comcast.net>
28759 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
28761 2010-02-19 Jason Merrill <jason@redhat.com>
28764 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
28765 * configure: Likewise.
28767 2010-02-20 Alan Modra <amodra@gmail.com>
28769 PR middle-end/42344
28770 * cgraph.h (cgraph_make_decl_local): Declare.
28771 * cgraph.c (cgraph_make_decl_local): New function.
28772 (cgraph_make_node_local): Use it.
28773 * cgraphunit.c (cgraph_function_versioning): Likewise.
28774 * ipa.c (function_and_variable_visibility): Likewise.
28776 2010-02-19 Jakub Jelinek <jakub@redhat.com>
28779 * except.c (sjlj_emit_function_enter): Don't call
28780 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
28782 * rtl.h (add_reg_br_prob_note): Remove prototype.
28784 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
28787 * c-common.c (conversion_warning): Remove widening conversions
28788 before checking the conversion of integers to reals.
28790 2010-02-19 Mike Stump <mikestump@comcast.net>
28792 PR middle-end/43125
28793 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
28796 * cgraphunit.c (process_function_and_variable_attributes): Check
28797 DECL_PRESERVE_P instead of looking up attribute "used".
28798 * ipa-pure-const.c (check_decl): Likewise.
28799 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
28800 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
28801 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
28802 instead of attribute "used".
28803 * config/sol2-c.c (solaris_pragma_init): Likewise.
28804 (solaris_pragma_fini): Likewise.
28806 2010-02-19 Jakub Jelinek <jakub@redhat.com>
28808 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
28809 Use XCNEW instead of xcalloc.
28810 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
28811 XNEW instead of xmalloc.
28812 (get_fields): Use XNEWVEC instead of xmalloc.
28815 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
28816 populate vars array.
28817 (create_new_general_access): For debug stmts just reset value.
28818 (get_stmt_accesses): For accesses within debug stmts just record them
28819 using add_access_to_acc_sites instead of preventing the peeling or
28820 counting them as accesses.
28822 PR middle-end/42233
28823 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
28825 2010-02-19 Richard Guenther <rguenther@suse.de>
28827 PR tree-optimization/42916
28828 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
28831 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
28833 * configure.ac: Replace all uses of changequote in macro arguments
28834 with proper quoting.
28836 2010-02-19 Jakub Jelinek <jakub@redhat.com>
28838 PR middle-end/42233
28839 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
28841 2010-02-19 Richard Guenther <rguenther@suse.de>
28843 PR tree-optimization/42944
28844 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
28845 test for aliasing with errno.
28847 2010-02-19 Jakub Jelinek <jakub@redhat.com>
28849 PR middle-end/42233
28850 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
28851 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
28852 * dojump.c: Include output.h.
28853 (inv): New inline function.
28854 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
28855 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
28856 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
28857 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
28858 argument, pass it down to other calls.
28859 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
28860 add REG_BR_PROB note to the conditional jump.
28861 * cfgexpand.c (add_reg_br_prob_note): Removed.
28862 (expand_gimple_cond): Don't call it, add the probability
28863 as last argument to jumpif_1/jumpifnot_1.
28864 * Makefile.in (dojump.o): Depend on output.h.
28865 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
28867 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
28868 * stmt.c (do_jump_if_equal): Likewise.
28869 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
28870 * loop-unswitch.c (compare_and_jump_seq): Likewise.
28871 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
28873 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
28874 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
28875 jumpifnot_1 callers.
28876 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
28878 (store_expr): Adjust jumpifnot caller.
28879 (store_constructor): Adjust jumpif caller.
28881 PR middle-end/42233
28882 * gimplify.c (gimple_boolify): For __builtin_expect call
28883 gimple_boolify also on its first argument.
28885 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
28887 * configure.ac (gnu-unique-object): Wrap regexps using [] in
28889 (__stack_chk_fail): Ditto. Remove quadrigraphs.
28890 * configure: Regenerated.
28892 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28894 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
28895 lang_hooks.types_compatible_p instead of comptypes.
28897 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
28899 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
28900 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
28901 if __prefer_thumb__ is defined.
28903 2010-02-18 Martin Jambor <mjambor@suse.cz>
28905 PR tree-optimization/43066
28906 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
28907 array with zero-sized element type.
28909 2010-02-18 Jakub Jelinek <jakub@redhat.com>
28911 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
28912 rtx, allocate struct var_loc_node here and return it to the
28913 caller, and only if it is actually needed.
28914 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
28915 move it earlier and return immediately if it returns NULL.
28917 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
28919 * config/sparc/gas.h: New file. Restore
28920 TARGET_ASM_NAMED_SECTION to its ELF default.
28921 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
28922 check !HAVE_GNU_AS.
28923 * config/sparc/sparc.c (sparc_elf_asm_named_section):
28924 Likewise. Add ATTRIBUTE_UNUSED to prototype.
28925 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
28926 after sparc/sysv4.h.
28928 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
28930 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
28932 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
28934 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
28935 patterns from predicated pattern.
28937 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
28940 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
28941 for insn mnemonic suffix.
28943 2010-02-17 Richard Guenther <rguenther@suse.de>
28945 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
28948 2010-02-17 Jakub Jelinek <jakub@redhat.com>
28951 * caller-save.c (save_call_clobbered_regs): If BB ends with
28952 a DEBUG_INSN, move any notes in between last real insn and the last
28953 DEBUG_INSN after the last DEBUG_INSN.
28955 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
28957 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
28958 Fix return type. Fix argument type. Explain meaning of return value.
28960 2010-02-16 Richard Guenther <rguenther@suse.de>
28962 PR tree-optimization/41043
28963 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
28964 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
28966 (vrp_visit_phi_node): ... but only for loop PHI nodes.
28968 2010-02-16 Ira Rosen <irar@il.ibm.com>
28970 PR tree-optimization/43074
28971 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
28972 * tree-vect-loop.c (vect_analyze_loop_operations): Add
28973 vectorizable cycles in hybrid SLP check.
28974 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
28976 2010-02-16 Richard Guenther <rguenther@suse.de>
28978 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
28979 (true_dependence): If memrefs_conflict_p computes must-alias
28980 trust it. Move TBAA check after offset-based disambiguation.
28981 (canon_true_dependence): Likewise.
28983 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
28985 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
28986 * doc/invoke.texi: Document it.
28987 * var-tracking.c: Include toplev.h and params.h.
28988 (vt_find_locations): Return bool indicating success. Compute
28989 hash sizes unconditionally. Check new parameter, report.
28990 (variable_tracking_main_1): Check vt_find_locations results and
28991 retry. Renamed from...
28992 (variable_tracking_main): ... this. New wrapper to preserve
28993 flag_var_tracking_assignments.
28994 * Makefile.in (var-tracking.o): Adjust dependencies.
28996 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
28997 Jakub Jelinek <jakub@redhat.com>
29000 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
29001 if weak_import attribute is present.
29002 * config/darwin.c (machopic_select_section): Likewise.
29004 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
29006 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
29007 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
29008 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
29009 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
29011 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
29014 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29015 Fix argument types.
29017 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
29018 Rewrite text to refer to the names.
29020 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
29022 * config/i386/i386-builtin-types.def
29023 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
29024 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
29025 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
29026 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
29027 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
29028 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
29029 IX86_BUILTIN_VPERMIL2PS256.
29030 (MULTI_ARG_4_DF2_DI_I): Defined.
29031 (MULTI_ARG_4_DF2_DI_I1): Defined.
29032 (MULTI_ARG_4_SF2_SI_I): Defined.
29033 (MULTI_ARG_4_SF2_SI_I1): Defined.
29034 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
29035 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
29036 __builtin_ia32_vpermil2ps256.
29037 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
29038 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
29039 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
29040 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
29041 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
29042 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
29043 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
29044 CODE_FOR_xop_vpermil2v8sf3.
29045 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
29046 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
29047 * config/i386/xopintrin.h (_mm_permute2_pd): New.
29048 (_mm256_permute2_pd): New.
29049 (_mm_permute2_ps): New.
29050 (_mm256_permute2_ps): New.
29052 2010-02-15 Nick Clifton <nickc@redhat.com>
29054 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
29055 boolean parameters. Use emit_jump_insn when emitting a pop
29056 instruction containing a return insn.
29057 (push): Use 'true' rather than '1' as second parameter to F.
29058 (h8300_expand_prologue): Likewise.
29059 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
29060 (h8300_expand_epilogue): Likewise.
29062 2010-02-15 Richard Guenther <rguenther@suse.de>
29064 PR middle-end/43068
29065 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
29068 2010-02-15 Nick Clifton <nickc@redhat.com>
29070 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
29073 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
29075 * intl.c (fake_ngettext): New function.
29076 * intl.h (fake_ngettext): Declare.
29077 (ngettext): Define macro.
29078 * collect2.c (notice_translated): New function.
29079 (main): Use notice_translated and ngettext.
29080 * collect2.h (notice_translated): Declare.
29082 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
29084 * reorg.c (delete_computation): Comment fixes.
29085 * caller-save.c (setup_save_areas): Idem.
29086 * sel-sched-dump.c (dump_lv_set): Idem.
29089 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29091 * config/s390/s390.c (s390_sched_init): New function.
29092 (TARGET_SCHED_INIT): Target hook defined.
29094 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
29095 Jack Howarth <howarth@bromo.med.uc.edu>
29096 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
29099 Partial revert of unintended change in fix for PR41605.
29100 * config/darwin.h: Fix typo.
29101 * config/darwin9.h: Same.
29103 2010-02-11 Jakub Jelinek <jakub@redhat.com>
29105 * c-pch.c (pch_init): Clear v.
29107 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29109 PR middle-end/42930
29110 * graphite-scop-detection.c (graphite_can_represent_scev): Call
29111 graphite_can_represent_init for MULT_EXPR.
29113 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29115 PR middle-end/42914
29116 PR middle-end/42530
29117 * graphite-sese-to-poly.c (remove_phi): New.
29118 (translate_scalar_reduction_to_array): Call remove_phi.
29120 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29122 PR middle-end/42771
29123 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
29124 * graphite-clast-to-gimple.h (gloog): Update declaration.
29125 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
29126 * graphite-poly.h (struct poly_bb): Add missing comments.
29127 (struct scop): Add poly_scop_p field.
29128 (POLY_SCOP_P): New.
29129 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
29130 * graphite.c (graphite_transform_loops): Build the polyhedral
29131 representation for each scop before code generation.
29132 * sese.c (rename_variables_in_operand): Removed.
29133 (rename_variables_in_expr): Return the renamed expression.
29134 (rename_sese_parameters): New.
29135 * sese.h (rename_sese_parameters): Declared.
29137 2010-02-11 Richard Guenther <rguenther@suse.de>
29139 PR tree-optimization/42998
29140 * tree-ssa-pre.c (create_expression_by_pieces): Treat
29141 POINTER_PLUS_EXPR properly.
29143 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29144 Changpeng Fang <changpeng.fang@amd.com>
29146 PR middle-end/40886
29147 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
29148 the cost of an IV candidate when the IV is used in a test against zero.
29150 * gcc.dg/tree-ssa/ivopts-3.c: New.
29152 2010-02-11 Richard Guenther <rguenther@suse.de>
29155 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
29156 pointer-vs-decl case by swapping refs. Handle some cases
29157 of pointer-vs-decl disambiguations more conservatively.
29158 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
29159 to false after expanding.
29161 2010-02-11 Richard Guenther <rguenther@suse.de>
29164 * gcc.c (process_command): Handle LTO file@offset case more
29167 2010-02-11 Jakub Jelinek <jakub@redhat.com>
29169 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
29170 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
29172 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
29174 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
29175 if MEM's mode size isn't DWARF2_ADDR_SIZE.
29176 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
29177 Optimize eq/ne comparisons when both arguments are known to be
29179 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
29180 Don't mask operands unnecessarily if they are known to be already
29183 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
29185 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
29188 2010-02-10 Richard Guenther <rguenther@suse.de>
29190 PR tree-optimization/43017
29191 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
29192 for wrapping signed arithmetic.
29194 2010-02-10 Jakub Jelinek <jakub@redhat.com>
29197 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
29198 if no debug info should be emitted for it.
29200 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
29202 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
29203 note when flag_exceptions is set.
29205 2010-02-10 Duncan Sands <baldrick@free.fr>
29207 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
29209 2010-02-10 Richard Guenther <rguenther@suse.de>
29212 * tree.c (get_unwidened): Handle constants.
29213 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
29215 2010-02-10 Martin Jambor <mjambor@suse.cz>
29218 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
29219 check for variable argument counts independently.
29221 2010-02-10 Christian Bruel <christian.bruel@st.com>
29224 * config/sh/sh.c (find_barrier): Increase length for non delayed
29225 conditional branches.
29227 2010-02-10 Christian Bruel <christian.bruel@st.com>
29229 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
29231 2010-02-10 Jakub Jelinek <jakub@redhat.com>
29233 * builtins.c (set_builtin_user_assembler_name): Also handle
29234 ffs if int is smaller than word.
29236 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
29238 PR middle-end/42973
29239 * ira-conflicts.c (get_dup): Remove.
29240 (process_reg_shuffles): Add new parameter. Use it as an
29241 additional guard for copy generation.
29242 (add_insn_allocno_copies): Rewrite.
29244 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
29246 * common.opt (fsched2-use-traces): Preserved for backward
29248 * doc/invoke.texi: Remove the documentation about option
29249 -fsched2-use-traces.
29250 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
29251 flag_sched2_use_traces.
29252 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
29253 the backward compatibility flag section.
29255 2010-02-09 Richard Guenther <rguenther@suse.de>
29257 PR tree-optimization/43008
29258 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
29259 make HEAP variables initialized from global memory if they
29260 are not known builtin functions.
29261 (find_func_aliases): Adjust.
29263 2010-02-09 Richard Guenther <rguenther@suse.de>
29265 PR tree-optimization/43000
29266 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
29267 arithmetic manually.
29269 2010-02-08 Jakub Jelinek <jakub@redhat.com>
29271 PR tree-optimization/42931
29272 * tree-loop-linear.c (try_interchange_loops): Don't call
29273 double_int_mul if estimated_loop_iterations failed.
29275 2010-02-08 Martin Jambor <mjambor@suse.cz>
29277 PR middle-end/42898
29278 * tree-sra.c (build_accesses_from_assign): Do not mark in
29279 should_scalarize_away_bitmap if stmt has volatile ops.
29280 (sra_modify_assign): Do not process assigns piecemeal if if stmt
29283 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
29285 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
29287 2010-02-07 Adam Nemet <adambnmet@gmail.com>
29289 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
29290 before the pattern.
29292 2010-02-07 Andrew Pinski <pinskia@gmail.com>
29294 PR middle-end/42946
29295 * df-core.c (df_finish_pass): Change type of saved_flags to int.
29297 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
29299 PR middle-end/42988
29300 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
29301 to unknown_dependence.
29302 (graphite_legal_transform_dr): Handle the unknown_dependence.
29303 (graphite_carried_dependence_level_k): Same.
29305 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
29307 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
29309 2010-02-07 Richard Guenther <rguenther@suse.de>
29311 PR middle-end/42991
29312 * expr.c (get_inner_reference): Always initialize *pbitsize.
29314 2010-02-07 Richard Guenther <rguenther@suse.de>
29316 PR middle-end/42956
29317 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
29318 new ARRAY_REFs on variable size element or minimal index arrays.
29320 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
29321 gimple_fold_indirect_ref.
29323 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
29326 * arm.c (arm_override_options): Just return if the user has specified
29327 an invalid fpu name.
29329 2010-02-03 Jason Merrill <jason@redhat.com>
29332 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
29333 i386_pe_maybe_record_exported_symbol.
29335 2010-02-05 Steve Ellcey <sje@cup.hp.com>
29338 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
29339 (pa_delegitimize_address): New function.
29341 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
29343 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
29344 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
29346 2010-02-05 Richard Guenther <rguenther@suse.de>
29349 * lto-streamer-in.c (get_resolution): Deal with references
29350 to undefined functions.
29352 2010-02-05 Richard Guenther <rguenther@suse.de>
29354 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
29355 (fold_const_aggregate_ref): Likewise.
29356 (ccp_fold_stmt): Substitute loads.
29357 (maybe_fold_reference): Verify types before substituting.
29359 (fold_gimple_assign): Unshare properly.
29360 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
29362 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
29364 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
29365 for rs6000_gen_cell_microcode.
29367 2010-02-04 Richard Guenther <rguenther@suse.de>
29369 PR rtl-optimization/42952
29370 * dse.c (const_or_frame_p): Remove MEM handling.
29372 2010-02-04 Nick Clifton <nickc@redhat.com>
29374 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
29375 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
29376 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
29377 (mn10300_asm_output_mi_thunk): New function.
29378 (mn10300_can_output_mu_thunk): New function.
29379 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
29380 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
29381 (FUNCTION_ARG): Delete incorrect comment.
29383 2010-02-03 Jason Merrill <jason@redhat.com>
29386 * fold-const.c (operand_equal_p): Handle erroneous types.
29388 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29390 * config/h8300/h8300.md (can_delay): Fix attibute condition.
29392 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
29394 PR rtl-optimization/42941
29395 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
29398 2010-02-03 Jason Merrill <jason@redhat.com>
29401 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
29403 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
29406 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
29407 (cselib_reset_table): Renamed from...
29408 (cselib_reset_table_with_next_value): ... this.
29409 (cselib_get_next_uid): Renamed from...
29410 (cselib_get_next_unknown_value): ... this.
29411 * cselib.c (next_uid): Renamed from...
29412 (next_unknown_value): ... this.
29413 (cselib_clear_table): Adjust.
29414 (cselib_reset_table): Adjust. Renamed from...
29415 (cselib_reset_table_with_next_value): ... this.
29416 (cselib_get_next_uid): Adjust. Renamed from...
29417 (cselib_get_next_unknown_value): ... this.
29418 (get_value_hash): Use hash.
29419 (cselib_hash_rtx): Likewise.
29420 (new_cselib_val): Adjust. Set and dump uid.
29421 (cselib_lookup_mem): Pass next_uid as hash.
29422 (cselib_subst_to_values): Likewise.
29423 (cselib_log_lookup): Dump uid.
29424 (cselib_lookup): Pass next_uid as hash. Adjust.
29425 (cselib_process_insn): Adjust.
29426 (cselib_init): Initialize next_uid.
29427 (cselib_finish): Adjust.
29428 (dump_cselib_table): Likewise.
29429 * dse.c (canon_address): Dump value uid.
29430 * print-rtl.c (print_rtx): Print value uid.
29431 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
29433 (dv_uid): New function, sort of renamed from...
29434 (dv_htab_hash): ... this, reimplemented in terms of it and...
29435 (dv_uid2hash): ... this. New.
29436 (variable_htab_eq): Drop excess assertions.
29437 (tie_break_pointers): Removed.
29438 (canon_value_cmp): Compare uids.
29439 (variable_post_merge_New_vals): Print uids.
29440 (vt_add_function_parameters): Adjust.
29441 (vt_initialize): Reset table. Adjust.
29443 2010-02-03 Richard Guenther <rguenther@suse.de>
29445 PR tree-optimization/42944
29446 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
29447 (call_may_clobber_ref_p_1): Likewise. Properly handle
29448 malloc and calloc clobbering errno.
29450 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
29452 * doc/invoke.texi: Fix name of sched1 dump.
29454 * opts.c (decode_options): Set flag_tree_switch_conversion
29455 only conditionally on optimize >= 2.
29457 * gcse.c: Assorted comment fixes in pass description.
29459 2010-02-03 Anthony Green <green@moxielogic.com>
29461 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
29462 nop padding in order to maintain alignment of storage location of
29463 target function address.
29464 (moxie_trampoline_init): Store target function address at newly
29466 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
29468 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
29470 2010-02-03 Richard Guenther <rguenther@suse.de>
29472 PR middle-end/42927
29473 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
29475 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29477 * config.gcc: Reenable check for obsolete targets.
29478 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
29479 mips-sgi-irix6.[0-4]*.
29481 2010-02-02 Nick Clifton <nickc@redhat.com>
29483 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
29484 constant size of 4 as being the same as 0.
29485 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
29486 can take values in the range 0..4.
29488 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
29491 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
29492 as _darwin10_Unwind_FindEnclosingFunction().
29493 * libgcc-libsystem.ver: New.
29495 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
29498 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
29499 implicitly set registers.
29501 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
29503 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
29504 (arm_override_options): Allow automatic selection of the thread
29505 pointer register if thumb2.
29506 (legitimize_pic_address): Improve code sequences for Thumb2.
29507 (arm_call_tls_get_addr): Likewise.
29508 (legitimize_tls_address): Likewise.
29509 * arm.md (pic_load_addr_arm): Delete. Replace with ...
29510 (pic_load_addr_32bit): ... this. New named pattern.
29511 * thumb2.md (pic_load_addr_thumb2): Delete.
29512 (pic_load_dot_plus_four): Delete.
29513 (tls_load_dot_plus_four): New named pattern.
29515 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29518 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
29519 Document fix for TLS bug.
29521 2010-01-31 Richard Guenther <rguenther@suse.de>
29523 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
29524 conservatively correct.
29526 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29530 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29532 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29534 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29536 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
29538 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
29540 * config.gcc: Adjust order of makefile fragments for mingw targets.
29542 2010-01-31 Richard Guenther <rguenther@suse.de>
29544 PR middle-end/42898
29545 * gimplify.c (gimplify_init_constructor): For volatile LHS
29546 initialize a temporary.
29548 2010-01-31 Matthias Klose <doko@ubuntu.com>
29550 * configure.ac: Fix __stack_chk_fail check for cross builds configured
29552 * configure: Regenerate.
29554 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
29556 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
29557 the same alias set and their sizes different constantness.
29558 (aliasing_component_refs_p): Revert 2009-10-24 change.
29560 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29562 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
29565 2010-01-29 Richard Guenther <rguenther@suse.de>
29567 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
29568 Assert we successfully updated the call.
29570 2010-01-29 Jakub Jelinek <jakub@redhat.com>
29572 PR rtl-optimization/42889
29573 * df.h (df_set_bb_dirty_nonlr): New prototype.
29574 * df-core.c (df_set_bb_dirty_nonlr): New function.
29575 * df-scan.c (df_insn_rescan): Call it instead of
29576 df_set_bb_dirty for DEBUG_INSNs.
29578 2010-01-29 Richard Guenther <rguenther@suse.de>
29580 PR middle-end/37448
29581 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
29582 quadratic behavior in most cases.
29584 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
29587 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
29588 in the call to gen_x86_movsicc_0_m1.
29590 2010-01-28 Richard Guenther <rguenther@suse.de>
29592 PR tree-optimization/42871
29593 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
29595 2010-01-28 Richard Guenther <rguenther@suse.de>
29597 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
29598 into call arguments.
29600 2010-01-28 Richard Guenther <rguenther@suse.de>
29602 PR middle-end/42883
29603 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
29604 the forwarder if the destination is an EH landing pad.
29606 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
29608 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
29609 block list passed to gimple_duplicate_sese_tail.
29610 (parallelize_loops): Avoid parallelization when the function
29611 has_nonlocal_label.
29612 Avoid parallelization when the preheader is IRREDUCIBLE.
29613 Try to optimize when estimated_loop_iterations_int is unresolved.
29614 Add the loop's location to the dump file.
29615 * tree-cfg.c (add_phi_args_after_redirect): Remove.
29616 (gimple_duplicate_sese_tail): Remove the check for the latch.
29617 Redirect nexits to the exit block.
29618 Remove handling of the incoming edges to the latch.
29619 Redirect the backedge from the copied latch to the exit bb.
29621 2010-01-28 Michael Matz <matz@suse.de>
29624 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
29625 Wrap force_reg into a sequence, emit it before user.
29627 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
29629 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
29631 (arm_legacy_rev): Likewise.
29632 (thumb_legacy_rev): Likewise.
29634 2010-01-27 Jakub Jelinek <jakub@redhat.com>
29636 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
29637 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
29638 on MEM's address failed, try avoid_constant_pool_reference and
29639 recurse if it returned something different.
29640 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
29641 address, try avoid_constant_pool_reference and recurse if it
29642 returned something different.
29643 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
29644 address and avoid_constant_pool_reference returned something
29645 different, don't set have_address.
29647 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
29650 * var-tracking.c (val_store): Add modified argument, obey it.
29652 (count_uses): Move down logging of main.
29653 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
29654 don't need resolution.
29655 (emit_notes_in_bb): Likewise.
29657 2010-01-27 Richard Guenther <rguenther@suse.de>
29659 PR middle-end/42878
29660 * tree-inline.c (remap_decl): Delay remapping of SSA name
29661 default definitions until we need them.
29663 2010-01-27 Jakub Jelinek <jakub@redhat.com>
29665 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
29666 (rs6000_delegitimize_address): New function.
29668 * config/s390/s390.c (s390_delegitimize_address): Call
29669 delegitimize_mem_from_attrs.
29671 PR middle-end/42874
29672 * tree-inline.c (cannot_copy_type_1): Removed.
29673 (copy_forbidden): Don't forbid copying of functions containing
29674 records/unions with variable length fields.
29676 2010-01-27 Christian Bruel <christian.bruel@st.com>
29680 * config/sh/sh.c (find_barrier): Increase length for non delayed
29681 conditional branches.
29683 2010-01-27 Matthias Klose <doko@ubuntu.com>
29685 * configure.ac (gnu-unique-object): Fix ldd version check.
29686 * configure: Regenerate.
29688 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29690 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
29692 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
29693 Test for HAVE_GNU_AS value.
29695 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29697 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
29698 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
29699 INT64_TYPE): Define.
29700 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
29701 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29702 INT_LEAST64_TYPE): Define.
29703 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
29704 UINT_LEAST64_TYPE): Define.
29705 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
29706 INT_FAST64_TYPE): Define.
29707 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29708 UINT_FAST64_TYPE): Define.
29709 (INTMAX_TYPE, UINTMAX_TYPE): Define.
29710 (INTPTR_TYPE, UINTPTR_TYPE): Define.
29711 (SIG_ATOMIC_TYPE): Define.
29713 2010-01-26 Richard Guenther <rguenther@suse.de>
29715 * df-scan.c (df_scan_set_bb_info): Remove assert.
29716 (df_insn_rescan_debug_internal): Merge asserts.
29717 (df_install_ref): Likewise.
29718 (df_mark_reg): Use bitmap_set_range.
29719 (df_hard_reg_used_p): Remove assert.
29720 (df_hard_reg_used_count): Likewise.
29722 2010-01-26 Richard Guenther <rguenther@suse.de>
29724 PR rtl-optimization/42685
29725 * web.c (web_main): Ignore DEBUG_INSNs.
29727 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
29729 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
29731 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
29732 Fix types of fndecl and arglist parameters.
29734 2010-01-26 Richard Guenther <rguenther@suse.de>
29736 PR middle-end/42806
29737 * tree-eh.c (unsplit_eh): Skip debug insns.
29739 2010-01-26 Richard Guenther <rguenther@suse.de>
29741 PR tree-optimization/42250
29742 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
29744 2010-01-26 Jakub Jelinek <jakub@redhat.com>
29747 * omp-low.c (expand_omp_sections): Only use single_pred if
29748 l2_bb is single_pred_p.
29750 2010-01-25 Christian Bruel <christian.bruel@st.com>
29753 * config/sh/sh.c (find_barrier): Increase length for non delayed
29754 conditional branches.
29755 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
29757 2010-01-24 David S. Miller <davem@davemloft.net>
29759 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
29760 define if not using GAS.
29761 * config/sparc/sparc.c (sparc_elf_asm_named_section):
29762 Likewise. Delete SECTION_MERGE code, which is only applicable
29765 2010-01-24 Mark Mitchell <mark@codesourcery.com>
29768 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
29769 mangling of va_list in system headers.
29771 2010-01-23 Toon Moene <toon@moene.org>
29773 * tree-predcom.c (combine_chains): Return NULL, not false.
29775 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
29777 * tree-loop-distribution.c (distribute_loop): Fix declaration and
29778 initialization of variable res to agree with return type.
29780 2010-01-22 Steve Ellcey <sje@cup.hp.com>
29782 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
29783 * tree-sra.c: Add include of expr.h.
29785 2010-01-22 Jakub Jelinek <jakub@redhat.com>
29787 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
29788 insert the debug stmt on the single non-EH edge from the stmt.
29790 2010-01-22 Richard Henderson <rth@redhat.com>
29793 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
29794 the RHS until after generate_subtree_copies has insertted its
29795 code before the current statement.
29797 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
29799 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
29801 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
29803 2010-01-21 Martin Jambor <mjambor@suse.cz>
29805 PR tree-optimization/42585
29806 * tree-sra.c (struct access): New field grp_total_scalarization.
29807 (dump_access): Dump the new field.
29808 (should_scalarize_away_bitmap): New variable.
29809 (cannot_scalarize_away_bitmap): Likewise.
29810 (sra_initialize): Allocate new bitmaps.
29811 (sra_deinitialize): Free new bitmaps.
29812 (create_access_1): New function.
29813 (create_access): Parts moved to create_access_1.
29814 (type_consists_of_records_p): New function.
29815 (completely_scalarize_record): Likewise.
29816 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
29817 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
29818 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
29820 (analyze_all_variable_accesses): Completely scalarize small eligible
29823 2010-01-21 Martin Jambor <mjambor@suse.cz>
29825 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
29827 2010-01-21 Andrew Haley <aph@redhat.com>
29829 * gcc.c (process_command): Move lang_specific_driver before
29830 setting cc_libexec_prefix.
29832 2010-01-21 Richard Guenther <rguenther@suse.de>
29834 PR middle-end/19988
29835 * fold-const.c (negate_expr_p): Pretend only negative
29836 real constants are easily negatable.
29838 2010-01-20 Janis Johnson <janis187@us.ibm.com>
29839 Jason Merrill <jason@redhat.com>
29841 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
29842 (TYPE_TRANSPARENT_AGGR): this, for union and record.
29843 * calls.c (initialize argument_information): Handle it.
29844 * c-common.c (handle_transparent_union_attribute): Use new name.
29845 * c-decl.c (finish_struct): Ditto.
29846 * c-typeck.c (type_lists_compatible_p): Ditto.
29847 (convert_for_assignment): Use new name and also handle record.
29848 * function.c (aggregate_value_p): Handle it.
29849 (pass_by_reference): Ditto.
29850 (assign_parm_data_types): Ditto.
29851 * print-tree.c (print_node): Ditto.
29852 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
29853 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
29854 * tree.c (first_field): New fn.
29856 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
29859 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
29860 even when linking statically, for now.
29862 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
29865 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
29866 without a cselib val.
29867 (count_uses): Accept MO_VAL_SET with no val on stores.
29868 (add_stores): Likewise.
29870 2010-01-20 Jakub Jelinek <jakub@redhat.com>
29872 * var-tracking.c (check_value_val): Add a compile time assertion.
29873 (dv_is_decl_p): Simplify.
29874 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
29875 gcc_assert if ENABLE_CHECKING.
29877 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
29880 * var-tracking.c: Include tree-flow.h.
29881 (mem_dies_at_call): New.
29882 (dataflow_set_preserve_mem_locs): Use it.
29883 (dataflow_set_remove_mem_locs): Likewise.
29884 (dump_var): Renamed from dump_variable. Adjust all callers.
29885 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
29886 * Makefile.in (var-tracking.o): Adjust deps.
29888 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
29890 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
29892 2010-01-20 Richard Guenther <rguenther@suse.de>
29894 PR tree-optimization/42717
29895 * tree-ssa-dce.c (get_live_post_dom): Remove.
29896 (forward_edge_to_pdom): Take an arbitrary edge to copy
29897 degenerate PHI args from.
29898 (remove_dead_stmt): Use the first post-dominator even if it
29899 does not contain live statements as redirection destination.
29901 2010-01-20 Richard Guenther <rguenther@suse.de>
29903 * tree-inline.c (estimate_num_insns): Handle EH builtins.
29905 2010-01-20 Jakub Jelinek <jakub@redhat.com>
29907 * sel-sched.c (create_speculation_check): Remove set but not used
29909 (try_transformation_cache): Remove set but not used variable ds.
29910 (calculate_privileged_insns): Remove set but not used variables
29911 cur_insn and min_spec_insn.
29912 (find_best_expr): Remove set but not used variable avail_n.
29913 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
29915 * cgraphunit.c (assemble_thunk): Remove set but not used variable
29917 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
29918 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
29919 new_scop_exit_edge.
29921 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
29924 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
29925 cpu types. Add support for *-sse3 cpu types.
29926 (x86_64-*-*): Ditto.
29928 2010-01-20 Jakub Jelinek <jakub@redhat.com>
29930 PR middle-end/42803
29931 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
29932 argument, call initializer_constant_valid_p_1 instead of
29933 initializer_constant_valid_p, pass CACHE to it, return NULL
29934 immediately if first call returns NULL.
29935 (initializer_constant_valid_p_1): New function.
29936 (initializer_constant_valid_p): Use it.
29938 2010-01-20 Thomas Quinot <quinot@adacore.com>
29940 * tree.def (PLACEHOLDER_EXPR): Fix comment.
29942 2010-01-20 Jakub Jelinek <jakub@redhat.com>
29944 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
29945 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
29946 (loc_list_from_tree): Don't handle unsigned division. Handle
29947 signed modulo using DW_OP_{over,over,div,mul,minus}.
29948 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
29949 modulo instead of signed.
29951 2010-01-20 DJ Delorie <dj@redhat.com>
29953 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
29955 (h8300_emit_stack_adjustment): Propogate it.
29957 (h8300_expand_prologue): Likewise.
29958 (h8300_expand_epilogue): Likewise.
29960 2010-01-19 Michael Matz <matz@suse.de>
29962 PR tree-optimization/41783
29963 * tree-data-ref.c (toplevel): Include flags.h.
29964 (dump_data_dependence_relation): Also dump the inputs if the
29965 result will be unknown.
29966 (split_constant_offset_1): Look through some conversions.
29967 * tree-predcom.c (determine_roots_comp): Restart a new chain if
29968 the offset from last element is too large.
29969 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
29970 (reassociate_to_the_same_stmt): Handle vector registers.
29971 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
29972 (e.g. conversions).
29973 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
29974 wide_prolog_niters argument, emit widening instructions.
29975 (vect_do_peeling_for_alignment): Adjust caller, use widened
29976 variant of the iteration cound.
29977 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
29979 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29982 * config/arm/neon-testgen.m (emit_automatics): New parameter
29983 features. Adjust for Fixed_return_reg feature.
29984 (test_intrinsic): Call emit_automatics with new feature.
29985 * config/arm/neon.ml: Update copyright years.
29986 (features): New Fixed_return_reg feature.
29987 (ops): Update feature for Vget_low.
29989 2010-01-19 Jakub Jelinek <jakub@redhat.com>
29991 PR tree-optimization/42719
29992 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
29996 * fwprop.c (all_uses_available_at): Return false if def_set dest
29997 is a REG that is used in def_insn.
29999 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
30001 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
30003 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
30004 Add argument names.
30006 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
30008 * target.h (struct gcc_target) <secondary_reload>: Change type
30009 of last argument to secondary_reload_info *.
30011 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
30014 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
30015 memory references with unaligned offsets. Remove CQImode handling.
30016 (unaligned_memory_operand): Return 1 for memory references with
30017 unaligned offsets. Remove CQImode handling.
30019 2010-01-18 Richard Guenther <rguenther@suse.de>
30021 PR middle-end/39954
30022 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
30025 2010-01-18 Richard Guenther <rguenther@suse.de>
30027 PR tree-optimization/42781
30028 * tree-ssa-structalias.c (find_what_var_points_to): Skip
30029 restrict processing only if the original variable was artificial.
30031 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
30033 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
30034 find number of popped argument bytes.
30036 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
30037 Fix the text that describes the return value for invalid insns.
30039 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
30041 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
30042 Clarify what 'cost of the -dependence' is. Fix quoting.
30044 * toplev.c (default_get_pch_validity): Rename argument to "sz".
30045 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
30047 2010-01-17 Jakub Jelinek <jakub@redhat.com>
30049 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30050 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
30052 2010-01-17 Richard Guenther <rguenther@suse.de>
30054 PR middle-end/42248
30055 * function.c (split_complex_args): Take a VEC to modify.
30056 (assign_parms_augmented_arg_list): Build a VEC instead of
30057 a chain of PARM_DECLs.
30058 (assign_parms_unsplit_complex): Take a VEC of arguments.
30059 Do not fixup unmodified parms.
30060 (assign_parms): Deal with the VEC.
30061 (gimplify_parameters): Likewise.
30063 2010-01-17 Richard Guenther <rguenther@suse.de>
30065 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
30066 node existence check.
30067 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
30068 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
30069 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
30070 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
30071 (gimple_execute_on_growing_pred): Likewise.
30073 2010-01-17 Richard Guenther <rguenther@suse.de>
30075 PR tree-optimization/42773
30076 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
30077 (compute_antic_aux): Likewise.
30078 (compute_partial_antic_aux): Likewise.
30080 2010-01-17 Jie Zhang <jie.zhang@analog.com>
30083 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
30086 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
30088 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
30091 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
30092 Fix markup for strict argument.
30094 (TARGET_SCHED_REORDER2): Fix argument types.
30096 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
30097 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
30099 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
30100 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
30102 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
30105 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
30106 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
30107 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
30108 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
30109 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
30111 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
30113 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
30115 (TARGET_ASM_RELOC_RW_MASK): Add return type.
30116 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
30118 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
30120 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
30123 (TARGET_ASM_NAMED_SECTION): Fix argument list.
30125 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
30126 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
30128 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
30130 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
30132 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
30133 referring to it. Fix language.
30135 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
30137 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
30139 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
30141 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
30143 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
30144 '@var{stream}. Remove stray 'and'.
30146 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
30148 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
30150 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
30152 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
30153 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
30155 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
30156 Fix description of return value.
30157 Rename argument "sz" to "len."
30159 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
30160 Clarify meaning of 'true' return value.
30162 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
30164 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
30165 rep_mode versus mode_rep.
30167 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
30169 (TARGET_BUILTIN_DECL): Fix name.
30171 (TARGET_COMMUTATIVE_P): Fix type of first argument.
30173 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
30175 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
30177 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
30179 (TARGET_RELAXED_ORDERING): Use @deftypevr.
30181 (TARGET_GET_DRAP_RTX): Note that this is a hook.
30184 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
30185 Rename argument tm_fn to md_fn.
30187 (TARGET_OPTION_PRINT): Fix argument list.
30189 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
30192 * config/i386/i386.c (ix86_fixup_binary_operands):
30193 Revert FMA4 fixup of operands.
30195 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30198 * Makefile.in (write_entries_to_file, install-plugin):
30199 Use \012 instead of \n with tr.
30201 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
30203 * configure.ac (HAVE_AS_REF): New C macro.
30204 * configure: Regenerate.
30205 * config.in: Likewise.
30206 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
30208 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
30211 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
30213 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
30215 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
30217 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
30219 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
30221 (TARGET_IN_SMALL_DATA_P): Fix argument type.
30223 (TARGET_BINDS_LOCAL_P): Fix argument type.
30225 (TARGET_ASM_FILE_END): Use prototype.
30227 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
30229 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
30231 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
30233 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
30235 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
30236 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
30238 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
30239 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
30241 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
30242 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
30243 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
30244 (TARGET_ADDR_SPACE_CONVERT): Likewise.
30246 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
30248 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
30250 (TARGET_INIT_BUILTINS): Use prototype.
30252 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
30253 Put 'const char *' in braces. Fix parameter types.
30254 (TARGET_INVALID_CONVERSION): Fix parameter types.
30255 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
30256 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
30258 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
30261 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
30263 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
30265 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
30267 * doc/tm.texi (TARGET_HELP): Fix return type.
30269 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
30270 in braces. Fix argument types.
30272 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
30274 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
30276 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
30278 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
30279 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
30281 (TARGET_MANGLE_TYPE): Fix argument types.
30283 (TARGET_IRA_COVER_CLASSES): Use prototype.
30285 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
30287 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
30289 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
30291 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
30293 (TARGET_CALLEE_COPIES): Fix argument types.
30295 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
30297 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
30299 (TARGET_FUNCTION_VALUE): Fix argument types.
30301 (TARGET_RETURN_IN_MSB): Fix argument type.
30303 (TARGET_RETURN_IN_MEMORY): Fix argument types.
30305 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
30307 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
30309 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
30310 agree with return type.
30312 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
30314 2010-01-15 Jing Yu <jingyu@google.com>
30316 PR rtl-optimization/42691
30317 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
30318 a pseudo to a constant and are merged, and adjust comments.
30320 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
30322 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
30324 2010-01-15 Richard Guenther <rguenther@suse.de>
30326 PR middle-end/42739
30327 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
30328 labels of computed or non-local gotos to the destination.
30329 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
30330 landing pad label is the first label.
30332 2010-01-15 Richard Guenther <rguenther@suse.de>
30334 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
30336 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
30339 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
30340 to allow generation of the xssqrtdp instruction on power7.
30341 (sqrtdf2_fpr): Ditto.
30343 2010-01-14 Jakub Jelinek <jakub@redhat.com>
30345 PR middle-end/42674
30346 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
30347 functions with noreturn attribute.
30350 * varasm.c (declare_weak): Add weak attribute to decl if it
30351 doesn't have one already.
30352 (assemble_external): Only add decls to weak_decls if they also
30353 have weak attribute.
30355 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
30357 * var-tracking.c (var_reg_delete): Don't delete the association
30358 between REGs and values or one-part variables if the register
30361 2010-01-14 Jakub Jelinek <jakub@redhat.com>
30364 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
30365 because its first operand is a non-localized variable.
30367 2010-01-14 Martin Jambor <mjambor@suse.cz>
30369 PR tree-optimization/42706
30370 * tree-sra.c (encountered_recursive_call): New variable.
30371 (encountered_unchangable_recursive_call): Likewise.
30372 (sra_initialize): Initialize both new variables.
30373 (callsite_has_enough_arguments_p): New function.
30374 (scan_function): Call decl and flags check only for IPA-SRA, check
30375 whether there is a recursive call and whether it has enough arguments.
30376 (all_callers_have_enough_arguments_p): New function.
30377 (convert_callers): Look for recursive calls only when
30378 encountered_recursive_call is set.
30379 (ipa_early_sra): Bail out either if
30380 !all_callers_have_enough_arguments_p or
30381 encountered_unchangable_recursive_call.
30383 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30385 * sel-sched.c: Add 2010 to copyright years.
30386 * sel-sched-ir.c: Likewise.
30387 * sel-sched-ir.h: Likewise.
30389 2010-01-14 Martin Jambor <mjambor@suse.cz>
30391 PR tree-optimization/42714
30392 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
30393 constructors specially.
30395 2010-01-14 Andi Kleen <ak@linux.intel.com>
30397 * config/i386/drivers-i386.c (detect_caches_intel):
30398 Add l2sizekb parameter and fill in.
30399 (host_detect_local_cpu): Add l2sizekb, fill in.
30400 Add Atom small cache heuristic.
30402 2010-01-14 Andi Kleen <ak@linux.intel.com>
30404 * config/i386/drivers-i386.c (detect_caches_cpuid4):
30405 Add level3 parameter and fill in.
30406 (detect_caches_intel): Handle level3 cache.
30408 2010-01-14 Andi Kleen <ak@linux.intel.com>
30410 * config/i386/drivers-i386.c (host_detect_local_cpu):
30411 Fix core duo detection.
30413 2010-01-14 Andi Kleen <ak@linux.intel.com>
30415 * config/i386/drivers-i386.c (host_detect_local_cpu):
30416 Fix Atom detection.
30418 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30420 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
30421 (rs6000_variable_issue_1): this. Use...
30422 (rs6000_variable_issue): here. Reimplement. Print debug info.
30424 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30426 * sel-sched-ir.c (sel_restore_other_notes): Rename to
30427 sel_restore_notes. Update all callers. Call reemit_notes
30430 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30432 PR rtl-optimization/42246
30433 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
30436 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30438 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
30439 all successors is the same as number of successors in current region.
30441 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30443 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
30444 to rename is not separable. Otherwise check that its LHS is not NULL.
30446 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30448 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
30450 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30452 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
30453 available registers when failed to discover LHS register class.
30454 Fix indentation. Update comment.
30456 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30457 Alexander Monakov <amonakov@ispras.ru>
30459 PR rtl-optimization/42389
30460 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
30462 (advance_state_on_fence): Likewise.
30463 (sel_target_adjust_priority): Print debug output only when
30464 sched_verbose >= 4, not 2.
30465 (get_expr_cost): Do not issue all unique insns on the next cycle.
30466 (fill_insns): Initialize can_issue_more from the value saved
30468 * sel-sched-ir.c (flist_add): New parameter issue_more.
30469 Init FENCE_ISSUE_MORE with it.
30470 (merge_fences): Likewise.
30471 (init_fences): Update call to flist_add.
30472 (add_to_fences, add_clean_fence_to_fences)
30473 (add_dirty_fence_to_fences): Likewise.
30474 (move_fence_to_fences): Update call to merge_fences.
30475 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
30477 * sel-sched-ir.h (struct _fence): New field issue_more.
30478 (FENCE_ISSUE_MORE): New accessor macro.
30480 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30482 PR rtl-optimization/42388
30483 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
30484 that have no predecessors nor successors. Do not call move_bb_info
30485 for empty blocks outside of current region.
30487 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30489 PR rtl-optimization/42294
30490 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
30491 * sel-sched.c (move_exprs_to_boundary): Transitively add all
30492 originators' originators.
30494 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30496 PR rtl-optimization/39453
30497 PR rtl-optimization/42246
30498 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
30500 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
30502 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30503 Alexander Monakov <amonakov@ispras.ru>
30505 PR middle-end/42245
30506 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
30507 (maybe_tidy_empty_bb): ... here. Make static. Add new
30508 argument. Update all callers.
30509 (tidy_control_flow): ... and here. Recompute topological order
30510 of basic blocks in region if necessary.
30511 (sel_redirect_edge_and_branch): Change return type. Return true
30512 if topological order might have been invalidated.
30513 (purge_empty_blocks): Export and move from...
30514 * sel-sched.c (purge_empty_blocks): ... here.
30515 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
30516 (maybe_tidy_empty_bb): Delete prototype.
30517 (purge_empty_blocks): Declare.
30519 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30521 PR rtl-optimization/42249
30522 * sel-sched.c (try_replace_dest_reg): When chosen register
30523 and original register is the same, do not bail out early, but
30524 still check all original insns for validity of replacing destination
30525 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
30528 2010-01-14 Jakub Jelinek <jakub@redhat.com>
30531 Port from no-undefined-overflow branch:
30532 2009-03-09 Richard Guenther <rguenther@suse.de>
30534 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
30536 2010-01-14 Richard Guenther <rguenther@suse.de>
30539 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
30541 2010-01-14 Ira Rosen <irar@il.ibm.com>
30543 PR tree-optimization/42709
30544 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
30545 as scalar type in creation of constant vector operand.
30547 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30550 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
30551 (check-parallel-%): Match `testsuite' directory component only
30554 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
30556 PR translation/39521
30557 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
30560 2010-01-13 Richard Guenther <rguenther@suse.de>
30562 PR tree-optimization/42730
30563 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
30566 2010-01-13 Steve Ellcey <sje@cup.hp.com>
30569 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
30570 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
30573 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
30575 * config/bfin/libgcc-bfin.ver: Regenerate based on current
30576 libgcc-std.ver. Add entries for ___smulsi3_highpart and
30577 ___umulsi3_highpart.
30579 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
30580 rather than schedule_insns if the pass is enabled.
30582 2010-01-13 Martin Jambor <mjambor@suse.cz>
30584 PR tree-optimization/42704
30585 * tree-sra.c (sra_modify_assign): Do not delete assignments to
30588 2010-01-13 Martin Jambor <mjambor@suse.cz>
30590 PR tree-optimization/42703
30591 * tree-sra.c (analyze_access_subtree): Check that we can build a
30592 reference to the original data within the aggregate.
30594 2010-01-13 Richard Guenther <rguenther@suse.de>
30596 PR tree-optimization/42705
30597 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
30599 2010-01-13 Richard Guenther <rguenther@suse.de>
30601 PR middle-end/42716
30602 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
30604 2010-01-13 Jakub Jelinek <jakub@redhat.com>
30607 * var-tracking.c (values_to_unmark): New variable.
30608 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
30609 values_to_unmark vector. Moved body to...
30610 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
30611 instead queue it into values_to_unmark vector.
30612 (vt_find_locations): Free values_to_unmark vector.
30614 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
30616 * config/s390/s390.c (override_options): Set
30617 default of max-pending-list-length to 256
30619 2010-01-13 Richard Guenther <rguenther@suse.de>
30622 * tree-pass.h (PROP_gimple_lcx): New.
30623 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
30624 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
30625 before the final cleanup_eh.
30626 (dump_properties): Dump PROP_gimple_lcx.
30627 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
30628 (tree_lower_complex_O0): Remove.
30629 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
30630 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
30631 tree_lower_complex, schedule TODO_update_ssa.
30632 * lto-streamer-out.c (output_function): Stream the functions
30634 * lto-streamer-in.c (input_function): Likewise.
30635 (lto_read_body): Do not override them here.
30637 2010-01-12 Joseph Myers <joseph@codesourcery.com>
30640 * c-typeck.c (build_c_cast): Fold value cast to union type before
30641 wrapping it in a CONSTRUCTOR.
30643 2010-01-12 Jakub Jelinek <jakub@redhat.com>
30645 PR rtl-optimization/42699
30646 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
30649 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30651 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
30652 SUBTARGET_WARN_UNUSED_SPEC): Move ...
30653 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
30654 SUBTARGET_WARN_UNUSED_SPEC): ... here
30655 * config/mips/iris5.h (LIBGCC_SPEC): Define.
30657 2010-01-12 Julian Brown <julian@codesourcery.com>
30659 * config/arm/neon-schedgen.ml (Utils): Don't try to
30660 open missing module.
30661 (find_with_result): New.
30663 2010-01-12 Jakub Jelinek <jakub@redhat.com>
30666 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
30667 sharing when canonicalizing ({lt,ge}u (plus a b) b).
30669 PR tree-optimization/42645
30670 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
30671 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
30672 decl_map, set processing_debug_stmt to -1 and return name without
30675 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
30677 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
30678 binutils version, and reword target configuration description.
30680 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
30682 * config/avr/avr.h (LINKER_NAME): Remove.
30684 2010-01-11 Janis Johnson <janis187@us.ibm.com>
30687 * config/rs6000/rs6000.c (rs6000_override_options): On targets
30688 that support VSX, warn for -mno-altivec if vsx is not disabled,
30691 2010-01-11 Joseph Myers <joseph@codesourcery.com>
30692 Shujing Zhao <pearly.zhao@oracle.com>
30694 PR translation/42469
30695 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
30696 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
30697 character between option name and help text.
30698 * c.opt (imultilib): Likewise.
30700 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
30702 * lto-streamer-out.c (output_unreferenced_globals): Output static
30705 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
30707 PR rtl-optimization/42621
30708 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
30709 optimizing for size.
30710 (duplicate_computed_gotos): Remove now-redundant check.
30712 2010-01-10 Steve Ellcey <sje@cup.hp.com>
30715 * configure.ac: Save and restore LDFLAGS and LIBS
30716 * configure: Regenerate.
30718 2010-01-10 Richard Guenther <rguenther@suse.de>
30720 PR middle-end/42667
30721 * builtins.c (fold_builtin_strlen): Add type argument and
30722 convert the resulting length to it.
30723 (fold_builtin_1): Adjust.
30725 2010-01-09 Jakub Jelinek <jakub@redhat.com>
30727 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
30728 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
30730 (num_insns_constant_wide): Adjust for that change.
30732 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
30735 * web.c (union_defs): Add used argument, to combine uses of
30736 uninitialized regs.
30737 (entry_register): Adjust type and tests of used argument.
30738 (web_main): Widen used for new use. Pass it to union_defs.
30739 * df.h (union_defs): Adjust prototype.
30741 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
30744 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
30745 uses in new incoming argument. Free body.
30746 (reset_debug_uses_in_loop): New.
30747 (analyze_insn_to_expand_var): Call the latter if the former found
30748 anything. Fix whitespace. Reject invalid dest overlaps before
30749 going through all insns in the loop.
30751 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
30754 * haifa-sched.c (dying_use_p): Debug insns don't count.
30756 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
30758 PR middle-end/42363
30759 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
30760 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
30761 (verify_gimple_call): Reject LHS in noreturn calls.
30763 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
30767 * tree-vect-loop-manip.c (adjust_info): New type.
30768 (adjust_vec): New pointer to vector.
30769 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
30770 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
30771 (slpeel_update_phis_for_duplicate_loop): Use them.
30772 (slpeel_update_phi_nodes_for_guard1): Likewise.
30773 (slpeel_update_phi_nodes_for_guard2): Likewise.
30774 (slpeel_tree_peel_loop_to_edge): Likewise.
30775 (vect_update_ivs_after_vectorizer): Likewise.
30777 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
30779 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
30780 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
30782 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
30784 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
30785 bogus uninitialized warning.
30787 2010-01-09 Richard Guenther <rguenther@suse.de>
30789 PR middle-end/42512
30790 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
30791 the evolution is compatible with the initial condition.
30793 2010-01-09 Jakub Jelinek <jakub@redhat.com>
30795 * gcc.c (process_command): Update copyright notice dates.
30796 * gcov.c (print_version): Likewise.
30797 * gcov-dump.c (print_version): Likewise.
30798 * mips-tfile.c (main): Likewise.
30799 * mips-tdump.c (main): Likewise.
30801 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
30804 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
30806 (rotlhi3_8): Delete.
30808 (rotlsi3_8): Delete.
30809 (rotlsi3_16): Delete.
30810 (rotlsi3_24): Delete.
30811 (rotl<mode>3): New.
30812 (*rotw<mode>3): New.
30813 (*rotb<mode>3): New.
30814 * config/avr/avr.c (avr_rotate_bytes): New function.
30815 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
30817 2010-01-08 Steve Ellcey <sje@cup.hp.com>
30820 * configure.ac: Modify -rdynamic check.
30821 * configure: Regenerate.
30823 2010-01-08 DJ Delorie <dj@redhat.com>
30825 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
30826 register popping order.
30828 2010-01-08 Richard Guenther <rguenther@suse.de>
30831 * c.opt (fsigned-char): Also let LTO handle this option.
30832 (funsigned-char): Likewise.
30834 2010-01-07 Richard Guenther <rguenther@suse.de>
30836 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
30837 (gimple_op): Likewise.
30838 (gimple_op_ptr): Likewise.
30839 (gimple_assign_set_lhs): Remove gcc_assert.
30840 (gimple_assign_set_rhs1): Likewise.
30841 (gimple_assign_set_rhs2): Likewise.
30842 (gimple_call_set_lhs): Likewise.
30843 (gimple_call_set_fn): Likewise.
30844 (gimple_call_set_fndecl): Likewise.
30845 (gimple_call_fndecl): Likewise.
30846 (gimple_call_return_type): Likewise.
30847 (gimple_call_set_chain): Likewise.
30848 (gimple_call_num_args): Likewise.
30849 (gimple_call_set_arg): Likewise.
30850 (gimple_cond_set_code): Likewise.
30851 (gimple_cond_set_lhs): Likewise.
30852 (gimple_cond_set_rhs): Likewise.
30853 (gimple_cond_set_true_label): Likewise.
30854 (gimple_cond_set_false_label): Likewise.
30855 (gimple_label_set_label): Likewise.
30856 (gimple_goto_set_dest): Likewise.
30857 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
30858 (gimple_debug_bind_get_value): Likewise.
30859 (gimple_debug_bind_get_value_ptr): Likewise.
30860 (gimple_debug_bind_set_var): Likewise.
30861 (gimple_debug_bind_set_value): Likewise.
30862 (gimple_debug_bind_reset_value): Likewise.
30863 (gimple_debug_bind_has_value_p): Likewise.
30864 (gimple_return_retval_ptr): Remove gcc_assert.
30865 (gimple_return_retval): Likewise.
30866 (gimple_return_set_retval): Likewise.
30867 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
30868 (safe_referenced_var_iterator): Remove.
30869 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
30870 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
30871 (fill_referenced_var_vec): Remove.
30872 (first_readonly_imm_use): Remove redundant gcc_assert.
30873 (phi_arg_index_from_use): Combine gcc_asserts.
30874 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
30875 (first_imm_use_stmt): Remove redundant gcc_assert.
30876 * tree-cfg.c (verify_gimple_call): Verify function and chain
30877 operands. Verify arguments.
30878 (verify_types_in_gimple_stmt): Verify condition code and labels.
30880 2010-01-07 Richard Guenther <rguenther@suse.de>
30882 PR tree-optimization/42641
30883 * sese.c (rename_map_elt_info): Use the SSA name version, do
30886 2010-01-07 Jakub Jelinek <jakub@redhat.com>
30888 PR tree-optimization/42625
30889 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
30890 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
30892 2010-01-07 Duncan Sands <baldrick@free.fr>
30894 * Makefile.in (PLUGIN_HEADERS): Add version.h.
30896 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
30899 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
30900 note itself is not function_invariant_p.
30902 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
30904 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
30905 Do not add the DF_NOTE problem.
30906 * store-motion.c (execute_rtl_store_motion): Likewise.
30908 2010-01-07 Martin Jambor <mjambor@suse.cz>
30910 PR tree-optimization/42157
30911 * tree-sra.c (compare_access_positions): Stabilize sort if both
30912 accesses have integer types, return zero immediately if they are the
30915 2010-01-06 Richard Henderson <rth@redhat.com>
30917 PR middle-end/41883
30918 * haifa-sched.c (add_to_note_list): Merge into ...
30919 (concat_note_lists): ... here, and ...
30920 (unlink_other_notes, rm_other_notes): Merge into...
30921 (remove_notes): ... here. Create REG_SAVE_NOTEs for
30922 NOTE_INSN_EPILOGUE_BEG.
30924 2010-01-06 Richard Guenther <rguenther@suse.de>
30926 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
30927 not inline regular functions into always-inline functions.
30929 2010-01-06 Nick Clifton <nickc@redhat.com>
30931 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
30932 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
30934 (OVERRIDE_OPTIONS): Delete.
30935 (OPTIMIZATION_OPTIONS): Define.
30936 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
30937 * config/rx/rx.c (rx_handle_option): Issue an error message if
30938 -mcpu=rx200 and -fpu are used together.
30939 (rx_set_optimization_options): New function. Issue an error
30940 message if an optimization attribute attempts to reset the FPU/
30941 math optimization pairing.
30942 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
30943 * config/rx/rx.opt: Set the default to 32-bit doubles.
30944 * config/rx/t-rx: Add multilibs for -nofpu option.
30945 * doc/invoke.texi: Update documentation of RX options.
30947 2010-01-06 Richard Guenther <rguenther@suse.de>
30949 * tree-ssa-pre.c (name_to_id): New global.
30950 (alloc_expression_id): Simplify SSA name handling.
30951 (lookup_expression_id): Likewise.
30952 (init_pre): Zero name_to_id.
30953 (fini_pre): Free it.
30955 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
30957 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
30959 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
30962 * config/i386/sse.md (smaxv2di3): New.
30963 (umaxv2di3): Likewise.
30964 (sminv2di3): Likewise.
30965 (uminv2di3): Likewise.
30967 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
30970 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
30971 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
30972 (legitimize_tls_address): Likewise.
30973 (sparc_tls_referenced_p): Likewise.
30974 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
30975 and adjust calls to legitimize_pic_address.
30976 (legitimate_constant_p) Use sparc_tls_referenced_p.
30977 (legitimate_pic_operand_p): Likewise.
30978 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
30979 (sparc_tls_symbol_ref_1): Delete.
30980 (sparc_tls_referenced_p): Make static, recognize specific patterns.
30981 (legitimize_tls_address): Make static, handle CONST patterns.
30982 (legitimize_pic_address): Make static, remove unused parameter and
30983 adjust recursive calls.
30984 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
30985 and adjust call to legitimize_pic_address.
30986 (sparc_output_mi_thunk): Likewise.
30988 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
30989 H.J. Lu <hongjiu.lu@intel.com>
30992 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
30993 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
30994 operands to make them signed.
30997 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
31000 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
31001 GTU to GT for V4SI and V2DI.
31003 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
31004 (umin<mode>3): Removed.
31006 (uminv4si3): Likewise.
31008 2010-01-05 Martin Jambor <mjambor@suse.cz>
31010 PR tree-optimization/42462
31011 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
31012 current_function_decl to helper functions and macros.
31014 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31017 * flags.h: Don't include real.h.
31018 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
31019 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
31020 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
31021 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
31022 * dominance.c: Update copyright.
31023 * gimple.c (walk_gimple_op): Remove inline.
31024 * tree-ssa-reassoc.c: Include real.h.
31025 * Makefile.in (FLAGS_H): Remove $(REAL_H).
31026 (tree-ssa-reassoc.o): Depend on $(REAL_H).
31028 2010-01-05 Nick Clifton <nickc@redhat.com>
31030 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
31031 register to push into the stack frame when the accumulator has to
31032 be saved during interrupts.
31034 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
31036 * doc/invoke.texi: Remove the documentation about option
31037 -Wunreachable-code.
31038 * common.opt (Wunreachable-code): Preserved for backward
31040 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
31041 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
31042 the backward compatibility flag section.
31044 2010-01-05 Richard Guenther <rguenther@suse.de>
31046 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
31048 2010-01-05 Jakub Jelinek <jakub@redhat.com>
31051 * cfgexpand.c (expand_one_var): Diagnose too large variables.
31053 PR tree-optimization/42508
31054 * tree-sra.c (convert_callers): Check for recursive call
31055 by comparing cgraph nodes instead of decls.
31056 (modify_function): Call ipa_modify_formal_parameters also
31057 on all same_body aliases.
31059 * cgraphunit.c (cgraph_materialize_all_clones): Compare
31060 cgraph nodes when checking for same_body aliases.
31062 2010-01-05 Richard Guenther <rguenther@suse.de>
31064 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
31065 allocation and lookup.
31066 (get_or_alloc_expr_for_constant): Likewise.
31067 (phi_translate): Sink allocation.
31069 2010-01-04 Richard Guenther <rguenther@suse.de>
31071 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
31072 a new entry only if needed.
31073 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
31074 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
31076 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
31078 (phi_translate): Handle CONSTANTs early.
31080 2010-01-04 Martin Jambor <mjambor@suse.cz>
31082 PR tree-optimization/42398
31083 * tree-sra.c (struct access): Removed flag grp_different_types.
31084 (dump_access): Do not dump the removed flag.
31085 (sort_and_splice_var_accesses): Do not set the removed flag.
31086 (sra_modify_expr): Check for type compatibility directly.
31088 2010-01-04 Martin Jambor <mjambor@suse.cz>
31090 PR tree-optimization/42366
31091 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
31092 edges with variable number of parameters.
31093 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
31094 flag instead of asserting it.
31095 (ipa_read_node_info): Read uses_analysis_done flag.
31097 2010-01-04 Richard Guenther <rguenther@suse.de>
31099 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
31100 iterative_hash_* as intended.
31101 (vn_reference_compute_hash): Likewise. Simplify hashing
31103 (vn_reference_lookup_2): Likewise.
31104 (vn_nary_op_compute_hash): Likewise.
31105 (vn_phi_compute_hash): Likewise.
31106 (expressions_equal_p): Remove strange code.
31107 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
31108 (pre_expr_hash): Likewise. Simplify hashing SSA names.
31109 (bitmap_insert_into_set_1): Take value-id as parameter.
31110 (add_to_value): Pass it.
31111 (bitmap_insert_into_set): Likewise.
31112 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
31114 2010-01-04 Jakub Jelinek <jakub@redhat.com>
31117 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
31118 (do_self_spec): For switches with SWITCH_IGNORE set set also
31119 SWITCH_IGNORE_PERMANENTLY.
31120 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
31123 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
31125 * lto-streamer-out.c (output_unreferenced_globals): Output the full
31126 tree of an unreferenced global var.
31128 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
31131 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
31132 GTU to GT for V4SI and V2DI.
31134 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
31135 (umin<mode>3): Removed.
31137 (uminv4si3): Likewise.
31139 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
31142 * collect2.c (main): Turn on trace in collect2 if -v is passed
31145 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
31147 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
31148 description of expression operand.
31150 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
31152 * configure.ac: Add install-html to target_list for Make-hooks.
31153 * configure: Regenerate.
31154 * fortran/Make-lang.in (F95_HTMLFILES): New.
31155 (fortran.html): Use it.
31156 (fortran.install-html): New.
31157 * Makefile.in (install-html): Add lang.install-html.
31158 * java/Make-lang.in (JAVA_HTMLFILES): New.
31159 (java.html): Use it.
31160 (java.install-html): New.
31161 * objc/Make-lang.in (objc.install-html): New.
31162 * objcp/Make-lang.in (obj-c++.install-html): New.
31163 * cp/Make-lang.in (c++.install-html): New.
31164 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
31165 * lto/Make-lang.in (lto.install-html): New.
31167 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
31170 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
31172 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
31174 PR rtl-optimization/41862
31175 * store-motion.c (store_killed_in_insn, compute_store_table,
31176 remove_reachable_equiv_notes, replace_store_insn,
31177 build_store_vectors): Ignore all DEBUG_INSNs.
31179 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
31182 * common.opt: Add dumpdir.
31184 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
31186 (option_map): Add --dumpdir.
31188 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
31190 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
31192 * opts.c (decode_options): Try dump_dir_name first if
31193 dump_base_name isn't an absolute path.
31194 (common_handle_option): Handle OPT_dumpdir.
31196 * toplev.c (dump_dir_name): New.
31197 (print_switch_values): Also ignore -dumpdir.
31199 * toplev.h (dump_dir_name): New.
31201 2010-01-03 Richard Guenther <rguenther@suse.de>
31203 PR tree-optimization/42589
31204 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
31205 double-word expansion of bswap32.
31207 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
31209 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
31210 with BLOCK_FOR_INSN.
31211 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
31212 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
31213 noce_process_if_block): Likewise.
31214 * gcse.c (compute_local_properties, insert_expr_in_table,
31215 insert_set_in_table, canon_list_insert, find_avail_set,
31216 pre_insert_copy_insn): Likewise.
31218 * basic-block.h (BLOCK_NUM): Move from here...
31219 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
31221 2010-01-03 Richard Guenther <rguenther@suse.de>
31223 PR tree-optimization/42438
31224 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
31225 contains_may_not_return_call flag.
31226 (BB_MAY_NOTRETURN): New.
31227 (valid_in_sets): Trapping nary operations are not valid
31228 in blocks that may not return.
31229 (insert_into_preds_of_block): Remove check for trapping expressions.
31230 (compute_avail): Compute also BB_MAY_NOTRETURN.
31232 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
31234 * doc/invoke.texi: Add 2010 to copyright years.
31236 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
31238 * config/sparc/sparc.c: Fix formatting nits.
31240 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
31241 Alexander Monakov <amonakov@ispras.ru>
31243 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
31245 2010-01-02 Richard Guenther <rguenther@suse.de>
31247 PR middle-end/42577
31248 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
31249 (simplify_switch_using_ranges): Mark to be removed edges
31252 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31254 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
31256 * collect2.c (scan_libraries): Add missing argument in call to
31259 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
31262 * config/alpha/predicates.md (aligned_memory_operand): Return false
31264 (unaligned_memory_operand): Return true for CQImode.
31265 * config/alpha/alpha.c (get_aligned_mem): Assert that location
31266 doesn not cross aligned SImode word boundary.
31268 2010-01-02 Anatoly Sokolov <aesok@post.ru>
31270 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
31272 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
31273 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
31275 2010-01-02 Richard Guenther <rguenther@suse.de>
31278 * toplev.c (compile_file): Emit LTO marker properly. Change
31279 it to __gnu_lto_v1.
31280 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
31282 2010-01-01 Richard Guenther <rguenther@suse.de>
31285 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
31287 2010-01-01 Richard Guenther <rguenther@suse.de>
31290 * c-decl.c (grokdeclarator): For zero-size arrays force
31291 structural equality checks as layout_type does.
31293 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
31295 * builtins.c: Update copyright to 2010.
31297 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
31300 * lto-streamer-out.c (produce_asm): Revert the last change.
31301 (copy_function): Likewise.
31303 * lto-streamer.c (lto_get_section_name): Skip any leading
31306 2010-01-01 Richard Guenther <rguenther@suse.de>
31308 PR middle-end/42559
31309 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
31313 Copyright (C) 2010 Free Software Foundation, Inc.
31315 Copying and distribution of this file, with or without modification,
31316 are permitted in any medium without royalty provided the copyright
31317 notice and this notice are preserved.