1 2010-10-19 Nick Clifton <nickc@redhat.com>
3 * config/rx/rx.c (rx_function_value): Small integer types are
5 (rx_promote_function_mode): New function.
6 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8 2010-10-19 Nick Clifton <nickc@redhat.com>
10 * config/mep/mep.c (mep_print_operand): Use
11 targetm.strip_name_encoding.
12 (mep_output_aligned_common): Likewise.
14 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
15 * gengtype.c (new_structure): Remove ad-hoc "location_s"
18 2010-10-18 Richard Henderson <rth@redhat.com>
20 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
21 (fma (neg a) (neg b) c) and (fma a (neg b) c).
23 2010-10-18 Richard Henderson <rth@redhat.com>
25 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
26 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
27 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
28 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
29 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
30 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
31 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
32 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
33 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
34 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
35 (bdesc_multi_arg): Remove the corresponding builtins.
36 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
37 (UNSPEC_FMA4_FMSUBADD): Remove.
38 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
39 * config/i386/sse.md (FMA4MODEF4): Remove.
41 (fma<mode>4): New expander.
42 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
43 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
44 (*fma4i_fmsub_<mode>): Similarly.
45 (*fma4i_fnmadd_<mode>): Similarly.
46 (*fma4i_fnmsub_<mode>): Similarly.
47 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
48 with the first operand.
49 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
50 of explicit arithmetic. Macroize with AVXMODEF2P.
51 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
52 (xop_frcz<mode>2): Macroize with FMAMODE.
53 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
55 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
57 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
58 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
59 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
60 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
61 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
62 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
63 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
64 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
66 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
68 PR rtl-optimization/45966
69 * combine.c (try_combine): If added_sets_2, deal with the case
70 where i0 feeds i1 and i1 feeds i2.
72 2010-10-18 Jan Hubicka <jh@suse.cz>
74 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
75 preserve flags before trying to guess on visibility.
76 (varpool_externally_visible_p): New function.
77 (function_and_variable_visibility): Use it.
79 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
81 Implemented parsing @synthesize and @dynamic for Objective-C.
82 * c-parser.c (c_parser_external_declaration): Recognize
83 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
84 (c_parser_objc_at_synthesize_declaration): New.
85 (c_parser_objc_at_dynamic_declaration): New.
87 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
89 * c-parser.c (c_parser_objc_class_declaration): After finding an
90 error, parse the whole declaration then reset parser->error.
92 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
95 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
96 * builtins.c (mode_has_fma): Ditto.
98 2010-10-18 Steve Ellcey <sje@cup.hp.com>
102 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
104 2010-10-18 Joseph Myers <joseph@codesourcery.com>
106 * config/i386/i386.c (ix86_option_override_internal): Define and
107 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
109 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
110 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
112 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
114 Merge from 'apple/trunk' branch on FSF servers.
115 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
116 following Objective-C change:
118 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
121 * c-parse.in (objc_quals): Build objc qualifier list same way
124 2010-10-18 Jan Hubicka <jh@suse.cz>
126 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
127 function_and_variable_visibility): Revert accidental commit.
129 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
131 Merge from 'apple/trunk' branch on FSF servers.
132 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
133 the following Objective-C change:
135 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
138 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
139 'volatilized' type used in a typeof operator.
141 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
143 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
144 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
145 rewrite modelled on gimple_purge_dead_eh_edges.
146 (gimple_purge_all_dead_abnormal_call_edges): New function.
147 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
148 directly instead of through gimple_purge_dead_abnormal_call_edges.
149 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
150 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
151 removed AB side-effects from one of its statements.
152 (init_pre): Initialize need_ab_cleanup.
153 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
154 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
156 2010-10-18 Jakub Jelinek <jakub@redhat.com>
159 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
160 on computed goto argument.
162 2010-10-18 Richard Guenther <rguenther@suse.de>
164 PR tree-optimization/45967
165 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
166 (could_have_pointers): Likewise.
167 (handle_rhs_call, handle_const_call, handle_pure_call,
168 find_func_aliases, intra_create_variable_infos): Remove calls to them.
169 (struct fieldoff): Add must_have_pointers field.
170 (type_must_have_pointers): New function.
171 (field_must_have_pointers): Likewise.
172 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
173 Adjust field merging.
174 (create_function_info_for): May-have-pointers of varinfo is
176 (create_variable_info_for_1): Likewise.
178 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
180 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
181 of operands to vec_concat.
183 2010-10-18 Richard Guenther <rguenther@suse.de>
186 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
187 also clear references to entries of it.
189 2010-10-18 Andi Kleen <ak@linux.intel.com>
193 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
194 (doc, distclean, install-common): Remove reference to gccbug.
195 * configure: Regenerate.
196 * configure.ac (all_outputs): Remove gccbug.
197 * doc/configfiles.texi: Remove references to gccbug.
198 * doc/sourcebuild.texi: Dito.
200 2010-10-18 Jakub Jelinek <jakub@redhat.com>
203 * fold-const.c (fold_binary_loc): If integer_pow2p has
204 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
206 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
207 Jeremie Salvucci <jeremie.salvucci@free.fr>
209 * gengtype.c (verbosity_level): Add variable.
210 (set_gc_used): Count variables for verbosity.
211 (close_output_files): Backing up files, counting written ones
213 (write_types): Count emitted functions for verbosity. Added
215 (write_enum_defn): Count structures for verbosity. Added debug
217 (gengtype_long_options): Add "verbose" & "backupdir".
218 (print_usage): Ditto.
219 (main): Verbose display of parsed files.
221 * gengtype.h (verbosity_level): Add declaration.
223 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
225 * gengtype.c (parse_program_options): Add allocation of
226 plugin_files, and correct test on nb_plugin_files.
228 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
230 Merge from 'apple/trunk' branch on FSF servers.
232 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
235 * c-decl.c (undeclared_variable): Issue diagnostic on
236 private 'ivar' access.
238 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
241 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
242 generated sequence to match *avx_vperm2f128<mode>_nozero.
243 (vec_interleave_lowv4df): Ditto.
244 (vec_interleave_highv8sf): Ditto.
245 (vec_interleave_lowv8sf): Ditto.
247 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
249 * libgcov.c (create_file_directory): Enable it for win32 case.
250 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
251 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
252 (GCOV_PREFIX_SKIP): Likewise.
254 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
256 * doc/objc.texi (GNU Objective-C runtime API): New section.
257 (Modern GNU Objective-C runtime API): New section.
258 (Traditional GNU Objective-C runtime API): New section.
259 (Executing code before main): Mention that this section is
260 specific to the GNU Objective-C runtime.
261 (Garbage Collection): Same.
263 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
265 * c-parser.c (c_parser_for_statement): Move initialization of
266 cond and incr before if.
268 2010-10-17 Anatoly Sokolov <aesok@post.ru>
270 * target.def (preferred_output_reload_class): New hook.
271 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
272 * doc/tm.texi: Regenerate.
273 * targhooks.c (default_preferred_output_reload_class): New function.
274 * targhooks.h (default_preferred_output_reload_class): Declare.
275 * reload.c (find_dummy_reload): Change rclass argument type from
276 enum reg_class to reg_class_t. Change this_alternative array type
277 from enum reg_class to reg_class_t.
278 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
279 (push_reload): Change preferred_class variable type to reg_class_t.
280 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
281 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
282 argument type from enum reg_class to reg_class_t. Use
283 HARD_REGISTER_NUM_P predicate.
284 * recog.h (reg_fits_class_p): Update prototype.
286 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
287 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
289 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
290 static. Change regclass argument and result types from enum reg_class
292 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
294 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
296 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
297 visibility enum, and handle @package.
299 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
301 * doc/objc.texi (What you can and what you cannot do in +load):
302 Document that sending messages to constant string objects in +load
303 is not guaranteed to work.
305 2010-10-16 Jan Hubicka <jh@suse.cz>
308 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
309 existence of refrences before removing the function.
311 2010-10-16 Jan Hubicka <jh@suse.cz>
313 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
314 only_called_at_startup and only_called_at_exit.
315 (cgraph_propagate_frequency): Compute only_called_at_startup and
317 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
319 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
321 * predict.c (compute_function_frequency): Initialize the new flags.
323 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
325 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
326 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
327 on the bounds of its domain.
328 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
330 2010-10-16 Anatoly Sokolov <aesok@post.ru>
332 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
333 * config/avr/avr-protos.h (preferred_reload_class): Remove.
334 * config/avr/avr.c (preferred_reload_class): Remove.
335 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
336 * config/pa/pa.c (emit_move_sequence): Update comment
337 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
338 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
339 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
340 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
341 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
342 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
343 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
344 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
345 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
346 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
347 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
348 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
349 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
351 2010-10-16 Joseph Myers <joseph@codesourcery.com>
353 * opts.c (set_fast_math_flags,
354 set_unsafe_math_optimizations_flags): Make static.
355 * toplev.h (set_fast_math_flags,
356 set_unsafe_math_optimizations_flags): Remove prototypes.
358 2010-10-16 Joseph Myers <joseph@codesourcery.com>
360 * config/arm/arm.c (arm_option_optimization): Set
361 flag_section_anchors to 1 not 2.
362 * config/i386/i386.c (ix86_option_override_internal): Check
363 global_options_set.x_flag_zee and
364 global_options_set.x_flag_omit_frame_pointer.
365 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
367 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
368 global_options_set.x_flag_omit_frame_pointer.
369 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
370 opts->x_flag_section_anchors to 1 not 2.
371 * config/sh/sh.c (sh_option_optimization): Don't set
372 flag_schedule_insns to 2.
373 (sh_option_override): Check
374 global_options_set.x_flag_schedule_insns.
375 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
377 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
379 * configure.ac: Make sure inhibit_libc remains false for mingw targets
381 * configure: Regenerated.
383 2010-10-15 Xinliang David Li <davidxl@google.com>
385 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
387 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
388 into a recursive function.
390 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
392 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
395 2010-10-15 Joseph Myers <joseph@codesourcery.com>
397 * target.def (target_option.init_struct): New hook.
398 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
399 * doc/tm.texi: Regenerate.
400 * hooks.c (hook_void_gcc_optionsp): New.
401 * hooks.h (hook_void_gcc_optionsp): Declare.
402 * langhooks-def.h (lhd_init_options_struct): Remove.
403 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
404 * langhooks.c (lhd_init_options_struct): Remove.
405 * opts.c (init_options_struct): Also call
406 targetm.target_option.init_struct.
407 * config/i386/i386.c (ix86_option_init_struct,
408 TARGET_OPTION_INIT_STRUCT): New.
409 (ix86_option_optimization): Move some settings to
410 ix86_option_init_struct.
411 * config/pdp11/pdp11.c (pdp11_option_init_struct,
412 TARGET_OPTION_INIT_STRUCT): New.
413 (pdp11_option_optimization): Move some settings to
414 pdp11_option_init_struct.
415 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
416 rs6000_option_init_struct. Use options structure pointer.
417 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
418 * config/s390/s390.c (s390_option_init_struct,
419 TARGET_OPTION_INIT_STRUCT): New.
420 (s390_option_optimization): Don't set
421 flag_asynchronous_unwind_tables here.
422 * config/sh/sh.c (sh_option_init_struct,
423 TARGET_OPTION_INIT_STRUCT): New.
424 (sh_option_optimization): Don't set flag_finite_math_only here.
425 * config/spu/spu.c (spu_option_optimization): Replace by
426 spu_option_optimization. Use options structure pointer.
427 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
429 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
431 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
433 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
434 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
435 (Standard names): Document fma.
437 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
438 __FP_FAST_FMAF, __FP_FAST_FMAL.
440 * builitns.c (expand_builtin_mathfn_ternary): New function for
441 expanding ternary math functions, like fma.
442 (expand_builtin): Call it for the fma builtins.
444 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
447 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
448 vectorizable functions to support vectorizing fma.
450 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
453 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
454 (UNSPEC_VSX_MSUB): Ditto.
455 (UNSPEC_VSX_NMADD): Ditto.
456 (UNSPEC_VSX_NMSUB): Ditto.
457 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
458 of UNSPEC. Renumber combiner patterns.
459 (vsx_fmsub<mode>4*): Ditto.
460 (vsx_fnmadd<mode>4*): Ditto.
461 (vsx_fnmsub<mode>4*): Ditto.
463 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
464 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
465 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
466 (altivec_vmaddfp_1): Ditto.
467 (altivec_vmaddfp_2): Ditto.
468 (atlivec_mulv4sf3): Ditto.
469 (altivec_vnmsubfp): Ditto.
470 (altivec_vnmsubfp_1): Ditto.
471 (altivec_vnmsubfp_2): Ditto.
472 (altivec_vnmsubfp_3): Delete.
474 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
477 (fnmasf4_fpr): Ditto.
478 (fnmssf4_fpr): Ditto.
482 (fnmadf4_fpr): Ditto.
483 (fnmsdf4_fpr): Ditto.
485 * optabs.h (OTI_fma): Add fma optab.
488 * genopinit.c (optabs): Set fma optab.
490 * rtl.def (FMA): Add FMA rtl.
492 * tree.h (mode_has_fma): New function to return if MODE supports a
493 fast multiply and add instruction.
494 * builtins.c (mode_has_fma): Ditto.
496 2010-10-15 Jan Hubicka <jh@suse.cz>
498 * lto-streamer-out.c (write_symbol): Use pointer set of seen
499 objects instead of bitmap.
500 (produce_symtab): Likewise; output defined symbols first.
502 2010-10-15 Jie Zhang <jie@codesourcery.com>
504 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
505 Option Summary and Index.
507 2010-10-15 Richard Guenther <rguenther@suse.de>
509 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
510 for automatic variables again.
512 2010-10-15 Joseph Myers <joseph@codesourcery.com>
514 * doc/extend.texi (Variable Length): Don't refer to VLAs not
517 2010-10-15 Joseph Myers <joseph@codesourcery.com>
519 * config/rx/rx.c (rx_option_optimization): Change to
520 rx_override_options_after_change. Don't change
521 flag_lto_compression_level. Don't check for changes to whether
522 FPU instructions can be used. Check and set only
523 flag_finite_math_only, not other fast-math flags.
524 (rx_option_override): Call rx_override_options_after_change.
525 (TARGET_OPTION_OPTIMIZATION): Remove.
526 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
528 2010-10-15 Joseph Myers <joseph@codesourcery.com>
530 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
531 disable section anchors for lang_hooks.name[4] != 'O'.
533 2010-10-15 Joseph Myers <joseph@codesourcery.com>
535 * config/frv/frv.c (frv_option_optimization,
536 TARGET_OPTION_OPTIMIZATION): Remove.
537 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
539 2010-10-15 Michael Matz <matz@suse.de>
541 * cgraphunit.c (clone_of_p): Define unconditionally.
543 2010-10-15 Richard Guenther <rguenther@suse.de>
546 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
548 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
550 * ifcvt.c (find_active_insn_before): New function.
551 (find_active_insn_after): New function.
552 (cond_exec_process_if_block): Use new functions to replace
553 prev_active_insn() and next_active_insn().
555 2010-10-14 Yao Qi <yao@codesourcery.com>
558 * config/arm/arm.c (arm_build_builtin_va_list): Assign
559 va_list_name to TYPE_STUB_DECL (va_list_type).
561 2010-10-14 Jan Hubicka <jh@suse.cz>
564 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
565 redirected to clone, be happy.
566 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
567 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
568 former_clone_of unconditionally.
570 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
572 Merge from FSF apple 'trunk' branch.
573 2006 Fariborz Jahanian <fjahanian@apple.com>
575 Radars 4436866, 4505126, 4506903, 4517826
576 * c-parser.c (c_parser, objc_property_attr_context) New flag.
577 (c_lex_one_token): Handle property attributes.
578 (c_parser_external_declaration): Handle @property.
579 (c_parser_declaration_or_fndef): Warn on invalid attributes before
580 @alias, @class, @end and @property objc keywords.
581 (c_parser_objc_methodprotolist): Handle @property.
582 (c_parser_objc_property_attrlist): New.
583 (c_parser_objc_at_property): New.
584 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
585 (build_modify_expr): Likewise.
587 2010-10-14 Jakub Jelinek <jakub@redhat.com>
589 PR tree-optimization/46008
590 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
592 2010-10-14 Richard Guenther <rguenther@suse.de>
594 PR tree-optimization/44913
595 * tree-data-ref.c (disjoint_objects_p): Remove.
596 (dr_may_alias_p): Simplify. Only hand the base object to
598 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
599 some more trees, bail out instead of asserting.
600 (ptr_derefs_may_alias_p): Likewise. Export.
601 (refs_may_alias_p_1): Handle STRING_CSTs.
602 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
604 2010-10-14 Joseph Myers <joseph@codesourcery.com>
607 * c-typeck.c (build_binary_op): Don't try to compute a semantic
608 type with excess precision for boolean operations.
610 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
611 Basile Starynkevitch <basile@starynkevitch.net>
613 * gengtype.c: Include getopt.h and version.h.
615 (lang_bitmap, struct outf, outf_p)
616 (get_output_file_with_visibility, oprintf): Definitions moved to
618 (output_files, header_file, srcdir, srcdir_len, this_file)
619 (do_dump): No more static variables.
621 (dbgprint_count_type_at): Added new function.
622 (gengtype_long_options): New.
623 (print_usage, print_version, parse_program_options): New.
624 (main): Call parse_program_options, and removed old option
625 handling code. Added some debug output.
627 * gengtype.h: Updated copyright year.
628 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
629 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
630 Moved from gengtype.c to here.
631 (do_debug, read_state_filename, write_state_filename): New variables.
632 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
635 (REVISION): Always defined.
636 (version.o): Removed ifdef REVISION_c.
637 (s-gtype): Pass arguments to build/gengtype program.
638 (build/version.o): Added building rule.
639 (build/gengtype$(build_exeext)): Added build/version.o.
641 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
643 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
644 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
647 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
649 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
650 may_trap_or_fault_p instead of may_trap_p predicate.
651 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
652 (substitute_placeholder_in_expr): Likewise.
653 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
654 flag on MEM_REF nodes.
655 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
656 flags on INDIRECT_REF nodes.
658 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
660 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
661 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
662 (arm*-*-eabi*) <tm_file>: Likewise.
663 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
664 (frv-*-*linux*) <tm_file>: Likewise.
665 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
666 and associated helper macros.
667 * config/frv/frv-abi.h: Delete.
669 2010-10-14 Richard Guenther <rguenther@suse.de>
672 * tree.def (NULLPTR_TYPE): New tree code.
673 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
674 * dwarf2out.c (is_base_type): Likewise.
675 (gen_type_die_with_usage): Likewise.
676 * sdbout.c (plain_type_1): Likewise.
677 * tree.c (build_int_cst_wide): Likewise.
678 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
680 2010-10-14 Joseph Myers <joseph@codesourcery.com>
682 * params.c (params_finished): New.
683 (add_params): Assert !params_finished.
684 (finish_params): New.
685 (set_param_value_internal): Take params and params_set
686 parameters. Assert params_finished.
687 (set_param_value, maybe_set_param_value): Take params and
688 params_set parameters. Update calls to set_param_value_internal.
689 (set_default_param_value): Assert !params_finished. Don't use
690 set_param_value_internal.
691 (default_param_value, init_param_values): New.
692 * params.h (struct param_info): Change value to default_value.
694 (set_param_value, maybe_set_param_value): Add params and
695 params_set parameters.
696 (PARAM_VALUE): Get parameters from global_options.
697 (PARAM_SET_P): Remove.
698 (finish_params, default_param_value, init_param_values): New.
699 * common.opt (param_values): New Variable.
700 * config/arm/arm.c (arm_option_override): Pass extra arguments to
701 maybe_set_param_value.
702 * config/i386/i386.c (ix86_option_override_internal): Pass extra
703 arguments to maybe_set_param_value.
704 * config/picochip/picochip.c (picochip_option_override): Pass
705 extra arguments to maybe_set_param_value.
706 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
707 extra arguments to maybe_set_param_value.
708 * config/s390/s390.c (s390_option_override): Use
709 maybe_set_param_value instead of set_param_value. Pass extra
710 arguments to maybe_set_param_value.
711 * config/sparc/sparc.c (sparc_option_override): Pass extra
712 arguments to maybe_set_param_value.
713 * config/spu/spu.c (spu_option_override): Pass extra arguments to
714 maybe_set_param_value.
715 * opts.c (handle_param): Take opts and opts_set parameters.
716 Update call to set_param_value.
717 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
718 initial_loop_invariant_max_bbs_in_loop): Remove.
719 (init_options_once): Don't set them.
720 (init_options_struct): Initialize parameters structures.
721 (default_options_optimization): Use default_param_value when
722 restoring defaults. Update calls to maybe_set_param_value.
723 (finish_options): Update calls to maybe_set_param_value.
724 (common_handle_option): Update calls to handle_param and
726 * toplev.c (DEFPARAM): Update definition for changes to param_info.
727 (general_init): Call finish_params.
729 2010-10-14 Nick Clifton <nickc@redhat.com>
731 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
732 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
733 (FIRST_PSEUDO_REGISTER): Increase by one.
734 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
735 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
736 (MODES_TIEABLE): Call mn10300_modes_tieable.
737 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
738 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
739 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
740 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
741 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
742 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
743 (mn10300_cc_status_mdep): Delete.
744 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
745 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
746 the combine-stack-adjust pass.
747 (print_operand): Use the mode of the comparison operation to
748 select the comparison suffix.
749 (notice_update_cc): Delete.
750 (mn10300_secondary_reload_class): Remove test for stack pointer
752 (output_tst): Rename to mn10300_output_cmp.
753 (impossible_plus_operand): Move into predicates.md.
754 (mn10300_legitimize_address): Make static.
755 (mn10300_legitimate_address_p): Make static. Only allow SI sized
756 constant pic operands.
757 (mn10300_legitimate_constant_p): New function.
758 (mn10300_case_values_threshold): Make static.
759 (mn10300_hard_regno_mode_ok): New function.
760 (mn10300_modes_tieable): New function.
761 (mn10300_select_cc_mode): New function.
762 * config/mn10300/predicates.md (impossible_plus_operand): Define.
763 * config/mn10300/mn10300-protos.h: Tidy.
764 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
765 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
766 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
767 with clobbers or sets of CC_REG.
769 (mov*): Remove use of CLR instruction.
770 (cbranch_si4_<code>): New pattern/split.
771 (integer_conditional_branch): New pattern.
772 (cbranch_sf4_<code>): New pattern/split.
773 (float_conditional_branch): New pattern.
774 (casesi): Use addsi3 pattern instead of movsi pattern to add and
775 move a value at the same time.
776 (cc0 peepholes): Remove.
778 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
780 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
781 on RTX_FRAME_RELATED_P insns and the insn to which
782 NOTE_INSN_EPILOGUE_BEG is attached.
783 * sched-vis.c (print_value): Allow NULL value.
785 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
787 PR rtl-optimization/45570
788 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
789 assert that we are pipelining outer loops. Allow returning
792 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
794 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
795 (tidy_control_flow): Tidy vertical space.
796 (sel_remove_bb): New variable idx. Use it to remember the basic
797 block index before deleting the block.
798 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
799 (sel_merge_blocks): ... here.
800 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
802 2010-10-14 Jakub Jelinek <jakub@redhat.com>
804 * cse.c (is_dead_reg): Change into inline function that is not
805 called through for_each_rtx.
806 (set_live_p): Adjust caller.
807 (insn_live_p): Don't reset DEBUG_INSNs here.
808 (struct dead_debug_insn_data): New data.
809 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
810 (delete_trivially_dead_insns): If there is just one setter for the
811 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
812 and add DEBUG_INSN for it right before the removed setter and
813 use the DEBUG_EXPR instead of the dead pseudo.
815 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
817 * et-forest.c (et_nca): Return NULL immediately when
818 the dominance forest has disjoint components.
820 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
822 * ira.c (setup_class_hard_regs): Fix typo in indexing
823 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
825 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
827 * graph.c (inbb): New variable.
828 (start_bb): Set inbb to 1 if output is inside of a building block.
829 (end_bb): Check if output is inside of a building block.
831 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
833 PR rtl-optimization/45912
834 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
835 regno of registers instead of their index to compute the alignment.
837 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
839 * config/i386/i386.c (ix86_build_const_vector): Check vector
840 mode instead of scalar mode.
841 (ix86_build_signbit_mask): Likewise.
842 (ix86_expand_fp_absneg_operator): Updated.
843 (ix86_expand_copysign): Likewise.
844 (ix86_expand_int_vcond): Likewise.
845 (ix86_emit_swdivsf): Likewise.
846 (ix86_sse_copysign_to_positive): Likewise.
847 (ix86_expand_sse_fabs): Likewise.
848 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
849 * config/i386/sse.md (copysign<mode>3): Likewise.
850 (sse2_cvtudq2ps): Likewise.
851 (vec_unpacku_float_hi_v4si): Likewise.
852 (vec_unpacku_float_lo_v4si): Likewise.
854 * config/i386/i386.c (ix86_builtins): Add
855 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
856 (bdesc_args): Likewise.
857 (ix86_builtin_vectorized_function): Support
858 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
859 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
860 and IX86_BUILTIN_CVTPS2DQ256.
861 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
863 * config/i386/sse.md (STORENT_MODE): New.
864 (VEC_FLOAT_MODE): Likewise.
865 (VEC_EXTRACT_MODE): Likewise.
866 (*avx_cvtdq2pd256_2): Likewise.
867 (vec_pack_trunc_v4df): Likewise.
868 (vec_interleave_highv8sf): Likewise.
869 (vec_interleave_lowv8sf): Likewise.
870 (storent<mode>): Macroized.
871 (<code><mode>2: absneg): Likewise.
872 (copysign<mode>3): Likewise.
873 (vec_extract<mode>): Likewise.
876 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
879 2010-10-13 Richard Guenther <rguenther@suse.de>
880 H.J. Lu <hongjiu.lu@intel.com>
882 * config/i386/sse.md (reduc_splus_v8sf): Add.
883 (reduc_splus_v4df): Likewise.
884 (vec_unpacks_hi_v8sf): Likewise.
885 (vec_unpacks_lo_v8sf): Likewise.
886 (*avx_cvtps2pd256_2): Likewise.
887 (vec_unpacks_float_hi_v8si): Likewise.
888 (vec_unpacks_float_lo_v8si): Likewise.
889 (vec_interleave_highv4df): Likewise.
890 (vec_interleave_lowv4df): Likewise.
892 2010-10-13 Richard Guenther <rguenther@suse.de>
895 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
896 alone if there are no virtual methods.
898 2010-10-13 Richard Henderson <rth@redhat.com>
900 * expr.c (build_personality_function): Take parameter LANG instead
901 of parameter NAME. Build the name based on the lang prefix and the
902 unwind method in use.
903 * tree.c (lhd_gcc_personality): Update call to
904 build_personality_function.
906 2010-10-13 Richard Guenther <rguenther@suse.de>
909 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
911 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
913 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
914 Canonicalize input operands of ASM_OPERANDS insns.
916 2010-10-13 Richard Guenther <rguenther@suse.de>
918 PR tree-optimization/45788
919 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
920 EH update until fixup-cfg.
922 2010-10-13 Julian Brown <julian@codesourcery.com>
924 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
925 from CORE_REGS and GENERAL_REGS classes.
926 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
927 final constraint for register preferencing.
929 2010-10-13 Richard Guenther <rguenther@suse.de>
931 PR tree-optimization/45970
932 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
933 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
934 (stmt_kills_ref_p): Likewise.
935 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
937 2010-10-13 Richard Guenther <rguenther@suse.de>
939 PR tree-optimization/45982
940 * tree-ssa-structalias.c (make_constraints_to): New function.
941 (make_constraint_to): Implement in terms of make_constraints_to.
942 (find_func_aliases): Properly make return values of pure/const
943 functions escape if they assign to sth that is not a pointer.
945 2010-10-13 Richard Guenther <rguenther@suse.de>
948 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
949 Fixup the CFG when EH was fixed up.
951 2010-10-13 Ira Rosen <irar@il.ibm.com>
953 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
954 Use operand's type for POINTER_PLUS_EXPR.
956 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
958 * c-parser.c (c_parser_for_statement): Initialize incr.
960 2010-10-12 Xinliang David Li <davidxl@google.com>
962 PR tree-optimization/45972
963 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
964 with too many arguments.
966 2010-10-12 Jakub Jelinek <jakub@redhat.com>
969 * tree-ssa-forwprop.c: Include expr.h.
970 (constant_pointer_difference, simplify_builtin_call): New functions.
971 (tree_ssa_forward_propagate_single_use_vars): Call
972 simplify_builtin_call on builtin calls.
974 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
976 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
977 (*adddi3_extend_sp32): Likewise.
978 (*subdi3_insn_sp32): Likewise.
979 (*subdi3_extend_sp32): Likewise.
980 (*negdi2_sp32): Use negative test for consistency.
982 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
984 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
985 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
986 * config/fixed-bit.h: Likewise.
987 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
988 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
989 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
990 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
992 * doc/tm.texi: Regenerate.
994 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
996 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
997 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
998 (*isel_reversed_unsigned_<mode>): New.
999 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
1000 as valid comparisons and adjust operands and output appropriately.
1001 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
1003 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
1005 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
1006 DATA_ALIGNMENT and add COND parameter. Update comments above.
1007 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
1008 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
1010 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
1013 * exec-tool.in: Support '-plugin' as the second option to the linker.
1015 2010-10-12 Richard Henderson <rth@redhat.com>
1018 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
1019 (expand_stack_vars): Assert large base allocated when used.
1021 2010-10-12 Richard Guenther <rguenther@suse.de>
1023 * tree-ssa-structalias.c (get_constraint_for_1): Constants
1024 only point to nonlocal, not anything.
1026 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
1028 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
1029 unwind info for exceptions.
1031 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1034 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
1035 Document optional target selector.
1037 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1039 * flag-types.h: New.
1040 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
1041 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
1043 (OPTIONS_H): Define.
1044 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
1046 * configure.ac (tm_include_list): Include options.h not flags.h.
1047 * configure: Regenerate.
1048 * flags.h: Include flag-types.h. Include options.h at top of file
1050 (enum debug_info_type, enum debug_info_level, enum
1051 debug_info_usage, enum symbol_visibility, struct visibility_flags,
1052 enum ira_algorithm, enum ira_region, enum excess_precision, enum
1053 graph_dump_types, enum stack_check_type,
1054 enum warn_strict_overflow_code): Move to flag-types.h
1055 * opth-gen.awk: Include flag-types.h in options.h.
1057 2010-10-12 Jakub Jelinek <jakub@redhat.com>
1059 * expr.c (store_expr): Share code for STRING_CST and
1060 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
1061 check if target is a MEM.
1063 * rtl.h: Include hashtab.h.
1064 (iterative_hash_rtx): New prototype.
1065 * rtl.c (iterative_hash_rtx): New function.
1066 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
1067 (output_loc_list): Return immediately if emitted is set, set it.
1068 (hash_loc_operands, hash_locs, hash_loc_list,
1069 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
1070 optimize_location_lists_1, optimize_location_lists): New function.
1071 (dwarf2out_finish): Call optimize_location_lists.
1072 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
1074 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1078 * Makefile.in ($(lang_checks_parallel))
1079 ($(lang_checks_parallelized)): Use single quotes for
1080 $(RUNTESTFLAGS), to allow passing quoted content.
1082 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1084 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
1085 actual_oldval. Use __builtin_expect.
1086 (SUBWORD_VAL_CAS): Likewise.
1088 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1090 * recog.c (nonmemory_operand): Call immediate_operand for
1091 CONSTANT_P operands.
1093 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
1095 * config/i386/i386.md (movmem<mode>): Macroize expander from
1096 movmem{si,di} using SWI48 mode iterator.
1097 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
1098 *strmovsi_rex_1 using P mode iterator.
1099 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
1100 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
1101 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
1102 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
1103 (setmem<mode>): Macroize expander from setmem{si,di} using
1104 SWI48 mode iterator.
1105 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
1106 *strsetsi_rex_1 using P mode iterator.
1107 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
1108 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
1109 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
1110 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
1111 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
1112 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
1113 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
1115 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
1116 *strlenqi_rex_1 using P mode iterator.
1118 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
1121 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
1123 (mark_ref_live, mark_ref_dead): Use them.
1124 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
1125 Save the original reg, and use the new functions.
1126 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
1128 (check_and_make_def_conflict): Save the original reg.
1130 2010-10-11 Martin Jambor <mjambor@suse.cz>
1133 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
1136 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1138 * Makefile.in ($(lang_checks_parallel))
1139 ($(lang_checks_parallelized)): Use single quotes for
1140 $(RUNTESTFLAGS), to allow passing quoted content.
1143 * opt-functions.awk (BEGIN): New section.
1144 (lower, upper, digit, alnum): New variables.
1145 (static_var, opt_sanitized_name): Use alnum instead of character
1146 classes, for non-C locale.
1147 * optc-gen.awk: Likewise.
1148 * opth-gen.awk: Likewise.
1150 2010-10-11 Anatoly Sokolov <aesok@post.ru>
1152 * target.def (preferred_reload_class): New hook.
1153 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
1154 * doc/tm.texi: Regenerate.
1155 * targhooks.c (default_preferred_reload_class): New function.
1156 * targhooks.h (default_preferred_reload_class): Declare.
1157 * reload.c (find_dummy_reload): Change preferred_class variable type
1158 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
1160 (find_reloads): Change goal_alternative array type from int to
1161 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
1162 (push_reload, find_reloads_address_part): Use
1163 TARGET_PREFERRED_RELOAD_CLASS target hook.
1164 * reload1.c (emit_input_reload_insns): Ditto.
1165 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
1166 hook. Change rclass argument and secondary_class variable types from
1167 'enum reg_class' to reg_class_t.
1169 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
1170 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
1171 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
1172 Change regclass argument and result types from enum reg_class to
1174 (TARGET_PREFERRED_RELOAD_CLASS): Define.
1176 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
1178 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
1179 in masking operations.
1180 (simplify_const_unary_operation): Likewise.
1181 (simplify_binary_operation_1): Likewise.
1182 (simplify_const_binary_operation): Likewise.
1183 (simplify_const_relational_operation): Likewise.
1184 (simplify_ternary_operation): Likewise.
1185 (simplify_immed_subreg): Likewise.
1187 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1190 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
1191 (TARGET_SUPPORTS_WEAK): New.
1192 * doc/tm.texi: Regenerate.
1193 * defaults.h (SUPPORTS_WEAK): Update comment.
1194 (TARGET_SUPPORTS_WEAK): New.
1195 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
1196 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
1198 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
1199 make_decl_one_only): Likewise.
1200 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
1201 TARGET_SUPPORTS_WEAK.
1202 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
1203 instead of SUPPORTS_WEAK.
1205 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1207 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
1209 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1211 * vec.h (VEC_qsort): Define.
1212 * dbxout.c (output_used_types): Use it.
1213 * df-scan.c (df_sort_and_compress_refs): Likewise.
1214 (df_sort_and_compress_mws): Likewise.
1215 * genautomata.c (uniq_sort_alt_states): Likewise.
1216 (evaluate_equiv_classes): Likewise.
1217 (output_trans_table): Likewise.
1218 (output_state): Likewise.
1219 * gimplify.c (compare_case_labels): Likewise.
1220 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
1221 * ipa.c (build_cdtor_fns): Likewise.
1222 * lto.c (lto_wpa_write_files): Likewise.
1223 * sel-sched.c (fill_vec_av_set): Likewise.
1224 * tree-predcom.c (determine_roots_comp): Likewise.
1225 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
1226 (splice_param_accesses): Likewise.
1227 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
1228 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
1229 (reassociate_bb): Likewise.
1230 * tree-ssa-sccvn.c (sort_scc): Likewise.
1231 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
1233 2010-10-11 Ian Lance Taylor <iant@google.com>
1235 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
1236 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
1237 TREE_THIS_NOTRAP when appropriate.
1238 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
1239 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
1240 newly created MEM_REF.
1242 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
1244 Nathan Froyds patch to hooks FUNCTION_ARG etc.
1245 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
1246 (picochip_incoming_function_arg): Delete.
1247 (picochip_arg_advance): Delete.
1248 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
1249 (FUNCTION_INCOMING_ARG): Delete.
1250 (FUNCTION_ARG_ADVANCE): Delete.
1251 * config/picochip/picochip.c (picochip_function_arg): Take a
1252 const_tree and a bool.
1253 (picochip_incoming_function_arg): Likewise.
1254 (picochip_arg_advance): Likewise.
1255 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1256 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1258 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1261 * ipa.c (build_cdtor): Delete endless loop.
1263 2010-10-07 Andi Kleen <ak@linux.intel.com>
1265 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
1267 (checksum-options): Add.
1268 (cc1-dummy): Remove.
1269 (cc1-checksum): Change to run checksum over object files
1271 * dummy-checksum.c: Remove.
1272 * genchecksum.c: Update copyright.
1273 (usage): Allow multiple arguments.
1275 (dosum): Change for incremental checksum. Remove C output.
1276 (main): Iterate over all argument files. Add C output.
1278 2010-10-11 Joseph Myers <joseph@codesourcery.com>
1280 * params.c (set_param_value_internal): New.
1281 (set_param_value): Use set_param_value_internal.
1282 (maybe_set_param_value, set_default_param_value): New.
1283 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
1284 (maybe_set_param_value, set_default_param_value): Declare.
1285 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
1286 * config/i386/i386.c (ix86_option_override_internal): Use
1287 maybe_set_param_value.
1288 * config/ia64/ia64.c (ia64_option_default_params,
1289 TARGET_OPTION_DEFAULT_PARAMS): New.
1290 (ia64_option_optimization): Move some code to
1291 ia64_option_default_params.
1292 * config/picochip/picochip.c (picochip_option_override): Use
1293 maybe_set_param_value.
1294 * config/rs6000/rs6000.c (rs6000_option_default_params,
1295 TARGET_OPTION_DEFAULT_PARAMS): New.
1296 (rs6000_option_override_internal): Use maybe_set_param_value.
1297 (rs6000_option_optimization): Move some code to
1298 rs6000_option_default_params.
1299 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
1300 * config/sh/sh.c (sh_option_default_params,
1301 TARGET_OPTION_DEFAULT_PARAMS): New.
1302 (sh_option_optimization): Move some code to sh_option_default_params.
1303 * config/sparc/sparc.c (sparc_option_override): Use
1304 maybe_set_param_value.
1305 * config/spu/spu.c (spu_option_default_params,
1306 TARGET_OPTION_DEFAULT_PARAMS): New.
1307 (spu_option_optimization): Move some code to spu_option_default_params.
1308 (spu_option_override): Use maybe_set_param_value.
1309 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
1310 * doc/tm.texi: Regenerate.
1311 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
1312 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
1314 (default_options_optimization): Use maybe_set_param_value.
1315 (finish_options): Use maybe_set_param_value.
1316 * target.def (target_option.default_params): New hook.
1317 * toplev.c (general_init): Call targetm.target_option.default_params.
1319 2010-10-11 Ira Rosen <irar@il.ibm.com>
1321 PR tree-optimization/45902
1322 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
1323 vector type for constants, unless it's a pointer.
1325 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1327 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
1329 2010-10-11 Jakub Jelinek <jakub@redhat.com>
1332 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
1333 (ix86_delegitimize_address): Use it.
1335 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
1337 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
1339 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
1341 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
1342 to cum struct in the call to function_arg_advance.
1343 (alpha_function_arg_advance): Mark named as unused.
1345 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
1347 * config/mips/mips.c (mips_handle_option): Make "value" with
1350 2010-10-09 Richard Henderson <rth@redhat.com>
1353 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
1354 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
1355 required_align, tidy the code a bit. Emit split_stack code in the
1356 right place. Mark the return value with the alignment properly.
1357 * expr.h (allocate_dynamic_stack_space): Update decl.
1358 * builtins.c (expand_builtin_apply): Update call to
1359 allocate_dynamic_stack_space.
1360 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
1361 * calls.c (initialize_argument_information): Update call to
1362 allocate_dynamic_stack_space.
1363 (expand_call): Likewise.
1365 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
1366 Don't update_stack_alignment here.
1367 (alloc_stack_frame_space): Make ALIGN unsigned.
1368 (stack_var_cmp): Sort by alignment too.
1369 (partition_stack_vars): Don't merge large and small alignment vars.
1370 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
1371 Take care when BASE is not virtual_stack_vars_rtx.
1372 (expand_stack_vars): Allocate dynamic stack space for large
1373 alignment variables.
1374 (expand_one_stack_var): Update all to expand_one_stack_var_at.
1375 (defer_stack_allocation): True for large alignment vars.
1376 (update_stack_alignment): Merge into ...
1377 (expand_one_var): ... here.
1378 (gimple_expand_cfg): Place code from expand_stack_vars.
1380 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1382 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1383 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
1384 (pdp11_function_arg_advance): New function.
1385 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1387 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1389 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
1390 * libgcc2.c: Likewise.
1392 2010-10-09 Richard Guenther <rguenther@suse.de>
1395 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
1396 Properly check if a decl is an automatic var.
1398 2010-10-09 Richard Guenther <rguenther@suse.de>
1401 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
1403 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1405 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
1406 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1407 * config/mmix/mmix.c (mmix_function_arg): Rename to...
1408 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
1410 (mmix_function_arg): New function.
1411 (mmix_function_incoming_arg): New function.
1412 (mmix_function_arg_advance): New function.
1413 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1414 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1416 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1418 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1419 * config/vax/vax.c (vax_function_arg): New function.
1420 (vax_function_arg_advance): New function.
1421 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1423 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1425 * config/pa/pa-protos.h (function_arg): Delete.
1426 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1427 * config/pa/pa.c (function_arg): Rename to...
1428 (pa_function_arg): ...this. Make static. Take a const_tree and
1430 (pa_function_arg_advance): New function.
1431 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1433 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1435 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1436 * config/m68k/m68k.c (m68k_function_arg): New function.
1437 (m68k_function_arg_advance): New function.
1438 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1440 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1442 * config/avr/avr-protos.h (function_arg): Delete.
1443 (function_arg_advance): Delete.
1444 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1445 * config/avr/avr.c (function_arg): Rename to...
1446 (avr_function_arg): ...this. Make static. Take a const_tree and
1448 (function_arg_advance): Rename to...
1449 (avr_function_arg_advance): ...this. Make static. Take a
1450 const_tree and a bool.
1451 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1453 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1455 * config/alpha/alpha-protos.h (function_arg): Delete.
1456 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1457 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
1458 * config/alpha/alpha.c (function_arg): Rename to...
1459 (alpha_function_arg): ...this. Make static. Take a const_tree and
1460 a bool. Delete TARGET_ABI_UNICOSMK code.
1461 (alpha_function_arg_advance): New function.
1462 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1464 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1466 * config/mep/mep-protos.h (mep_function_arg): Delete.
1467 (mep_function_arg_advance): Delete.
1468 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1469 * config/mep/mep.c (mep_function_arg): Make static. Take a
1470 const_tree and a bool.
1471 (mep_function_arg_advance): Likewise.
1472 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1474 2010-10-09 Richard Guenther <rguenther@suse.de>
1476 PR tree-optimization/45945
1477 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
1479 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
1481 PR tree-optimization/45612
1482 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
1483 Test LABEL_DECLs as well. Fix formatting issues.
1484 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
1485 whose label is present in NON_SSA_VARS.
1486 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
1487 as well. Fix formatting issues.
1488 (visit_bb): Fix typos and formatting issue.
1490 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
1492 PR tree-optimization/45950
1493 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
1494 before initializing vno->op.
1496 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
1498 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
1499 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
1501 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
1504 * config/i386/i386.c (ix86_binary_operator_ok): Support
1505 "andhi/andsi/anddi" as a zero-extending move.
1507 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1509 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
1510 into a temporary array.
1512 2010-10-08 Jakub Jelinek <jakub@redhat.com>
1514 PR tree-optimization/45903
1515 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
1516 of {A,L}SHIFTRT of MEM.
1518 2010-10-08 Richard Guenther <rguenther@suse.de>
1520 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
1521 Re-construct BLOCK_VARS.
1522 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
1523 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
1524 * tree.c (free_lang_data_in_block): Remove.
1525 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
1526 Do not touch the BLOCK tree.
1527 * expr.c (expand_expr_real_1): Allow externals.
1529 2010-10-08 Richard Guenther <rguenther@suse.de>
1531 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
1532 Do not output BLOCK_SUBBLOCKS.
1533 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
1534 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
1535 Re-construct BLOCK_SUBBLOCKS of parent block.
1536 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
1537 for BINFO_BASE_ACCESSES.
1539 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1541 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
1542 (TREE_H): Include $(FLAGS_H) instead of options.h.
1543 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
1544 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1545 * common.opt (flag_complex_method, flag_evaluation_order,
1546 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
1547 Variable declarations.
1548 * configure.ac (tm_include_list): Include flags.h instead of options.h.
1549 * configure: Regenerate.
1550 * flags.h: Condition out contents for target libraries. Include
1551 options.h at end of file.
1552 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
1553 flag_evaluation_order, flag_warn_unused_result): Remove.
1554 * gcc.c (main): Intialize global_options with global_options_init.
1555 * langhooks-def.h (lhd_init_options_struct): Declare.
1556 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1557 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
1558 * langhooks.c (lhd_init_options_struct): New.
1559 * langhooks.h (struct lang_hooks): Add init_options_struct.
1560 Update comment on init_options.
1561 * optc-gen.awk: Generate initializer for global_options_init, not
1563 * opth-gen.awk: Condition out structure declarations for target
1564 libraries. Declare global_options_init.
1565 * opts-common.c: Include flags.h instead of options.h.
1566 * opts.c (flag_warn_unused_result): Remove.
1567 (read_cmdline_options): Take gcc_options parameters. Pass them to
1568 read_cmdline_option.
1569 (initial_lang_mask, initial_min_crossjump_insns,
1570 initial_max_fields_for_field_sensitive,
1571 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
1572 (init_options_once): New. Split out of decode_options.
1573 (init_options_struct): New. Split out of decode_options.
1574 (decode_cmdline_options_to_array_default_mask): New.
1575 (default_options_optimization): New. Split out of decode_options.
1576 (decode_options): Move most code to other functions. Update call
1577 to read_cmdline_options.
1578 (finish_options): New. Split out of decode_options.
1579 * opts.h (decode_options): Add gcc_options parameters.
1580 (init_options_once, init_options_struct,
1581 decode_cmdline_options_to_array_default_mask): New.
1582 * toplev.c (flag_complex_method, flag_ira_algorithm,
1583 flag_ira_region, flag_evaluation_order): Remove.
1584 (general_init): Use global_options_init for initial flag values
1586 (toplev_main): Call init_options_once, init_options_struct,
1587 lang_hooks.init_options_struct,
1588 decode_cmdline_options_to_array_default_mask and
1589 lang_hooks.init_option before decode_options. Update arguments to
1591 * tree.h: Include flags.h instead of options.h.
1593 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1595 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1597 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1599 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
1601 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
1602 (FUNCTION_INCOMING_ARG): Delete.
1603 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
1604 (function_arg_slotno): Likewise. Take bool arguments.
1605 (sparc_arg_partial_bytes): Update call to it.
1606 (function_arg): Rename to...
1607 (sparc_function_arg_1): ...this. Take bool arguments.
1608 (sparc_function_arg, sparc_function_incoming_arg): New functions.
1609 (function_arg_advance): Rename to...
1610 (sparc_function_arg_advance): ...this. Take bool argument.
1611 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
1612 (TARGET_FUNCTION_INCOMING_ARG): Define.
1614 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1616 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
1618 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1619 * config/bfin/bfin.c (function_arg_advance): Rename to...
1620 (bfin_function_arg_advance): ...this. Make static. Take const_tree
1622 (function_arg): Rename to...
1623 (bfin_function_arg): ...this. Make static. Take const_tree and bool
1625 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1627 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1629 * config/score/score-protos.h (score_function_arg): Delete.
1630 (score_function_arg_advance): Delete.
1631 * config/score/score3.h (score3_function_arg_advance): Take a
1632 const_tree and a bool.
1633 (score3_function_arg): Likewise.
1634 * config/score/score7.h (score7_function_arg_advance): Likewise.
1635 (score7_function_arg): Likewise.
1636 * config/score/score3.c (score3_classify_arg): Likewise.
1637 (score3_function_arg_advance, score3_function_arg): Likewise.
1638 * config/score/score7.c (score7_classify_arg): Likewise.
1639 (score7_function_arg_advance, score7_function_arg): Likewise.
1640 * config/score/score.c (score_function_arg_advance): Likewise.
1641 (score_function_arg): Likewise. De-const-ify `cum' argument.
1642 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1644 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1646 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
1647 (s390_function_arg): Delete.
1648 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1649 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
1650 (s390_function_arg_integer): Likewise.
1651 (s390_function_arg_advance): Make static. Take a const_tree and
1653 (s390_function_arg): Likewise.
1654 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1656 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1658 * config/spu/spu-protos.h (spu_function_arg): Delete.
1659 * config/spu/spu.h (FUNCTION_ARG): Delete.
1660 (FUNCTION_ARG_ADVANCE): Move code to ...
1661 * config/spu/spu.c (spu_function_arg_advance): New function.
1662 (spu_function_arg): Make static. Take a const_tree and a bool.
1663 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
1664 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1666 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1668 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1670 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1672 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
1673 (init_vn_nary_op_from_op): New function.
1674 (init_vn_nary_op_from_stmt): New function.
1675 (vn_nary_op_lookup_1): New function.
1676 (sizeof_vn_nary_op): New function.
1677 (alloc_vn_nary_op_noinit): New function.
1678 (alloc_vn_nary_op): New function.
1679 (vn_nary_op_insert_into): New function.
1680 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
1681 (vn_nary_op_lookup): Likewise.
1682 (vn_nary_op_lookup_stmt): Likewise.
1683 (vn_nary_op_insert_pieces): Likewise.
1684 (vn_nary_op_insert): Likewise.
1685 (vn_nary_op_insert_stmt): Likewise.
1686 (copy_nary): Likewise.
1687 (set_value_id_for_result): New function.
1688 (set_hashtable_value_ids): Call it.
1690 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1692 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1693 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
1695 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
1697 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
1698 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1700 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
1703 * cse.c (cse_extended_basic_block): Preserve cc0 info across
1704 debug isnsn. Skip them when searching for cc0 setter.
1705 (set_live_p): Skip debug insns when searching for cc0 user.
1707 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
1713 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
1714 type of MEM_REFs to INTEGER_CSTs.
1716 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
1718 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
1719 m68hc11_print_operand_address.
1721 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
1723 * builtins.c (rewrite_call_expr): Move code to...
1724 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
1725 (rewrite_call_expr_array): New function.
1726 (fold_builtin_sprintf_chk_1): New function.
1727 (fold_builtin_sprintf_chk): Call it.
1728 (gimple_fold_builtin_sprintf_chk): Likewise.
1729 (fold_builtin_snprintf_chk_1): New function.
1730 (fold_builtin_snprintf_chk): Call it.
1731 (gimple_fold_builtin_snprintf_chk): Likewise.
1732 (gimple_rewrite_call_expr): Delete.
1734 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
1736 * config.host: Update copyright year.
1738 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
1740 * config.host (host_lto_plugin_soname): New shell variable.
1741 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
1742 * config.in: Regenerate.
1743 * configure: Regenerate.
1744 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
1745 LTO plugin shared library.
1747 2010-10-07 Richard Henderson <rth@redhat.com>
1749 * target.h (enum unwind_info_type): Move ...
1750 * coretypes.h: ... here.
1752 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
1754 * doc/objc.texi (Fast enumeration protocol): Mention that
1755 'unsigned int' can also be used instead of 'unsigned long' in
1756 countByEnumeratingWithState:objects:count:.
1758 2010-10-07 Martin Jambor <mjambor@suse.cz>
1760 * tree-sra.c (struct access): New field grp_assignment_write.
1761 (dump_access): Dump grp_assignment_write.
1762 (build_accesses_from_assign): Set grp_assignment_write.
1763 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
1764 (mark_read_status): Renamed to mark_rw_status, individual values
1766 (analyze_access_subtree): Changed type of mark_write to
1767 mark_read_status. Fixed propagating of mark_read and
1768 mark_write. Changed benefit estimate. Updated comment.
1770 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
1773 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
1774 check for vectype_out returned by get_vectype_for_scalar_type().
1776 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
1779 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
1780 constraint, add register specifier in instruction template.
1781 (neon_vec_pack_trunc_<mode>): Likewise.
1782 (neon_vec_<US>mult_<mode>): Add register specifier to
1783 instruction template.
1785 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
1787 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
1789 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
1790 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
1791 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
1792 (cygwin2.o): Likewise.
1793 * config/i386/cygwin1.c: Delete file.
1794 * config/i386/cygwin2.c: Likewise.
1795 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
1796 make all {%!mno-cygwin} ones unconditional.
1797 (STARTFILE_SPEC): Likewise.
1798 (REAL_LIBGCC_SPEC): Likewise.
1799 (LIB_SPEC): Likewise.
1800 (CXX_WRAP_SPEC): Likewise.
1801 (LINK_SPEC): Likewise.
1802 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
1803 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
1804 (cygwin_gplusplus_include_dir): Delete now-unused array.
1805 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
1806 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
1807 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
1808 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
1809 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
1810 (cygwin_local_include_dir): Delete now-unused array.
1811 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
1812 (cygwin_cross_include_dir): Delete now-unused array.
1813 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
1814 (cygwin_tool_include_dir): Delete now-unused array.
1815 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
1816 (cygwin_standard_include_dir): Delete now-unused array.
1817 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
1818 (GEN_CVT_ARRAY): Delete now-unused macro definition.
1819 (cvt_to_mingw): Delete now-unused array.
1820 (mingw_scan): Remove prototype of deleted function.
1821 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
1822 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
1823 * doc/invoke.texi (-mcygwin): Don't document removed option.
1824 (-mno-cygwin): Likewise.
1826 2010-10-07 Richard Guenther <rguenther@suse.de>
1828 * machmode.h (mode_for_vector): Declare.
1829 * stor-layout.c (mode_for_vector): New function, split out from ...
1830 (layout_type): ... here.
1831 * tree-vectorizer.h (current_vector_size): Declare.
1832 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
1833 mask vector type is available.
1834 (get_vectype_for_scalar_type): Rename to ...
1835 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
1837 (get_vectype_for_scalar_type): New wrapper around
1838 get_vectype_for_scalar_type_and_size using current_vector_size.
1839 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
1840 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
1841 of vect_analyze_loop here.
1842 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
1843 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
1845 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
1846 V8SF to V8SI conversion builtin.
1848 2010-10-07 Richard Guenther <rguenther@suse.de>
1850 * target.def (autovectorize_vector_sizes): New target hook.
1851 * targhooks.c (default_autovectorize_vector_sizes): New function.
1852 * targhooks.h (default_autovectorize_vector_sizes): Declare.
1853 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
1855 * doc/tm.texi: Update.
1856 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
1857 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1859 2010-10-07 Richard Guenther <rguenther@suse.de>
1861 * target.def (units_per_simd_word): Rename to ...
1862 (preferred_simd_mode): ... this. Return mode instead of size.
1863 * targhooks.c (default_units_per_simd_word): Rename to ...
1864 (default_preferred_simd_mode): ... this. Return word_mode.
1865 * targhooks.h (default_preferred_simd_mode): Declare.
1866 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
1867 (arm_preferred_simd_mode): ... this. Re-implement.
1868 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
1869 (ix86_preferred_simd_mode): ... this. Re-implement.
1870 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
1871 (sparc_preferred_simd_mode): ... this. Re-implement.
1872 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
1873 (mips_preferred_simd_mode): ... this. Re-implement.
1874 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
1875 (rs6000_preferred_simd_mode): ... this. Re-implement.
1876 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
1877 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
1878 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
1879 * doc/tm.texi: Update.
1881 2010-10-07 Richard Guenther <rguenther@suse.de>
1884 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
1887 2010-10-07 Alan Modra <amodra@gmail.com>
1889 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
1890 rather than sign extension by hand.
1892 2010-10-07 Jan Hubicka <jh@suse.cz>
1895 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
1897 2010-10-07 Richard Guenther <rguenther@suse.de>
1900 * configure.ac: Fix typo.
1901 * configure: Regenerated.
1903 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1905 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
1906 define_builtin_std where it's unnecessary.
1907 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
1909 2010-10-06 Anatoly Sokolov <aesok@post.ru>
1911 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
1912 * doc/tm.texi.in: Regenerate.
1913 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
1914 * targhooks.c (default_class_likely_spilled_p): Don't use the
1915 CLASS_LIKELY_SPILLED_P macro.
1917 * config/arm/arm.md: Update comment.
1919 2010-10-06 Jan Hubicka <jh@suse.cz>
1921 * ipa.c (cgraph_remove_unreachable_nodes): External references can
1923 (cgraph_externally_visible_p): We can not bring local comdats that
1924 are known to linker; fix handling of internal visibility.
1925 (function_and_variable_visibility): Likewise.
1927 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
1929 PR rtl-optimization/45394
1930 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
1931 (struct rtx_subst_pair): Remove AFTER field.
1932 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
1933 (propagate_for_debug): Remove MOVE parameter and adjust.
1934 (try_combine): In the special case where I2 is a PARALLEL, combine only
1935 destinations of SETs and set I2SRC to the I2 source.
1936 Adjust calls to propagate_for_debug throughout.
1937 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
1940 2010-10-06 Olivier Hainque <hainque@adacore.com>
1942 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
1943 switch on insn codes as sequence of ifs.
1945 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
1947 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
1948 be UI_NONE for picochip.
1949 (picochip_option_override): Do not disable exception flags.
1950 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1953 2010-10-06 Richard Guenther <rguenther@suse.de>
1955 * Makefile.in (regmove.o): Depend on $(TARGET_H).
1957 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1959 Implemented fast enumeration for Objective-C.
1960 * c-parser.c (objc_could_be_foreach_context): New.
1961 (c_lex_one_token): Recognize RID_IN keyword in a potential
1962 Objective-C foreach context.
1963 (c_parser_declaration_or_fndef): Added parameter. Accept
1964 Objective-C RID_IN keyword as terminating a declaration; in that
1965 case, return the declaration in the new parameter.
1966 (c_parser_extenral_declaration): Updated calls to
1967 c_parser_declaration_or_fndef.
1968 (c_parser_declaration_or_fndef): Same change.
1969 (c_parser_compound_statement_nostart): Same change.
1970 (c_parser_label): Same change.
1971 (c_parser_objc_methodprotolist): Same change.
1972 (c_parser_omp_for_loop): Same change.
1973 (c_parser_for_statement): Detect and parse Objective-C foreach
1975 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
1976 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
1977 fast enumeration parsing code to turn off the c99 error but still
1978 perform checks on the loop declarations.
1979 * c-tree.h (check_for_loop_decls): Updated declaration.
1980 * doc/objc.texi: Document fast enumeration.
1982 2010-10-06 Nick Clifton <nickc@redhat.com>
1984 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
1985 (MDR_REGNUM): Define.
1986 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
1987 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
1988 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
1989 (REGISTER_NAMES): Add MDR.
1990 (DWARF2_DEBUGGING_INFO): Define to 1.
1991 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1992 (F): New function. Sets RTX_FRAME_RELATED_P.
1993 (mn10300_gen_multiple_store): Use F.
1994 (expand_prologue): Use F. Use gen_movsf() to push floating
1996 (expand_epilogue): Use gen_movsf() to pop floating point registers.
1997 (mn10300_option_override): Disable combine stack adjust pass.
1999 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
2002 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
2003 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
2005 2010-10-06 Jakub Jelinek <jakub@redhat.com>
2007 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
2008 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
2009 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
2010 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
2011 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
2012 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
2013 BUILT_IN_TOUPPER): Mark as leaf.
2016 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
2017 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
2018 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
2019 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
2020 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
2021 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
2022 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
2024 2010-10-05 Anatoly Sokolov <aesok@post.ru>
2026 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
2027 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2028 (m68hc11_class_likely_spilled_p): New function.
2030 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
2032 * c-parser.c (c_parser_objc_method_definition): Updated comment.
2034 2010-10-05 Jan Hubicka <jh@suse.cz>
2036 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
2038 * opts.c (decode_options): Handle lto partitions.
2039 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
2040 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
2042 2010-10-05 Jan Hubicka <jh@suse.cz>
2044 * cgraphunit.c (assemble_function): Output thunks and aliases before
2045 the function itself.
2047 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
2049 * config/picochip/picochip.c (picochip_option_override): Disable
2050 exception flags for picochip.
2052 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2054 * opts-common.c (handle_option, handle_generated_option,
2055 read_cmdline_option, set_option): Add diagnostic_context
2056 parameter. Update calls among these functions.
2057 (set_option): Don't use global_dc.
2058 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
2059 (decode_options): Pass global_dc to enable_warning_as_error.
2060 (common_handle_option): Pass global_dc to enable_warning_as_error.
2061 (enable_warning_as_error): Add diagnostic_context parameter.
2062 Document parameters. Don't use global_dc. Pass
2063 diagnostic_context parameter to handle_generated_option.
2064 * opts.h (set_option, handle_option, handle_generated_option,
2065 read_cmdline_option, enable_warning_as_error): Add
2066 diagnostic_context parameter.
2067 * Makefile.in (lto-opts.o): Update dependencies.
2068 * coretypes.h (struct diagnostic_context, diagnostic_context):
2070 * diagnostic.h (diagnostic_context): Don't declare typedef here.
2071 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
2072 * langhooks-def.h (struct diagnostic_context): Don't declare here.
2073 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
2074 using diagnostic_context typedef.
2075 * langhooks.c (lhd_initialize_diagnostics): Declare using
2076 diagnostic_context typedef.
2077 * langhooks.h (struct diagnostic_context): Don't declare here.
2078 (initialize_diagnostics, print_error_function): Declare using
2079 diagnostic_context typedef.
2080 * lto-opts.c: Include diagnostic.h.
2081 (lto_reissue_options): Pass global_dc to set_option. Pass
2082 DK_UNSPECIFIED not 0.
2083 * plugin.c (plugins_internal_error_function): Declare using
2084 diagnostic_context typedef.
2085 * plugin.h (struct diagnostic_context): Don't declare here.
2086 (plugins_internal_error_function): Declare using
2087 diagnostic_context typedef.
2089 2010-10-05 Olivier Hainque <hainque@adacore.com>
2090 Nicolas Roche <roche@adacore.com>
2092 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
2093 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
2095 2010-10-05 Ira Rosen <irar@il.ibm.com>
2097 PR tree-optimization/45752
2098 * tree-vect-slp.c (vect_get_mask_element): Remove static
2099 variables, make them function arguments.
2100 (vect_transform_slp_perm_load): Pass new arguments to
2101 vect_get_mask_element.
2103 2010-10-05 Richard Guenther <rguenther@suse.de>
2105 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
2106 (gimple_mod_pow2): Likewise.
2107 (gimple_mod_subtract): Likewise.
2108 (gimple_ic): Likewise.
2109 (gimple_stringop_fixed_value): Likewise.
2110 * tree-profile.c (tree_init_edge_profiler): Mark profile
2111 functions nothrow and leaf.
2112 (add_abnormal_goto_call_edges): Remove.
2113 (tree_gen_edge_profiler): Work on SSA form.
2114 (tree_gen_ic_profiler): Likewise. Simplify.
2115 (do_tree_profiling): Update SSA form.
2116 (pass_tree_profile): Remove.
2117 (do_tree_profiling): Likewise.
2118 (gate_tree_profile_ipa): New function.
2119 (pass_ipa_tree_profile): New.
2120 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
2121 state of instrumented functions.
2122 * passes.c (init_optimization_passes): Remove early non-SSA
2123 inlining. Move profiling after early optimizations.
2124 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
2125 (pass_ipa_early_inline): Likewise.
2126 * tree-pass.h (pass_ipa_early_inline): Remove.
2127 (pass_tree_profile): Likewise.
2128 (pass_ipa_tree_profile): Declare.
2130 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2131 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
2133 * gcc/config/s390/s390.c (z196_cost): New.
2134 (s390_handle_arch_option): Add -march=z196.
2135 (s390_option_override): Use the new cost function and use the z10
2136 defaults also for z196.
2137 (legitimate_reload_constant_p): Adjust comment.
2138 (legitimate_reload_fp_constant_p): New function.
2139 (s390_preferred_reload_class): Distingiush between FP and Int constants.
2140 (preferred_la_operand_p): Avoid la with index on z196.
2141 (s390_adjust_priority): Trigger also for z196.
2142 (s390_issue_rate): Issue rate for z196 is 3.
2143 (s390_z10_fix_long_loop_prediction): Rename to ...
2144 (s390_fix_long_loop_prediction): ... this.
2145 (s390_reorg): Apply the z10 adjustments also for z196.
2146 (s390_loop_unroll_adjust): Do this also for z196.
2147 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
2148 (enum processor_flags): Add PF_Z196.
2149 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
2150 (TARGET_CPU_Z196, TARGET_Z196): New macros.
2151 * gcc/config.gcc: Enable z196 for --with-arch.
2152 * gcc/config/s390/2817.md: New file.
2153 * gcc/config/s390/2084.md: New type for multiply and add.
2154 * gcc/config/s390/2097.md: Likewise.
2155 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
2156 (UNSPECV_ATOMIC_OP): New constants.
2157 (fmadddf, fmaddsf): New values for type attribute.
2158 (z196prop): New insn attribute.
2159 (cpu, cpu_facility): Add z196.
2160 (ATOMIC_Z196): New code iterator.
2161 (noxa): New code attribute.
2162 (gk): New mode attribute.
2163 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
2164 Support load zero for fp constants.
2165 (fixuns_truncdddi2, fixuns_trunctddi2)
2166 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
2168 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
2169 (popcounthi2, popcountqi2): New expander.
2170 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
2171 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
2172 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
2174 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
2175 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
2176 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
2177 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
2178 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
2179 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
2180 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
2181 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
2182 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
2183 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
2184 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
2185 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
2186 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
2187 Support new z196 instructions.
2189 2010-10-05 Richard Guenther <rguenther@suse.de>
2192 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
2193 case where gimplification optimizes away the stmt.
2195 2010-10-04 Jakub Jelinek <jakub@redhat.com>
2198 * var-tracking.c (strip_pointer_flags): New function.
2199 (emit_note_insn_var_location): If rtx_equal_p check failed,
2200 retry on locations simplified with simplify_replace_fn_rtx
2201 and strip_pointer_flags as its callback.
2203 2010-10-04 Jan Hubicka <jh@suse.cz>
2205 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
2206 (can_refer_decl_in_current_unit_p): ... this one; reverse return
2207 value; handle comdats too.
2208 (canonicalize_constructor_val): Use it; handle function_decls
2210 (gimple_fold_obj_type_ref_known_binfo): Likewise.
2211 * gimple.c (get_base_address): Accept all kinds of decls.
2213 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2215 * flags.h (g_switch_value, g_switch_set): Remove.
2216 * opts.c (g_switch_value, g_switch_set): Remove.
2217 * config/g.opt (G): Add Var(g_switch_value).
2218 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
2219 (alpha_option_override): Check global_options_set.x_g_switch_value
2220 instead of g_switch_set.
2221 (alpha_in_small_data_p): Remove cast in comparison with
2223 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
2224 g_switch_value to unsigned HOST_WIDE_INT.
2225 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
2226 with g_switch_value.
2227 (frv_handle_option): Don't handle -G here.
2228 (frv_option_override): Check global_options_set.x_g_switch_value
2229 instead of g_switch_set. Don't modify g_switch_set.
2230 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
2231 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
2232 g_switch_value to unsigned HOST_WIDE_INT.
2233 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
2234 (ia64_option_override): Check global_options_set.x_g_switch_value
2235 instead of g_switch_set.
2236 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
2238 (lm32_in_small_data_p): Remove cast in comparison with
2240 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
2241 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
2243 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
2244 (m32r_init): Check global_options_set.x_g_switch_value instead of
2246 (m32r_in_small_data_p): Remove cast in comparison with
2248 (m32r_file_start): Format g_switch_value with %d.
2249 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
2250 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
2251 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
2253 (microblaze_option_override): Check
2254 global_options_set.x_g_switch_value instead of g_switch_set.
2255 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
2256 (mips_option_override): Check global_options_set.x_g_switch_value
2257 instead of g_switch_set.
2258 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
2259 (rs6000_file_start): Format g_switch_value with %d.
2260 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
2261 comparisons with g_switch_value.
2262 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2263 global_options_set.x_g_switch_value instead of g_switch_set.
2264 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2265 global_options_set.x_g_switch_value instead of g_switch_set.
2266 * config/score/score.c (score_handle_option): Don't handle -G here.
2267 * config/score/score3.c (score3_option_override): Check
2268 global_options_set.x_g_switch_value instead of g_switch_set.
2269 * config/score/score7.c (score7_option_override): Check
2270 global_options_set.x_g_switch_value instead of g_switch_set.
2272 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
2274 * common.opt (fira-coalesce): Remove.
2276 * doc/invoke.texi (flag_ira_coalesce): Remove.
2278 * ira-color.c (allocno_coalesced_p): Move before
2279 copy_freq_compare_func.
2280 processed_coalesced_allocno_bitmap): Ditto.
2281 (update_conflict_hard_regno_costs): Don't use
2282 ALLOCNO_FIRST_COALESCED_ALLOCNO.
2283 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
2284 (assign_hard_reg): Assume no coalesced allocnos.
2285 (get_coalesced_allocnos_attributes): Remove.
2286 (bucket_allocno_compare_func): Assume no coalesced allocnos.
2287 (push_allocno_to_stack): Ditto.
2288 (remove_allocno_from_bucket_and_push): Use
2289 ira_print_expanded_allocno instead of print_coalesced_allocno.
2290 (push_allocnos_to_stack): Assume uncoalesced allocnos.
2291 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
2292 all_conflicting_hard_regs.
2293 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
2294 (setup_allocno_left_conflicts_size): Ditto.
2295 (put_allocno_into_bucket): Ditto.
2296 (copy_freq_compare_func): Remove.
2297 (copy_freq_compare_func, merge_allocnos): Move before
2298 coalesced_pseudo_reg_freq_compare.
2299 coalesced_allocno_conflict_p): Ditto.
2300 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
2301 parameter. Assume it true.
2302 (color_allocnos): Assume uncoalesced allocnos. Use
2303 ira_print_expanded_allocno instead of print_coalesced_allocno.
2304 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
2307 * ira.c: Remove comment about coalescing.
2309 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2311 * config/mips/mips.h (target_flags_explicit): Declare for
2314 2010-10-04 Andi Kleen <ak@linux.intel.com>
2316 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
2317 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
2319 2010-10-04 Matthias Klose <doko@ubuntu.com>
2321 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
2322 multilib osdirname if it exists.
2323 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
2325 2010-10-04 Jakub Jelinek <jakub@redhat.com>
2328 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
2329 arg0's type or its unsigned counterpart as utype. Convert
2330 arg1 to utype unconditionally.
2332 2010-10-04 Julian Brown <julian@codesourcery.com>
2334 * expr.c (expand_assignment): Add assertion to prevent emitting
2335 null rtx for movmisalign pattern.
2336 (expand_expr_real_1): Likewise.
2337 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
2338 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
2339 (arm_vector_alignment_reachable): New.
2340 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
2341 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
2342 (arm_print_operand): Include alignment qualifier in %A.
2343 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
2344 (movmisalign<mode>): New expander.
2345 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
2348 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2350 * optc-gen.awk: Define global_options_set. Don't define
2351 target_flags_explicit.
2352 * opth-gen.awk: Declare global_options_set. Define
2353 target_flags_explicit as macro.
2354 * opts-common.c (handle_option): Take opts_set and generated_p
2356 (handle_generated_option, read_cmdline_option, set_option): Take
2358 (set_option): Use opts_set instead of hardcoding target_flags and
2359 target_flags_explicit.
2360 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
2361 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
2362 flag_value_profile_transformations_set, flag_peel_loops_set,
2363 flag_branch_probabilities_set, flag_inline_functions_set,
2364 flag_ipa_cp_set, flag_ipa_cp_clone_set,
2365 flag_predictive_commoning_set, flag_unswitch_loops_set,
2366 flag_gcse_after_reload_set): Remove.
2367 (common_handle_option, lang_handle_option, target_handle_option):
2368 Take opts_set parameter. Assert that it is &global_options_set.
2369 (common_handle_option): Don't set _set variables. Check opts_set
2370 instead of such variables.
2371 (enable_warning_as_error): Pass &global_options_set to
2372 handle_generated_option.
2373 * opts.h (cl_option_handler_func.handler, set_option,
2374 handle_option, handle_generated_option, read_cmdline_option): Add
2375 opts_set parameters.
2376 (handle_option): Add generated_p parameter.
2377 * config/i386/i386.c (ix86_function_specific_save,
2378 ix86_function_specific_restore): Updat for renaming of
2379 target_flags_explicit field.
2380 * config/i386/i386.opt (target_flags_explicit): Rename to
2381 ix86_target_flags_explicit.
2382 * config/ia64/ia64.c (ia64_override_options_after_change): Check
2383 global_options_set.x_flag_selective_scheduling and
2384 global_options_set.x_flag_selective_scheduling2, not
2385 sel_sched_switch_set.
2386 * flags.h (sel_sched_switch_set,
2387 flag_speculative_prefetching_set): Remove.
2388 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
2389 that it is &global_options_set.
2390 (process_command): Pass &global_options_set to read_cmdline_option.
2391 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
2393 * toplev.c (target_flags_explicit): Remove.
2395 2010-10-04 Jan Hubicka <jh@suse.cz>
2398 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
2399 use get_ref_base_and_offset to handle references.
2400 (fold_const_aggregate_ref): Update.
2402 2010-10-04 Martin Jambor <mjambor@suse.cz>
2404 PR tree-optimization/45572
2405 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
2406 ipa_check_create_node_params.
2407 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
2409 2010-10-04 Yao Qi <yao@codesourcery.com>
2411 * doc/passes.texi: Clean up.
2413 2010-10-03 Ian Lance Taylor <iant@google.com>
2415 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
2416 referring to a field using a typedef name.
2417 (find_anonymous_field_with_type): New static function.
2418 (convert_to_anonymous_field): New static function.
2419 (convert_for_assignment): If -fplan9-extensions, permit converting
2420 pointer to struct to pointer to anonymous field.
2421 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
2422 (is_duplicate_field): New static function.
2423 (detect_field_duplicates_hash): If -fplan9-extensions, check for
2424 typedef names duplicating field names.
2425 (detect_field_duplicates): Likewise.
2426 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
2427 (C Dialect Options): Document -fplan9-extensions.
2428 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
2430 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
2432 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
2434 (vect_create_data_ref_ptr): Likewise.
2435 * tree-vect-stmts.c (vectorizable_store): Likewise.
2436 (perm_mask_for_reverse): Likewise.
2437 (reverse_vec_elements): Likewise.
2438 (vectorizable_load): Likewise.
2440 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2442 * cppbuiltin.c: New file.
2443 * cppbuiltin.h: New file.
2444 * Makefile.in: Take into account cppbuiltin.{h,c}.
2446 2010-10-03 Andi Kleen <ak@linux.intel.com>
2448 * lto-cgraph.c (input_cgraph): Check for missing sections.
2450 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
2452 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
2453 to nonimmediate_operand. Force operand 2 to register when allowed.
2454 (*<shiftrt_insn><mode>3_mask): Ditto.
2455 (*<rotate_insn><mode>3_mask): Ditto.
2457 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
2459 PR tree-optimization/45720
2460 PR tree-optimization/45764
2461 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2462 Don't accept backwards consecutive accesses.
2463 (vect_create_data_ref_ptr): Disallow negative steps.
2465 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
2466 (perm_mask_for_reverse): Removed.
2467 (reverse_vec_elements): Likewise.
2468 (vectorizable_load): Don't handle negative steps.
2470 2010-10-02 Jan Hubicka <jh@suse.cz>
2472 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
2473 call destination is known.
2475 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2478 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
2481 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2483 * doc/install.texi (Configuration): Document build_configargs,
2484 host_configargs, target_configargs.
2486 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
2488 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
2489 (*<shiftrt_insn><mode>3_mask): Ditto.
2490 (*<rotate_insn><mode>3_mask): Ditto.
2492 2010-10-01 Steve Ellcey <sje@cup.hp.com>
2494 PR tree-optimization/44716
2495 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2496 (HOT_TEXT_SECTION_NAME): Define.
2498 2010-10-01 Nick Clifton <nickc@redhat.com>
2500 * common.opt: Add -fcombine-stack-adjustments.
2501 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
2502 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
2503 flag_combine_stack_adjustments.
2504 * doc/invoke.texi: Document the new option.
2506 2010-10-01 Richard Guenther <rguenther@suse.de>
2508 PR tree-optimization/45854
2509 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
2511 2010-10-01 Anthony Green <green@moxielogic.com>
2513 * config.gcc: Fix moxie-*-rtems* configuration.
2515 2010-10-01 Richard Guenther <rguenther@suse.de>
2517 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
2518 (gen_decl_die): Likewise.
2520 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2522 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
2523 to the function code for SPU MD builtins.
2524 (spu_expand_builtin): Update.
2525 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
2527 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2529 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
2530 sjlj_except_unwind_info.
2532 2010-10-01 Tristan Gingold <gingold@adacore.com>
2534 * configure.ac: Define the nop insn for avr*-*-*
2535 * configure: Regenerate.
2537 2010-10-01 Alan Modra <amodra@gmail.com>
2540 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
2541 extend toc_restore_insn.
2543 2010-09-30 Richard Guenther <rguenther@suse.de>
2545 PR tree-optimization/43959
2546 * function.c (gimplify_parameters): Use create_tmp_reg instead of
2549 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
2551 * config/sh/sh.c (sh_expand_prologue): Set
2552 current_function_static_stack_size.
2554 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2556 * configure.ac: Check for Solaris 8 ld with .hidden support.
2557 * configure: Regenerate.
2559 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2562 * graphite.c (graphite_initialize): Call scev_reset.
2564 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2566 * sese.h (scev_analyzable_p): Return false for real or floating
2567 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
2569 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2571 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
2573 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
2575 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
2576 Do not allocate ub_expr, it is passed in initialized.
2578 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2580 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
2581 (build_cloog_prog): Dump CLooG input file when
2582 flag_graphite_dump_cloog is set. This is disabled on trunk.
2583 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
2585 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2587 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
2588 verify_dominators for CDI_POST_DOMINATORS.
2589 * sese.h: Remove comment about CDI_POST_DOMINATORS.
2590 (recompute_all_dominators): Remove call to free_dominance_info
2591 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
2592 for CDI_POST_DOMINATORS.
2594 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2596 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
2597 over pbb_dim_iter_domain.
2599 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2601 * graphite-flattening.c: Fix comments.
2603 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2605 * Makefile.in (OBJS-common): Add graphite-flattening.o.
2606 (graphite-flattening.o): New rule.
2607 * common.opt (floop-flatten): New flag.
2608 * doc/invoke.texi (-floop-flatten): Documented.
2609 * graphite-flattening.c: New.
2610 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
2611 * graphite-poly.h (flatten_all_loops): Declared.
2612 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
2613 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
2614 is set, also set flag_graphite.
2616 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2618 * graphite-poly.c (cloog_checksum): New.
2619 * graphite-poly.h (cloog_checksum): Declared.
2621 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2623 * graphite-poly.c (pbb_number_of_iterations): Removed.
2624 (pbb_number_of_iterations_at_time): Correctly compute the number
2625 of iterations in the transformed loop.
2626 * graphite-poly.h (pbb_number_of_iterations): Removed.
2628 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2630 * graphite-poly.h (lst_update_scattering_seq): Removed.
2631 (lst_update_scattering): Correctly handle outermost loop dewey
2634 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2636 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
2637 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
2638 * graphite-poly.h (lst_niter_for_loop): New.
2640 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2642 * graphite-poly.c (apply_poly_transforms): Do not abort when the
2643 transform read from disk is not legal. Call fatal_error instead.
2645 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2647 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
2648 (print_scop_header): Removed. Inlined in the only call place...
2649 (print_scop): ... here.
2651 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2653 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
2655 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2657 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
2659 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2661 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
2662 (dot_deps_stmt): Same.
2663 * graphite-poly.c (dot_lst): Same.
2665 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2667 * graphite-blocking.c (scop_do_strip_mine): Do not call
2668 graphite_legal_transform.
2669 (scop_do_block): Same.
2671 2010-09-30 Vladimir Kargov <kargov@gmail.com>
2673 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
2676 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2678 * tree-scalar-evolution.c (instantiate_array_ref): New.
2679 (instantiate_scev_r): Also handle ARRAY_REFs.
2681 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2683 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2684 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
2685 RESULT_DECL, and FIELD_DECL. Return false for an
2686 SSA_NAME_IS_DEFAULT_DEF.
2687 (compute_scalar_evolution_in_loop): Do not further analyze the
2688 scalar evolution when no_evolution_in_loop_p returns true.
2690 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2692 * tree-chrec.h (evolution_function_is_affine_p): Do not check
2693 whether CHREC_LEFT is invariant. A function is affine when
2694 CHREC_RIGHT is invariant.
2696 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2698 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
2700 (rewrite_degenerate_phi): Same.
2701 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
2703 2010-09-30 Vladimir Kargov <kargov@gmail.com>
2705 * graphite-scop-detection.c (graphite_can_represent_scev,
2706 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
2707 graphite_can_represent_loop): Remove outermost_loop.
2709 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2712 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
2713 handle GIMPLE_CALLs with no LHS.
2715 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2717 * graphite-poly.c (init_graphite_out_file): New.
2718 (init_graphite_in_file): New.
2719 (apply_poly_transforms): Updated to enable reading and writing of
2720 multiple scop files.
2722 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
2724 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
2727 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2729 * graphite-clast-to-gimple.c (precision_for_value): Adjust
2730 computation of precision by 1.
2732 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2734 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
2735 (openscop_read_polyhedron_matrix): New.
2736 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
2737 (openscop_read_N_int): Same.
2738 * graphite-poly.c (openscop_read_N_int): New.
2739 (openscop_read_one_int): New.
2740 (openscop_read_N_string): New.
2741 (openscop_read_one_string): New.
2742 (openscop_read_powerset_matrix): New.
2743 (graphite_read_transforms): Remove.
2744 (graphite_read_scatt): New.
2745 (graphite_read_scop_file): New.
2746 (apply_poly_transforms): Updated to call graphite_read_scop_file.
2748 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2750 * graphite-poly.c: Change include order.
2752 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2754 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
2755 (cloog_matrix_nrows): New.
2757 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2759 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
2761 * graphite-poly.c (openscop_print_scattering_function_1): Same.
2762 (print_scattering_function_1): Same.
2763 (openscop_print_pbb_domain): Same.
2764 (openscop_print_scop_context): Same.
2765 (print_scop_context): Same.
2767 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2769 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
2770 (openscop_print_pdr_polyhedron): Print pph.
2772 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2774 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
2775 priority signed types.
2777 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2779 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
2780 the call to lang_hooks.types.type_for_size. Call
2781 build_nonstandard_integer_type.
2783 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
2785 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
2786 (openscop_print_polyhedron_matrix): New.
2787 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
2788 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
2789 (openscop_print_pdr_powerset): New.
2790 (openscop_print_powerset_matrix): New.
2791 (openscop_print_scattering_function_1): New.
2792 (print_scattering_function): Add support for scattering names and
2794 (graphite_write_transforms): Remove.
2795 (print_pdr_access_layout): Updated to support OpenScop format.
2797 (openscop_print_pbb_domain): New.
2798 (print_pbb_body): Added a parameter to allow indicating that pbb_body
2800 (print_pbb): Updated to call the new print_pbb_body.
2801 (openscop_print_scop_context): New.
2802 (print_scop_header): New.
2803 (print_scop): Updated to call print_scop_header.
2804 * graphite-poly.h: Document OpenScop format.
2806 2010-09-30 Anatoly Sokolov <aesok@post.ru>
2808 * config/cris/m32c.c (cris_memory_move_cost): New.
2809 (cris_register_move_cost): Make static. Change arguments type from
2810 enum reg_class to reg_class_t.
2811 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2812 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2813 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
2815 2010-09-30 Jakub Jelinek <jakub@redhat.com>
2818 * config/i386/i386.c (ix86_gimplify_va_arg): Use
2819 INTVAL (XEXP (slot, 1)) as prev_size.
2821 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2824 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
2825 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
2827 * config/rs6000/option-defaults.h (toplevel): Change #if
2828 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
2829 global option changes.
2831 2010-09-30 Jakub Jelinek <jakub@redhat.com>
2833 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
2835 PR tree-optimization/31261
2836 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
2837 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
2839 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2842 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
2843 special-casing for generators and turn into ...
2844 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
2845 rule, for better error messages in case of toplevel dependency errors.
2846 (genprog): Add hooks, rename to ...
2847 (genprogerr): ... this, and let genprog also contain check,
2849 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
2850 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
2851 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
2853 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
2854 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2856 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
2857 for GMP, MPFR and MPC.
2859 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2861 * config/sparc/sparc.opt (mimpure-text): Move ...
2862 * config/sol2.opt: ... here. Correct description.
2863 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
2864 * doc/invoke.texi (Option Summary, SPARC Options): Move
2865 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
2866 (Option Summary, Solaris 2 Options): ... here.
2867 (Submodel Options, Solaris 2 Options): New menu entry.
2868 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
2869 (Solaris 2 Options): ... here.
2871 2010-09-30 Michael Eager <eager@eagercon.com>
2873 * extend.texi (interrupt_handler): Add MicroBlaze to list.
2874 (save_volatiles): Describe option for MicroBlaze.
2875 * invoke.texi: Add MicroBlaze Options.
2876 * contrib.texi: Add acknowledgment.
2877 * md.texi: Add MicroBlaze d and z constraints.
2878 * install.texi: Add microblaze-*-elf.
2879 * configure.ac: Add microblaze-*-* to target list.
2880 * configure: Regenerate.
2881 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
2882 * config/microblaze/microblaze-protos.h: New.
2883 * config/microblaze/crti.s: New.
2884 * config/microblaze/predicates.md: New.
2885 * config/microblaze/linux.h: New.
2886 * config/microblaze/microblaze.md: New.
2887 * config/microblaze/constraints.md: New.
2888 * config/microblaze/crtn.s: New.
2889 * config/microblaze/microblaze.opt: New.
2890 * config/microblaze/microblaze-c.c: New.
2891 * config/microblaze/t-microblaze: New.
2892 * config/microblaze/microblaze.c: New.
2893 * config/microblaze/microblaze.h: New.
2895 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2897 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
2898 parse @optional/@required and set the flags as appropriate.
2900 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
2902 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
2904 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2906 * opt-functions.awk (static_var): Update comment.
2907 (var_ref): Return offsetof expression or -1, not variable address.
2908 * optc-gen.awk: Generate structure field initializers instead of
2909 static variables. Expect -1 for missing variables instead of null
2910 pointer. Add gcc_options parameters to generated functions.
2911 * opth-gen.awk: Generate structure fields for static variables.
2912 Add gcc_options parameters to generated functions.
2913 * common.opt (optimize, optimize_size): Add variables.
2914 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
2915 &global_options to cl_target_option_restore.
2916 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
2917 &global_options to cl_optimization_restore, cl_target_option_save
2918 and cl_target_option_restore.
2919 (ix86_set_current_function): Pass &global_options to
2920 cl_target_option_restore.
2921 * config/pdp11/pdp11.h (optimize): Remove.
2922 * config/rs6000/rs6000.h (optimize): Remove.
2923 * config/sh/sh.h (optimize): Remove.
2924 * config/xtensa/xtensa.h (optimize): Remove.
2925 * coretypes.h (struct gcc_options): Declare.
2926 * diagnostic.c (diagnostic_initialize): Initialize
2927 context->option_state.
2928 (diagnostic_report_diagnostic): Pass option_state to
2929 option_enabled hook.
2930 * diagnostic.h (diagnostic_context.option_enabled): Add void *
2932 (diagnostic_context.option_state): New field.
2933 * final.c (final_start_function, final, final_scan_insn): Rename
2934 optimize parameter to optimize_p.
2935 * flags.h (optimize, optimize_size): Remove.
2936 * function.c (invoke_set_current_function_hook): Pass
2937 &global_options to cl_optimization_restore.
2938 * gcc.c (driver_handle_option): Take gcc_options parameter.
2939 Assert that it is &global_options.
2940 (process_command): Pass &global_options to read_cmdline_option.
2941 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
2943 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
2944 &global_options to set_option.
2945 * opts-common.c (handle_option, handle_generated_option,
2946 read_cmdline_option, set_option): Take explicit gcc_options
2947 parameters. Use option_flag_var.
2948 (option_flag_var): New.
2949 * opts.c (common_handle_option, lang_handle_option,
2950 target_handle_option): Take gcc_options parameter. Assert that it
2952 (read_cmdline_options): Pass &global_options to read_cmdline_option.
2953 (print_filtered_help): Use option_flag_var. Pass &global_options
2955 (common_handle_option): Use option_flag_var.
2956 (option_enabled): Take opts parameter. Use option_flag_var.
2957 (get_option_state): Take gcc_options parameter. Use
2958 option_flag_var. Pass gcc_options parameter to option_enabled.
2959 (enable_warning_as_error): Pass &global_options to
2960 handle_generated_option.
2961 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
2962 (cl_option_handler_func.handler): Take gcc_options parameter.
2963 (option_enabled, get_option_state, set_option, handle_option,
2964 handle_generated_option, read_cmdline_option): Take gcc_options
2966 * toplev.c (optimize, optimize_size): Remove.
2967 (print_switch_values): Pass &global_options to option_enabled.
2968 (option_affects_pch_p): Use option_flag_var. Pass &global_options
2969 to get_option_state.
2970 (general_init): Initialize global_dc->option_state.
2971 * tree.c (build_optimization_node): Pass &global_options to
2972 cl_optimization_save.
2973 (build_target_option_node): Pass &global_options to
2974 cl_target_option_save.
2976 2010-09-30 Martin Jambor <mjambor@suse.cz>
2978 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
2979 zero sized bit-fields.
2981 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2983 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
2984 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
2985 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
2986 (c_parser_objc_class_declaration): Same change.
2987 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
2988 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
2989 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
2990 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
2991 and RID_AT_PUBLIC instead of RID_PUBLIC.
2992 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
2993 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
2995 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
2997 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
2998 Add links to current providers of packages for Solaris and IRIX.
3000 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3002 Merge from 'apple/trunk' branch on FSF servers.
3003 * c-parser.c: Applied change originally in c-parse.in.
3005 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3008 * c-decl.c (start_decl): Check for redeclaration of class name.
3009 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
3011 2010-09-29 Steve Ellcey <sje@cup.hp.com>
3013 * config/ia64/ia64.c (ia64_builtin_decl): New.
3014 (TARGET_BUILTIN_DECL): Define.
3015 (ia64_builtins): New.
3016 (ia64_init_builtins): Save decls in ia64_builtins.
3018 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
3021 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
3022 (move2add_use_add3_insn): Likewise.
3023 (reload_cse_move2add): Likewise.
3024 * rtlanal.c (get_full_rtx_cost): New function.
3025 * rtl.h (struct full_rtx_costs): New.
3026 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
3027 costs_add_n_insns): New inline functions.
3028 (get_full_rtx_cost): Declare.
3031 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
3032 invariants. Check for reg_equiv_invariant.
3033 (reload): Assert that spilled_pseudos is empty when returning.
3035 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
3037 * config/i386/mingw32.h (TARGET_64BIT): replaced by
3038 TARGET_64BIT_DEFAULT in #if check.
3040 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
3042 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
3044 2010-09-29 Mike Stump <mikestump@comcast.net>
3046 * config/darwin.h (flag_mkernel): Remove.
3047 (flag_apple_kext): Likewise.
3049 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3050 Jack Howarth <howarth@bromo.med.uc.edu>
3052 * config/darwin.opt (undefined): Add.
3054 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
3057 * configure.ac: Add --enable-indirect-function option.
3058 * config.gcc: Add default_gnu_indirect_function.
3059 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
3060 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
3061 * varasm.c (do_assemble_alias): Adjust for macro name change.
3062 * configure: Rebuilt.
3063 * doc/install.texi: Document --enable-indirect-function.
3065 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3067 * doc/options.texi (Variable, Var, Init): Update documentation
3068 without reference to VarExists.
3069 (VarExists): Remove.
3070 * common.opt, config/i386/i386.opt, config/linux.opt,
3071 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
3072 Don't use VarExists.
3074 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3076 * optc-gen.awk: Generate global_options initializer instead of
3077 individual variables. Add x_ prefix to names of structure members.
3078 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
3079 names of structure members.
3080 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3081 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
3082 * doc/tm.texi: Regenerate.
3083 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3084 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
3085 * c-parser.c (disable_extension_diagnostics,
3086 restore_extension_diagnostics): Update names of cpp_options members.
3087 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3088 * common.opt (fcompare-debug-second): Don't use Var.
3089 * config/alpha/alpha.h (target_flags): Remove.
3090 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3091 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
3092 * config/bfin/bfin.h (target_flags): Remove.
3093 * config/cris/cris.h (target_flags): Remove.
3094 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
3095 cl_target_option members.
3096 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
3097 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
3098 ix86_can_inline_p): Update names of cl_target_option members.
3099 * config/i386/i386.h (ix86_isa_flags): Remove.
3100 * config/lm32/lm32.h (target_flags): Remove.
3101 * config/mcore/mcore.h (mcore_stack_increment): Remove.
3102 * config/mcore/mcore.md (addsi3): Remove extern declaration of
3103 flag_omit_frame_pointer.
3104 * config/mep/mep.h (target_flags): Remove.
3105 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3106 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
3107 * config/mmix/mmix.h (target_flags): Remove.
3108 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
3109 flag_expensive_optimizations): Remove.
3110 * config/s390/s390.h (flag_pic): Remove.
3111 * config/score/score-conv.h (target_flags): Remove.
3112 * config/sh/sh.h (sh_fixed_range_str): Remove.
3113 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
3114 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
3115 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3116 * diagnostic.c (diagnostic_initialize): Update names of
3117 diagnostic_context members.
3118 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
3119 warn_system_headers.
3120 (diagnostic_report_warnings_p): Update for new names.
3121 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
3122 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
3123 HARD_FRAME_POINTER_IS_ARG_POINTER.
3124 * flags.h (flag_compare_debug): Declare.
3125 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3126 * opts.c (flag_compare_debug): Define.
3127 (common_handle_option): Update names of diagnostic_context
3128 members. Handle -fcompare-debug-second.
3129 (fast_math_flags_struct_set_p): Update names of cl_optimization
3131 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3132 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3133 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3134 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3135 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3136 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3137 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
3138 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3139 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
3141 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
3143 * config/picochip/picochip.c (picochip_output_internal_label):
3144 This function can now be called for debug CFI labels, which can come
3145 in the middle of a vliw instruction. Postpone until end of vliw.
3147 2010-09-29 Richard Guenther <rguenther@suse.de>
3149 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
3150 (DECL_FILE_SCOPE_P): Use it.
3151 (TYPE_FILE_SCOPE_P): New macro.
3153 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3155 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
3156 a CPP_NAME which is a reserved word, clearly separate cases for
3157 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
3159 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3161 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
3162 token->value with the canonical spelling. Do exactly like C and
3163 C++ and leave it as it is.
3165 2010-09-28 Richard Henderson <rth@redhat.com>
3167 * config/alpha/alpha.c (alpha_builtins): New.
3168 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
3169 (alpha_builtin_function): New.
3170 (alpha_add_builtins, alpha_init_builtins): Use it.
3172 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
3174 * doc/standards.texi (Standards): Expanded the section on
3175 Objective-C and Objective-C++.
3177 2010-09-28 DJ Delorie <dj@redhat.com>
3180 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
3183 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3185 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
3186 attributes on methods.
3187 (c_parser_objc_method_definition): Handle attributes.
3188 (c_parser_objc_methodproto): Likewise.
3189 (c_parser_objc_maybe_method_attributes): New.
3190 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
3191 missing definition, similar to that in ObjC++.
3193 2010-09-28 Richard Henderson <rth@redhat.com>
3195 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
3196 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
3197 (CONFIG_SJLJ_EXCEPTIONS): Remove.
3198 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
3199 (STACK_CHECK_PROTECT): Likewise.
3200 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
3201 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
3202 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
3203 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
3204 (dwarf2out_assembly_start): Likewise.
3205 * except.c (init_eh): Use targetm.except_unwind_info.
3206 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
3207 (output_one_function_exception_table): Likewise.
3208 * final.c: Unconditionally include dwarf2out.h.
3209 (final_start_function): Unconditionally call dwarf2out routines.
3210 (final_end_function, final_scan_insn): Likewise.
3211 * function.c (expand_function_end): Use targetm.except_unwind_info.
3212 * opts.c (decode_options): Use targetm.except_unwind_info.
3213 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
3214 * target.def (debug_unwind_info, except_unwind_info): New.
3215 * target.h (enum unwind_info_type): New.
3216 * targhooks.c (default_debug_unwind_info): New.
3217 (default_except_unwind_info): New.
3218 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
3219 * targhooks.h: Declare them.
3220 * tree-tailcall.c: Include "target.h"
3221 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
3222 * Makefile.in (tree-tailcall.o): Update.
3223 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
3224 (lhd_gcc_personality): Likewise.
3226 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
3227 (TARGET_EXCEPT_UNWIND_INFO): New.
3228 (DWARF2_UNWIND_INFO): Update.
3229 (TARGET_DEBUG_UNWIND_INFO): New.
3230 * doc/tm.texi: Rebuild.
3232 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
3233 targetm.except_unwind_info.
3235 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
3236 (arm_except_unwind_info): New.
3237 (arm_compute_func_type): Use it.
3238 (arm_expand_prologue, thumb_pushpop): Likewise.
3239 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
3240 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
3241 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
3242 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
3243 (DWARF2_UNWIND_INFO): Remove.
3244 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
3245 (ARM_EABI_UNWIND_TABLES): Remove.
3247 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
3248 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
3249 (ia64_except_unwind_info): New.
3250 (ia64_output_function_prologue): Use it.
3251 (ia64_add_bundle_selector_before): Likewise.
3252 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
3253 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
3254 (TARGET_UNWIND_INFO): Remove.
3256 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
3258 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3260 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
3261 (c_parser_objc_protocol_definition): Likewise.
3262 (c_parser_external_declaration): Provide dummy attribute arguments.
3263 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
3264 (c_parser_objc_class_definition): Handle attributes.
3265 (c_parser_objc_protocol_definition): Likewise.
3267 2010-09-28 Tobias Burnus <burnus@net-b.de>
3271 * toplev.h (save_decoded_options, save_decoded_options_count):
3272 New global variables.
3273 * toplev.c (save_decoded_options, save_decoded_options_count):
3276 2010-09-28 Ian Lance Taylor <iant@google.com>
3278 * config/i386/i386.c (ix86_supports_split_stack): Test
3279 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
3281 2010-09-28 Ian Lance Taylor <iant@google.com>
3284 * opts.c (decode_options): Don't test whether the target supports
3285 split stack if flag_split_stack == 0.
3287 2010-09-28 Jan Hubicka <jh@suse.cz>
3289 * builtin-attrs.def (ATTR_LEAF): New attribute.
3290 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
3291 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
3292 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
3293 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
3294 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
3295 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
3296 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
3297 * sync-builtins.def: Annotate all builtins by leaf.
3298 * omp-builtins.def: Annotate all builtins by leaf.
3299 * builtins.def: Annotate relevant builtins with leaf attribute.
3300 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
3301 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
3304 2010-09-28 Jan Hubicka <jh@suse.cz>
3306 * tree-ssa-ccp.c (fold_ctor_reference): New function.
3307 (fold_const_aggregate_ref): Use it.
3308 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
3309 into external static.
3311 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3314 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
3315 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
3316 (ix86_solaris_return_in_memory): Remove.
3317 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
3318 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3319 (TARGET_SUBTARGET_DEFAULT): Redefine.
3320 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
3321 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3322 (TARGET_SUBTARGET_DEFAULT): Redefine.
3323 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
3325 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
3327 2010-09-29 Alan Modra <amodra@gmail.com>
3330 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
3331 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
3332 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
3334 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
3335 (rs6000_emit_prologue): Don't just create frame save info for r2,
3338 2010-09-28 Richard Henderson <rth@redhat.com>
3340 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
3341 when 8 bytes are requested.
3343 2010-09-28 Tristan Gingold <gingold@adacore.com>
3345 * config/avr/avr.c (expand_prologue): Set
3346 current_function_static_stack_size.
3348 2010-09-28 Tristan Gingold <gingold@adacore.com>
3350 * config/alpha/alpha.md: Change the initial condition of the
3353 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
3355 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
3356 Split from *avx_<maxmin:code><mode>3.
3357 (*avx_<smaxmin:code><mode>3): Ditto.
3358 * config/i386/i386.md (maxmin): Remove code iterator.
3360 2010-09-27 Ian Lance Taylor <iant@google.com>
3362 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
3363 requires assembler support for CFI directives.
3365 2010-09-27 Richard Henderson <rth@redhat.com>
3367 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
3369 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
3371 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
3372 that AFTER is not in the range FROM..TO, inclusive.
3374 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
3375 Bernd Schmidt <bernds@codesourcery.com>
3377 PR rtl-optimization/45792
3378 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
3379 If not all insns are to be merged, for each edge, stash the
3380 next candidate after the to-be-merged insns before doing the
3381 merge, and use them for the retry at the new insertion point.
3382 Handle CC0 targets when retrying.
3384 2010-09-27 Ian Lance Taylor <iant@google.com>
3386 * common.opt (fsplit-stack): New option.
3387 * opts.c (decode_options): Set flag_split_stack to final value.
3388 * target.def (supports_split_stack): New hook.
3389 * gcc.c (STACK_SPLIT_SPEC): Define.
3390 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
3391 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
3392 (Code Gen Options): Document -fsplit-stack.
3393 * doc/extend.texi (Function Attributes): Mention no_split_stack.
3394 (Function Attributes): Document no_split_stack.
3395 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
3396 TARGET_SUPPORTS_SPLIT_STACK.
3397 * doc/tm.texi: Rebuild.
3398 * function.c (thread_prologue_and_epilogue_insns): If
3399 flag_split_stack, add split stack prologue.
3400 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
3401 * varasm.c (saw_no_split_stack): New static variable.
3402 (assemble_start_function): Set saw_no_split_stack if the function
3403 has the no_split_stack attribute.
3404 (file_end_indicate_split_stack): New function.
3405 * output.h (file_end_indicate_split_stack): Declare.
3406 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
3408 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
3410 * config/i386/i386.c (ix86_option_override_internal): Don't set
3411 expand_builtin_va_start to NULL if -fsplit-stack.
3412 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
3414 (ix86_va_start): If -fsplit-stack, get overflow pointer from
3415 scratch register set by prologue.
3416 (ix86_code_end): If -fsplit-stack, call
3417 file_end_indicate_split_stack.
3418 (ix86_supports_split_stack): New static function.
3419 (SPLIT_STACK_AVAILABLE): Define.
3420 (split_stack_prologue_scratch_regno): New static function.
3421 (split_stack_fn): New static variable.
3422 (ix86_expand_split_stack_prologue): New function.
3423 (ix86_live_on_entry): New static function.
3424 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
3425 (output_pic_addr_const): Likewise.
3426 (i386_asm_output_addr_const_extra): Likewise.
3427 (ix86_expand_call): Change return type to rtx. Return the new
3429 (TARGET_SUPPORTS_SPLIT_STACK): Define.
3430 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3431 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
3432 (split_stack_prologue, split_stack_return): New insns.
3433 (split_stack_space_check): New insn.
3434 * config/i386/i386.h (struct machine_function): Add
3435 split_stack_varargs_pointer field.
3436 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
3437 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3438 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
3439 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3440 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
3442 (ix86_expand_call): Update declaration.
3444 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3446 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
3447 code. Added byref, which was missing in the list of codes.
3448 Explain that enumeration values are encoded as the integer type
3449 that the compiler uses to store them. Explain and make examples
3450 of how 'const' interacts with pointers, and the complication of
3451 the encoding of 'const char *'.
3452 (Legacy type encoding): New subsection, explaining that GCC emits
3453 incorrect type encodings for the NeXT runtime for compatibility
3455 (@@encode): New subsection, explaining @encode and particularly
3456 that protocol qualifiers are not recognized inside an @encode()
3458 (Method signatures): New subsection, explaining how method
3459 signatures are encoded.
3461 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3463 Merge from 'apple/trunk' branch on FSF servers. Removed small
3464 change in build_conditional_expr that had been added when fixing
3465 PR objc/27377 and which did the same check in a less complete way.
3467 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3470 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
3471 looking for objective-c common pointer types.
3473 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3476 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
3477 use their ObjC common type.
3479 2010-09-27 Richard Guenther <rguenther@suse.de>
3481 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
3483 2010-09-27 Jie Zhang <jie@codesourcery.com>
3485 * print-tree.c (print_node): Print in-constant-pool.
3487 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
3489 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
3490 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
3491 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
3492 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
3494 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
3496 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
3497 from pro_epilogue_adjust_stack_<mode>_{1,2}.
3498 (pro_epilogue_adjust_stack_<mode>_add): Rename from
3499 pro_epilogue_adjust_stack_<mode>_3.
3500 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
3501 renamed pro_epilogue_adjust_stack_{si,di}_add.
3502 (ix86_expand_prologue): Use indirect functions. Update for renamed
3503 pro_epilogue_adjust_stack_{si,di}_sub.
3505 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
3507 * config/i386/i386.md (movmsk_df): New insn.
3508 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
3509 sequence for TARGET_SSE_MATH.
3511 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
3513 * config/mips/mips.c (mips_builtin_decls): Declare.
3514 (mips_init_builtins): Store function declarations in
3516 (mips_builtin_decl): New function.
3517 (TARGET_BUILTIN_DECL): Define.
3519 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
3520 Richard Henderson <rth@redhat.com>
3522 * config/i386/cygwin.asm: Include auto-host.h.
3523 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
3524 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
3525 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
3526 alignment code from the 64-bit path. Use gas local labels.
3527 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
3528 from _di_2. Remove the useless constant integer argument.
3529 (pro_epilogue_adjust_stack_<mode>_3): New.
3530 (allocate_stack_worker_probe_<mode>): Macroize from
3531 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
3532 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
3533 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
3534 (__chkstk_ms): New function.
3535 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
3536 * gcc/config/i386/t-interix: Likewise.
3537 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
3538 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
3539 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
3540 * configure, config.in: Rebuild.
3542 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
3544 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
3545 statements because of the return slot optimization.
3547 2010-09-25 Anatoly Sokolov <aesok@post.ru>
3549 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
3550 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
3551 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3552 (class_likely_spilled_p): Rename to...
3553 (avr_class_likely_spilled_p): ...this. Make static. Change argument
3554 type to reg_class_t.
3556 2010-09-24 Jan Hubicka <jh@suse.cz>
3558 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
3559 (lto_symtab_resolve_symbols): Set it.
3560 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
3561 store resolution field in cgraph/varpool.
3562 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
3563 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
3564 (cgraph_dump_node): Drop used_from_object_file.
3565 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
3566 (cgraph_function_body_availability): Use decl_replaceable_p.
3567 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
3568 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
3569 cgraph_used_from_object_file_p.
3570 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
3571 cgraph_used_from_object_file_p.
3572 (resolution_used_from_other_file_p): New functoin.
3573 (cgraph_used_from_object_file_p): New predicate.
3574 * cgraph.h: Include plugin-api.h
3575 (struct cgraph_local_info): Remove used_from_object_file.
3576 (struct cgraph_node): Add resolution field.
3577 (struct varpool_node): Likewise; remove used_from_object_file;
3578 reove const_value_known.
3579 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
3580 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
3581 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3582 varpool_used_from_object_file_p): Declare.
3583 (varpool_get_node, varpool_extra_name_alias): Update prototype.
3584 * tree.h (DECL_REPLACEABLE_P): Remove.
3585 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
3586 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
3587 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3588 input_overwrite_node, input_node, input_varpool_node): Stream
3590 * expr.c (expand_expr_real_1): Use const_value_known_p
3591 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
3593 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
3594 (function_and_variable_visibility): Set resolution for local vars
3595 and functions; use varpool_used_from_object_file_p.
3596 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
3598 (default_binds_local_p_1): Use resolutoin info.
3599 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
3600 * varpool.c (varpool_get_node): Constify.
3601 (const_value_known_p): Do not use vnode->const_value_known;
3602 use decl_replaceable_p.
3603 (varpool_finalize_decl): Do not set const_value_known.
3604 (cgraph_variable_initializer_availability): Use decl_replaceable_p
3605 (varpool_extra_name_alias): Return new node.
3606 (varpool_used_from_object_file_p): New function.
3608 2010-09-24 Richard Henderson <rth@redhat.com>
3610 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
3611 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
3612 (do_spill): Use REG_CFA_OFFSET.
3613 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
3615 (ia64_expand_epilogue): Likewise.
3616 (process_set): Split into ...
3617 (process_cfa_adjust_cfa): this,
3618 (process_cfa_register): this,
3619 (process_cfa_offset): and this new function.
3620 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
3621 instead of REG_FRAME_RELATED_EXPR.
3623 2010-09-24 Olivier Hainque <hainque@adacore.com>
3625 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
3627 2010-09-24 Jan Hubicka <jh@suse.cz>
3629 * doc/extend.texi: (attribute leaf): Document.
3630 * tree.c (local_define_builtin): Handle ECF_LEAF.
3631 (build_common_builtin_nodes): Set ECF_LEAF where needed.
3632 * tree.h (ECF_LEAF): New.
3633 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
3634 overwrittable and unavailable functions.
3635 (ipa_init): Put all_module_statics into optimization_summary_obstack.
3636 (copy_global_bitmap): Do not copy all_module_statics.
3637 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
3638 (propagate): Handle overwritable and unavailable leaf functions;
3639 initialize global info for overwritable and unavailable leaf functions;
3640 do not free all module statics.
3641 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
3643 * calls.c (flags_from_decl_or_type): Handle leaf.
3644 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
3647 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
3649 * gengtype.c: Reindented.
3650 * gengtype.h: Reindented.
3651 * gengtype-parse.c: Reindented.
3653 2010-09-24 Jan Hubicka <jh@suse.cz>
3655 PR tree-optimization/45738
3656 PR tree-optimization/45741
3657 * expr.c (string_constant): Allow CONST_DECL too;
3658 check that DECL_INITIAL is set.
3659 * varpool.c (const_value_known_p): Only look into VAR_DECL
3662 2010-09-24 Joseph Myers <joseph@codesourcery.com>
3664 * common.opt (undef): New.
3666 2010-09-24 Jakub Jelinek <jakub@redhat.com>
3669 * rtl.h (enum global_rtl_index): Add
3670 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
3671 (LAST_VIRTUAL_POINTER_REGISTER): Define.
3672 (virtual_preferred_stack_boundary_rtx,
3673 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
3674 (LAST_VIRTUAL_REGISTER): Increase by one.
3675 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
3676 instead of LAST_VIRTUAL_REGISTER.
3677 * function.c (instantiate_new_reg): Handle
3678 virtual_preferred_stack_boundary_rtx.
3679 * emit-rtl.c (init_virtual_regs): Handle
3680 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
3681 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
3682 * explow.c (round_push): If crtl->preferred_stack_boundary
3683 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
3684 virtual_preferred_stack_boundary_rtx alignment instead of
3685 crtl->preferred_stack_boundary alignment.
3686 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
3687 macros. Never decrease crtl->preferred_stack_boundary,
3688 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
3689 instead of PREFERRED_STACK_BOUNDARY. Don't modify
3690 stack_pointer_delta in dynamic allocation, even when size
3692 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
3694 * print-rtl.c (print_rtx): Handle
3695 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
3696 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
3697 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
3698 * config/frv/frv.c (frv_emit_movsi): Likewise.
3699 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
3700 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
3704 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
3707 * calls.c (expand_call): Make sure that all variable sized
3708 adjustments are multiple of preferred stack boundary after
3711 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
3712 Dominique Dhumieres <dominiq@lps.ens.fr>
3715 * gcc/config/darwin-driver.c (darwin_default_min_version):
3716 Adjust size passed to memcpy in two places.
3718 2010-09-24 Richard Guenther <rguenther@suse.de>
3720 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
3721 Make sure to not call set_type_context with error_mark_node.
3722 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
3724 2010-09-24 Richard Guenther <rguenther@suse.de>
3726 * Makefile.in (OBJS-onestep): Remove.
3727 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
3728 (libbackend.a): Remove onestep support.
3729 (libbackend.o): Remove.
3730 * configure.ac (--enable-intermodule): Remove.
3731 * configure: Regenerate.
3733 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
3735 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
3736 reaching the end of a block if it occurs at a DEBUG_INSN.
3738 2010-09-09 Tristan Gingold <gingold@adacore.com>
3741 * config/vms/vms-crt0-64.c: Removed.
3742 * config/vms/vms-crt0.c: Removed.
3743 * config/vms/vms-psxcrt0-64.c: Removed.
3744 * config/vms/vms-psxcrt0.c: Removed.
3745 * config/vms/vms-ucrt0.c: New file.
3746 * config/vms/t-vms64: Removed.
3747 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
3748 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
3749 * config.gcc (alpha-dec-vms): Use t-vms.
3751 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
3753 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
3754 underfull hbox in DVI output.
3755 (-fobjc-class-cxx-cdtors): Same change.
3756 (-fobjc-exceptions): Tidied up documentation. Explain what the
3757 option does, but moved the (lenghty) description of the exception
3758 syntax into objc.texi.
3759 (-fobjc-gc): Explain that the option is not useful with the GNU
3761 (-fzero-link): Explain that the GNU runtime always works in
3763 * doc/objc.texi: All sections: simplified @node declarations
3764 removing specification of next, previous, up node.
3765 (Objective-C): Updated introduction.
3766 (Garbage Collection): Updated. The bohem-gc library is now
3767 included in gcc itself. Mention that this section only applies to
3768 the GNU Objective-C runtime.
3769 (compatibility_alias): Small tidy up.
3770 (Exceptions): New section mostly containing text previously in the
3771 description of the -fobjc-exception command-line option.
3772 (Synchronization): Same.
3774 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
3776 * config/i386/i386.md (ix86_code_end): Move the initialization of
3777 xops array near the consumer. Use AX_REG and SP_REG instead of
3778 numerical constants.
3780 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
3782 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
3783 method [methodname]' for an Objective-C method instead of the less
3784 satisfactory 'too many arguments to function' (with no method name).
3786 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
3788 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
3789 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
3790 (execute_update_addresses_taken): Remove parameter. Execute the
3791 optimization unconditionally.
3792 * passes.c (execute_function_todo): Call execute_update_addresses_taken
3793 unconditionally if TODO_rebuild_alias is set, else only when optimizing
3794 if TODO_update_address_taken is set.
3796 2010-09-23 Anatoly Sokolov <aesok@post.ru>
3798 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3799 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
3800 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3801 (arm_output_addr_const_extra): Make static.
3803 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
3805 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
3806 define as unspec_volatile.
3807 ("nops"): Define as unspec_volatile. Use fputs to write to
3808 asm_out_file directly. Output NOPs on separate lines using while loop.
3809 * config/i386/i386.c (ix86_code_end): Use fputs to write to
3810 asm_out_file directly. Output NOPs on separate lines using while loop.
3812 2010-09-23 Richard Guenther <rguenther@suse.de>
3814 PR tree-optimization/45565
3815 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3816 Make sure to adjust the fndecl before replacing the stmt.
3818 2010-09-23 Richard Guenther <rguenther@suse.de>
3821 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
3822 gimplifying MEM_REF.
3824 2010-09-23 Alan Modra <amodra@gmail.com>
3826 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
3827 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
3829 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
3831 PR rtl-optimization/44374
3832 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
3833 * df-core.c (df_set_bb_dirty): Set it.
3834 * ifcvt.c (find_memory): Remove function.
3835 (dead_or_predicable): Use can_move_insns_across.
3836 * df.h (can_move_insns_across): Declare function.
3837 * cfgcleanup.c (block_was_dirty): New static variable.
3838 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
3839 than df_get_bb_dirty.
3840 (try_head_merge_bb): New static function.
3841 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
3843 * df-problems.c: Include "target.h"
3844 (df_simulate_find_uses): New static function.
3845 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
3846 (find_memory, find_memory_store): New static functions.
3847 (can_move_insns_across): New function.
3848 * Makefile.in (df-problems.o): Update dependencies.
3850 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
3853 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
3854 is specified and the suffix of the file isn't ".c".
3855 * config/sparc/linux64.h (ASM_SPEC): Likewise.
3857 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3859 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
3860 * doc/cppopts.texi: Fix markup of index entry.
3861 * doc/extend.texi (Constructing Calls): Fix markup of
3862 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
3863 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
3864 (Vague Linkage, C++ Attributes): Fix markup of index entries and
3866 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
3868 (C Dialect Options, C++ Dialect Options, Warning Options)
3869 (Debugging Options, Spec Files, Darwin Options)
3870 (i386 and x86-64 Options, MIPS Options)
3871 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
3872 index entries, avoid abbreviations, allow URLs to wrap, avoid
3873 long lines, avoid overlong pages from long @itemx lists.
3874 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
3875 * doc/standards.texi (Standards): Likewise.
3876 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
3878 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3880 * opts-common.c (prune_options): Make static. Work with decoded
3882 (decode_cmdline_options_to_array): Call prune_options. Don't
3883 resize option array here.
3884 * opts.h (prune_options): Remove prototype.
3885 * gcc.c (process_command): Take decoded options; don't call
3886 decode_cmdline_options_to_array here. Use decoded options for argv[0].
3887 (main): Call decode_cmdline_options_to_array here instead of
3888 prune_options. Update call to process_command.
3889 * config/darwin-driver.c: Include opts.h.
3890 (darwin_default_min_version): Work with decoded options. Don't
3891 handle -b or -V here.
3892 * config/darwin.h (darwin_default_min_version): Update prototype.
3893 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
3894 darwin_default_min_version.
3895 * config/i386/cygwin.h (mingw_scan): Update prototype.
3896 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
3897 * config/i386/cygwin1.c: Include opts.h.
3898 (mingw_scan): Work with decoded options.
3899 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
3900 * config/t-darwin (darwin-driver.o): Update dependencies.
3902 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3904 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
3905 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
3906 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
3907 -force-link, -force-link=, -language, -language=,
3908 -library-directory, -library-directory=, -no-canonical-prefixes,
3909 -no-standard-libraries, -no-warnings, -optimize, -output,
3910 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
3911 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
3912 -print-file-name=, -print-libgcc-file-name,
3913 -print-multi-directory, -print-multi-lib,
3914 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
3915 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
3916 -profile, -save-temps, -shared, -specs, -specs=, -static,
3917 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
3919 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
3920 * gcc.c (A Short Introduction to Adding a Command-Line Option):
3922 (cc1_options): Correct specs for passing down --help,
3923 --target-help and --help=*. Add spec for passing down --version.
3924 (struct option_map, option_map, target_option_translations,
3925 translate_options): Remove.
3926 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
3927 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
3928 OPT_fhelp_ and OPT_ftarget_help.
3929 (process_command): Don't call translate_options. Call
3930 decode_cmdline_options_to_array before checking for
3931 -no-canonical-prefixes using decoded options.
3932 * opts-common.c (tm.h): Update comment on #include.
3933 (find_opt): Allow abbreviations of long options.
3934 (struct option_map, option_map): New.
3935 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
3937 (target_option_translations): New.
3938 (decode_cmdline_options_to_array): Handle
3939 TARGET_OPTION_TRANSLATE_TABLE in driver.
3940 * opts.c (common_handle_option): Don't handle OPT_fhelp,
3941 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
3943 2010-09-22 Richard Guenther <rguenther@suse.de>
3945 * tree-inline.c (optimize_inline_calls): Schedule cleanups
3946 only if we inlined something. Block compaction and conditional
3947 folding are done by cfg cleanup. Schedule update-address-taken.
3948 (tree_function_versioning): Remove redundant call to number_blocks.
3949 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
3950 folding is done by cfg cleanup.
3951 * passes.c (init_optimization_passes): Remove update-address-taken
3952 pass after IPA inlining.
3954 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
3956 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
3957 to update conditions. Fix reg_mode[] check.
3959 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
3961 * config/picochip/picochip.md (movhicc): Use expand to check whether
3962 movhicc is available and split it after reload.
3964 2010-09-22 Richard Guenther <rguenther@suse.de>
3966 * tree-ssanames.c (release_dead_ssa_names): Do not remove
3968 * passes.c (init_optimization_passes): Remove early CFG cleanup.
3969 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
3970 (pass_cleanup_cfg): Likewise.
3971 (execute_fixup_cfg): Cleanup.
3972 * tree-pass.h (pass_cleanup_cfg): Remove.
3974 2010-09-22 Martin Jambor <mjambor@suse.cz>
3976 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
3977 builtins if it is true.
3978 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
3981 2010-09-22 Martin Jambor <mjambor@suse.cz>
3983 * tree-sra.c (struct access): New field grp_no_warning.
3984 (create_access_replacement): Set TREE_NO_WARNING according to
3986 (create_artificial_child_access): Use build_ref_for_model and set
3987 grp_no_warning if build_user_friendly_ref_for_offset fails.
3988 (propagate_subaccesses_across_link): Likewise.
3990 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
3993 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
3996 2010-09-22 Tristan Gingold <gingold@adacore.com>
3998 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
4000 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
4002 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
4003 * config/i386/i386.c (decide_alg): Update for rename.
4005 2010-09-22 Jakub Jelinek <jakub@redhat.com>
4007 PR rtl-optimization/45739
4008 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
4009 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
4011 2010-09-21 Anatoly Sokolov <aesok@post.ru>
4013 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
4014 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
4016 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
4017 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4019 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4022 * c-parser.c (c_parser_objc_method_definition): Check the return
4023 value of objc_start_method_definition and if false is returned,
4024 parse the method definition but emit no code.
4026 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4029 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
4030 call objc_get_interface_ivars ().
4032 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
4035 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
4036 static chain-register is used for 64-bit.
4038 2010-09-21 Richard Guenther <rguenther@suse.de>
4040 * dwarf2out.c (is_cu_die): New function.
4041 (add_pubtype): Use it.
4042 (gen_subprogram_die): Likewise.
4043 (gen_struct_or_union_type_die): Likewise.
4044 (dwarf2out_finish): Likewise.
4045 (comp_unit_die): Rename to ...
4046 (single_comp_unit_die): ... this.
4047 (comp_unit_die): New function lazily constructing and
4048 returning single_comp_unit_die.
4049 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
4050 base_type_die, subrange_type_die, modified_type_die,
4051 lower_bound_default, add_bound_info, add_prototyped_attribute,
4052 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
4053 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
4054 force_decl_die, gen_namespace_die, dwarf2out_decl,
4055 dwarf2out_start_source_file, dwarf2out_end_source_file,
4056 prune_unused_types, dwarf2out_finish): Use it.
4057 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
4058 the global list of translation-unit decls.
4059 (dwarf2out_init): Do not create single_comp_unit_die here.
4060 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
4062 2010-09-21 Richard Guenther <rguenther@suse.de>
4064 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
4067 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
4069 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
4070 (qhs_extenddi_cstr): Likewise.
4071 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
4072 them for the source operand.
4074 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
4076 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
4077 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
4078 (ix86_split_ashr): Ditto.
4079 (ix86_split_lshr): Ditto.
4081 2010-09-21 Richard Guenther <rguenther@suse.de>
4083 PR tree-optimization/45580
4084 * tree-ssa-propagate.c (substitute_and_fold): Always replace
4086 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
4087 virtuals fold the call into a regular indirect one.
4089 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
4091 PR rtl-optimization/42775
4092 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
4093 scheduling is enabled.
4095 2010-09-20 Jakub Jelinek <jakub@redhat.com>
4097 PR rtl-optimization/45728
4098 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
4099 gen_lowpart_common first and if that fails, force_reg first
4100 before calling gen_lowpart.
4103 * cfgexpand.c (expand_one_stack_var_at): Use
4104 crtl->max_used_stack_slot_alignment as max_align, instead
4105 of maximum of that and PREFERRED_STACK_BOUNDARY.
4106 Don't call update_stack_alignment.
4108 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
4110 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
4111 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
4112 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
4113 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
4114 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
4115 (build_nonstandard_integer_type): Likewise.
4116 (build_range_type_1): New function, built from...
4117 (build_range_type): ...this. Call build_range_type_1.
4118 (build_nonshared_range_type): New function.
4119 (build_array_type_1): New function, built from...
4120 (build_array_type: ...this. Call build_array_type_1.
4121 (build_nonshared_array_type): New function.
4122 * tree.h (build_nonshared_range_type): Declare.
4123 (build_nonshared_array_type): Likewise.
4125 2010-09-20 Anatoly Sokolov <aesok@post.ru>
4127 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
4128 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4129 (arm_class_likely_spilled_p): New function.
4131 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
4133 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
4135 (ix86_split_ashl): Ditto.
4136 (ix86_split_ashr): Ditto.
4137 (ix86_split_lshr): Ditto.
4138 (ix86_adjust_counter): Ditto.
4140 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
4142 * c-family/c-common.h (constant_string_class): Documented with
4143 comment identical to the one already in c-common.c.
4145 2010-09-20 Jakub Jelinek <jakub@redhat.com>
4147 * dwarf2out.c (any_cfis_emitted): New static variable.
4148 (add_fde_cfi): Set it.
4149 (dwarf2out_frame_debug): Clear it before processing,
4150 if it is set afterwards, flush any queued reg saves.
4153 * dwarf2out.c (add_accessibility_attribute): Assume
4154 DW_ACCESS_private as the default for dwarf_version > 2
4155 and DW_TAG_class_type parent.
4156 (gen_inheritance_die): Assume DW_ACCESS_public as the default
4157 for dwarf_version > 2 and parent other than DW_TAG_class_type.
4159 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
4162 * arm.md (arm_movt): Only enable on machines with MOVT.
4164 2010-09-20 Jie Zhang <jie@codesourcery.com>
4166 * config/arm/arm.c (arm_address_offset_is_imm): New.
4167 (arm_early_store_addr_dep): New.
4168 (arm_early_load_addr_dep): New.
4169 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
4170 (arm_early_load_addr_dep): Declare.
4171 (arm_address_offset_is_imm): Declare.
4172 * config/arm/cortex-m4.md: New file.
4173 * config/arm/cortex-m4-fpu.md: New file.
4174 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
4175 (attr generic_sched): Exclude cortexm4.
4176 (attr generic_vfp): Exclude cortexm4.
4178 2010-09-20 Richard Guenther <rguenther@suse.de>
4181 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
4183 2010-09-20 Jan Hubicka <jh@suse.cz>
4185 PR tree-optimize/45605
4186 * cgraph.h (const_value_known_p): Declare.
4187 (varpool_decide_const_value_known): Remove.
4188 * tree-ssa-ccp.c (get_base_constructor): Use it.
4189 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
4190 * expr.c (string_constant): Likewise.
4191 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
4192 * ipa.c (ipa_discover_readonly_nonaddressable_var,
4193 function_and_variable_visibility): Likewise.
4194 * gimplify.c (gimplify_call_expr): Likewise.
4195 * gimple-fold.c (get_symbol_constant_value): Likewise.
4196 * varpool.c (varpool_decide_const_value_known): Replace by...
4197 (const_value_known_p): ... this one; handle other kinds of DECLs
4198 too and work for automatic vars.
4199 (varpool_finalize_decl): Use const_value_known_p.
4201 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
4204 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
4206 2010-09-20 Richard Guenther <rguenther@suse.de>
4208 PR tree-optimization/45705
4209 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
4211 2010-09-20 Jakub Jelinek <jakub@redhat.com>
4213 PR rtl-optimization/45695
4214 * combine.c (try_combine): When splitting a two set pattern,
4215 make sure the pattern which will be put into i2 doesn't use REGs
4216 or MEMs set by insns in between i2 and i3.
4218 2010-09-19 Jan Hubicka <jh@suse.cz>
4221 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
4222 processing same node twice.
4224 2010-09-19 Anatoly Sokolov <aesok@post.ru>
4226 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
4227 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4228 (bfin_class_likely_spilled_p): New function
4230 2010-09-19 Ira Rosen <irar@il.ibm.com>
4232 PR tree-optimization/45714
4233 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
4234 created in vectorizable_call instead of the original statement in
4237 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
4239 * config/i386/i386-protos.h (split_double_mode): New prototype.
4240 (split_di, split_ti): Remove prototypes.
4241 * config/i386/i386.c (split_double_mode): New function.
4242 (split_di, split_ti): Remove.
4243 (ix86_expand_branch): Use split_double_mode.
4244 (ix86_split_to_parts): Ditto.
4245 (ix86_split_ashl): Ditto.
4246 (ix86_split_ashr): Ditto.
4247 (ix86_split_lshr): Ditto.
4248 (ix86_force_to_memory): Ditto.
4249 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
4251 2010-09-18 Jan Hubicka <jh@suse.cz>
4253 PR tree-optimization/45453
4254 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
4255 virtual functions are reachable.
4256 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
4257 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
4258 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
4259 when modifying function.
4261 2010-09-18 Jan Hubicka <jh@suse.cz>
4263 PR tree-optimization/45605
4264 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
4265 * gimple-fold.c (static_object_in_other_unit_p): New function.
4266 (canonicalize_constructor_val): Use it.
4267 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
4269 (gimple_fold_obj_type_ref_known_binfo): Use
4270 static_object_in_other_unit_p.
4272 2010-09-18 Richard Guenther <rguenther@suse.de>
4274 PR tree-optimization/45709
4275 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
4276 insertions until after all PHI nodes of the block are processed.
4278 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
4280 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
4282 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
4284 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
4286 2010-09-18 Richard Guenther <rguenther@suse.de>
4288 PR tree-optimization/45709
4289 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
4291 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
4293 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
4294 (dot_deps_stmt): Same.
4295 * graphite-poly.c (dot_lst): Same.
4296 * graphite-scop-detection.c (dot_all_scops): Same.
4299 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
4302 2009-12-16 Ben Elliston <bje@au.ibm.com>
4304 * tree-data-ref.c (dot_rdg_1): Added back.
4305 (dot_rdg): Same. Added "#if 0" around system call.
4307 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
4308 Richard Henderson <rth@redhat.com>
4310 * config/i386/i386.c (initial_ix86_tune_features): Add
4311 X86_TUNE_PAD_SHORT_FUNCTION.
4312 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
4313 (ix86_count_insn): New.
4314 (ix86_pad_short_function): Likewise.
4315 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
4317 * config/i386/i386.h (ix86_tune_indices): Add
4318 X86_TUNE_PAD_SHORT_FUNCTION.
4319 (TARGET_PAD_SHORT_FUNCTION): New.
4321 * config/i386/i386.md (UNSPEC_NOPS): New.
4324 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
4327 * calls.c (expand_call): Make sure that all variable sized
4328 adjustments are multiple of preferred stack boundary after
4331 2010-09-17 DJ Delorie <dj@redhat.com>
4333 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
4334 passed an invalid value, print an error instead of ICEing.
4335 (valid_psw_flag): New.
4336 (rx_expand_builtin): Call it for setpsw/clrpsw.
4337 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
4339 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
4340 (bitclr_in_memory): Likewise.
4341 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
4343 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
4346 * cfgexpand.c (update_stack_alignment): New.
4347 (get_decl_align_unit): Use it.
4348 (expand_one_stack_var_at): Call update_stack_alignment.
4350 2010-09-17 Richard Guenther <rguenther@suse.de>
4352 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
4353 Properly copy the read string.
4355 2010-09-17 Joseph Myers <joseph@codesourcery.com>
4357 * doc/options.texi (Variable): Document.
4358 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
4359 generate target_flags declarations explicitly. Don't define
4360 VarExists variables for the driver.
4361 * common.opt (target_flags): New Variable record.
4362 (flag_dump_unnumbered, flag_dump_unnumbered_links,
4363 flag_var_tracking, flag_var_tracking_assignments,
4364 flag_var_tracking_assignments_toggle): Don't mark variables with
4366 * config/i386/i386.c (ix86_isa_flags): Don't define here.
4367 * config/i386/i386.opt (ix86_isa_flags): Define here.
4368 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
4369 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
4371 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
4372 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
4373 Only define for generator programs.
4374 * rtlanal.c (target_flags): Remove.
4375 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
4376 flag_var_tracking_assignments_toggle): Remove.
4378 2010-09-17 Michael Matz <matz@suse.de>
4380 PR tree-optimization/43432
4381 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4382 Accept backwards consecutive accesses.
4383 (vect_create_data_ref_ptr): If step is negative generate
4385 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
4386 (perm_mask_for_reverse, reverse_vec_elements): New functions.
4387 (vectorizable_load): Handle loads with negative steps when easily
4390 2010-09-03 Jan Hubicka <jh@suse.cz>
4392 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
4394 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
4396 * config/v850/v850.c (v850_function_value_regno_p): Make static.
4397 Adjust comments. Declare.
4398 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4399 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
4401 2010-09-17 Richard Guenther <rguenther@suse.de>
4403 * common.opt (combine): Remove.
4404 * gcc.c (default_compilers): Remove specs testing combine.
4405 The C compilers no longer can combine.
4406 (option_map): Remove -combine.
4407 (display_help): Remove -combine.
4408 (driver_handle_option): Remove OPT_combine handling.
4409 (compile_input_file_p): Remove.
4410 (do_spec): Remove code concerning combine.
4412 * doc/invoke.texi: Remove traces of -combine.
4413 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
4415 2010-09-17 Richard Guenther <rguenther@suse.de>
4418 * builtins.c (fold_builtin_memory_op): Always properly adjust
4419 alignment of memory accesses.
4421 2010-09-16 Jan Hubicka <jh@suse.cz>
4423 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
4426 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
4428 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
4430 * config/i386/i386.c (predict_jump): Add prototype.
4431 (flag_opts): Add -m8bit-idiv.
4432 (ix86_split_idivmod): New.
4434 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
4435 Add 2 splitters for SI/DI mode divide.
4436 (divmod<mode>4_1): New pattern.
4437 (udivmod<mode>4_1): Likewise.
4438 (testdi_ccno_1): Likewise.
4440 * config/i386/i386.opt (m8bit-idiv): New.
4442 * doc/invoke.texi: Document -m8bit-idiv.
4444 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
4447 * config/i386/i386.c (min_insn_size): Moved out of the
4448 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
4450 2010-09-16 Jan Hubicka <jh@suse.cz>
4452 * lto-cgraph.c (lto_output_node): Fix handling of clones.
4453 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
4454 unreachable clones with reachable clones.
4455 * tree-inline.c (copy_bb): Fix sanity checking when producing
4458 2010-09-16 Anatoly Sokolov <aesok@post.ru>
4460 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
4461 (TARGET_MEMORY_MOVE_COST): Define.
4462 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
4464 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
4466 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
4467 maybe_tidy_empty_bb.
4470 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
4471 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
4473 2010-09-16 Joseph Myers <joseph@codesourcery.com>
4475 * target.def (target_option.optimization): New hook.
4476 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
4477 TARGET_OPTION_OPTIMIZATION hook.
4478 * doc/tm.texi: Regenerate.
4479 * hooks.c (hook_void_int_int): New.
4480 * hooks.h (hook_void_int_int): Declare.
4481 * opts.c: Don't include tm_p.h.
4482 (decode_options): Use targetm.target_option.optimization instead
4483 of OPTIMIZATION_OPTIONS.
4484 * system.h (OPTIMIZATION_OPTIONS): Poison.
4485 * config/arm/arm-protos.h (arm_optimization_options): Remove.
4486 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
4487 (arm_optimization_options): Rename to arm_option_optimization.
4489 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
4490 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
4491 (cris_option_optimization): New.
4492 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
4493 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
4494 (crx_option_optimization): New.
4495 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
4496 * config/frv/frv-protos.h (frv_optimization_options): Remove.
4497 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
4498 (frv_optimization_options): Rename to frv_option_optimization.
4500 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
4501 * config/h8300/h8300.c (h8300_option_optimization): New.
4502 (TARGET_OPTION_OPTIMIZATION): Define.
4503 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
4504 * config/i386/i386-protos.h (optimization_options): Remove.
4505 * config/i386/i386.c (optimization_options): Rename to
4506 ix86_option_optimization. Make static.
4507 (TARGET_OPTION_OPTIMIZATION): Define.
4508 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
4509 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
4510 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
4511 (ia64_optimization_options): Rename to ia64_option_optimization.
4512 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
4513 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
4514 commented-out definition.
4515 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
4516 instead of OPTIMIZATION_OPTIONS.
4517 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
4518 (m32r_option_optimization): New.
4519 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
4520 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
4522 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
4523 (mcore_option_optimization): New.
4524 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
4525 * config/mep/mep-protos.h (mep_optimization_options): Remove.
4526 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
4527 (mep_optimization_options): Rename to mep_option_optimization.
4528 Make static. Take unused level and size parameters.
4529 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
4530 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
4531 (mmix_option_optimization): New.
4532 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
4533 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
4534 (pdp11_option_optimization): New.
4535 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
4536 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
4537 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
4538 (optimization_options): Rename to rs6000_option_optimization.
4540 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
4541 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
4542 * config/rx/rx.c (rx_set_optimization_options): Rename to
4543 rx_option_optimization. Make static. Take unused level and size
4545 (TARGET_OPTION_OPTIMIZATION): Define.
4546 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
4547 * config/s390/s390-protos.h (optimization_options): Remove.
4548 * config/s390/s390.c (optimization_options): Rename to
4549 s390_option_optimization. Make static. Don't mark size parameter
4551 (TARGET_OPTION_OPTIMIZATION): Define.
4552 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
4553 * config/sh/sh-protos.h (sh_optimization_options): Remove.
4554 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
4555 (sh_optimization_options): Rename to sh_option_optimization. Make
4556 static. Don't mark parameters unused.
4557 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
4558 * config/spu/spu-protos.h (spu_optimization_options): Remove.
4559 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
4560 (spu_optimization_options): Rename to spu_option_optimization.
4562 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
4563 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
4564 (v850_option_optimization): New.
4565 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
4566 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
4567 (xtensa_option_optimization): New.
4568 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
4570 2010-09-16 Joseph Myers <joseph@codesourcery.com>
4572 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
4573 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
4574 * doc/tm.texi: Regenerate.
4575 * system.h (OVERRIDE_OPTIONS): Poison.
4576 * target.def (override): Default to hook_void_void.
4577 * targhooks.c (default_target_option_override): Remove.
4578 * genmodes.c, machmode.def: Update comments mentioning
4580 * config/alpha/alpha-modes.def: Update comment mentioning
4581 alpha_override_options.
4582 * config/alpha/alpha-protos.h (override_options): Remove.
4583 * config/alpha/alpha.c (override_options): Rename to
4584 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
4585 (TARGET_OPTION_OVERRIDE): Define.
4586 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
4587 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
4588 of OVERRIDE_OPTIONS.
4589 * config/arc/arc-protos.h (arc_init): Remove.
4590 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
4591 (arc_init): Rename to arc_option_override. Make static.
4592 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
4593 (OVERRIDE_OPTIONS): Remove.
4594 * config/arm/arm-protos.h (arm_override_options): Remove.
4595 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
4596 (arm_override_options): Rename to arm_option_override. Make
4597 static. Call SUBTARGET_OVERRIDE_OPTIONS.
4598 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
4599 * config/arm/arm.md: Update comment referring to arm_override_options.
4600 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
4601 instead of OVERRIDE_OPTIONS.
4602 * config/avr/avr-protos.h (avr_override_options): Remove.
4603 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
4604 (avr_override_options): Rename to avr_option_override. Make static.
4605 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
4606 * config/bfin/bfin-protos.h (override_options): Remove (twice).
4607 * config/bfin/bfin.c (override_options): Rename to
4608 bfin_option_override. Make static.
4609 (TARGET_OPTION_OVERRIDE): Define.
4610 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
4611 * config/cris/cris-protos.h (cris_override_options): Remove.
4612 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
4613 (cris_override_options): Rename to cris_option_override. Make static.
4614 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
4615 * config/frv/frv-protos.h (frv_override_options): Remove.
4616 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
4617 (frv_override_options): Rename to frv_option_override. Make static.
4618 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
4619 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
4620 * config/h8300/h8300.c (h8300_init_once): Rename to
4621 h8300_option_override. Make static.
4622 (TARGET_OPTION_OVERRIDE): Define.
4623 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
4624 * config/i386/i386-protos.h (override_options): Remove.
4625 * config/i386/i386.c (override_options): Rename to
4626 ix86_option_override_internal. Make static. Comments referring
4627 to this function and callers changed.
4628 (ix86_option_override): New.
4629 (TARGET_OPTION_OVERRIDE): Define.
4630 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
4631 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
4632 * config/ia64/ia64.c (ia64_file_start): Update comment referring
4633 to ia64_override_options.
4634 * config/iq2000/iq2000-protos.h (override_options): Remove.
4635 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
4636 (override_options): Rename to iq2000_option_override. Make static.
4637 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
4638 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
4639 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
4640 (lm32_override_options): Rename to lm32_option_override. Make static.
4641 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
4642 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
4643 (m32r_option_override): New.
4644 (m32r_init): Update comment.
4645 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
4646 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
4647 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
4648 (m68hc11_override_options): Rename to m68hc11_option_override.
4649 Make static. Return void.
4650 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
4651 * config/m68k/m68k-protos.h (override_options): Remove.
4652 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
4653 (override_options): Rename to m68k_option_override. Make static.
4654 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
4655 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
4656 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
4657 (mcore_override_options): Rename to mcore_option_override. Make
4659 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
4660 * config/mep/mep-protos.h (mep_override_options): Remove.
4661 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
4662 (mep_override_options): Rename to mep_option_override. Make static.
4663 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
4664 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
4665 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
4666 (mmix_override_options): Rename to mmix_option_override. Make static.
4667 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
4668 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
4669 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
4670 (mn10300_override_options): Rename to mn10300_option_override.
4672 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
4673 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
4674 * config/moxie/moxie.c (moxie_override_options): Rename to
4675 moxie_option_override. Make static.
4676 (TARGET_OPTION_OVERRIDE): Define.
4677 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
4678 * config/picochip/picochip-protos.h (picochip_override_options):
4679 Remove. Update comment referring to picochip_override_options.
4680 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
4681 (picochip_override_options): Rename to picochip_option_override.
4682 Make static. Update comment and definition of
4683 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
4684 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
4685 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4686 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4687 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4688 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4689 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4690 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
4691 instead of OVERRIDE_OPTIONS.
4692 * config/rs6000/rs6000-modes.def: Update comment referring to
4693 rs6000_override_options.
4694 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
4695 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
4696 (rs6000_override_options): Rename to
4697 rs6000_option_override_internal. Make static. Commented
4698 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
4699 (rs6000_option_override): New.
4700 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
4701 instead of OVERRIDE_OPTIONS.
4702 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4703 * config/s390/s390-protos.h (override_options): Remove.
4704 * config/s390/s390.c (override_options): Rename to
4705 s390_option_override. Make static.
4706 (TARGET_OPTION_OVERRIDE): Define.
4707 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
4708 * config/score/score-protos.h (score_override_options): Remove.
4709 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
4710 (score_override_options): Rename to score_option_override. Make
4712 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
4713 Update comment referring to override_options.
4714 * config/score/score3.c (score3_override_options): Rename to
4715 score3_option_override.
4716 * config/score/score3.h (score3_override_options): Rename to
4717 score3_option_override.
4718 * config/score/score7.c (score7_override_options): Rename to
4719 score7_option_override.
4720 * config/score/score7.h (score7_override_options): Rename to
4721 score7_option_override.
4722 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
4723 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
4724 (sparc_override_options): Rename to sparc_option_override. Make
4725 static. Call SUBTARGET_OVERRIDE_OPTIONS.
4726 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
4727 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
4728 instead of OVERRIDE_OPTIONS.
4729 * config/spu/spu-protos.h (spu_override_options): Remove.
4730 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
4731 (spu_override_options): Rename to spu_option_override. Make
4733 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
4734 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
4736 * config/vax/vax-protos.h (override_options): Remove.
4737 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
4738 (override_options): Rename to vax_option_override. Make static.
4739 Call SUBTARGET_OVERRIDE_OPTIONS.
4740 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
4741 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
4742 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
4743 * config/xtensa/xtensa-protos.h (override_options): Remove.
4744 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
4745 (override_options): Rename to xtensa_option_override. Make static.
4746 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
4748 2010-09-16 Richard Guenther <rguenther@suse.de>
4750 PR tree-optimization/45623
4751 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
4752 (get_constraint_for_component_ref): If computing a constraint
4753 for the rhs handle type punning through unions.
4754 (get_constraint_for_address_of): Adjust.
4755 (get_constraint_for_1): Likewise.
4756 (get_constraint_for): Likewise.
4757 (get_constraint_for_rhs): New function.
4758 (do_structure_copy): Adjust.
4759 (make_constraint_to): Likewise.
4760 (handle_const_call): Likewise.
4761 (find_func_aliases): Likewise.
4762 (process_ipa_clobber): Likewise.
4763 (create_variable_info_for): Likewise.
4765 2010-09-16 Ira Rosen <irar@il.ibm.com>
4767 * tree-vectorizer.c: Fix documentation.
4768 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
4769 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
4770 is_pattern_stmt_p, is_loop_header_bb_p,
4771 stmt_vinfo_set_inside_of_loop_cost,
4772 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
4773 known_alignment_for_access_p): Likewise.
4774 * tree-vect-loop.c: Fix documentation.
4775 (vect_get_cost): Start function name from new line.
4776 * tree-vect-data-refs.c: Fix documentation.
4777 * tree-vect_stmts.c: Likewise.
4778 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
4779 (vectorizable_store): Free vec_oprnds if allocated.
4780 (vectorizable_condition): Initialize several variables to avoid
4782 * tree-vect-slp.c: Fix documentation.
4784 2010-09-16 Richard Guenther <rguenther@suse.de>
4786 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
4787 is TS_TRANSLATION_UNIT_DECL.
4788 (initialize_tree_contains_struct): Adjust.
4789 (all_translation_units): New global vector.
4790 (build_translation_unit_decl): New function.
4791 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
4792 (struct tree_translation_unit_decl): New.
4793 (all_translation_units): Declare.
4794 (union tree_node): Add translation_unit_decl member.
4795 (build_translation_unit_decl): Declare.
4796 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
4797 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
4799 (pack_value_fields): Call it.
4800 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
4801 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
4802 (lto_output_tree_pointers): Call it.
4803 * lto-streamer-in.c (lto_input_tree_ref): Handle references
4804 to TRANSLATION_UNIT_DECL.
4805 (unpack_ts_translation_unit_decl_value_fields): New function.
4806 (unpack_value_fields): Call it.
4807 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
4808 (lto_input_tree_pointers): Call it.
4809 * lto-streamer.c (check_handled_ts_structures): Adjust.
4810 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
4811 * c-decl.c (all_translation_units): Remove.
4812 (pop_scope): Use build_translation_unit_decl.
4813 (collect_all_refs): Adjust.
4814 (for_each_global_decl): Likewise.
4815 (c_write_global_declarations): Likewise.
4817 2010-09-16 Jakub Jelinek <jakub@redhat.com>
4820 * fold-const.c (fold_checksum_tree): Change slot from const void **
4821 to void **, use CONST_CAST_TREE to store into *slot.
4823 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
4825 * config/i386/i386.md: Remove unneeded empty conditions and
4826 preparation statements from expanders.
4827 * config/i386/mmx.md: Ditto.
4828 * config/i386/sse.md: Ditto.
4830 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
4832 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
4834 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
4836 PR rtl-optimization/45593
4837 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
4838 insns that were in delay slots as stand-alone insns.
4840 2010-09-15 Ian Lance Taylor <iant@google.com>
4842 * incpath.c (remove_duplicates): If name is not a directory, issue
4843 a warning rather than an error.
4845 2010-09-15 Martin Jambor <mjambor@suse.cz>
4848 * tree-sra.c (create_access): Check for bit-fields directly.
4850 2010-09-15 Jakub Jelinek <jakub@redhat.com>
4852 PR tree-optimization/45633
4853 * tree-cfg.c (verify_gimple_assign_binary): Allow
4854 MINUS_EXPR with lhs and rhs1 pointer vector and
4855 rhs2 sizetype vector.
4856 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
4857 or vector pointer use TER to optimize pointer subtraction.
4859 2010-09-15 Jie Zhang <jie@codesourcery.com>
4861 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
4864 2010-09-15 Ian Lance Taylor <iant@google.com>
4866 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
4868 2010-09-15 Ian Lance Taylor <iant@google.com>
4870 * function.c (get_arg_pointer_save_area): Set
4871 arg_pointer_save_area_init to true.
4873 2010-09-15 Martin Jambor <mjambor@suse.cz>
4875 * tree-sra.c (generate_subtree_copies): Updated comment.
4876 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
4877 obtained from the statement iterator instead.
4878 (load_assign_lhs_subreplacements): Removed parameters lhs and
4879 right_offset, which is obtained from top_racc instead. Parameter lacc
4880 is now expected to be the root of the processed tree rather than root's
4881 first child. Updated all callers.
4883 2010-09-15 Joseph Myers <joseph@codesourcery.com>
4885 * config/pdp11/pdp11.c (register_move_cost): Rename to
4886 pdp11_register_move_cost.
4887 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
4888 pdp11_register_move_cost.
4889 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
4890 pdp11_register_move_cost instead of register_move_cost.
4892 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
4894 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
4895 pattern for vmovn. Expansion in case of non
4896 -mvectorize-with-neon-quad.
4897 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
4898 non- -mvectorize-with-neon-quad case.
4899 (move_lo_quad_<mode>): New expansion to vmov into low part.
4900 (move_hi_quad_<mode>): New expansion to vmov into high part.
4901 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
4902 (move_lo_quad_v4sf): Likewise.
4903 (move_lo_quad_v8hi): Likewise.
4904 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
4906 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
4908 * config/arm/iterators.md (ANY128): New mode iterator.
4909 (V_narrow_pack): New mode attribute.
4910 (V_HALF): Add attribute.
4911 (V_DOUBLE): Add attribute.
4912 (V_mode_nunits): Add attribute.
4914 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
4916 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
4917 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
4919 2010-09-15 Olivier Hainque <hainque@adacore.com>
4920 Jose Ruiz <ruiz@adacore.com>
4922 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
4923 * config/alpha/osf5-unwind.h: New file.
4925 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
4928 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
4929 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
4930 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
4932 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4934 * c-lang.h (struct lang_type): Add variable_size GTY option.
4936 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
4939 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
4941 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
4943 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
4944 result isn't used in memory address.
4946 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
4948 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
4949 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
4950 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
4951 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
4952 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
4953 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
4955 * target.def: Add units_per_simd_word to vectorize.
4957 * targhooks.c (default_units_per_simd_word): New.
4958 * targhooks.h (default_units_per_simd_word): Likewise.
4959 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
4960 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4961 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
4962 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4963 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
4964 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4965 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
4966 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4968 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
4969 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
4971 * tree-vect-stmts.c: Don't include "tm_p.h".
4972 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
4973 with targetm.vectorize.units_per_simd_word.
4975 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
4977 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
4979 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
4980 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
4982 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
4983 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
4985 * doc/tm.texi: Regenerated.
4987 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
4989 * tree-vect-stmts.c: Include "tm_p.h".
4991 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
4994 2010-09-14 Martin Jambor <mjambor@suse.cz>
4996 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
4997 location of generated statement. Changed all callers.
4998 (build_ref_for_model): New parameter loc which used to set location of
4999 all generated expressions. Changed all callers.
5000 (generate_subtree_copies): Likewise.
5001 (init_subtree_with_zero): Likewise.
5002 (sra_modify_expr): Set locations of all generated statements and
5003 expressions to the location the original statement.
5004 (handle_unscalarized_data_in_subtree): Likewise.
5005 (load_assign_lhs_subreplacements): Likewise.
5006 (sra_modify_constructor_assign): Likewise.
5007 (sra_modify_assign): Likewise.
5009 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
5014 * doc/install.texi (sparc*-*-*): New section.
5015 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
5017 2010-09-14 Jakub Jelinek <jakub@redhat.com>
5020 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
5021 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
5022 (expand_builtin): Adjust caller.
5023 (expand_builtin_unop): Only use subtarget if it has the right mode.
5025 2010-09-14 Tristan Gingold <gingold@adacore.com>
5027 * configure.ac (plugins): Fix typos.
5028 * configure: Regenerate.
5030 2010-09-14 Jakub Jelinek <jakub@redhat.com>
5033 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
5034 gen_type_die for function/method return type.
5036 2010-09-14 Ira Rosen <irar@il.ibm.com>
5038 PR tree-optimization/45470
5039 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
5040 can throw an exception.
5041 * tree-vect-stmts.c (vectorizable_call): Likewise.
5043 2010-09-14 DJ Delorie <dj@redhat.com>
5046 * config/mep/mep-protos.h (mep_save_register_info,
5047 mep_reinit_regs, mep_init_regs): Declare.
5049 * config/mep/mep.c: Move all target definitions to the end of the
5050 file to avoid the need for duplicate declarations.
5051 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
5052 (mep_reorg_erepeat): Remove unused variables.
5053 (mep_expand_builtin): Likewise.
5055 * config/mep/mep-pragma.c: Don't include rtl.h.
5056 (INVALID_REGNUM): New.
5057 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
5059 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
5060 Avoid enum/integer math.
5062 2010-09-13 Joseph Myers <joseph@codesourcery.com>
5065 * config/mep/t-mep (GTM_H): Add insn-constants.h.
5066 * config/mep/mep.c (mep_conditional_register_usage): Take no
5068 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
5070 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
5071 call to mep_conditional_register_usage.
5073 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
5076 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
5079 2010-09-13 Jakub Jelinek <jakub@redhat.com>
5081 PR rtl-optimization/45617
5082 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
5083 even if low N bits of X aren't known to be zero.
5085 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
5087 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
5089 * config/i386/i386.c (initial_ix86_tune_features): Add
5090 X86_TUNE_VECTORIZE_DOUBLE.
5091 (ix86_units_per_simd_word): New.
5093 * config/i386/i386.h (ix86_tune_indices): Add
5094 X86_TUNE_VECTORIZE_DOUBLE.
5095 (TARGET_VECTORIZE_DOUBLE): New.
5096 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
5098 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
5100 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
5101 (new_temp_expr_table): Allocate call_cnt vector.
5102 (free_temp_expr_table): Free it.
5103 (process_replaceable): Add call_cnt parm and set in vector.
5104 (find_replaceable_in_bb): Skip replacement if def/use span a call.
5105 (debug_ter): Dump call_cnt value, remove stderr uses.
5107 2010-09-13 Jan Hubicka <jh@suse.cz>
5109 * tree.c (build_zero_cst): New.
5110 * tree.h (build_zero_cst): Declare.
5111 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
5112 (get_base_constructor): Break out from ...
5113 (fold_const_aggregate_ref): Here; handle empty constructors.
5115 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5117 * config/arm/arm.md: (define_attr "conds"): Update comment.
5118 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
5119 conds attribute to clob.
5120 (arm_sync_compare_and_swapsi): Likewise.
5121 (arm_sync_compare_and_swap<mode>): Likewise.
5122 (arm_sync_lock_test_and_setsi): Likewise.
5123 (arm_sync_lock_test_and_set<mode>): Likewise.
5124 (arm_sync_new_<sync_optab>si): Likewise.
5125 (arm_sync_new_nandsi): Likewise.
5126 (arm_sync_new_<sync_optab><mode>): Likewise.
5127 (arm_sync_new_nand<mode>): Likewise.
5128 (arm_sync_old_<sync_optab>si): Likewise.
5129 (arm_sync_old_nandsi): Likewise.
5130 (arm_sync_old_<sync_optab><mode>): Likewise.
5131 (arm_sync_old_nand<mode>): Likewise.
5133 2010-09-13 Olivier Hainque <hainque@adacore.com>
5135 * fwprop.c (forward_propagate_and_simplify): Only attach a
5136 REG_EQUAL note to an insn if the destination is a register.
5137 * gcse.c (try_replace_reg): Likewise.
5139 2010-09-13 Richard Guenther <rguenther@suse.de>
5141 PR tree-optimization/45611
5142 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
5143 (copy_ref_info): Likewise.
5145 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
5150 * tree-pretty-print.c (dump_generic_node): Disregard top-level
5151 types of MEM_REF pointer types to the same type.
5153 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
5155 PR rtl-optimization/41087
5156 * ifcvt.c (noce_get_condition): Don't allow conditions with
5159 2010-09-12 Anatoly Sokolov <aesok@post.ru>
5161 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5162 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
5163 * config/frv/frv.c (frv_register_move_cost): Make static. Change
5164 arguments type to reg_class_t. Add mode argument.
5165 (frv_memory_move_cost): New.
5166 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
5168 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
5170 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
5171 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
5173 2010-09-10 Jan Hubicka <jh@suse.cz>
5175 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
5177 2010-09-10 Richard Guenther <rguenther@suse.de>
5179 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
5180 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
5181 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
5182 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
5183 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
5185 2010-09-10 Richard Guenther <rguenther@suse.de>
5187 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
5188 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
5189 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
5190 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
5192 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
5195 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
5196 of string folding is of integral type.
5198 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
5200 * doc/invoke.texi (-x): Fix typo.
5202 2010-09-10 Richard Guenther <rguenther@suse.de>
5205 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
5206 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5207 Output DECL_DEBUG_EXPR.
5208 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5209 Input DECL_DEBUG_EXPR.
5211 2010-09-10 Richard Guenther <rguenther@suse.de>
5213 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
5214 (build_index_type): Implement in terms of build_range_type.
5215 (build_range_type): Do not allow NULL_TREE type, improve
5216 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
5218 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
5219 create a distinct copy of the type.
5221 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
5223 * configure: Regenerated.
5224 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
5226 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5228 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
5229 * config/arm/cortex-a9-neon.md: New and partially generated.
5230 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
5232 2010-09-10 Richard Guenther <rguenther@suse.de>
5234 * tree.h (build_index_2_type): Remove.
5235 * tree.c (build_index_2_type): Remove.
5237 2010-09-10 Jakub Jelinek <jakub@redhat.com>
5240 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
5241 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
5242 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
5244 2010-09-10 Martin Jambor <mjambor@suse.cz>
5246 PR tree-optimization/44972
5247 * tree-sra.c: Include toplev.h.
5248 (build_ref_for_offset): Entirely reimplemented.
5249 (build_ref_for_model): New function.
5250 (build_user_friendly_ref_for_offset): New function.
5251 (analyze_access_subtree): Removed build_ref_for_offset check.
5252 (propagate_subaccesses_across_link): Likewise.
5253 (create_artificial_child_access): Use
5254 build_user_friendly_ref_for_offset.
5255 (propagate_subaccesses_across_link): Likewise.
5256 (ref_expr_for_all_replacements_p): Removed.
5257 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
5258 (sra_modify_expr): Use build_ref_for_model.
5259 (load_assign_lhs_subreplacements): Likewise.
5260 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
5261 checks for return values of build_ref_for_offset.
5262 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
5263 build_ref_for_offset.
5264 * ipa-prop.h: Include gimple.h
5265 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
5266 (ipa_analyze_indirect_call_uses): Update comment.
5267 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
5268 (IPA_PROP_H): Likewise.
5270 2010-09-10 Martin Jambor <mjambor@suse.cz>
5272 PR tree-optimization/44972
5273 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
5274 calling build_ref_for_offset.
5276 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5278 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
5279 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
5280 * config/arm/arm-tune.md: Regenerate.
5281 * doc/invoke.texi (ARM Options): Document it.
5283 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
5285 * config/i386/i386.c: Include sched-int.h.
5286 (TARGET_SCHED_DISPATCH): Defined.
5287 (TARGET_SCHED_DISPATCH_DO): Defined.
5288 (DISPATCH_WINDOW_SIZE): Defined.
5289 (MAX_DISPATCH_WINDOWS): Defined.
5290 (MAX_INSN): Defined.
5292 (MAX_IMM_SIZE): Defined.
5293 (MAX_IMM_32): Defined.
5294 (MAX_IMM_64): Defined.
5295 (MAX_LOAD): Defined.
5296 (MAX_STORE): Defined.
5298 (dispatch_group): New.
5299 (num_allowable_groups): New.
5301 (sched_insn_info_s): New.
5302 (dispatch_windows_s): New.
5304 (dispatch_window_list): New.
5305 (dispatch_window_list1): New.
5306 (get_mem_group): New.
5308 (dispatch_violation): New.
5312 (allocate_window): New.
5313 (init_dispatch_sched): New.
5314 (is_end_basic_block): New.
5315 (process_end_window): New.
5316 (allocate_next_window): New.
5317 (find_constant_1): New.
5318 (find_constant): New.
5319 (get_num_immediates): New.
5320 (has_immediate): New.
5321 (get_insn_path): New.
5322 (get_insn_group): New.
5323 (count_num_restricted): New.
5324 (fits_dispatch_window): New.
5325 (add_insn_window): New.
5326 (add_to_dispatch_window): New.
5327 (debug_dispatch_window_file): New.
5328 (debug_dispatch_window): New.
5329 (debug_insn_dispatch_info_file): New.
5330 (debug_ready_dispatch): New.
5332 (has_dispatch): New.
5333 * config/i386/i386.h (debug_ready_dispatch): Declared.
5334 (debug_dispatch_window): Declared.
5335 * config/i386/i386.opt (mdispatch-scheduler): New flag.
5336 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
5337 (TARGET_SCHED_DISPATCH_DO): New.
5338 * doc/tm.texi: Regererated.
5339 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
5340 ready_remove_first_dispatch
5341 (schedule_block): Call targetm.sched.dispatch and
5342 targetm.sched.dispatch_do.
5343 (sched_init): Call targetm.sched.dispatch and
5344 targetm.sched.dispatch_do.
5345 (ready_remove_first_dispatch): New.
5346 (number_in_ready): New.
5347 (get_ready_element): New.
5348 * hooks.c (hook_bool_rtx_int_false): New.
5349 (hook_void_rtx_int): New.
5350 * hooks.h (hook_bool_rtx_int_false): Declared.
5351 (hook_void_rtx_int): Declared.
5352 * sched-int.h (IS_DISPATCH_ON): Defined.
5354 (DISPATCH_VIOLATION): Defined.
5355 (FITS_DISPATCH_WINDOW): Defined.
5356 (DISPATCH_INIT): Defined.
5357 (ADD_TO_DISPATCH_WINDOW): Defined.
5358 (get_ready_element): Declared.
5359 (number_in_ready): Declared.
5360 * target.def (dispatch): Defined.
5361 (dispatch_do): Defined.
5363 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
5366 * reload1.c (merge_assigned_reloads): Remove.
5367 (reload_as_needed): Don't call it.
5369 2010-09-09 Anatoly Sokolov <aesok@post.ru>
5371 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
5372 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5373 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5375 2010-09-09 Matthias Klose <doko@ubuntu.com>
5378 * configure.ac (--enable-plugin): Enhance for cross builds.
5379 * configure: Regenerate.
5381 2010-09-09 Jan Hubicka <jh@suse.cz>
5383 PR tree-optimization/45598
5384 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
5385 string folding is of integral type.
5387 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5389 * configure.ac (gnu_indirect_function): New test.
5390 * configure: Rebuilt.
5391 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
5392 * defaults.h (IFUNC_ASM_TYPE): Provide default.
5394 * doc/extend.texi (Function Attributes): Document ifunc.
5395 * varasm.c (do_assemble_alias): Deal with ifuncs too.
5397 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
5399 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
5400 epilogue instruction move.
5402 2010-09-09 Jan Hubicka <jh@suse.cz>
5404 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
5405 command line to allow more partitions than input files.
5407 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
5410 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
5412 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
5415 * ira.c (pseudo_for_reload_consideration_p): Don't use
5416 flag_ira_share_spill_slots.
5418 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5420 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
5421 point zero operands that fit into a single GPR.
5422 (s390_preferred_reload_class): Ensure we only return general-purpose
5424 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
5425 floating-point zero operands into GPRs.
5426 ("*mov<mode>_64"): Likewise.
5427 ("mov<mode>"): Likewise using lhi.
5429 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5431 * config/s390/s390.c (s390_symref_operand_p): Return false for
5432 literal pool references.
5433 (s390_check_qrst_address): Update caller.
5435 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
5437 * config/i386/predicates.md (ext_register_operand): Check that
5438 SUBREG_REG is really a register before looking for REGNO.
5439 (reg_not_xmm0_operand): Handle SUBREGs correctly.
5440 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
5442 2010-09-09 Jakub Jelinek <jakub@redhat.com>
5444 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
5445 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
5446 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
5447 * print-rtl.c (print_rtx): Likewise.
5448 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5449 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
5450 for ADDR_EXPR with non-addressable object.
5451 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
5452 (struct dw_val_struct): Add v.val_decl_ref.
5453 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
5454 Handle DW_OP_GNU_implicit_pointer.
5455 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
5456 (get_ref_die_offset_label): New function.
5457 (implicit_ptr_descriptor): New function.
5458 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
5459 (loc_descriptor): Likewise.
5460 (gen_variable_die): Put even definitions into decl_die_table.
5461 (resolve_addr_in_expr): Resolve still unresolved
5462 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
5464 (dwarf2out_finish): Call output_location_lists after outputting
5465 .debug_info and .debug_abbrev instead of before.
5467 2010-09-09 Roland McGrath <roland@redhat.com>
5469 * dwarf2out.c (DWARF_REF_SIZE): Define.
5470 (size_of_loc_descr): Use it for DW_OP_call_ref.
5472 2010-09-09 Alan Modra <amodra@gmail.com>
5474 * doc/invoke.text: Reinstate mcmodel=medium.
5475 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5476 CMODEL_MEDIUM as default.
5477 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
5478 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
5479 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
5480 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
5482 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5485 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
5486 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
5487 (builtin_longjmp): Likewise.
5488 (allocate_stack): Use hard_frame_pointer_rtx instead of
5490 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
5491 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
5492 (pa_can_eliminate): Likewise.
5493 (TARGET_INTERNAL_ARG_POINTER): Define.
5494 (TARGET_CAN_ELIMINATE): Define.
5495 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
5497 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
5498 (pa_internal_arg_pointer, pa_can_eliminate,
5499 pa_initial_elimination_offset): New.
5500 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
5501 (HARD_FRAME_POINTER_REGNUM): Set to register three.
5502 (INITIAL_FRAME_POINTER_OFFSET): Delete.
5503 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
5505 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
5506 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
5507 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
5508 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
5509 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
5510 new soft frame pointer.
5511 * config/pa/pa64-regs.h: Likewise.
5513 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
5515 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
5517 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
5519 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
5522 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
5524 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
5528 * tree-pretty-print.c (dump_generic_node): Disregard top-level
5529 qualifiers in otherwise equal MEM_REF pointer types.
5530 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
5531 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
5533 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5536 * config/arm/arm.md (bswapsi2): Handle condition correctly
5537 for armv6 and optimize_size.
5539 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5542 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
5544 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
5546 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
5547 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
5548 ix86_expand_strlen, legitimate_pic_address_disp_p,
5549 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
5550 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
5551 ix86_check_movabs, ix86_secondary_memory_needed): Change function
5553 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
5554 return_in_memory_ms_64, ix86_check_movabs,
5555 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
5556 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
5557 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
5558 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
5559 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
5560 ix86_secondary_memory_needed): Change to bool. Return
5561 "true" and "false" values.
5562 * config/i386/i386.md: Return "true" and "false" values.
5564 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5566 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5567 run_expensive_tests.
5569 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5571 * toplev.c (output_stack_usage): Use lbasename instead of basename.
5573 2010-09-08 Martin Jambor <mjambor@suse.cz>
5576 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
5579 2010-09-08 Richard Guenther <rguenther@suse.de>
5581 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
5583 (iterative_hash_gimple_type): Likewise.
5584 (gimple_type_hash): Likewise.
5585 (gimple_register_type): Likewise.
5586 (print_gimple_types_stats): Likewise.
5587 (free_gimple_type_tables): Likewise.
5589 2010-09-08 Michael Matz <matz@suse.de>
5591 PR tree-optimization/43430
5592 * tree-vect-stmts.c (vectorizable_condition): Support multiple
5593 copies for conditional statements if it's not part of a reduction.
5595 2010-09-08 Michael Matz <matz@suse.de>
5597 PR tree-optimization/33244
5598 * tree-ssa-sink.c (statement_sink_location): Don't sink into
5601 2010-09-08 Richard Guenther <rguenther@suse.de>
5603 PR tree-optimization/45578
5604 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
5605 Be more careful when transfering alignment information to
5606 the new induction variable.
5607 (copy_ref_info): Likewise.
5609 2010-09-08 Richard Guenther <rguenther@suse.de>
5611 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
5612 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
5614 2010-09-08 Arnaud Charlet <charlet@adacore.com>
5616 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
5617 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
5619 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
5622 * doc/md.texi: Fixed modes on several standard pattern names.
5624 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
5626 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
5627 (ashl<mode>3): ...this.
5628 (loongson_psra<V_suffix>): Rename to...
5629 (ashr<mode>3): ...this.
5630 (loongson_psrl<V_suffix>): Rename to...
5631 (lshr<mode>3): ...this.
5632 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
5633 (CODE_FOR_loongson_psllw): Define.
5634 (CODE_FOR_loongson_psrlh): Define.
5635 (CODE_FOR_loongson_psrlw): Define.
5636 (CODE_FOR_loongson_psrah): Define.
5637 (CODE_FOR_loongson_psraw): Define.
5639 2010-09-07 Richard Henderson <rth@redhat.com>
5641 * tree-vect-data-refs.c: Include tm_p.h.
5642 * Makefile.in (tree-vect-data-refs.o): Update deps.
5643 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
5644 Move delarations outside #ifdef RTX_CODE.
5646 2010-09-07 Richard Henderson <rth@redhat.com>
5648 * final.c (rest_of_handle_final): Unconditionally do
5649 output_function_exception_table before assemble_end_function.
5651 2010-09-07 Jan Hubicka <jh@suse.cz>
5653 * tree-inline.c (tree_inlinable_function_p): Do not test
5655 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
5656 update_callee_keys, cgraph_decide_inlining): Test function availability.
5657 * cif-code.def (OVERWRITABLE): New code.
5659 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
5660 Jack Howarth <howarth@bromo.med.uc.edu>
5665 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
5666 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
5667 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
5670 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
5672 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
5673 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
5675 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
5677 * config.gcc: Don't append t-android for Android targets.
5679 * config/t-android: Removed.
5681 2010-09-07 Richard Henderson <rth@redhat.com>
5683 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
5684 * doc/tm.texi.in: Add doc marker.
5685 * doc/tm.texi: Rebuild.
5686 * except.c (switch_to_exception_section): Always build.
5687 (output_one_function_exception_table): Move section switch,
5688 personality output, and label output ...
5689 (output_function_exception_table): ... here. Use the new
5692 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
5693 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
5694 TARGET_ASM_INIT_SECTIONS): New.
5695 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
5697 (TARGET_ASM_UNWIND_EMIT): Update to match.
5698 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
5700 * config/arm/arm.c (arm_asm_emit_except_personality): New.
5701 (arm_asm_init_sections): New.
5702 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
5704 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5706 * config/arm/arm.md: Remove unused variable.
5708 2010-09-07 Anatoly Sokolov <aesok@post.ru>
5710 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5711 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
5712 (m32r_memory_move_cost): New function.
5714 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
5716 * config.gcc: Append t-android for Android targets.
5718 * config/t-android: New.
5720 2010-09-07 Richard Henderson <rth@redhat.com>
5722 * target.def (unwind_emit_before_insn): New hook.
5723 * doc/tm.texi.in: Add @hook marker for it.
5724 * doc/tm.texi: Rebuild.
5725 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
5727 2010-09-07 Martin Jambor <mjambor@suse.cz>
5730 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
5731 are any type attributes.
5733 2010-09-07 Jan Hubicka <jh@suse.cz>
5735 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
5736 array_ref_low_bound in string access folding.
5738 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
5741 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
5742 eh_return fixup sequence.
5744 2010-09-07 Jan Hubicka <jh@suse.cz>
5746 * gimple-fold.c (maybe_fold_reference): Verify that operand is
5747 gimple_min_invariant.
5749 2010-09-07 Richard Guenther <rguenther@suse.de>
5752 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
5753 nor CONSTRUCTOR can trap.
5754 * tree-complex.c (update_complex_assignment): Update EH info.
5756 2010-09-07 Richard Guenther <rguenther@suse.de>
5759 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
5760 * passes.c (execute_function_todo): Do not verify anything if
5763 2010-09-07 Richard Guenther <rguenther@suse.de>
5765 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
5767 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
5770 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
5771 New define_mode_attrs.
5772 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
5773 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
5774 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
5775 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
5776 Remove pool_range attribute.
5777 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
5778 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
5779 pool_range and neg_pool_range attributes.
5780 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
5781 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
5782 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
5784 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
5786 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
5789 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
5792 * config/i386/mmx.md (*mov<mode>_internal_rex64,
5793 *mov<mode>_internal_avx, *mov<mode>_internal,
5794 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
5795 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
5797 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5799 * c-typeck.c (do_warn_double_promotion): Remove.
5800 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
5803 2010-09-06 Anatoly Sokolov <aesok@post.ru>
5805 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
5806 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
5807 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
5808 argument type to reg_class_t. Change result type to bool.
5809 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5811 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
5814 * gthr-posix.h (__gthread_objc_thread_detach): Use
5815 _objc_thread_attribs when detaching a thread.
5816 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
5818 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
5821 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
5822 * configure: Regenerated.
5824 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5826 * combine.c (try_combine): Set subst_low_luid to i0.
5828 2010-09-06 Richard Guenther <rguenther@suse.de>
5830 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
5831 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
5832 (build_aligned_type): Declare.
5833 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
5834 (check_aligned_type): New function.
5835 (build_aligned_type): Likewise.
5836 * expr.c (expand_assignment): Handle misaligned stores via
5837 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
5838 (expand_expr_real_1): Likewise.
5839 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
5840 * tree-vect-stmts.c (vectorizable_store): Do not build
5841 MISALIGNED_INDIRECT_REF but initialize alignment information.
5842 (vectorizable_load): Likewise.
5843 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
5845 * cfgexpand.c (expand_debug_expr): Likewise.
5846 * dwarf2out.c (loc_list_from_tree): Likewise.
5847 * fold-const.c (maybe_lvalue_p): Likewise.
5848 (operand_equal_p): Likewise.
5849 (build_fold_addr_expr_with_type_loc): Likewise.
5850 * gimplify.c (gimplify_addr_expr): Likewise.
5851 (gimplify_expr): Likewise.
5852 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
5853 (verify_gimple_assign_single): Likewise.
5854 * tree-dump.c (dequeue_and_dump): Likewise.
5855 (tree_could_trap_p): Likewise.
5856 * tree-predcom.c (ref_at_iteration): Likewise.
5857 * tree-pretty-print.c (dump_generic_node): Likewise.
5858 (op_code_prio): Likewise.
5859 (op_symbol_code): Likewise.
5860 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
5861 * tree-ssa-loop-im.c (for_each_index): Likewise.
5862 (gen_lsm_tmp_name): Likewise.
5863 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
5864 (find_interesting_uses_address): Likewise.
5865 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
5866 * tree-ssa-operands.c (get_expr_operands): Likewise.
5867 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5868 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5869 (ao_ref_init_from_vn_reference): Likewise.
5870 * tree.c (staticp): Likewise.
5871 (build1_stat): Likewise.
5872 (reference_alias_ptr_type): Likewise.
5873 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5874 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
5875 MISALIGNED_INDIRECT_REF handling.
5877 2010-09-06 Richard Guenther <rguenther@suse.de>
5879 PR tree-optimization/45534
5880 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
5881 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
5883 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
5884 valid on the target.
5886 2010-09-06 Andreas Schwab <schwab@redhat.com>
5888 * configure.ac: Quote argument of AC_MSG_WARN.
5889 * configure: Regenerate.
5891 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
5893 * sel-sched.c (move_cond_jump): Correct arguments to
5894 maybe_tidy_empty_bb.
5895 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
5897 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
5899 PR rtl-optimization/44919
5900 * sel-sched.c (move_cond_jump): Remove assert, check that
5901 the several blocks case can only happen with mutually exclusive
5902 insns instead. Rewrite the movement code to support moving through
5903 several basic blocks.
5905 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
5907 * config/i386/i386.md (iptrsize): New mode attribute.
5909 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
5911 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
5912 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
5913 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
5914 (stack_tls_protect_set_<mode>): Ditto from
5915 stack_tls_protect_set_{si,di}. Use %@ to output segment register
5916 of thread base pointer load.
5917 (stack_tls_protect_test_<mode>): Ditto from
5918 stack_tls_protect_test_{si,di}. Use %@ to output segment register
5919 of thread base pointer load.
5920 (stack_protect_set): Rewrite using indirect functions.
5921 (stack_protect_test): Ditto.
5922 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
5923 (ix86_print_operand): Handle '@'.
5925 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
5927 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
5930 2010-09-05 Mark Mitchell <mark@codesourcery.com>
5932 * doc/invoke.texi: Document -Wdouble-promotion.
5933 * c-typeck.c (convert_arguments): Check for implicit conversions
5934 from float to double.
5935 (do_warn_double_promotion): New function.
5936 (build_conditional_expr): Use it.
5937 (build_binary_op): Likewise.
5939 2010-09-05 Richard Guenther <rguenther@suse.de>
5941 PR tree-optimization/45535
5942 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
5943 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
5945 (indirect_refs_may_alias_p): Likewise.
5947 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
5949 * config/sh/sh.c (sh_option_override): Make static.
5950 Adjust comments. Declare.
5951 (sh_function_value_regno_p): Likewise.
5952 (sh_register_move_cost): Modify the arguments, make static.
5953 Adjust comments. Declare.
5954 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
5955 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5956 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
5957 REGISTER_MOVE_COST): Delete.
5958 * config/sh/sh-protos.h (sh_override_options): Delete.
5959 (sh_register_move_cost): Delete.
5960 (sh_function_value_regno_p): Delete.
5962 2010-09-04 Anatoly Sokolov <aesok@post.ru>
5964 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
5965 m32r_function_value_regno_p): New functions.
5966 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5967 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
5968 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
5969 FUNCTION_VALUE_REGNO_P): Remove.
5971 2010-09-04 Jan Hubicka <jh@suse.cz>
5973 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
5974 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
5975 fold_read_from_constant_string.
5977 * gimple.h (canonicalize_constructor_val): Declare.
5978 * gimple-fold.c (canonicalize_constructor_val): New function.
5979 (get_symbol_constant_value):Use it.
5980 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
5982 2010-09-04 Jan Hubicka <jh@suse.cz>
5984 * tree-switch-conversion.c (build_one_array): Set constructor to be
5986 * varpool.c (varpool_finalize_decl): Compute const_value_known.
5988 2010-09-04 Richard Guenther <rguenther@suse.de>
5991 * tree-flow.h (force_gimple_operand_1): Declare.
5992 (force_gimple_operand_gsi_1): Likewise.
5993 * gimplify.c (force_gimple_operand_1): New worker taking a
5994 gimple predicate for ...
5995 (force_gimple_operand): ... which now wraps it.
5996 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
5997 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
5999 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
6000 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
6001 (create_mem_ref): Likewise.
6003 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
6005 * config/i386/predicates.md (sse_reg_operand): New predicate.
6006 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
6007 predicate for operand 1.
6008 (XFmode push splitter): Use fp_register_operand predicate
6010 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
6011 (SF-DF float_extend push splitter): Add reload_completed insn
6013 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
6014 MODEF mode macro. Add reload_completed insn predicate.
6016 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
6018 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
6019 (struct df_extract_ref): Remove.
6020 (union df_ref_d): Remove extract_ref member.
6021 (df_ref_create): Remove last three arguments.
6022 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
6023 * df-scan.c (df_ref_record): Remove last three arguments, do not
6024 pass them to df_ref_create_structure.
6025 (df_uses_record): Remove first and last three arguments. Replace
6026 first argument with DF_REF_REGULAR, adjust calls to remove the
6027 width, offset and mode. Always call recursively on the second
6028 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
6029 (df_ref_create_structure): Remove first argument.
6030 (struct df_scan_problem_data): Remove ref_extract_pool.
6031 (df_scan_free_internal): Do not free it.
6032 (df_scan_alloc): Do not allocate it.
6033 (df_ref_create): Remove last three arguments, do not pass them to
6034 df_ref_create_structure.
6035 (df_free_ref): Remove DF_REF_EXTRACT case.
6036 (df_notes_rescan): Adjust call to df_uses_record.
6037 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
6038 Remove DF_REF_EXTRACT case.
6039 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
6040 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
6041 and SUBREG definitions.
6042 (df_get_conditional_uses): Remove references to width/offset/mode,
6043 adjust call to df_ref_create_structure.
6044 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
6045 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
6046 calls to df_uses_record and df_ref_record.
6047 * fwprop.c (update_df): Remove references to width/offset/mode,
6048 adjust call to df_ref_create.
6050 2010-09-03 Jan Hubicka <jh@suse.cz>
6052 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
6053 (build_cdtor_fns): Update use of build_cdtor.
6055 2010-09-03 Joseph Myers <joseph@codesourcery.com>
6057 * doc/options.texi (SeparateAlias): Document.
6058 * opt-functions.awk (switch_flags): Handle SeparateAlias.
6059 * opth-gen.awk: Generate enumeration names for options marked
6060 SeparateAlias, but not for those marked Ignore.
6061 * opts-common.c (generate_canonical_option): Don't output separate
6062 argument for options marked CL_SEPARATE_ALIAS.
6063 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
6064 * opts.h (CL_SEPARATE_ALIAS): New.
6065 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6066 CL_COMMON): Adjust definitions.
6067 * config/i386/darwin.opt, config/mips/sde.opt: New.
6068 * common.opt (fdump-final-insns): New.
6069 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6071 (mips*-sde-elf*): Add mips/sde.opt.
6072 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
6073 -mno-data-in-code and -mcode-xonly here.
6074 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
6075 * gcc.c (option_map): Add "j" to --dump entry.
6076 (translate_options): Don't translate -d to -foutput-class-dir= here.
6078 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
6080 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
6082 (compute_all_dependences): Same.
6083 (create_rdg_edge_for_ddr): Same.
6084 * tree-data-ref.h (DR_IS_WRITE): New.
6085 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
6086 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
6087 (write_memrefs_written_at_least_once): Same.
6088 * tree-predcom.c (suitable_component_p): Same.
6089 (determine_roots_comp): Same.
6090 (execute_load_motion): Same.
6091 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
6092 (vect_enhance_data_refs_alignment): Same.
6093 (vect_analyze_group_access): Same.
6095 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
6098 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
6099 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
6101 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
6103 * dwarf2out.c (file scope): Remove #if0'd code.
6104 (gen_subprogram_die): Same.
6106 2010-09-03 Jakub Jelinek <jakub@redhat.com>
6109 * dwarf2out.c (flush_queued_reg_saves): Rename to...
6110 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
6111 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
6112 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
6113 * config/i386/i386.c (output_set_got): Call it.
6115 2010-09-03 Michael Matz <matz@suse.de>
6118 * tree-sra.c (sra_modify_assign): If we modify the statement,
6121 * tree-ssa.c (verify_ssa): Check number of operands and links
6122 per statement to agree.
6124 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
6125 Iain Sandoe <iains@gcc.gnu.org>
6128 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
6129 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
6130 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
6132 2010-09-03 Richard Guenther <rguenther@suse.de>
6134 * lto-streamer-out.c (output_function): Output function
6136 * lto-streamer-in.c (input_function): Input function start
6139 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6141 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
6142 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
6143 * configure: Regenerate.
6144 * aclocal.m4: Regenerate.
6146 2010-09-03 Jan Hubicka <jh@suse.cz>
6149 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
6150 on functions/variables in other partition.
6152 2010-09-03 Jan Hubicka <jh@suse.cz>
6154 * cgraph.h (struct varpool_node): Add const_value_known.
6155 (varpool_decide_const_value_known): Declare.
6156 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
6157 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
6158 (input_varpool_node): Restore const_value_known.
6159 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
6160 initializer folding.
6161 * ipa.c (ipa_discover_readonly_nonaddressable_var,
6162 function_and_variable_visibility): Compute const_value_known.
6163 * gimple-fold.c (get_symbol_constant_value): Use varpool for
6164 initializer folding.
6165 * varpool.c (varpool_decide_const_value_known): New function.
6167 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
6169 * config/i386/i386.md: Remove empty preparation statements
6172 2010-09-03 Jan Hubicka <jh@suse.cz>
6174 * passes.c (rest_of_decl_compilation): Do not add local vars into
6176 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
6177 static or extern vars are in varpool.
6178 (varpool_finalize_decl): Sanity check that only static vars are
6181 2010-09-03 Jakub Jelinek <jakub@redhat.com>
6184 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
6185 not just generic vectors with BLKmode.
6187 2010-09-03 Richard Guenther <rguenther@suse.de>
6189 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
6190 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
6191 * tree.h (TMR_SYMBOL): Remove.
6192 (TMR_BASE, TMR_OFFSET): Adjust.
6194 * alias.c (ao_ref_from_mem): Use TMR_BASE.
6195 * builtins.c (get_object_alignment): Merge TMR_BASE and
6196 TMR_SYMBOL handling.
6197 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
6198 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
6199 handling. Also allow TARGET_MEM_REF as base address.
6200 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
6201 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
6202 base. Gimplify TMR_INDEX2.
6203 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
6204 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6205 (get_addr_base_and_unit_offset): Likewise.
6206 * tree-eh.c (tree_could_trap_p): Likewise.
6207 * tree-pretty-print.c (dump_generic_node): Likewise.
6208 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
6209 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
6211 (get_address_description): Reconstruct addres description
6212 from merged TMR_BASE and TMR_INDEX2.
6213 (maybe_fold_tmr): Fold propagated addresses.
6214 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
6215 MEM_REF and TARGET_MEM_REF paths.
6216 (indirect_refs_may_alias_p): Likewise.
6217 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
6218 instead of TMR_SYMBOL.
6219 * tree-ssa-operands.c (get_tmr_operands): Simplify.
6220 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
6221 according to changes ...
6222 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
6223 Split TARGET_MEM_REF into two fields plus the base.
6224 * tree.c (mem_ref_offset): Simplify.
6225 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
6226 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
6227 Strip NOPs when folding MEM_REF addresses.
6228 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
6229 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
6230 (fold_gimple_assign): ... not here.
6232 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
6234 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
6235 * config/mips/mips.c (mips_shift_truncation_mask): New function.
6236 (TARGET_SHIFT_TRUNCATION_MASK): Define.
6238 2010-09-02 Richard Henderson <rth@redhat.com>
6240 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
6241 instead of readelf in the test.
6242 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
6243 in the .debug_frame section for coff targets.
6244 * configure: Rebuild.
6246 2010-09-02 Anatoly Sokolov <aesok@post.ru>
6248 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
6249 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
6250 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6251 (m32c_class_likely_spilled_p): Make static. Change argument type to
6252 reg_class_t. Change result type to bool.
6254 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6256 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
6257 to convert (double)(long) into a single FRIZ instruction or not
6258 when -ffast-math is used.
6260 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
6261 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
6262 or FRIZ instruction if -ffast-math.
6263 * config/rs6000/rs6000.md (friz): Ditto.
6265 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
6267 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6269 * opth-gen.awk (quote, comma): Remove unused variables.
6271 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
6273 * arm.c (arm_override_options): Correct fall-back code to use
6274 SUBTARGET_CPU_DEFAULT.
6276 2010-09-02 Julian Brown <julian@codesourcery.com>
6278 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
6280 (vcond<mode>, vcondu<mode>): New expanders.
6281 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
6282 comparisons with zero.
6283 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
6284 * config/arm/constraints.md (Dz): New constraint.
6286 2010-09-02 Anatoly Sokolov <aesok@post.ru>
6288 * target.def (class_likely_spilled_p): New hook.
6289 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
6290 * doc/tm.texi: Regenerate.
6291 * targhooks.c (default_class_likely_spilled_p): New function.
6292 * targhooks.h (default_class_likely_spilled_p): Declare.
6293 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
6294 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
6295 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
6296 Use fixed_reg_set instead of fixed_regs.
6297 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
6298 * calls.c (avoid_likely_spilled_reg): Ditto.
6299 * ira-conflicts.c (ira_build_conflicts): Ditto.
6300 * ira.c (update_equiv_regs): Ditto.
6301 * mode-switching.c (create_pre_exit): Ditto.
6302 * regmove.c (find_matches): Ditto.
6303 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
6304 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
6305 (small_register_class_p): New inline function.
6306 (push_secondary_reload, find_reusable_reload, find_reloads): Use
6307 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
6309 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
6310 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
6311 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6313 2010-09-02 Richard Guenther <rguenther@suse.de>
6315 PR tree-optimization/44937
6316 PR tree-optimization/45412
6317 * ipa-split.c (split_function): Properly remove PHI nodes.
6319 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6321 * opts.h (struct cl_option): Add warn_message field.
6322 (struct cl_decoded_option): Add warn_message field.
6323 * doc/options.texi (Ignore, Warn): Document.
6324 * opt-functions.awk (needs_state_p): Don't consider aliases or
6325 ignored options to need state saved.
6326 * optc-gen.awk: Handle Warn and Ignore.
6327 * opth-gen.awk: Output OPT_SPECIAL_ignore.
6328 * opts-common.c (decode_cmdline_option): Set warn_message field.
6329 Handle ignored options.
6330 (decode_cmdline_options_to_array, generate_option,
6331 generate_option_input_file): Set warn_message field.
6332 (read_cmdline_option): Generate warnings from warn_message field.
6333 Handle ignored options.
6334 * common.opt (Wunreachable-code, fargument-alias,
6335 fargument-noalias, fargument-noalias-global,
6336 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
6337 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
6338 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
6339 ftree-salias): Mark Ignore.
6340 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
6341 -mintel-syntax and -mno-intel-syntax here.
6342 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
6344 * opts.c (common_handle_option): Don't handle options marked as
6346 (enable_warning_as_error): Handle ignored options.
6348 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6351 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
6352 alias_target fields.
6353 * opt-functions.awk (opt_sanitized_name): Don't handle
6354 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
6355 * optc-gen.awk: Generate alias fields.
6356 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
6357 Don't generate such constants for aliases.
6358 * opts-common.c (generate_canonical_option): New.
6359 (decode_cmdline_option): Handle aliases. Use
6360 generate_canonical_option for known options instead of copying the
6362 * doc/options.texi (Alias): Document.
6363 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
6364 fstack-check, specs): Mark as aliases.
6365 * gcc.c (driver_handle_option): Canonicalize -L options to joined
6367 (driver_handle_option): Don't handle OPT_specs.
6368 * opts.c (common_handle_option): Don't handle options marked as
6370 (enable_warning_as_error): Handle aliases.
6371 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
6372 OPT_Wlarger_than_eq.
6373 * tree-optimize.c (tree_rest_of_compilation): Use
6374 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
6376 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
6378 * config/i386/i386.md (nonmemory_operand): New mode attribute.
6379 (push memory peephole2): Macroize peepholes using SWI mode iterator.
6380 (move immediate to memory peephole2): Macroize peepholes using
6381 SWI124 mode iterator.
6382 (non-pairable NOT peephole2): Macroize peepholes using SWI124
6384 (simple lea add peephole2): Macroize peepholes using SWI48
6386 (simple lea mult peephole2): Ditto.
6387 (imul by 3,5,9 to lea peephole2): Ditto.
6388 (mov $-1, reg peephole2): Macroize peepholes using SWI248
6390 (imul $32bit_imm,mem,reg peephole2): Ditto.
6391 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
6393 2010-09-02 Ian Bolton <ian.bolton@arm.com>
6395 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
6397 2010-09-02 Olivier Hainque <hainque@adacore.com>
6400 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
6401 (allocno_priority_compare_func): Use it instead of a straight
6402 difference computation over priorities.
6404 2010-09-02 Andi Kleen <ak@linux.intel.com>
6406 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
6408 2010-09-02 Ira Rosen <irar@il.ibm.com>
6410 * tree-vectorizer.h (get_later_stmt): New function.
6411 (vect_analyze_data_ref_dependences): Add argument.
6412 * tree-vect-loop.c (vect_analyze_loop): Update call to
6413 vect_analyze_data_ref_dependences.
6414 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
6416 (vect_analyze_data_ref_dependence): Add argument for basic block
6417 dependencies. Check dependencies in basic block vectorization.
6418 (vect_analyze_data_ref_dependences): Add argument and update call to
6419 vect_analyze_data_ref_dependences.
6420 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
6421 (vect_bb_vectorizable_with_dependencies): New.
6422 (vect_slp_analyze_bb): Check dependencies in basic block.
6423 (vect_schedule_slp_instance): Insert stores before the last store in
6426 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
6429 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
6430 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
6432 2010-09-01 Jakub Jelinek <jakub@redhat.com>
6435 * bb-reorder.c (add_labels_and_missing_jumps): Treat
6436 bbs ending with throwing insns like blocks ending with a call.
6437 (fix_up_fall_thru_edges): Likewise.
6439 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
6441 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
6442 (m32c_function_arg_advance): Delete.
6443 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6444 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
6445 comments. Take a const_tree and a bool. Declare.
6446 (m32c_function_arg_advance): Likewise.
6447 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6449 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
6452 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
6453 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
6454 * config/i386/mingw32.h: ... here.
6456 2010-09-01 Andi Kleen <ak@linux.intel.com>
6459 * lto-streamer-in.c (lto_input_ts_target_option): Add.
6460 (lto_input_tree_pointers): Call lto_input_ts_target_option.
6461 * lto-streamer-out (lto_output_ts_target_option): Add.
6462 (lto_output_tree_pointers): Call lto_output_ts_target_option.
6464 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
6467 * config/i386/cygwin.h: Change order of specified import libraries.
6468 * config/i386/mingw32.h: Likewise.
6469 * config/i386/t-cygwin: Likewise.
6470 * config/i386/t-mingw32: Likewise.
6471 * config/i386/t-mingw-w32: Likewise.
6472 * config/i386/t-mingw-w64: Likewise.
6474 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6476 * config/arm/neon-schedgen.ml (core): New type.
6477 (allCores): List of supported cores.
6478 (availability_table): Add supported cores.
6479 (collate_bypasses): Accept core as a parameter.
6480 (worst_case_latencies_and_bypasses): Accept core as a parameter.
6481 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
6482 and coreStr to get tune attribute and prefix for functional units.
6483 (emit_bypasses): Accept core name and use it.
6484 (calculate_per_core_availability_table): New.
6486 (calculate_core_availability_table): New.
6487 (main): Use calculate_core_availablity_table.
6488 * config/arm/cortex-a8-neon.md: Update copyright year.
6489 Regenerated from ml file and merged in.
6490 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
6493 2010-09-01 Ian Bolton <ian.bolton@arm.com>
6495 * Makefile.in (tree-switch-conversion.o): Update dependencies.
6497 2010-09-01 Richard Guenther <rguenther@suse.de>
6499 * alias.c (ao_ref_from_mem): Adjust.
6500 * builtins.c (get_object_alignment): Likewise.
6501 * cfgexpand.c (expand_debug_expr): Likewise.
6502 * gimple.c (get_base_address): Likewise.
6503 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6504 (get_addr_base_and_unit_offset): Likewise. Fix for
6505 both TMR_SYMBOL and TMR_BASE being set.
6506 * tree-eh.c (tree_could_trap_p): Likewise.
6507 * gimplify.c (gimplify_expr): Do not attempt to gimplify
6508 TMR_SYMBOL. Always gimplify TMR_BASE.
6509 * tree-cfg.c (verify_types_in_gimple_reference): Verify
6510 TMR_BASE if there is a TMR_SYMBOL.
6511 * tree-pretty-print.c (dump_generic_node): Adjust.
6512 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
6513 (tree_mem_ref_addr): Likewise.
6514 (create_mem_ref_raw): Likewise.
6515 (move_fixed_address_to_symbol): Likewise.
6516 (create_mem_ref): Likewise.
6517 (dump_mem_address): Likewise.
6518 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
6519 Fix for both TMR_SYMBOL and TMR_BASE being set.
6520 (indirect_refs_may_alias_p): Likewise.
6521 * tree-ssa-operands.c (get_tmr_operands): Adjust.
6522 * tree.def (TARGET_MEM_REF): Adjust documentation.
6524 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
6526 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
6527 Rename from X86_TUNE_ADD_ESP_4.
6528 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
6529 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
6530 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
6531 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
6532 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
6533 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
6534 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
6535 * config/i386/i386.c (initial_ix86_tune_features)
6536 <X86_TUNE_SINGLE_POP>: Invert members.
6537 <X86_TUNE_DOUBLE_POP>: Ditto.
6538 <X86_TUNE_SINGLE_PUSH>: Ditto.
6539 <X86_TUNE_DOUBLE_PUSH>: Ditto.
6540 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
6542 (push peephole2 patterns): Macroize peepholes using P mode iterator.
6543 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
6544 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
6545 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
6547 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
6549 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
6550 a volatile LHS if the constructor has only one element.
6552 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
6555 * tree.c (stdarg_p): Make fntype parameter const.
6556 * tree.h (stdarg_p): Likewise.
6557 (function_args_iterator): Remove unused fntype field.
6558 (function_args_iter_init): Do not initialize fntype
6559 field. Make fntype parameter const.
6561 2010-09-01 Richard Guenther <rguenther@suse.de>
6563 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
6565 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
6566 (execute_vrp): Compute number of iteration estimates.
6567 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
6568 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
6569 * tree-data-ref.c (estimated_loop_iterations): Adjust.
6570 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
6571 Infer loop bounds from undefined behavior based on a new parameter.
6572 (estimate_numbers_of_iterations): Likewise.
6573 (scev_probably_wraps_p): Adjust.
6574 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
6576 2010-09-01 Nick Clifton <nickc@redhat.com>
6578 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
6580 (xstormy16_legitimate_address_p): Use true and false instead of 1
6582 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
6583 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
6585 (xstormy16_expand_call): Fix comment at start of function.
6587 2010-09-01 Nick Clifton <nickc@redhat.com>
6589 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
6590 when pushing accumulator register.
6591 (rx_get_stack_layout): Always save call clobbered registers inside
6593 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
6595 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
6597 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
6598 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
6600 * libgcc-std.ver (GCC_4.6.0): Define version.
6602 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
6604 * tree-nested.c (convert_all_function_calls): Iterate until after the
6605 sum of static chains in the nest doesn't change.
6607 2010-08-31 Anatoly Sokolov <aesok@post.ru>
6609 * config/m32c/m32c.c (classes_intersect): Remove.
6610 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
6611 reg_classes_intersect_p instead of classes_intersect.
6612 (class_can_hold_mode): Change arguments type from enum reg_class to
6613 reg_class_t. Use reg_class_contents instead of class_contents.
6614 (m32c_register_move_cost): Make static. Change arguments type from
6615 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
6616 classes_intersect. Use reg_class_contents instead of class_contents.
6617 (m32c_memory_move_cost): Make static. Change arguments type from
6618 enum reg_class to reg_class_t.
6619 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6620 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6621 * config/m32c/m32c-protos.h (m32c_register_move_cost,
6622 m32c_memory_move_cost): Remove.
6624 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6626 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
6627 (arm_function_arg): Delete.
6628 (arm_needs_doubleword_align): Take a const_tree.
6629 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6630 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
6631 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
6632 (arm_function_arg): Make static. Take a const_tree and a bool.
6633 (arm_function_arg_advance): Likewise.
6634 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6636 2010-08-31 Andi Kleen <ak@linux.intel.com>
6638 * common.opt (fwhopr=): Update for -fwhopr=jobserver
6639 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
6640 * lto-wrapper.c (run_gcc): Add jobserver mode.
6641 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
6644 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
6646 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
6648 (*popdi1_epilogue): Ditto.
6649 (*popsi1_epilogue): Ditto.
6650 (popsi, popdi peephole2 patterns): Update peepholes for changed
6651 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
6653 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
6654 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
6656 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
6657 (override_options): Do not initialize removed ix86_gen_pop1.
6658 (gen_pop): New static function.
6659 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
6660 (release_scratch_register_on_entry): Ditto.
6661 (ix86_restore_reg_using_pop): Ditto.
6662 (ix86_expand_epilogue): Ditto.
6664 2010-08-31 Jakub Jelinek <jakub@redhat.com>
6667 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
6669 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6671 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
6674 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6676 * doc/extend.texi: Fix documentation of the return value of
6677 __builtin_choose_expr.
6679 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6681 * config/v850/v850-protos.h (function_arg): Delete.
6682 * config/v850/v850.h (FUNCTION_ARG): Delete.
6683 (FUNCTION_ARG_ADVANCE): Move code to...
6684 * config/v850/v850.c (v850_function_arg_advance): ...here.
6685 (v850_function_arg): Make static. Take a const_tree and a bool.
6686 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6688 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6690 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
6692 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
6694 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
6696 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
6698 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6700 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
6702 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
6704 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6705 * config/rx/rx.c (rx_function_arg_size): Make static.
6706 (rx_function_arg): Likewise.
6707 (rx_function_arg_advance): New function.
6708 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6710 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
6712 * config/arm/arm.c (arm_override_options): Remove superfluous test.
6715 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
6717 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
6718 (dwarf2out_decl) <CONST_DECL>: Likewise.
6720 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
6723 * common.opt (-fstack-usage): New option.
6724 * doc/invoke.texi (Debugging options): Document it.
6725 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
6726 allocate_dynamic_stack_space.
6727 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
6728 and propagate it to allocate_dynamic_stack_space.
6729 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
6730 * calls.c (initialize_argument_information): Pass TRUE as 4th
6731 argument to allocate_dynamic_stack_space.
6732 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
6733 to 1 when pushing a variable-sized argument onto the stack. Pass
6734 TRUE as 4th argument to allocate_dynamic_stack_space.
6735 Update current_function_pushed_stack_size.
6736 (emit_library_call_value_1): Likewise.
6737 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
6738 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
6739 attempt to find an upper bound. Remove redundant code for the
6740 SETJMP_VIA_SAVE_AREA case.
6741 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
6742 * function.h (struct stack_usage): New structure.
6743 (current_function_static_stack_size): New macro.
6744 (current_function_dynamic_stack_size): Likewise.
6745 (current_function_pushed_stack_size): Likewise.
6746 (current_function_dynamic_alloc_count): Likewise.
6747 (current_function_has_unbounded_dynamic_stack_size): Likewise.
6748 (current_function_allocates_dynamic_stack_space): Likewise.
6749 (struct function): Add new field 'su'.
6750 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
6751 add the value of the dynamic offset to the dynamic stack usage.
6752 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
6753 for variable-sized objects.
6754 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
6755 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
6756 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
6757 BUILT_IN_ALLOCA for variable-sized objects.
6758 * output.h (output_stack_usage): Declare.
6759 * toplev.c (stack_usage_file): New file pointer.
6760 (output_stack_usage): New function.
6761 (open_auxiliary_file): Likewise.
6762 (lang_dependent_init): Open file if flag_stack_usage is set.
6763 (finalize): Close file if stack_usage_file is not null.
6764 * tree.h (ALLOCA_FOR_VAR_P): New macro.
6765 * config/alpha/alpha.c (compute_frame_size): New function.
6766 (alpha_expand_prologue): Use it.
6767 (alpha_start_function): Likewise.
6768 (alpha_expand_epilogue): Likewise. Set stack usage info.
6769 * config/i386/i386.c (ix86_expand_prologue): Likewise.
6770 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6771 * config/mips/mips.c (mips_expand_prologue): Likewise.
6772 * config/pa/pa.c (hppa_expand_prologue): Likewise.
6773 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6774 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6776 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
6778 PR tree-optimization/45427
6779 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
6780 Handle the case that the exit is never taken correctly.
6781 (number_of_iterations_ne): Pass exit_must_be_taken to
6782 number_of_iterations_ne_max.
6784 2010-08-30 Catherine Moore <clm@codesourcery.com>
6786 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
6787 Infer -mdspr2 for the the 74K.
6789 2010-08-30 Jakub Jelinek <jakub@redhat.com>
6792 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
6795 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
6796 and TRUTH_{AND,OR,XOR}_EXPR.
6797 * c-parser.c (c_parser_omp_atomic): Handle boolean
6798 {PRE,POST}_{INC,DEC}REMENT.
6800 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
6802 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
6803 (function_arg): Delete.
6804 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6805 (FUNCTION_INCOMING_ARG): Delete.
6806 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
6807 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
6809 (function_arg): Rename to...
6810 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
6812 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
6813 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6814 (TARGET_FUNCTION_INCOMING_ARG): Define.
6816 2010-08-30 Richard Guenther <rguenther@suse.de>
6818 PR tree-optimization/21602
6819 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
6820 using points-to information.
6822 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
6824 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
6826 2010-08-30 Richard Guenther <rguenther@suse.de>
6828 PR tree-optimization/45449
6829 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
6832 2010-08-30 Joseph Myers <joseph@codesourcery.com>
6834 * opts.h (CL_ERR_NEGATIVE): Define.
6835 * opts.c (unknown_option_callback): Don't postpone warnings for
6836 options marked with CL_ERR_NEGATIVE.
6837 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
6838 for negative versions of CL_REJECT_NEGATIVE options.
6840 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
6842 * config/i386/i386.md (zero_extendsidi2_1): Rename from
6843 zero_extendsidi2_32.
6844 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
6845 using SWI12 mode iterator.
6846 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
6847 to define_insn_and_split pattern.
6848 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
6849 using SWI24 mode iterator.
6850 (*zero_extendqi<mode>2_and): Macroize insn from
6851 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
6852 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
6853 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
6854 SWI24 mode iterator.
6855 (*zero_extendqi<mode>2_movzbl): Ditto from
6856 *zero_extendqi{hi,si}2_movzbl.
6857 (extendsidi2_1): Rename from extendsidi2_32.
6858 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
6859 SWI12 mode iterator.
6861 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
6863 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
6864 general purpose registers.
6865 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
6866 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
6867 with general purpose registers and memory operands. Add associated
6868 CCImode post-reload splitter.
6869 * config/ia64/div.md: Change BImode to CCImode throughout.
6871 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
6873 * config/ia64/ia64.md (cstorebi4): Fix thinko.
6875 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
6877 * config/picochip/picochip.c (reorder_var_tracking_notes): This
6878 function was dropping debug insns which caused PR45299.
6880 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
6882 * config/i386/sse.md (extsuffix): New code attribute.
6883 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
6884 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
6885 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
6886 and sse4_1_zero_extendv4qiv4si2.
6887 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
6888 and sse4_1_zero_extendv2qiv2di2.
6889 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
6890 and sse4_1_zero_extendv4hiv4si2.
6891 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
6892 and sse4_1_zero_extendv2hiv2di2.
6893 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
6894 and sse4_1_zero_extendv2siv2di2
6896 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
6897 using any_extend code iterator.
6898 (*avx_<s>mulv8hi3_highpart): Macroize insn from
6899 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
6900 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
6902 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
6903 gen_sse4_1_sign_extend* functions.
6904 (struct builtin_description bdesc_args): Ditto.
6906 2010-08-27 Xinliang David Li <davidxl@google.com>
6909 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
6910 (iv_ca_set_no_cp): Update used inv expr count.
6911 (iv_ca_set_cp): Ditto.
6912 (iv_ca_new): Initialize new member.
6913 (iv_ca_free): Free memory.
6915 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
6917 * config/sh/sh-protos.h (sh_function_arg): Delete.
6918 (sh_function_arg_advance): Delete.
6919 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6920 (PASS_IN_REG_P): Eliminate cast.
6921 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
6922 const_tree and a bool.
6923 (sh_function_arg): Likewise.
6924 (sh_output_mi_thunk): Call sh_function_arg_advance) and
6926 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6928 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
6929 Kaz Kojima <kkojima@gcc.gnu.org>
6931 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
6933 (sh_expand_epilogue): Likewise.
6934 * config/sh/sh.md (movml_push_banked): New insn.
6935 (movml_pop_banked): Likewise.
6937 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
6939 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
6940 gen_regexp_oneof, gen_regexp_sequence): Use the string found
6941 in vector element 0 rather than the original string when there's
6943 (gen_regexp): Remove extra semicolon.
6945 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
6946 thumb2_movsf_vfp): Set attribute "insn".
6947 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
6948 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
6949 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
6950 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
6951 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
6952 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
6953 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
6954 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
6955 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
6956 if_not_arith, if_arith_not, cond_move_not): Likewise.
6958 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6960 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
6962 (rs6000_allocate_stack_temp): Ditto.
6963 (rs6000_expand_convert_si_to_sfdf): Ditto.
6965 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
6966 line. Update the options set if power6 or power7 server/embedded
6967 type options are used. If we give a warning for no vsx under
6968 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
6969 (rs6000_allocate_stack_temp): New function to allocate a stack
6970 tempoary and adjust the address so it meets either REG+OFFSET or
6971 REG+REG addressing requirements.
6972 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
6973 that they can be used with the LFIWAX/LFIWZX instrucitons.
6974 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
6975 converting signed/unsigned SImode to either SFmode/DFmode.
6977 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
6978 whether certain instructions can be generated.
6979 (TARGET_FCTIDZ): Ditto.
6980 (TARGET_STFIWX): Ditto.
6981 (TARGET_LFIWAX): Ditto.
6982 (TARGET_LFIWZX): Ditto.
6983 (TARGET_FCFIDS): Ditto.
6984 (TARGET_FCFIDU): Ditto.
6985 (TARGET_FCFIDUS): Ditto.
6986 (TARGET_FCTIDUZ): Ditto.
6987 (TARGET_FCTIWUZ): Ditto.
6989 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
6990 (UNSPEC_FCTID): Ditto.
6991 (UNSPEC_LFIWAX): Ditto.
6992 (UNSPEC_LFIWZX): Ditto.
6993 (UNSPEC_FCTIWUZ): Ditto.
6994 (rreg): Use correct constraints.
6995 (SI_CONVERT_FP): New mode attribute for floating point conversion
6997 (E500_CONVERT): Ditto.
6998 (lfiwax): New insns for converting from integer to floating point
6999 utilizing newer instructions. Attempt to optimize conversions
7000 that come from memory so that we don't load the value into a GPR,
7001 spill it to the stack and reload it into a FPR.
7002 (floatsi<mode>2_lfiwax): Ditto.
7003 (floatsi<mode>2_lfiwax_mem): Ditto.
7004 (floatsi<mode>2_lfiwax_mem2): Ditto.
7006 (floatunssi<mode>2_lfiwzx): Ditto.
7007 (floatunssi<mode>2_lfiwzx_mem): Ditto.
7008 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
7009 (floatdidf2_mem): Ditto.
7010 (floatunsdidf2_fcfidu): Ditto.
7011 (floatunsdidf2_mem): Ditto.
7012 (floatunsdisf2): Ditto.
7013 (floatunsdisf2_fcfidus): Ditto.
7014 (floatunsdisf2_mem): Ditto.
7015 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
7016 Use FCFID on 32-bit hosts that support it.
7017 (floatsidf2_internal): Ditto.
7018 (floatunssisf2): Ditto.
7019 (floatunssidf2): Ditto.
7020 (floatunssidf2_internal): Ditto.
7021 (floatsisf2): Ditto.
7022 (floatdidf2): Ditto.
7023 (floatdidf2_fpr): Ditto.
7024 (floatunsdidf2): Ditto.
7025 (floatdisf2): Ditto.
7026 (floatdisf2_fcfids): Ditto.
7027 (floatdisf2_internal1): Ditto.
7028 (fixuns_truncsfsi2): Delete, merge into common pattern for both
7029 SF/DF. Add power7 support.
7030 (fix_truncsfsi2): Ditto.
7031 (fixuns_truncdfsi2): Ditto.
7032 (fixuns_truncdfdi2): Ditto.
7033 (fix_truncdfsi2): Ditto.
7034 (fix_truncdfsi2_internal): Ditto.
7035 (fix_truncdfsi2_internal_gfxopt): Ditto.
7036 (fix_truncdfsi2_mfpgpr): Ditto.
7039 (btruncdf2_fpr): Ditto.
7042 (ceildf2_fpr): Ditto.
7045 (floordf2_fpr): Ditto.
7048 (rounddf2_fpr): Ditto.
7050 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
7051 (fix_trunc<mode>di2): Ditto.
7052 (fixuns_trunc<mode>si2): Ditto.
7053 (fixuns_trunc<mode>di2): Ditto.
7054 (fctiwz_<mode>): Ditto.
7055 (btrunc<mode>2): Ditto.
7056 (btrunc<mode>2_fpr): Ditto.
7057 (ceil<mode>2): Ditto.
7058 (ceil<mode>2_fpr): Ditto.
7059 (floor<mode>2): Ditto.
7060 (float<mode>2_fpr): Ditto.
7061 (round<mode>2): Ditto.
7062 (round<mode>2_fpr): Ditto.
7063 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
7064 (fixuns_trunc<mode>si2_stfiwx): Ditto.
7065 (fix_truncdfsi2_internal): Ditto.
7066 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
7067 converted value on stack, loaded into GPR, and then stored into
7068 the final destination.
7069 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
7071 (lrint<mode>di2): New insn, provide the lrint builtin functions.
7072 (ftruncdf2): Delete, unused.
7073 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
7075 * config/rs6000/vsx.md (toplevel): Update copyright year.
7076 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
7079 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
7080 Jeremie Salvucci <jeremie.salvucci@free.fr>
7082 * gengtype.c (output_type_enum): Test the right union member.
7084 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
7087 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
7088 operands for operand 1.
7089 (sse4_1_extendv4qiv4si2): Ditto.
7090 (sse4_1_extendv2qiv2di2): Ditto.
7091 (sse4_1_extendv4hiv4si2): Ditto.
7092 (sse4_1_extendv2hiv2di2): Ditto.
7093 (sse4_1_extendv2siv2di2): Ditto.
7094 (sse4_1_zero_extendv8qiv8hi2): Ditto.
7095 (sse4_1_zero_extendv4qiv4si2): Ditto.
7096 (sse4_1_zero_extendv2qiv2di2): Ditto.
7097 (sse4_1_zero_extendv4hiv4si2): Ditto.
7098 (sse4_1_zero_extendv2hiv2di2): Ditto.
7099 (sse4_1_zero_extendv2siv2di2): Ditto.
7100 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
7101 (*sse4_1_extendv4qiv4si2): Ditto.
7102 (*sse4_1_extendv2qiv2di2): Ditto.
7103 (*sse4_1_extendv4hiv4si2): Ditto.
7104 (*sse4_1_extendv2hiv2di2): Ditto.
7105 (*sse4_1_extendv2siv2di2): Ditto.
7106 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
7107 (*sse4_1_zero_extendv4qiv4si2): Ditto.
7108 (*sse4_1_zero_extendv2qiv2di2): Ditto.
7109 (*sse4_1_zero_extendv4hiv4si2): Ditto.
7110 (*sse4_1_zero_extendv2hiv2di2): Ditto.
7111 (*sse4_1_zero_extendv2siv2di2): Ditto.
7113 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
7115 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
7116 (mips_function_arg): Delete.
7117 (mips_function_arg_boundary): Take a const_tree.
7118 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
7119 (mips_arg_info): Likewise.
7120 (mips_setup_incoming_varargs): Call mips_function_arg_advance
7121 instead of FUNCTION_ARG_ADVANCE.
7122 (mips_function_arg_advance): Adjust prototype. Make static.
7123 (mips_function_arg): Likewise.
7124 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7125 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
7127 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
7129 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7130 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
7131 (function_arg): Delete.
7132 (function_arg_boundary): Take a const_tree.
7133 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
7134 (rs6000_spe_function_arg): Likewise.
7135 (rs6000_parm_start): Likewise.
7136 (rs6000_arg_size): Likewise.
7137 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
7138 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
7139 (rs6000_mixed_function_arg): Likewise.
7140 (function_arg): Rename to...
7141 (rs6000_function_arg): ...this.
7142 (function_arg_advance): Rename to...
7143 (rs6000_function_arg_advance_1): ...this
7144 (rs6000_function_arg_advance): New function. Call it.
7145 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
7146 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
7147 (rs6000_function_value): Likewise.
7148 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7150 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7152 * config/arm/arm.md (enabled): Test the value of arch_enabled
7153 rather than just using it.
7155 2010-08-27 Olivier Hainque <hainque@adacore.com>
7156 Eric Botcazou <ebotcazou@adacore.com>
7158 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
7159 cover all the possible offsets from this base.
7160 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
7162 2010-08-26 Jakub Jelinek <jakub@redhat.com>
7164 PR tree-optimization/44485
7165 * calls.c (flags_from_decl_or_type): For const or pure
7166 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
7167 together with ECF_CONST resp. ECF_PURE.
7168 * builtins.c (expand_builtin): Use flags_from_decl_or_type
7169 instead of querying flags directly.
7170 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
7171 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
7173 2010-08-26 Richard Guenther <rguenther@suse.de>
7175 PR tree-optimization/45255
7176 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
7177 and externals are also invariant.
7179 2010-08-25 Jakub Jelinek <jakub@redhat.com>
7181 PR rtl-optimization/44858
7182 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
7183 newi2pat, make sure they don't affect newpat.
7185 PR rtl-optimization/45400
7186 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
7187 SUBREG_REG if both modes are of MODE_INT class.
7189 2010-08-25 Julian Brown <julian@codesourcery.com>
7191 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
7192 * config/arm/arm.md (generic_sched): No for Cortex-A5.
7193 (generic_vfp): Likewise.
7194 (cortex-a5.md): Include.
7195 * config/arm/cortex-a5.md: New.
7197 2010-08-25 Richard Guenther <rguenther@suse.de>
7199 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
7200 * gimple.c (gimple_get_alias_set): Remove special handling
7203 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
7206 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
7207 dead_or_set_p when computing i0_feeds_i2_n.
7209 * combine.c (find_split_point): Undo canonicalization of multiply-add
7210 to (minus x (mult)) when it seems likely that this will increase the
7213 2010-08-25 Richard Guenther <rguenther@suse.de>
7216 * lto-streamer.c (lto_record_common_node): Do not mess with
7217 TYPE_CANONICAL when not in lto.
7218 * gimple.c (gimple_register_type): Likewise.
7220 2010-08-25 Richard Guenther <rguenther@suse.de>
7222 PR tree-optimization/45316
7223 * tree-ssa-pre.c (eliminate): Properly clean EH info.
7225 2010-08-25 Richard Guenther <rguenther@suse.de>
7227 PR tree-optimization/45393
7228 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
7229 and clean EH info. Avoid SSA update.
7230 (execute_cse_sincos): Cleanup the CFG if it has changed.
7232 2010-08-25 Richard Guenther <rguenther@suse.de>
7235 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
7236 TARGET_MEM_REF in alignment computation.
7238 2010-08-25 Jakub Jelinek <jakub@redhat.com>
7240 PR tree-optimization/45059
7241 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
7242 type conversions from newop{1,2}. Assert t is a comparison and
7243 newop{1,2} after the stripping are gimple vals.
7245 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
7247 * config/arm/iterators.md (VU, SE, V_widen_l): New.
7248 (V_unpack, US): New.
7249 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
7250 (vec_unpack<US>_lo_<mode>): Likewise.
7251 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
7252 (neon_vec_unpack<US>_lo_<mode>): Likewise.
7253 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
7254 (vec_widen_<US>mult_hi_<mode>): Likewise.
7255 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
7256 (neon_vec_<US>mult_hi_<mode>"): Likewise.
7257 (neon_unpack<US>_<mode>): Widening move intermediate step for
7258 vectorizing without -mvectorize-with-neon-quad.
7259 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
7260 for vectorizing without -mvectorize-with-neon-quad.
7261 * config/arm/predicates.md (vect_par_constant_high): Check for
7262 high-half lanes of a vector.
7263 (vect_par_constant_low): Check for low-half lanes of a vector.
7265 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
7267 * tree-if-conv.c (struct ifc_dr): New.
7269 (DR_WRITTEN_AT_LEAST_ONCE): New.
7270 (DR_RW_UNCONDITIONALLY): New.
7271 (memref_read_or_written_unconditionally): Use the cached values
7273 (write_memref_written_at_least_once): Same.
7274 (if_convertible_loop_p): Initialize and free DR->aux fields.
7276 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
7278 * gimple.c (gimple_could_trap_p_1): Not static anymore.
7279 Pass an extra bool parameter include_mem.
7280 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
7281 (gimple_assign_rhs_could_trap_p): Same.
7282 * gimple.h (gimple_could_trap_p_1): Declared.
7283 * tree-data-ref.h (same_data_refs_base_objects): New.
7284 (same_data_refs): New.
7285 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
7286 (write_memrefs_written_at_least_once): New.
7287 (ifcvt_memrefs_wont_trap): New.
7288 (operations_could_trap): New.
7289 (ifcvt_could_trap_p): New.
7290 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
7291 Gets a vector of data refs.
7292 (if_convertible_stmt_p): Same.
7293 (if_convertible_loop_p_1): New.
7294 (if_convertible_loop_p): Call if_convertible_loop_p_1.
7296 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
7298 * common.opt (ftree-loop-if-convert-stores): New flag.
7299 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
7300 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
7301 the created statement before GSI.
7302 (if_convertible_phi_p): Allow virtual phi nodes when
7303 flag_loop_if_convert_stores is set.
7304 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
7305 Do not handle types that do not match is_gimple_reg_type.
7306 Remove loop and bb parameters. Call gimple_could_trap_p instead of
7307 when flag_loop_if_convert_stores is set, as LHS can contain
7309 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
7310 to if_convertible_gimple_assign_stmt_p.
7311 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
7312 (replace_phi_with_cond_gimple_assign_stmt): Renamed
7313 predicate_scalar_phi. Do not handle virtual phi nodes.
7314 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
7315 Call predicate_scalar_phi.
7316 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
7317 just after the labels for flag_loop_if_convert_stores, otherwise
7318 insert the predicate in the end of the BB.
7319 (predicate_mem_writes): New.
7320 (combine_blocks): Call predicate_all_scalar_phis. When
7321 flag_loop_if_convert_stores is set, call predicate_mem_writes.
7322 (tree_if_conversion): Call mark_sym_for_renaming when
7323 flag_loop_if_convert_stores is set.
7324 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
7325 flag_loop_if_convert_stores is set.
7327 2010-08-24 Anatoly Sokolov <aesok@post.ru>
7329 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
7330 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
7331 (pa_function_value): Make static.
7332 (override_options): Rename to...
7333 (pa_option_override): ...this. Make static.
7334 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
7335 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
7336 TARGET_OPTION_OVERRIDE): Define.
7337 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
7338 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
7340 * config/pa/pa-protos.h (override_options): Remove.
7342 2010-08-24 Richard Guenther <rguenther@suse.de>
7345 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
7346 if addr->index is NULL or zero.
7347 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
7348 TARGET_MEM_REF more properly.
7349 (indirect_ref_may_alias_decl_p): Likewise.
7350 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
7351 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
7353 2010-08-23 Anatoly Sokolov <aesok@post.ru>
7355 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
7356 (m32c_override_options): Rename to...
7357 (m32c_option_override): ...this. Make static.
7358 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
7359 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
7361 * config/m32c/m32c-protos.h (m32c_override_options,
7362 m32c_function_value_regno_p): Remove.
7364 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
7366 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
7367 Fix a typo in a previous commit.
7369 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
7371 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
7372 Pre-initialize innerloop_iters to one.
7374 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
7376 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
7377 existing static function global.
7379 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
7380 is changed to global.
7382 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
7383 may_be_nonaddressable_p on base, and don't collect this reference
7384 if the address of the base could not be taken.
7386 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7388 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
7389 enable the compiler to autovectorize mathmetical functions for
7390 power7 using the Mathematical Acceleration Subsystem library.
7392 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
7393 handle which vector math library we have.
7394 (rs6000_override_options): Add -mveclibabi=mass support.
7395 (rs6000_builtin_vectorized_libmass): New function to handle auto
7396 vectorizing math functions that are in the MASS library.
7397 (rs6000_builtin_vectorized_function): Call it.
7399 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7402 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7405 * gthr-posix.h (__gthread_active_init): Delete.
7406 (__gthread_active_p): Do activity check here.
7407 Don't include errno.h on hppa-hpux. Update comment.
7408 * gthr-posix95.h (__gthread_active_init): Delete.
7409 (__gthread_active_p): Do activity check here.
7410 Don't include errno.h on hppa-hpux. Update comment.
7411 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
7412 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
7413 add -lpthread when -mt or -pthread is specified.
7414 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
7415 (LINK_GCC_C_SEQUENCE_SPEC): Define.
7416 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
7417 (stublib.c, pthread_default_stacksize_np-stub.o,
7418 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
7419 $(T)libgcc_stub.a): Add methods.
7420 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
7421 (stublib.c, pthread_default_stacksize_np-stub.o,
7422 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
7423 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7424 pthread_mutex_unlock): New stubs.
7426 2010-08-22 Joseph Myers <joseph@codesourcery.com>
7428 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
7429 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
7431 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
7432 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
7433 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
7434 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
7435 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
7437 * cppspec.c: Include opts.h.
7438 (lang_specific_driver): Use cl_decoded_option structures.
7439 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
7440 * doc/tm.texi: Regenerate.
7441 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
7442 (driver_handle_option): Allow driver options needing no special
7444 (process_command): Decode options before call to
7445 lang_specific_driver. Pass decoded options to
7446 lang_specific_driver.
7447 * gcc.h (lang_specific_driver): Update prototype.
7448 * gccspec.c: Include opts.h.
7449 (lang_specific_driver): Use cl_decoded_option structures.
7450 * opts-common.c (option_ok_for_language, generate_option,
7451 generate_option_input_file): New.
7452 (decode_cmdline_option): Use option_ok_for_language.
7453 (decode_cmdline_options_to_array): Use generate_option_input_file.
7454 (handle_generated_option): Use generate_option.
7455 * opts.h (generate_option, generate_option_input_file): Declare.
7457 2010-08-22 Anatoly Sokolov <aesok@post.ru>
7459 * config/mips/mips.c (mips_override_options): Rename to...
7460 (mips_option_override): ...this. Make static.
7461 (TARGET_OPTION_OVERRIDE): Define.
7462 (mips_in_small_data_p): Update comment.
7463 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
7464 (FIXED_REGISTERS): Update comment.
7465 * config/mips/mips-protos.h (mips_override_options): Remove.
7467 2010-08-21 Olivier Hainque <hainque@adacore.com>
7469 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
7471 2010-08-21 Olivier Hainque <hainque@adacore.com>
7473 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
7474 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
7476 2010-08-20 Jan Hubicka <jh@suse.cz>
7478 * tree-pass.h (pass_ipa_cdtor_merge): New function.
7479 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
7481 (record_cdtor_fn): Move to ipa.c; do not test for
7483 (build_cdtor): Move to ipa.c; add code avoiding construction
7484 when target have ctors/dtors and there is only one ctor/dtor at given
7486 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
7487 sort; reverse order of constructors.
7488 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
7489 (cgraph_finalize_function): Do not call record_cdtor_fn.
7490 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
7491 (cgraph_build_static_cdtor): Move to ipa.c.
7492 * ipa.c: Include target.h and tree-iterator.h.
7493 (cgraph_build_static_cdtor, static_ctors, static_dtors,
7494 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
7495 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
7496 pass_ipa_cdtor_merge): New.
7497 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
7498 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
7501 2010-08-20 Jan Hubicka <jh@suse.cz>
7505 * cgraph.h (cgraph_only_called_directly_p,
7506 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
7508 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
7510 (cgraph_finalize_function): Static cdtors are reachable.
7511 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
7513 2010-08-20 Jan Hubicka <jh@suse.cz>
7515 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
7517 * lto-streamer-out.c (lto_output): Likewise.
7518 * passes.c (ipa_write_optimization_summaries): Initialize statement
7521 2010-08-20 Olivier Hainque <hainque@adacore.com>
7523 * tree.h (alias_diag_flags): New enum.
7524 (alias_pair): Add an 'emitted_diags' field.
7525 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
7526 (assemble_alias): Initialize emitted_diags of new pairs.
7528 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
7530 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7531 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7532 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7533 (STACK_CHECK_PROTECT): Define.
7534 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
7535 (output_probe_stack_range): Likewise.
7536 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
7537 builtin stack checking is enabled.
7538 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
7539 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7540 (probe_stack_range): New insn.
7542 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
7545 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
7548 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
7551 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7554 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
7555 to cover zero extension into 64-bit register.
7556 (*sse2_pextrw): Likewise.
7557 (*sse4_1_pextrd_zext): New insn.
7559 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
7561 revert r163410, partially revert r163267.
7562 * config/rs6000/darwin.h (LIB_SPEC): Remove.
7563 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
7566 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7569 * builtins.c (expand_builtin): Don't optimize away
7570 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
7572 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
7574 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
7575 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
7576 alternative 1 of operand 2.
7578 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7579 Paolo Bonzini <bonzini@gnu.org>
7581 * simplify-rtx.c (simplify_unary_operation_1): Optimize
7582 (sign_extend (zero_extend (...)) and
7583 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
7585 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7587 PR rtl-optimization/45353
7588 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
7589 after bb_note is a BARRIER.
7591 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
7593 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
7596 2010-08-20 Jakub Jelinek <jakub@redhat.com>
7597 Michael Matz <matz@suse.de>
7599 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
7601 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7603 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
7604 (ggc_mark_roots): ...here.
7606 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
7608 * vec.h (FOR_EACH_VEC_ELT): Define.
7610 * cfgloop.c: Likewise.
7611 * cfgloopmanip.c: Likewise.
7612 * cgraph.c: Likewise.
7613 * cgraphunit.c: Likewise.
7614 * combine.c: Likewise.
7615 * config/bfin/bfin.c: Likewise.
7616 * config/mips/mips.c: Likewise.
7617 * config/rs6000/rs6000.c: Likewise.
7618 * dbxout.c: Likewise.
7619 * df-scan.c: Likewise.
7620 * dominance.c: Likewise.
7622 * dwarf2out.c: Likewise.
7623 * except.c: Likewise.
7625 * function.c: Likewise.
7627 * genattr.c: Likewise.
7628 * ggc-common.c: Likewise.
7629 * gimplify.c: Likewise.
7630 * graphite-blocking.c: Likewise.
7631 * graphite-clast-to-gimple.c: Likewise.
7632 * graphite-dependences.c: Likewise.
7633 * graphite-interchange.c: Likewise.
7634 * graphite-poly.c: Likewise.
7635 * graphite-scop-detection.c: Likewise.
7636 * graphite-sese-to-poly.c: Likewise.
7637 * graphite.c: Likewise.
7638 * haifa-sched.c: Likewise.
7639 * ifcvt.c: Likewise.
7640 * implicit-zee.c: Likewise.
7641 * ipa-prop.c: Likewise.
7642 * ipa-struct-reorg.c: Likewise.
7644 * ira-build.c: Likewise.
7645 * ira-color.c: Likewise.
7646 * ira-emit.c: Likewise.
7647 * lambda-code.c: Likewise.
7648 * loop-invariant.c: Likewise.
7649 * loop-unroll.c: Likewise.
7650 * lower-subreg.c: Likewise.
7651 * lto-cgraph.c: Likewise.
7652 * lto-opts.c: Likewise.
7653 * lto-streamer-in.c: Likewise.
7654 * lto-streamer-out.c: Likewise.
7655 * lto-streamer.c: Likewise.
7656 * lto-symtab.c: Likewise.
7657 * matrix-reorg.c: Likewise.
7659 * predict.c: Likewise.
7660 * print-tree.c: Likewise.
7661 * sdbout.c: Likewise.
7662 * sel-sched-dump.c: Likewise.
7663 * sel-sched-ir.c: Likewise.
7664 * sel-sched.c: Likewise.
7666 * stor-layout.c: Likewise.
7667 * tree-cfg.c: Likewise.
7668 * tree-cfgcleanup.c: Likewise.
7669 * tree-chrec.c: Likewise.
7670 * tree-data-ref.c: Likewise.
7671 * tree-emutls.c: Likewise.
7672 * tree-inline.c: Likewise.
7673 * tree-into-ssa.c: Likewise.
7674 * tree-loop-distribution.c: Likewise.
7675 * tree-loop-linear.c: Likewise.
7676 * tree-mudflap.c: Likewise.
7677 * tree-outof-ssa.c: Likewise.
7678 * tree-parloops.c: Likewise.
7679 * tree-predcom.c: Likewise.
7680 * tree-pretty-print.c: Likewise.
7681 * tree-scalar-evolution.c: Likewise.
7682 * tree-ssa-live.c: Likewise.
7683 * tree-ssa-loop-im.c: Likewise.
7684 * tree-ssa-loop-ivcanon.c: Likewise.
7685 * tree-ssa-loop-ivopts.c: Likewise.
7686 * tree-ssa-loop-manip.c: Likewise.
7687 * tree-ssa-loop-niter.c: Likewise.
7688 * tree-ssa-loop-prefetch.c: Likewise.
7689 * tree-ssa-phiprop.c: Likewise.
7690 * tree-ssa-pre.c: Likewise.
7691 * tree-ssa-reassoc.c: Likewise.
7692 * tree-ssa-sccvn.c: Likewise.
7693 * tree-ssa-structalias.c: Likewise.
7694 * tree-ssa.c: Likewise.
7695 * tree-vect-data-refs.c: Likewise.
7696 * tree-vect-loop-manip.c: Likewise.
7697 * tree-vect-loop.c: Likewise.
7698 * tree-vect-patterns.c: Likewise.
7699 * tree-vect-slp.c: Likewise.
7700 * tree-vect-stmts.c: Likewise.
7701 * tree-vrp.c: Likewise.
7703 * value-prof.c: Likewise.
7704 * var-tracking.c: Likewise.
7705 * varasm.c: Likewise.
7706 * vmsdbgout.c: Likewise.
7708 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
7709 Richard Guenther <richard.guenther@gmail.com>
7711 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
7712 copy the src value and return a copy.
7713 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
7714 (C++ Volatiles): Adjust to describe C++ semantics only.
7716 2010-08-20 Joseph Myers <joseph@codesourcery.com>
7718 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
7720 * doc/tm.texi: Regenerate.
7721 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
7722 * df-scan.c (df_get_exit_block_use_set), reginfo.c
7723 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
7724 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
7725 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
7728 2010-08-20 Olivier Hainque <hainque@adacore.com>
7730 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
7731 an extra nop past a sibling call at the very end.
7733 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
7736 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
7739 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
7741 * target.def (function_arg, function_incoming_arg): Remove const
7742 qualifier on CUMULATIVE_ARGS parameter.
7743 * targhooks.h (default_function_arg, default_function_incoming_arg):
7745 * targhooks.c (default_function_arg, default_function_incoming_arg):
7747 * config/i386/i386.c (ix86_function_arg): Likewise.
7749 2010-08-19 Jakub Jelinek <jakub@redhat.com>
7752 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
7753 SIGN_EXTENDs or ZERO_EXTENDs.
7755 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
7758 * combine.c (combine_validate_cost): New arg I0. All callers changed.
7759 Take its cost into account if nonnull.
7760 (insn_a_feeds_b): New static function.
7761 (combine_instructions): Look for four-insn combinations.
7762 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
7763 them into account when computing all_adjacent and looking for other
7765 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
7766 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
7767 (try_combine): New arg I0. Handle four-insn combinations.
7768 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
7771 2010-08-19 Jason Merrill <jason@redhat.com>
7774 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
7776 (gimplify_modify_expr_rhs): Adjust.
7778 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
7780 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
7782 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
7783 * dominance.c (iterate_fix_dominators): Likewise.
7784 * dse.c (set_usage_bits): Likewise.
7785 (set_position_unneeded, record_store): Likewise.
7786 * gimple-fold.c (get_maxval_strlen): Likewise.
7787 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
7788 * ipa-inline.c (update_caller_keys): Likewise.
7789 * ipa-split.c (verify_non_ssa_vars): Likewise.
7790 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
7791 (close_type_exposed_parameter, close_type_full_escape): Likewise.
7792 (close_addressof_down): Likewise.
7793 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
7794 (setup_allocno_left_conflicts_size): Likewise.
7795 (ira_reassign_conflict_allocnos): Likewise.
7796 (ira_reassign_pseudos): Likewise.
7797 * ira-emit.c (change_loop): Likewise.
7798 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
7799 * lto-streamer-out.c (write_symbol): Likewise.
7800 * predict.c (expr_expected_value_1): Likewise.
7801 * regstat.c (regstat_bb_compute_ri): Likewise.
7802 * sel-sched.c (create_block_for_bookkeeping): Likewise.
7803 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
7804 * stmt.c (expand_case): Likewise.
7805 * tree-eh.c (emit_eh_dispatch): Likewise.
7806 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
7807 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
7809 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
7810 (rdg_build_components): Likewise.
7811 * tree-object-size.c (collect_object_sizes_for): Likewise.
7812 * tree-sra.c (convert_callers): Likewise.
7813 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
7814 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
7815 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
7817 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
7819 * config/i386/i386.md (*lea_1): Use P mode iterator.
7820 (lea add splitter): Also handle DImode operands.
7821 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
7822 predicate. Do not use ix86_lea_for_add_ok.
7823 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
7824 (lea ashift splitter): Also handle DImode operands.
7825 (DImode lea ashift splitter): Remove splitter.
7827 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
7829 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
7830 ix86_binary_operator_ok.
7832 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
7834 PR rtl-optimization/44691
7835 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
7838 2010-08-19 Ian Bolton <ian.bolton@arm.com>
7841 * config/arm/arm.c (arm_output_epilogue): Ensure that return
7842 value of size 1-3 is handled correctly.
7844 2010-08-19 Ian Bolton <ian.bolton@arm.com>
7846 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
7847 type for the conditional has wide enough range.
7849 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
7852 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
7853 ix86_binary_operator_ok.
7855 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
7857 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
7858 <default>: Swap operands 1 and 2 for alternative 2 to use existing
7859 code to output insn mnemonic. Fix comment.
7860 (*addsi_1_zext): Add r-r-0 alternative 1.
7861 <TYPE_LEA>: Split insn to lea.
7862 <default>: Handle alternative 1.
7863 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
7864 multi-level if_then_else RTX to set "type" attribute.
7865 <default>: Handle alternative 2.
7866 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
7867 Use cond RTX instead of multi-level if_then_else RTX to set
7869 <default>: Handle alternatives 2 and 4.
7870 (lea splitters): Update calls to ix86_lea_for_add_ok.
7872 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
7874 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
7876 2010-08-18 Richard Guenther <rguenther@suse.de>
7878 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
7879 use operand helpers.
7881 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
7884 * optabs.c (expand_bool_compare_and_swap): Expand pending
7885 pops before trying the optab.
7887 2010-08-18 Yao Qi <yao@codesourcery.com>
7890 * config/arm/arm.c (output_move_double): Fix typo generating
7891 instructions ('ldr'->'str').
7893 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
7895 PR rtl-optimization/42575
7896 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
7899 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
7901 * config/arm/arm-protos.h (arm_expand_sync): New.
7902 (arm_output_memory_barrier, arm_output_sync_insn): New.
7903 (arm_sync_loop_insns): New.
7904 * config/arm/arm.c (FL_ARCH7): New.
7905 (FL_FOR_ARCH7): Include FL_ARCH7.
7907 (arm_print_operand): Support %C markup.
7908 (arm_legitimize_sync_memory): New.
7909 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
7910 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
7911 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
7912 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
7913 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
7914 (arm_process_output_sync_insn, arm_output_sync_insn): New.
7915 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
7916 * config/arm/arm.h (struct arm_sync_generator): New.
7917 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
7918 (TARGET_HAVE_MEMORY_BARRIER): New.
7919 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
7920 * config/arm/arm.md: Include sync.md.
7921 (UNSPEC_MEMORY_BARRIER): New.
7922 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
7923 (VUNSPEC_SYNC_OP):New.
7924 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
7925 (sync_result, sync_memory, sync_required_value): New attributes.
7926 (sync_new_value, sync_t1, sync_t2): Likewise.
7927 (sync_release_barrier, sync_op): Likewise.
7928 (length): Add logic to length attribute defintion to call
7929 arm_sync_loop_insns when appropriate.
7930 * config/arm/sync.md: New file.
7932 2010-08-17 Jakub Jelinek <jakub@redhat.com>
7934 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
7935 ENABLE_TREE_CHECKING.
7936 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
7939 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
7941 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
7942 or optimizing for size, always avoid lea if possible.
7944 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
7946 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
7948 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
7949 Dunmmy function with NULL return unless the target is
7950 OSX >= 10.6 (Darwin10).
7952 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
7954 * gcc.c (spec_function): Add remove-outfile.
7955 (remove_outfile_spec_function): New function.
7956 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
7957 * invoke.texi (replace-outfile): Document.
7959 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
7962 * reginfo.c (globalize_reg): Reject stack registers.
7964 2010-08-17 Richard Guenther <rguenther@suse.de>
7966 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
7967 list of conditional equivalences.
7968 (free_all_edge_infos): Adjust.
7969 (record_equivalences_from_incoming_edge): Likewise.
7970 (record_cond): Likewise.
7971 (build_and_record_new_cond): Likewise.
7972 (record_conditions): Likewise.
7973 (dom_opt_leave_block): Likewise.
7975 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
7977 * doc/invoke.texi (ms-extension): Add documentation.
7979 2010-08-17 Richard Guenther <rguenther@suse.de>
7981 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
7983 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
7986 * c-decl.c (diagnose_uninitialized_cst_member): New function.
7987 (finish_decl): Use it to issue a -Wc++-compat warning about
7988 uninitialized const field in struct or union.
7990 (finish_struct): Use strip_array_types.
7992 2010-08-17 Jakub Jelinek <jakub@redhat.com>
7994 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
7996 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
7997 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
7998 call block_nreverse here.
7999 (blocks_nreverse): Rename decl temporary to block.
8001 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
8003 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
8004 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
8005 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
8006 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
8007 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
8008 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
8009 thumb2_iorsi3): Delete.
8010 (orsi_notsi_si): No longer a named pattern.
8011 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
8012 * config/arm/predicates.md (shift_amount_operand): New.
8013 (mult_operator): New.
8014 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
8016 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
8018 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
8019 (not_shiftsi_compare0): Likewise, renamed from
8020 arm_notsi_shiftsi_compare0.
8021 (not_shiftsi_compare0_scratch): Likweise, renamed from
8022 arm_notsi_shiftsi_compare0_scratch.
8023 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
8024 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
8025 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
8026 so that the register alternative is disabled when the shift_operator
8027 is MULT. Use "M" as the constraint for constants.
8028 (arith_shiftsi splitter): Enable for TARGET_32BIT.
8029 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
8030 constraint for constants.
8031 (arith_shiftsi_compare0_scratch): Likewise.
8032 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
8033 Handle Thumb2 alternative.
8035 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8037 * doc/options.texi (NoDriverArg): Document.
8038 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
8040 * opt-functions.awk (switch_flags): Handle NoDriverArg.
8041 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
8042 marking for CL_NO_DRIVER_ARG options when in the driver.
8043 * opts.h (CL_NO_DRIVER_ARG): Define.
8044 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
8045 CL_COMMON): Update values.
8047 2010-08-16 Joseph Myers <joseph@codesourcery.com>
8049 * common.opt: Add driver options.
8050 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
8051 * doc/options.texi (Driver, RejectDriver): Document.
8052 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
8053 print_prog_name, print_multi_directory, print_sysroot,
8054 print_multi_os_directory, print_multi_lib,
8055 print_sysroot_headers_suffix, report_times, combine_flag,
8056 use_pipes, wrapper_string): Remove.
8057 (save_switch, driver_unknown_option_callback,
8058 driver_wrong_lang_callback, driver_post_handling_callback,
8059 driver_handle_option): New.
8060 (spec_lang, last_language_n_infiles): Make file-scope static
8061 instead of local to process_command.
8062 (process_command): Use decode_cmdline_options_to_array and
8063 read_cmdline_option for option processing. Compute have_c in
8064 prescan of decoded options.
8065 * opt-functions.awk (switch_flags): Handle Driver and
8067 (var_type, var_type_struct): Handle Separate options as generating
8068 const char * variables.
8069 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
8070 CL_TARGET to be passed by caller if required.
8071 (decode_cmdline_options_to_array): Update comment.
8072 * opts.c (complain_wrong_lang): Handle options only valid for the
8074 (decode_options): Update call to decode_cmdline_options_to_array.
8075 (print_filtered_help): Ignore driver-only options.
8076 (print_specific_help): Ignore CL_DRIVER.
8077 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
8078 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
8079 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
8082 2010-08-16 Richard Guenther <rguenther@suse.de>
8084 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8085 TARGET_MEM_REF a bit.
8086 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
8087 (create_mem_ref_raw): Always create TMR_OFFSET, store the
8088 alias pointer type via it.
8089 (copy_mem_ref_info): Adjust.
8090 (maybe_fold_tmr): Likewise.
8091 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
8092 (reference_alias_ptr_type): Likewise.
8093 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
8094 adjust documentation of TMR_OFFSET operand.
8095 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
8096 use the alias pointer type.
8097 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
8098 initialize mem attrs but the TMR itself.
8099 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
8101 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
8102 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
8103 (unshare_and_remove_ssa_names): Likewise.
8104 (copy_ref_info): Adjust.
8105 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
8106 TARGET_MEM_REF case.
8107 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
8109 * tree.h (TMR_ORIGINAL): Remove.
8110 * gimple.c (get_base_address): For TARGET_MEM_REF with a
8112 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
8114 (get_addr_base_and_unit_offset): Likewise.
8115 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
8117 (indirect_ref_may_alias_decl_p): Likewise.
8118 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
8120 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
8122 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
8123 with GCC version 4.6, the default setting (when not optimizing
8124 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
8125 been changed to -fomit-frame-pointer.
8127 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
8129 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
8130 Darwin10. Do not link libgcc.a for Darwin >= 9.
8132 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
8134 * doc/invoke.texi (Warning Options): Fix terminology and markup
8135 in the description of how unknown warning options are handled.
8137 2010-08-15 Ira Rosen <irar@il.ibm.com>
8139 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
8141 (vect_supportable_dr_alignment): Check alignment for basic blocks.
8142 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
8144 (vect_bb_vectorization_profitable_p): New function.
8145 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
8146 check if it's worthwhile to vectorize the basic block.
8148 2010-08-14 Anatoly Sokolov <aesok@post.ru>
8150 * reload.h (register_move_cost, memory_move_secondary_cost,
8151 secondary_reload_class): Adjust prototype.
8152 * rtl.h (reg_class_subset_p): Adjust prototype.
8153 * reload.c (secondary_reload_class): Change arguments type from
8154 enum reg_class to reg_class_t. Change result type to reg_class_t.
8155 * reginfo.c (register_move_cost, reg_class_subset_p): Change
8156 arguments type from enum reg_class to reg_class_t.
8157 (memory_move_secondary_cost): Change arguments type from
8158 enum reg_class to reg_class_t. Change type of saved_flags to
8161 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8163 (mips_cost): Remove.
8164 (struct mips_rtx_cost_data): Moved to mips.c.
8165 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
8166 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
8167 (mips_cost): Make static.
8168 (mips_canonicalize_move_class): Change argument type to reg_class_t.
8169 Change result type to reg_class_t.
8170 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
8171 type from enum reg_class to reg_class_t.
8172 (mips_register_move_cost): Make static. Change arguments
8173 type from enum reg_class to reg_class_t.
8174 (mips_memory_move_cost): New function.
8175 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8177 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
8179 PR rtl-optimization/43358
8180 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
8181 of a single hard register, using simplify_subreg_regno to decide
8182 what that register should be.
8184 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
8186 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
8187 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
8188 (loongson_pmull<V_suffix>): Rename to...
8189 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
8191 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
8193 * configure.ac: Enable -fomit-frame-pointer on darwin
8194 which support dwarf2.
8195 * config/i386/i386.c (override_options): Same.
8197 2010-08-13 Jie Zhang <jie@codesourcery.com>
8199 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
8201 2010-08-12 Joseph Myers <joseph@codesourcery.com>
8203 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
8206 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
8208 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
8209 up dot_prod pattern searching if a stmt is outside the loop.
8211 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
8212 Uros Bizjak <ubizjak@gmail.com>
8214 * config.gcc: Handle --enable-frame-pointer.
8216 * configure.ac: Add --enable-frame-pointer.
8217 * configure: Regenerated.
8219 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
8220 (override_options): If not configured with --enable-frame-pointer,
8221 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
8222 optimizing for size), -fasynchronous-unwind-tables and
8223 -maccumulate-outgoing-args by default.
8225 2010-08-12 Jakub Jelinek <jakub@redhat.com>
8227 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
8230 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
8231 -a overflows. Normalize the range.
8233 2010-08-12 Richard Guenther <rguenther@suse.de>
8235 PR tree-optimization/45232
8236 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
8237 for types with undefined overflow.
8238 (reassociate_bb): Allow re-associating of bit and min/max
8239 operations for types with undefined overflow.
8240 * tree-ssa-forwprop.c (associate_plusminus): New function.
8241 (tree_ssa_forward_propagate_single_use_vars): Call it.
8243 2010-08-12 Richard Guenther <rguenther@suse.de>
8245 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
8246 * tree-ssa-alias.c (get_ptr_info): Move ...
8247 * tree-ssanames.c (get_ptr_info): ... here. Initialize
8248 align and misalign fields conservatively.
8249 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
8250 derive alignment information.
8251 (evaluate_stmt): Derive alignment information from memory
8252 allocation functions.
8253 * tree.h (get_pointer_alignment): Make unsigned.
8254 * builtins.c (get_object_alignment): Use alignment information we
8255 have computed for pointers.
8256 (get_pointer_alignment): Likewise. Make conservative, return
8258 (expand_builtin_strlen): Adjust.
8259 (expand_builtin_memcmp): Likewise.
8260 (expand_builtin_strcmp): Likewise.
8261 (expand_builtin_strncmp): Likewise.
8262 (get_builtin_sync_mem): Use at least mode alignment.
8263 (fold_builtin_memset): Adjust.
8264 (fold_builtin_memory_op): Likewise.
8265 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
8266 information also dump pointer alignment knowledge.
8267 (dump_gimple_stmt): Likewise.
8269 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
8271 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
8272 (EMPTY_FIELD_BOUNDARY): Remove.
8273 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
8275 2010-08-12 Jakub Jelinek <jakub@redhat.com>
8278 * caller-save.c (save_call_clobbered_regs): Only swap notes with
8279 DEBUG_INSNs if n_regs_saved.
8281 2010-08-12 Wei Guozhi <carrot@google.com>
8284 * config/arm/arm.md (andsi3): Change to zero extension if possible.
8285 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
8287 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
8289 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
8291 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
8293 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8295 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
8296 the case removed in the previous patch, when the only phi argument
8297 is defined in the same loop as the phi node itself. Handle it
8298 separately from the invariant case by both propagating it outside
8299 the region and replacing the phi node with an assign.
8301 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8303 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
8304 constant phi nodes with one argument are is_gimple_min_invariant
8305 and SSA_NAME_IS_DEFAULT_DEF.
8307 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8309 * graphite-cloog-util.c (oppose_constraint):
8310 Extend loop counter's value range (CLOOG_ORG).
8311 (cloog_matrix_to_ppl_constraint): Same.
8312 (new_Constraint_System_from_Cloog_matrix): Same.
8313 * graphite-cloog-compat.h (matrix_num_type): New.
8315 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8317 * graphite.c (graphite_initialize): Do not initialize
8318 CLooG and initialize the Parma Polyhedra Library
8319 manually when using CLOOG_ORG.
8320 (graphite_finalize): Do not finalize CLooG and finalize
8321 the Parma Polyhedra Library manually when using CLOOG_ORG.
8322 * graphite-cloog-compat.h (cloog_initialize): Hide function
8323 when using CLOOG_ORG.
8324 (cloog_finalize): Same.
8326 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8328 * graphite-clast-to-gimple.c (free_scattering): Change
8329 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
8331 (build_cloog_prog): Same.
8332 * graphite-cloog-compat.h (cloog_domain): Removed.
8333 (cloog_scattering): New.
8334 (cloog_set_domain): Removed.
8335 (cloog_set_scattering): New.
8336 (cloog_next_domain): Removed.
8337 (cloog_next_scattering): New.
8338 (cloog_set_next_domain): Removed.
8339 (cloog_set_next_scattering): New.
8340 (CloogScatteringList): New.
8341 (CloogScattering): New.
8342 (cloog_scattering_free): New.
8343 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
8344 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
8347 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8349 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
8351 (set_cloog_options): Same.
8352 (print_clast_stmt): Same.
8353 (scop_to_clast): Same.
8354 (print_generated_program): Same.
8356 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
8357 (scop_to_clast): Extend with CloogState.
8358 * graphite-cloog-util.c: Include graphite-cloog-compat.h
8359 (new_Cloog_Domain_from_ppl_Polyhedron):
8360 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
8361 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
8362 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8363 * graphite-cloog-util.h (build_cloog_prog): Same.
8364 * graphite-cloog-copat.h (build_cloog_prog): New.
8366 (cloog_state_malloc): New.
8367 (cloog_state_free): New.
8368 (cloog_loop_malloc): New.
8369 (cloog_options_malloc): New.
8370 (cloog_statement_alloc): New.
8371 (cloog_domain_from_cloog_matrix): New.
8372 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
8373 (new_Cloog_Domain_from_ppl_Polyhedron): New.
8375 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8377 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
8378 type of NAME now depends on used CLooG version.
8379 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
8380 (gcc_type_for_clast_expr): Same.
8381 (print_clast_stmt): Replace pprint with clast_pprint.
8382 * graphite-cloog-compat.h: Provide compatibility macros for
8384 (clast_name_p): New.
8385 (clast_expr_term): New.
8386 (clast_expr_red): New.
8387 (clast_expr_bin): New.
8388 (clast_pprint): New.
8390 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8392 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
8393 compatible to newer CLooG releases (CLOOG_ORG).
8394 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
8395 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
8396 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
8397 (build_cloog_prog) : New.
8398 (cloog_program_extract_scalars): New.
8399 (cloog_program_scatter): New.
8401 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8403 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
8404 conditionally (CLOOG_ORG).
8405 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
8406 (cloog_statement_usr): New.
8407 (cloog_domain): Same.
8408 (cloog_set_domain): Same.
8409 (cloog_next_domain): Same.
8410 (cloog_set_next_domain): Same.
8411 (cloog_program_nb_scattdims): Same.
8412 (cloog_program_set_nb_scattdims): Same.
8413 (cloog_program_names): Same.
8414 (cloog_program_set_names): Same.
8415 (cloog_program_set_context): Same.
8416 (cloog_program_set_loop): Same.
8417 (cloog_program_blocklist): Same.
8418 (cloog_program_set_blocklist): Same.
8419 (cloog_program_scaldims): Same.
8420 (cloog_program_set_scaldims): Same.
8421 (cloog_names_nb_parameters): Same.
8422 (cloog_names_set_nb_parameters): Same.
8423 (cloog_names_parameters): Same.
8424 (cloog_names_set_parameters): Same.
8425 (cloog_names_set_nb_iterators): Same.
8426 (cloog_names_set_iterators): Same.
8427 (cloog_names_set_nb_scattering): Same.
8428 (cloog_names_set_scattering): Same.
8429 (cloog_statement_set_usr): Same.
8430 (cloog_loop_set_next): Same.
8431 (cloog_loop_set_domain): Same.
8432 (cloog_loop_set_block): Same.
8433 (cloog_block_list_next): Same.
8434 (cloog_block_list_set_next):
8435 (cloog_block_list_set_block): Same.
8437 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8439 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
8441 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
8442 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
8443 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
8444 when something has been changed.
8445 (rewrite_commutative_reductions_out_of_ssa): Same.
8447 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8449 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
8450 handle the case when def is in the sese region.
8451 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
8452 for invariant expressions.
8453 (rewrite_cross_bb_phi_deps): Removed.
8454 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
8455 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
8456 rewrite_cross_bb_phi_deps.
8458 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8460 * graphite-sese-to-poly.c
8461 (rewrite_commutative_reductions_out_of_ssa_loop): Call
8462 scev_analyzable_p only on is_gimple_reg
8464 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8466 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
8467 (rewrite_close_phi_out_of_ssa): Propagate constant values or
8468 parametric expressions outside the scop region.
8469 (rewrite_cross_bb_scalar_deps): Same.
8470 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
8472 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8474 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
8475 SSA_NAME_DEF_STMT only on SSA_NAMEs.
8477 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8479 * tree-scalar-evolution.c (instantiate_scev_name): Do not
8480 instantiate default definitions.
8482 2010-08-11 Vladimir Kargov <kargov@gmail.com>
8483 Sebastian Pop <sebastian.pop@amd.com>
8485 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
8486 (loop_exits_from_bb_p): New.
8487 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
8488 (loop_exits_from_bb_p): Declared.
8489 * graphite-scop-detection.c (scopdet_basic_block_info): Call
8492 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8494 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
8495 extra parameter for the region. Call scev_analyzable_p.
8496 (rewrite_reductions_out_of_ssa): Update call to
8497 rewrite_close_phi_out_of_ssa.
8498 (rewrite_cross_bb_phi_deps): Same.
8499 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
8500 parameter for the region. Call scev_analyzable_p.
8501 (rewrite_commutative_reductions_out_of_ssa): Update call to
8502 rewrite_commutative_reductions_out_of_ssa_loop.
8504 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8506 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
8508 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8510 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
8511 SSA scalar phi nodes that can be scev_analyzable_p.
8513 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8515 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
8516 handle SSA_NAME_IS_DEFAULT_DEF.
8518 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8520 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
8522 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8524 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
8525 case non close-phi nodes with one argument.
8527 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8529 * sese.h (scev_analyzable_p): Scevs could be expressions without
8530 chrecs and still be scev_analyzable_p.
8532 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8534 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8536 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8538 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
8539 * cfgloop.h (struct loop): Remove single_iv field.
8540 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
8541 (scop_canonicalize_loops): Removed.
8542 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
8543 over all the loop phi nodes in loop->header.
8544 (build_poly_scop): Remove use of scop_canonicalize_loops.
8546 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8548 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
8551 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8553 * tree-chrec.c (chrec_apply): Should only apply to the specified
8554 variable. Also handle multivariate chains of recurrences that
8555 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
8557 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8559 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
8560 (debug_clast_name_indexes_1): Removed.
8561 (debug_clast_name_indexes): Removed.
8562 (pbb_to_depth_to_oldiv): Removed.
8563 (build_iv_mapping): Replace the use of rename_map with iv_map.
8564 (translate_clast_user): Remove uses of rename_map. Allocate and
8566 (translate_clast_for_loop): Remove uses of rename_map.
8567 (translate_clast_for): Same.
8568 (translate_clast_guard): Same.
8569 (translate_clast): Same.
8571 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
8572 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
8573 * sese.c (set_rename): Now static.
8574 (rename_variables_in_stmt): Removed.
8576 (is_parameter): Removed.
8578 (expand_scalar_variables_call): Removed.
8579 (expand_scalar_variables_ssa_name): Removed.
8580 (expand_scalar_variables_expr): Removed.
8581 (expand_scalar_variables_stmt): Removed.
8582 (expand_scalar_variables): Removed.
8583 (rename_variables): Removed.
8584 (remove_condition): Removed.
8585 (get_true_edge_from_guard_bb): Removed.
8586 (get_false_edge_from_guard_bb): Removed.
8587 (struct igp): Removed.
8588 (default_before_guard): Removed.
8589 (convert_for_phi_arg): Removed.
8590 (add_guard_exit_phis): Removed.
8591 (insert_guard_phis): Removed.
8592 (graphite_copy_stmts_from_block): Now also uses iv_map and a
8593 region. Do not copy conditions. Do not copy induction variables.
8595 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
8596 the translated statement. Use the iv_map for the induction
8598 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8599 (set_rename): Removed declaration.
8600 (scev_analyzable_p): ...here.
8601 * tree-chrec.c (chrec_apply_map): New.
8602 * tree-chrec.h (chrec_apply_map): Declared.
8604 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8606 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
8607 insert_loop_close_phis.
8608 * sese.c (name_defined_in_loop_p): Removed.
8609 (expr_defined_in_loop_p): Removed.
8610 (alive_after_loop): Removed.
8611 (close_phi_not_yet_inserted_p): Removed.
8612 (struct alep): Removed.
8613 (add_loop_exit_phis): Removed.
8614 (insert_loop_close_phis): Removed.
8616 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8618 * graphite-cloog-util.c
8619 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
8621 (psct_scattering_dim_for_loop_depth): Same.
8623 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8625 * graphite-cloog-util.h: Added cloog.h.
8626 * graphite-blocking.c: Removed cloog.h.
8627 * graphite-dependences.c: Same.
8628 * graphite-interchange.c: Same.
8629 * graphite-poly.c: Same.
8630 * graphite-ppl.c: Same.
8631 * graphite-scop-detection.c: Same.
8632 * graphite-sese-to-poly.c:
8634 Removed graphite-clast-to-gimple.h.
8635 (check_poly_representation): Removed (unused).
8636 * graphite-sese-to-poly.h
8637 (check_poly_representation): Removed (unused).
8639 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8641 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
8642 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
8643 (graphite-cloog-util.o): New.
8644 (graphite-ppl.o): Added graphite-cloog-util.h.
8645 * graphite-clast-to-gimple.c:
8646 Added graphite-cloog-util.h to include statements.
8647 * graphite-cloog-util.c: New.
8648 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
8649 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8650 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8651 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8652 (insert_constraint_into_matrix): Same.
8653 (ppl_Constrain_System_number_of_constraints): Same.
8654 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
8655 (oppose_constraint): Same.
8656 (cloog_matrix_to_ppl_constraint): Same.
8657 (new_Constraint_System_from_Cloog_Matrix): Same.
8658 * graphite-cloog-util.h: New.
8659 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
8660 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8661 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8662 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8663 (insert_constraint_into_matrix): Same.
8665 Added graphite-cloog-util.h to include statements.
8666 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
8667 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8668 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8669 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8670 (insert_constraint_into_matrix): Same.
8671 (ppl_Constrain_System_number_of_constraints): Same.
8672 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
8673 (oppose_constraint): Same.
8674 (cloog_matrix_to_ppl_constraint): Same.
8675 (new_Constraint_System_from_Cloog_Matrix): Same.
8677 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
8678 graphite-cloog-util.h.
8679 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8680 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8681 (new_C_Polyhedron_from_Cloog_Matrix): Same.
8682 (insert_constraint_into_matrix): Same.
8684 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8686 * graphite-clast-to-gimple.c
8687 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
8688 (precision_for_interval): Same.
8689 (gcc_type_for_interval): Same.
8690 (compute_type_for_level): Same.
8691 * graphite-interchange.c
8692 (lst_interchange_profitable_p): Same.
8694 (psct_scattering_dim_for_loop_depth): Same.
8696 (ppl_max_for_le_pointset): Same.
8697 (ppl_min_for_le_pointset): Same.
8699 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8701 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
8702 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
8704 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8706 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
8707 rewrite_close_phi_out_of_ssa.
8709 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8711 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
8713 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8715 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
8717 * sese.c (debug_rename_map): Same.
8720 (rename_variables_in_stmt): Same.
8721 (expand_scalar_variables_call): Same.
8722 (expand_scalar_variables_ssa_name): Same.
8723 (expand_scalar_variables_expr): Same.
8724 (expand_scalar_variables_stmt): Same.
8725 (expand_scalar_variables): Same.
8726 (rename_variables): Same.
8727 (graphite_copy_stmts_from_block): Same.
8728 (copy_bb_and_scalar_dependences): Same.
8730 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8732 * graphite-clast-to-gimple.c (copy_renames): Removed.
8733 (translate_clast_for): Do not call copy_renames.
8734 (translate_clast_guard): Same.
8736 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8738 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
8739 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
8740 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
8741 before rewrite_cross_bb_scalar_deps.
8743 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8745 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
8746 Early return in when flag_associative_math is not set.
8748 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8750 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
8751 of SSA copies on edges except for loop->latch.
8753 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8755 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
8756 Split out of rewrite_reductions_out_of_ssa.
8757 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
8759 * graphite.c (graphite_transform_loops): Call it.
8761 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8763 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
8765 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
8767 * dbgcnt.def (graphite_scop): New counter.
8768 * graphite.c: Include dbgcnt.h.
8769 (graphite_transform_loops): Use new counter to limit transformations.
8770 * Makefile.in (graphite.o): Depend on DBGCNT_H.
8772 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8774 * passes.c (init_optimization_passes): Add pass_graphite.
8775 Schedule a pass_copy_prop before pass_graphite_transforms.
8776 * timevar.def (TV_GRAPHITE): Declared.
8777 * tree-pass.h (pass_graphite): Declared.
8778 * tree-ssa-loop.c (pass_graphite): New.
8780 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8782 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
8783 Remove calls to rename_nb_iterations and rename_sese_parameters.
8784 * graphite-clast-to-gimple.h (gloog): Update declaration.
8785 * graphite.c (graphite_transform_loops): Update call to gloog.
8786 * sese.c (rename_variables_in_expr): Removed.
8787 (rename_nb_iterations): Removed.
8788 (rename_sese_parameters): Removed.
8789 * sese.h (rename_nb_iterations): Removed.
8790 (rename_sese_parameters): Removed.
8792 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8794 * graphite-clast-to-gimple.c (gloog): Remove call to
8795 sese_adjust_liveout_phis.
8796 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
8797 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
8798 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
8799 rewrite_phi_out_of_ssa.
8800 * sese.c (get_vdef_before_sese): Removed.
8801 (sese_adjust_vphi): Removed.
8802 (sese_adjust_liveout_phis): Removed.
8803 * sese.h (sese_adjust_liveout_phis): Removed.
8805 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8807 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
8808 argument for the place after which to insert the out of SSA copy.
8809 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
8810 (rewrite_phi_out_of_ssa): Same.
8811 (rewrite_cross_bb_scalar_deps): Same.
8812 (insert_copyout): Removed.
8813 (insert_copyin): Removed.
8814 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
8815 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
8818 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8820 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
8821 (rewrite_reductions_out_of_ssa): Same.
8822 (rewrite_commutative_reductions_out_of_ssa): Same.
8823 (build_poly_scop): Do not call these functions.
8824 * graphite-sese-to-poly.h (build_poly_scop): Declared.
8825 (rewrite_reductions_out_of_ssa): Declared.
8826 (rewrite_commutative_reductions_out_of_ssa): Declared.
8827 * graphite.c (graphite_transform_loops): Call on every scop
8828 rewrite_commutative_reductions_out_of_ssa before calling
8829 rewrite_reductions_out_of_ssa and build_scop_bbs.
8831 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8833 * graphite-dependences.c (dot_deps): Make system call to dotty run
8835 (dot_deps_stmt): Same.
8836 * graphite-poly.c (dot_lst): Same.
8838 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
8840 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
8841 phi_arg_in_outermost_loop.
8842 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
8843 (remove_invariant_phi): Same.
8845 2010-08-11 Anatoly Sokolov <aesok@post.ru>
8847 * target.def (output_addr_const_extra): New hook.
8848 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
8849 * doc/tm.texi: Regenerate.
8850 * targhooks.c (default_asm_output_addr_const_extra): New function.
8851 * targhooks.h (default_asm_output_addr_const_extra): Declare.
8852 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
8855 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8856 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
8857 * config/i386/i386.h (output_addr_const_extra): Rename to...
8858 (i386_asm_output_addr_const_extra): ...this. Make static.
8859 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8861 2010-08-11 Richard Henderson <rth@redhat.com>
8863 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
8865 2010-08-11 Nick Clifton <nickc@redhat.com>
8867 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
8868 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
8869 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
8870 stormy16-lib2-cmpsi.c.
8872 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
8875 2010-08-11 Joseph Myers <joseph@codesourcery.com>
8877 * opts.h (struct cl_option_handler_func): Make handler take
8878 cl_decoded_option structure as parameter, not individual elements.
8879 (struct cl_option_handlers): Make callbacks take cl_decoded_option
8880 structure as parameter, not individual elements.
8881 (handle_option): Take cl_decoded_option structure as parameter,
8882 not individual elements.
8883 (handle_generated_option): Declare.
8884 * opts-common.c (handle_option): Take cl_decoded_option structure
8885 as parameter, not individual elements. Update calls to callback
8886 and handler functions.
8887 (handle_generated_option): New.
8888 (read_cmdline_option): Update calls to callback functions and
8890 * opts.c (common_handle_option, complain_wrong_lang,
8891 unknown_option_callback, post_handling_callback,
8892 lang_handle_option, target_handle_option): Take cl_decoded_option
8893 structure as parameter, not individual elements.
8894 (lang_handle_option, target_handle_option, common_handle_option):
8895 Assert option has at most one argument.
8896 (enable_warning_as_error): Call handle_generated_option instead of
8897 handle_option. Do not pass -Werror argument as argument of
8900 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8902 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
8903 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
8904 (SUBWORD_BOOL_CAS): Likewise.
8905 (SUBWORD_SYNC_OP): Likewise.
8906 (SUBWORD_TEST_AND_SET): Likewise.
8907 (FETCH_AND_OP_WORD): Parenthesise INF_OP
8908 (SUBWORD_SYNC_OP): Likewise.
8909 (OP_AND_FETCH_WORD): Likewise.
8911 2010-08-10 Xinliang David Li <davidxl@google.com>
8913 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
8914 compute max/min offset in address.
8916 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
8918 * ira-live.c: Include sbitmap.h.
8919 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
8920 Compress live ranges even more.
8922 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
8924 * coverage.c (ctr_labels): Delete.
8926 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
8929 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
8930 test here from arm_gen_load_multiple_1.
8931 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
8932 multiple_operation_profitable_p.
8934 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
8936 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
8937 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
8939 2010-08-10 Richard Henderson <rth@redhat.com>
8941 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
8942 after saving registers. Assert that SSE registers are only saved
8943 with a sufficiently aligned frame.
8944 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
8945 remove stack_realign_fp handling.
8946 (ix86_expand_prologue): Save int registers before stack_realign_fp,
8947 and do not mark the stack alignment as frame related.
8948 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
8950 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
8951 saves when re-aligning the stack.
8953 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
8955 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
8956 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
8957 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
8959 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
8961 * dwarf2out.c (struct die_struct): Move die_tag to the end.
8963 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
8965 * config/arm/iterators.md: New file.
8966 * config/arm/arm.md: Include iterators.md.
8967 (QHSI): Move to new file.
8968 (LTUGEU, cnb, optab, ior_xor): Likewise.
8969 * config/arm/iwmmxt.md (VMMX): Move to new file.
8970 (VSHFT, MMX_char): Likewise.
8971 * config/arm/neon.md (VD): Move to new file.
8972 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
8973 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
8974 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
8975 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
8976 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
8977 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
8978 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
8979 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
8980 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
8981 (Is_d_reg, V_mode_nunits): Likewise.
8982 * config/arm/vec-common.md (VALL): Move to new file.
8983 (VALLW, VINT, VINTW): Likewise.
8985 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
8988 * combine.c (make_compound_operation): Don't try to convert
8989 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
8991 2010-08-10 Richard Guenther <rguenther@suse.de>
8993 * tree.h (get_object_alignment): Adjust prototype.
8994 * builtins.c (get_object_alignment): Return unsigned int,
8995 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
8996 and TARGET_MEM_REF properly.
8997 (get_pointer_alignment): Adjust.
8998 * emit-rtl.c (get_mem_align_offset): Adjust comment.
8999 (set_mem_attributes_minus_bitpos): Adjust.
9000 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
9002 2010-08-10 Richard Guenther <rguenther@suse.de>
9004 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
9005 (copy_prop_visit_assignment): Simplify.
9006 (copy_prop_visit_stmt): Also visit assignments from
9008 (copy_prop_visit_phi_node): Use operand_equal_p.
9010 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
9012 * ipa-split.c (find_split_points): Free stack.
9014 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
9016 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
9017 * tree.c (tree_node_kind): Delete corresponding entries.
9019 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
9021 * alias.c (may_alias_p): Remove unused ret.
9023 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
9025 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
9026 alias_sets_conflict_p.
9027 (walk_mems_1): Moved from alias.c.
9028 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
9030 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
9031 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
9032 * alias.c (walk_mems_2): Moved to ddg.c.
9033 (walk_mems_1): Ditto.
9034 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
9036 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
9038 *(may_alias_p): New function to check whether two memory expression
9039 may alias or not. Currently used in buidling inter-iteration memory
9041 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
9042 (insn_alias_sets_conflict_p): Removed
9043 *rtl.h (may_alias_p): New function prototype.
9045 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
9047 * tree.c (nreverse): Assert that we don't have a BLOCK.
9049 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
9051 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
9052 * config/arm/arm.c (arm_get_pcs_model): Likewise.
9053 * config/avr/avr.c (init_cumulative_args): Likewise.
9054 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9055 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9056 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
9057 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
9058 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
9059 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9060 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9061 * dwarf2out.c (gen_subprogram_die): Likewise.
9062 * function.c (allocate_struct_function): Likewise.
9063 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
9064 (deserves_ellipsis): Delete.
9066 2010-08-09 Richard Guenther <rguenther@suse.de>
9068 * tree-ssa-copy.c (cached_last_copy_of): Remove.
9069 (valueize_val): New function.
9070 (get_last_copy_of): Remove.
9071 (set_copy_of_val): Simplify.
9072 (dump_copy_of): Likewise.
9073 (copy_prop_visit_cond_stmt): Use valueize_val.
9074 (copy_prop_visit_phi_node): Properly handle unvisited names.
9075 Drop code managing copy-of chains.
9076 (init_copy_prop): Adjust.
9077 (fini_copy_prop): Likewise.
9078 (execute_copy_prop): Remove obsolete comment.
9080 2010-08-09 Richard Guenther <rguenther@suse.de>
9083 * function.c (gimplify_parameters): Do not clear addressable
9084 bit of the original parameter.
9086 2010-08-09 Richard Guenther <rguenther@suse.de>
9089 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
9090 alignment from MEM_REF offset only if we took it from the
9093 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
9095 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
9097 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9099 * c-tree.h (build_arg_info): Declare.
9100 * c-decl.c (build_arg_info): Define.
9101 (get_parm_info): Call it. Delete initialization code.
9102 * c-parser.c (c_parser_parms_declarator): Likewise.
9103 (c_parser_parms_list_declaractor): Likewise.
9105 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9107 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
9108 (struct c_arg_info): Change type of tags field.
9109 * c-decl.c (grokdeclarator): Update for changed type of tags field.
9110 (get_parm_info): Likewise.
9111 (store_parm_decls_newstyle): Likewise.
9113 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9115 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
9116 (branch_island_list): Delete.
9117 (branch_islands): Declare.
9118 (add_compiler_branch_island): Adjust for branch_islands instead of
9120 (macho_branch_islands): Likewise.
9121 (no_previous_def): Likewise.
9122 (get_prev_label): Likewise.
9124 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9127 * gthr-posix.h (__gthread_start): Delete.
9128 (__gthread_active_init): Use pthread_default_stacksize_np instead of
9129 pthread_create to determine if hpux pthreads are active.
9130 * gthr-posix95.h (__gthread_start): Delete.
9131 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
9133 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
9135 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
9136 _WIN64 not expanded.
9138 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
9139 H.J. Lu <hongjiu.lu@intel.com>
9142 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
9143 to output 32bit SFmode immediate as 8 byte sign extended value.
9145 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9147 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
9148 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
9149 (SUBWORD_BOOL_CAS): Likewise.
9150 (SUBWORD_SYNC_OP): Likewise.
9151 (SUBWORD_TEST_AND_SET): Likewise.
9152 (FETCH_AND_OP_WORD): Parenthesise INF_OP
9153 (SUBWORD_SYNC_OP): Likewise.
9154 (OP_AND_FETCH_WORD): Likewise.
9156 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9158 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
9159 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
9160 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
9161 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
9163 (cortex_a9_sched_adjust_cost): New function.
9164 (xscale_sched_adjust_cost): New function.
9165 * config/arm/arm-protos.h (struct tune_params): New field
9167 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
9169 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
9172 * config/sparc/sparc.c (function_arg_advance): Always take into account
9173 the padding, if any.
9175 2010-08-06 Richard Guenther <rguenther@suse.de>
9177 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
9178 (dump_lattice_value): Dump it.
9179 (get_default_value): Adjust.
9180 (get_constant_value): Likewise.
9181 (set_value_varying): Likewise.
9182 (set_lattice_value): Make sure to not go up the lattice
9183 with bitwise constant values.
9184 (get_value_for_expr): Handle ADDR_EXPRs.
9185 (value_to_double_int): New function.
9186 (get_value_from_alignment): Likewise.
9187 (do_dbg_cnt): Adjust.
9188 (ccp_lattice_meet): Handle partially constant values.
9189 (bit_value_unop_1): New function.
9190 (bit_value_binop_1): Likewise.
9191 (bit_value_unop): Likewise.
9192 (bit_value_binop): Likewise.
9193 (evaluate_stmt): Track partially constant values if
9194 flag_tree_bit_ccp is set.
9195 (ccp_fold_stmt): Dump if we folded a predicate.
9196 (ccp_visit_stmt): Adjust.
9197 * common.opt (ftree-bit-ccp): New flag.
9198 * doc/invoke.texi (ftree-bit-ccp): Document.
9199 * opts.c (decode_options): Enable bit-CCP at -O1.
9201 2010-08-06 Alan Modra <amodra@gmail.com>
9203 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
9204 and -mrelocatable-lib description.
9206 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
9208 From Martin Thuresson <martint@google.com>
9209 * postreload.c (reload_cse_simplify_operands): Use
9210 SET_REGNO_RAW instead of SET_REGNO.
9211 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
9213 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
9214 instead of SET_REGNO.
9215 * rtl.h (SET_REGNO_RAW): New macro.
9217 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
9219 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
9220 computations. Fix formatting issues.
9221 (num_sign_bit_copies1): Likewise.
9222 (canonicalize_condition): Likewise.
9224 2010-08-05 Richard Henderson <rth@redhat.com>
9226 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
9227 (floor_log2): Use clz_hwi.
9228 (exact_log2): Use ctz_hwi.
9229 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
9230 * builtins.c (fold_builtin_bitop): Use them.
9231 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9232 * combine.c (get_pos_from_mask): Use ctz_hwi.
9233 * double-int.c (double_int_ctz): Likewise.
9234 * explow.c (force_reg): Likewise.
9235 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
9237 2010-08-05 Richard Henderson <rth@redhat.com>
9240 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
9241 the alignment constant is properly sign-extended.
9243 2010-08-05 Richard Guenther <rguenther@suse.de>
9245 * expr.c (store_expr): Use emit_block_move only if both
9246 source and target are MEMs. Use store_bit_field if only
9247 the target is a MEM.
9249 2010-08-05 Richard Henderson <rth@redhat.com>
9252 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
9253 (INCOMING_RETURN_ADDR_RTX): Likewise.
9254 (dwarf2out_do_frame): Remove conditional compilation.
9255 (dwarf2out_frame_init): Likewise.
9257 2010-08-05 Nicolas Setton <setton@adacore.com>
9259 * gcov.c (flag_display_progress): New static variable.
9260 (main): Display progress info on standard output if requested.
9261 (options): Add -d/--display-progress.
9262 (print_usage): Print them.
9263 (process_args): Handle them.
9264 * doc/gcov.texi: Document them.
9266 2010-08-05 Martin Jambor <mjambor@suse.cz>
9268 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
9269 (ipcp_insert_stage): Redirect only edges not flagged with
9270 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
9271 discovered constants.
9273 2010-08-05 Martin Jambor <mjambor@suse.cz>
9275 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
9276 (struct ipa_param_descriptor): New fields types and
9277 cannot_devirtualize.
9278 (ipa_param_cannot_devirtualize_p): New function.
9279 (ipa_param_types_vec_empty): Likewise.
9280 (ipa_make_edge_direct_to_target): Declare.
9281 * ipa-cp.c: Fixed first stage driver name in initial comment,
9282 described devirtualization there too.
9283 (ipcp_analyze_node): Call ipa_analyze_params_uses.
9284 (ipcp_print_all_lattices): Print devirtualization info.
9285 (ipa_set_param_cannot_devirtualize): New function.
9286 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
9288 (ipcp_init_stage): Merged into...
9289 (ipcp_generate_summary): ...its caller.
9290 (ipcp_change_tops_to_bottom): Also process type lists.
9291 (ipcp_add_param_type): New function.
9292 (ipcp_copy_types): Likewise.
9293 (ipcp_propagate_types): Likewise.
9294 (ipcp_propagate_stage): Also propagate types.
9295 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
9296 Also return true if propagated types require it.
9297 (ipcp_update_callgraph): Dump redirection info.
9298 (ipcp_process_devirtualization_opportunities): New function.
9299 (ipcp_const_param_count): Include known type information.
9300 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
9301 on new node. Fixed formatting.
9302 * ipa-prop.c (make_edge_direct_to_target): Renamed to
9303 ipa_make_edge_direct_to_target and changed all callers. Made
9305 (ipa_node_duplication_hook): Duplicate types vector.
9306 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
9307 redirect outgoing calls for which we can't get a decl from the
9308 statement. Check that we can get a decl from the call statement.
9309 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9310 ipa_analyze_params_uses only when ipa-cp is disabled.
9311 * tree-inline.c (get_indirect_callee_fndecl): Removed.
9312 (expand_call_inline): Do not call get_indirect_callee_fndecl.
9313 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
9314 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
9316 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
9318 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
9319 temporary. Emit move from temporary to accum, so REG_EQUAL note will
9320 be attached to this insn in correct mode.
9322 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
9324 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
9325 using REGNO of base_reg directly.
9327 2010-08-05 Jie Zhang <jie@codesourcery.com>
9329 PR tree-optimization/45144
9330 * tree-sra.c (type_consists_of_records_p): Return false
9331 if the record contains bit-field.
9333 2010-08-04 Richard Henderson <rth@redhat.com>
9335 * config/i386/i386.c (struct ix86_frame): Remove padding and
9336 to_allocate members.
9337 (ix86_compute_frame_layout): Don't store them.
9338 (ix86_can_use_return_insn_p): Use a more direct and more obviously
9339 correct condition for the position of the stack pointer.
9340 (ix86_expand_prologue): Compute remaining stack allocation based
9341 on the ultimate stack pointer offset.
9342 (ix86_expand_epilogue): Use more obvious expressions testing for
9343 the stack pointer already pointing to the saved registers.
9345 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
9346 duplication deconstructing the frame pointer. Simplify
9347 deallocation of the local stack frame.
9349 * reg-notes.def (CFA_EXPRESSION): New.
9350 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9351 (dwarf2out_frame_debug_cfa_expression): New.
9352 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
9354 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
9355 * config/i386/i386.c (ix86_expand_prologue): Set it.
9356 (ix86_expand_epilogue): Clear it.
9357 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
9358 context, add REG_CFA_EXPRESSION notes.
9360 * config/i386/i386.h (struct machine_frame_state): Rename from
9361 machine_cfa_state. Add members tracking SP and FP regardless
9362 of the current CFA register.
9363 (ix86_cfa_state): Remove.
9364 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
9365 and sse_reg_save_offset members.
9366 (ix86_compute_frame_layout): Set them.
9367 (gen_push): Increment sp_offset too.
9368 (choose_baseaddr_len, choose_baseaddr): New.
9369 (ix86_emit_save_reg_using_mov): New.
9370 (ix86_emit_save_regs_using_mov): Use it.
9371 (ix86_emit_save_sse_regs_using_mov): Likewise.
9372 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
9373 compare vs the saved red_zone_offset.
9374 (pro_epilogue_adjust_stack): Adjust sp_offset.
9375 (ix86_adjust_stack_and_probe): Likewise.
9376 (ix86_expand_prologue): Set up, use, and validate the new
9377 frame_state_info members. Use gen_frame_mem.
9378 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
9379 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
9380 new frame_state_info members.
9381 (ix86_emit_leave): Likewise.
9382 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
9383 out-of-range stack pointer offsets here.
9384 (ix86_emit_restore_sse_regs_using_mov): Likewise.
9385 (ix86_expand_epilogue): Use and validate the new frame_state_info
9386 members. Break up and simplify the logic selecting the
9387 restore_regs_via_mov code path. Ensure that there will be no
9388 out-of-range stack pointer offsets.
9390 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
9392 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
9393 argument name to reflect the expected tree; fix indentation.
9394 (ix86_asm_output_function_label): Output the entire 32-bit
9395 ms_hook here as bytes ...
9396 (ix86_expand_prologue): ... not here as insns. Attach the
9397 unwind info for the ms_hook to a blockage insn.
9398 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
9399 (ix86_ms_bitfield_layout_p): Fix indentation.
9400 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
9402 * config/i386/i386.c (ix86_using_red_zone): New.
9403 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
9404 ix86_expand_prologue, ix86_force_to_memory): Use it.
9406 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
9407 saving the int registers.
9409 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
9410 and DWARF2_UNWIND_INFO conditional compilation.
9412 2010-08-04 Richard Henderson <rth@redhat.com>
9415 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
9416 an is_naming_typedef_decl.
9418 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
9420 PR rtl-optimization/45162
9421 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
9422 * dce.c (word_dce_process_block): Likewise.
9424 2010-08-04 Steve Ellcey <sje@cup.hp.com>
9427 * config/ia64/constraints.md (Z): New.
9428 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
9429 (xfreg_or_signed_fp01_operand): New.
9430 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
9431 with fr_reg_or_signed_fp01_operand and constraint G with Z.
9436 (adddf3_trunc): Ditto.
9438 (*subdf3_trunc): Ditto.
9440 (*madddf4_trunc): Ditto.
9442 (*msubdf4_trunc): Ditto.
9443 (addxf3): Replace xfreg_or_fp01_operand with
9444 xfreg_or_signed_fp01_operand and constraint G with Z.
9445 (*addxf3_truncsf): Ditto.
9446 (*addxf3_truncdf): Ditto.
9448 (*subxf3_truncsf): Ditto.
9449 (*subxf3_truncdf): Ditto.
9451 (*maddxf4_truncsf): Ditto.
9452 (*maddxf4_truncdf): Ditto.
9454 (*msubxf4_truncsf): Ditto.
9455 (*msubxf4_truncdf): Ditto.
9457 2010-08-04 Richard Guenther <rguenther@suse.de>
9459 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
9460 if either alias-set is zero.
9462 2010-08-04 Richard Guenther <rguenther@suse.de>
9464 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
9465 * tree-ssa-ccp.c: ... here.
9466 * tree-ssa-copy.c: ... and here.
9467 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
9468 value_range_t): Move ...
9469 * tree-vrp.c: ... here.
9470 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
9471 (substitute_and_fold): Adjust prototype.
9472 * tree-ssa-propagate.c (replace_uses_in): Adjust.
9473 (replace_phi_args_in): Likewise.
9474 (substitute_and_fold): Take callback to query lattice instead
9475 of pointer to lattice. Replace SSA name defs with lattice
9477 * tree-ssa-ccp.c (ccp_finalize): Adjust.
9478 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
9479 (get_value): New function.
9480 (fini_copy_prop): Adjust.
9481 * tree-vrp.c (vrp_finalize): Adjust.
9483 2010-08-04 Richard Guenther <rguenther@suse.de>
9486 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
9487 points-to set for original MEM_REF.
9489 2010-08-04 Richard Guenther <rguenther@suse.de>
9491 * tree-ssa-ccp.c (get_constant_value): New function.
9492 (get_rhs_assign_op_for_ccp): Remove.
9493 (valueize_op): New function.
9494 (ccp_fold): Use get_constant_value and valueize_op.
9495 (fold_const_aggregate_ref): Likewise.
9496 (ccp_fold_stmt): Likewise.
9497 (visit_assignment): Simplify.
9499 2010-08-04 Richard Guenther <rguenther@suse.de>
9501 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
9502 * double-int.h (double_int_ctz): Declare.
9503 * double-int.c (double_int_ctz): New function.
9505 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
9507 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
9509 picochip_expand_movmemhi : Expand movmem pattern.
9510 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
9512 * config/picochip/picochip.md (movmemhi) : New pattern.
9514 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
9516 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
9518 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
9520 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
9521 NEG as operand of a MULT by merging it with the other operand.
9522 * combine.c (make_compound_operation): Use trunc_int_for_mode when
9523 generating a MULT with constant. Canonicalize PLUS and MINUS involving
9525 * config/arm/constraints.md (M): Examine only 32 bits of a
9527 * config/arm/predicates.md (power_of_two_operand): Likewise.
9529 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9531 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
9534 2010-08-03 Jan Hubicka <jh@suse.cz>
9536 * ipa-split.c (struct split_point): Add split_part_set_retval.
9537 (find_retval): Forward declare.
9538 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
9539 (consider_split): Compute current->split_part_set_retval.
9540 (visit_bb): Do not look into return value.
9541 (split_function): Handle !split_part_set_retval
9543 2010-08-03 Martin Jambor <mjambor@suse.cz>
9545 * tree-sra.c (completely_scalarize_record): New parameter REF, create
9546 its own access->expr intead of using build_ref_for_offset.
9548 2010-08-03 Joseph Myers <joseph@codesourcery.com>
9550 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
9551 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
9552 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
9553 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
9554 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
9555 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
9556 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
9557 DEFAULT_SWITCH_TAKES_ARG.
9558 * config/rx/rx.opt (-patch=): Remove option.
9559 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
9560 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
9561 * doc/invoke.texi (RX Options): Remove -patch=.
9562 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
9563 (option_map): Remove --profile-blocks, --quiet and --silent.
9565 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
9567 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
9568 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
9569 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
9570 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
9571 Update calls to ix86_expand_compare and ix86_expand_branch.
9572 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
9573 ix86_expand_compare.
9574 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
9575 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
9577 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
9578 and ix86_compare_op1. Update calls to ix86_expand_compare.
9579 (ix86_expand_int_movcc): Ditto.
9580 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
9581 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
9582 (ix86_expand_setcc): Ditto.
9583 (ix86_expand_compare): Remove prototype.
9584 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
9585 ix86_compare_op0 and ix86_compare_op1. Update calls
9586 to ix86_expand_branch to directly pass operands[1] and operands[2].
9587 (cbranchxf4): Ditto.
9588 (cbranch<MODEF:mode>4): Ditto.
9589 (cbranchcc4): Ditto.
9590 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
9591 Update calls to ix86_expand_setcc to directly pass operands[2] and
9594 (cstore<MODEF:mode>4): Ditto.
9597 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
9600 * caller-save.c (save_call_clobbered_regs): Remove regs from
9601 hard_regs_saved when they are set.
9603 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
9606 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
9609 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
9611 * common.opt (ftree-loop-distribute-patterns): New.
9612 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
9613 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
9615 * tree-data-ref.c (stores_zero_from_loop): New.
9616 * tree-data-ref.h (stores_zero_from_loop): Declared.
9617 * tree-loop-distribution.c (tree_loop_distribution): Call
9618 stores_zero_from_loop.
9619 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
9621 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
9623 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
9626 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
9627 * config/arm/arm.c (thumb1_code): New variable.
9628 (arm_override_options): Set it.
9629 (thumb1_final_prescan_insn): Keep track of condition code status.
9630 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
9631 jumps that depend on them.
9632 * config/arm/arm.h (thumb1_code): Declare variable.
9633 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
9634 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
9636 (CC_STATUS_INIT): New macro.
9637 * config/arm/constraints.md (Pd): New constraint.
9638 * config/arm/predicates.md (noov_comparison_operator): New predicate.
9639 * config/arm/arm.md (is_thumb1): New define_attr.
9640 (conds): Set default to "clob" when generating Thumb1 code.
9641 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
9642 code are set. Use two-operand assembly syntax.
9643 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
9645 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
9646 codes are set. Use two-operand assembly syntax.
9647 (zero_extendhisi splitter): Remove constraints.
9648 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
9649 thumb1_movsf_insn): Set conds attribute as appropriate.
9650 (cbranchsi4_insn): Use condition code status from struct
9651 machine_function to determine whether the comparison can be eliminated.
9652 Discourage the alternative using high registers.
9653 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
9654 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
9655 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
9656 subsi3_cbranch): Delete.
9657 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
9658 one subtract and one cbranch insn.
9660 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
9661 thumb2_movdf_soft_insn): Delete patterns.
9662 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
9663 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
9664 (pool_range, neg_pool_range): Use them to define defaults.
9665 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
9666 and allow for TARGET_32BIT.
9669 * config/arm/arm.h (arm_regs_in_sequence): Declare.
9670 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
9671 load_multiple_sequence, store_multiple_sequence): Delete
9673 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
9675 * config/arm/ldmstm.md: New file.
9676 * config/arm/arm.c (arm_regs_in_sequence): New array.
9677 (load_multiple_sequence): Now static. New args SAVED_ORDER,
9678 CHECK_REGS. All callers changed.
9679 If SAVED_ORDER is nonnull, copy the computed order into it.
9680 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
9681 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
9682 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
9683 If SAVED_ORDER is nonnull, copy the computed order into it.
9684 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
9685 like REGS. Handle Thumb mode.
9686 (arm_gen_load_multiple_1): New function, broken out of
9687 arm_gen_load_multiple.
9688 (arm_gen_store_multiple_1): New function, broken out of
9689 arm_gen_store_multiple.
9690 (arm_gen_multiple_op): New function, with code from
9691 arm_gen_load_multiple and arm_gen_store_multiple moved here.
9692 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
9693 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
9695 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
9696 * config/arm/predicates.md (commutative_binary_operator): New.
9697 (load_multiple_operation, store_multiple_operation): Handle more
9698 variants of these patterns with different starting offsets. Handle
9700 * config/arm/arm.md: Include "ldmstm.md".
9701 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
9702 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
9703 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
9705 * config/arm/ldmstm.md: New file.
9706 * config/arm/arm-ldmstm.ml: New file.
9708 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
9709 if statement which adds extra costs to frame-related expressions.
9711 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9713 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
9715 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
9718 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
9720 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
9721 split V4SI operands.
9723 2010-08-01 Anatoly Sokolov <aesok@post.ru>
9725 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
9726 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
9727 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
9728 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
9730 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
9732 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
9735 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
9737 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
9738 used in the call to optab_for_tree_code. Fix the second
9739 is_widening_mult_p call. Check that both unwidened operands
9742 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
9744 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
9746 2010-07-31 Anatoly Sokolov <aesok@post.ru>
9748 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
9750 2010-07-30 DJ Delorie <dj@redhat.com>
9752 * config/rx/predicates.md (rx_constshift_operand): New.
9753 * config/rx/rx.md (zs_cond): New.
9754 (cbranchsi4): Remove mode.
9755 (*cbranchsi4_<code>): Likewise.
9756 (*tstbranchsi4_<code>): New.
9757 (*tstbranchsi4r_<code>): New.
9758 (*tstbranchsi4m_eq): New.
9759 (*tstbranchsi4m_ne): New.
9760 (cbranchsf4): Remove mode.
9761 (*cbranchsf4_<code>): Likewise.
9763 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
9765 * rtlanal.c (simplify_subreg_regno): Don't treat
9766 HARD_FRAME_POINTER_REGNUM specially.
9768 2010-07-30 Joseph Myers <joseph@codesourcery.com>
9770 * common.opt (-G): Don't define option here.
9771 * config/g.opt: New.
9772 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
9773 rs6000/powerpc and score targets.
9774 * opts.c (common_handle_option): Don't handle -G here.
9775 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
9776 * config/frv/frv.c (frv_handle_option): Handle -G.
9777 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
9778 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
9779 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
9780 * config/mips/mips.c (mips_handle_option): Handle -G.
9781 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
9782 * config/score/score.c (score_handle_option): Handle -G.
9784 2010-07-30 Anatoly Sokolov <aesok@post.ru>
9786 * config/mmix/mmix.c: Include basic-block.h.
9788 2010-07-30 Jakub Jelinek <jakub@redhat.com>
9791 PR rtl-optimization/45137
9792 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
9794 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
9796 * combine.c (next_nonnote_nondebug_insn): Removed.
9797 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
9798 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
9799 * sched-deps.c (sched_analyze_insn): Likewise.
9800 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
9801 * rtlanal.c (canonicalize_condition): Likewise.
9802 * postreload.c (reload_combine_recognize_pattern): Likewise.
9803 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
9805 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
9807 * config/i386/i386.md (int_cond): Remove code iterator.
9809 (cbranch<mode>4): Use ordered_comparison_operator predicate
9811 (cstore<mode>4): Ditto for operator1.
9812 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
9813 (add<mode>cc): ditto.
9815 2010-07-30 Richard Guenther <rguenther@suse.de>
9818 * expr.c (expand_expr_real_1): Check for not handled base address.
9820 2010-07-30 Richard Guenther <rguenther@suse.de>
9822 * ipa-prop.c (ipa_modify_formal_parameters): Use
9823 build_distinct_type_copy.
9825 2010-07-30 Anthony Green <green@moxielogic.com>
9827 * config/moxie/rtems.h: New file.
9828 * config.gcc: Add moxie-rtems support.
9830 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
9832 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
9833 df flags as in run_fast_df_dce.
9835 2010-07-29 Jakub Jelinek <jakub@redhat.com>
9838 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
9840 * rtl.def (NOTE): Swap operands 4 and 5.
9841 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
9842 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
9844 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
9846 2010-07-29 Jakub Jelinek <jakub@redhat.com>
9849 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
9850 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
9851 (gen_subprogram_die): Likewise. Remove it when removing declaration's
9853 (gen_decl_die): Change return type to dw_die_ref, return what
9854 gen_formal_parameter_die returned.
9856 2010-07-29 Martin Jambor <mjambor@suse.cz>
9858 * dbgcnt.def (eipa_sra): New counter.
9859 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
9861 2010-07-29 Xinliang David Li <davidxl@google.com>
9864 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
9867 2010-07-29 Richard Guenther <rguenther@suse.de>
9869 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
9870 (TV_TREE_STORE_CCP): Likewise.
9871 (TV_TREE_REDPHI): Likewise.
9873 2010-07-29 Richard Guenther <rguenther@suse.de>
9875 * double-int.h (double_int_and_not): New function.
9876 * combine.c (try_combine): Use it.
9877 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
9879 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
9881 PR rtl-optimization/42575
9882 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
9883 Argument AU removed. All callers changed. Ignore artificial refs.
9884 Use return value of df_word_lr_simulate_defs to decide whether an insn
9886 (fast_dce): Rename arg to WORD_LEVEL.
9887 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
9889 (pass_fast_rtl_byte_dce): Delete.
9890 * dce.h (run_word_dce): Declare.
9891 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
9892 All callers changed. Simplify code to only deal with two-word regs.
9893 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
9894 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
9895 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
9896 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
9897 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
9898 (df_word_lr_mark_ref): Declare.
9899 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
9900 df_word_lr_simulate_uses): Declare or rename from byte variants.
9901 (df_byte_lr_simulate_artificial_refs_at_top,
9902 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
9903 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
9905 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
9906 (enum df_mm): Delete.
9907 * df-byte-scan.c: Delete file.
9908 * df-problems.c (df_word_lr_problem_data): Renamed from
9909 df_byte_lr_problem_data, all members deleted except for
9910 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
9911 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
9912 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
9913 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
9914 df_byte_lr_confluence_0): Delete functions.
9915 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
9917 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
9918 Don't initialize members that were deleted, don't try to discover data
9919 about registers. Ignore hard regs.
9920 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
9921 (df_word_lr_mark_ref): New function.
9922 (df_word_lr_bb_local_compute): Renamed from
9923 df_byte_bb_lr_local_compute; all callers changed. Use
9924 df_word_lr_mark_ref. Assert that artificial refs don't include
9925 pseudos. Ignore hard registers.
9926 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
9927 Assert that exit block uses don't contain pseudos.
9928 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
9929 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
9930 callers changed. Ignore hard regs.
9931 (df_word_lr_transfer_function): Renamed from
9932 df_byte_lr_transfer_function; all callers changed.
9933 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
9934 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
9936 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
9938 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
9939 confluence operator 0 set to NULL.
9940 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
9942 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
9943 Return bool, true if bitmap changed or insn otherwise necessary.
9944 All callers changed. Simplify using df_word_lr_mark_ref.
9945 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
9946 all callers changed. Simplify using df_word_lr_mark_ref.
9947 * lower-subreg.c: Include "dce.h"
9948 (decompose_multiword_subregs): Call run_word_dce if df available.
9949 * Makefile.in (lower-subreg.o): Adjust dependencies.
9950 (df-byte-scan.o): Delete.
9951 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
9953 2010-07-29 Richard Guenther <rguenther@suse.de>
9955 * tree.c (build_vector): Assert that the vector constant
9956 has enough elements.
9957 (build_vector_from_ctor): Pad with trailing zeros.
9959 2010-07-29 Richard Guenther <rguenther@suse.de>
9961 PR tree-optimization/45120
9962 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9963 Handle offset in DEREFs properly.
9964 (get_constraint_for_1): Handle MEM_REF offset properly.
9966 2010-07-29 Richard Guenther <rguenther@suse.de>
9969 * convert.c (convert_to_integer): Always use an unsigned
9970 type for narrowed negate and bitwise not.
9972 2010-07-29 Ira Rosen <irar@il.ibm.com>
9974 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
9975 to outer loop when creating reduction epilogue for double reduction,
9976 and switch back to the inner loop when updating the phi nodes.
9977 Update uses of outer loop exit phi nodes in double reduction (instead
9978 of uses of reduction).
9980 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
9982 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
9983 popcount on power7 and parity on power6 systems.
9984 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
9985 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
9988 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
9989 (UNSPEC_PARITY): Ditto.
9990 (SFDF): New iterator for SF/DF.
9991 (rreg2): New mode attribute for floating register constraint.
9992 (TARGET_FLOAT): New mode attribute for whether single/double float
9994 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
9996 (parity<mode>2_cmpb): New insn for parity on power6 and newer
9998 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
9999 pattern. Add support for fcpsgn instruction added in power6.
10000 (copysignsf3): Delete.
10001 (copysigndf3): Delete.
10002 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
10003 instead of if_then_else in RTL to avoid problems with -0.
10005 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
10006 of if_then_else to mirror scalar code.
10007 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
10010 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
10011 instead of if_then_else.
10013 2010-07-28 Xinliang David Li <davidxl@google.com>
10015 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
10016 (dump_cand): Dump var_before/after.
10017 (htab_inv_expr_eq): New function.
10018 (htab_inv_expr_hash): New function.
10019 (tree_ssa_iv_optimize_init): Support pseudo invariants.
10020 (add_candidate_1): consider base type precision.
10021 (set_use_iv_cost): New parameter.
10022 (adjust_setup_cost): Use profile information.
10023 (get_address_cost): Do not hard code width in computing address
10025 (compare_aff_trees): New function.
10026 (get_loop_invariant_expr_id): New function.
10027 (get_computation_cost_at): New parameter and use profile information.
10028 (get_computation_cost): New parameter.
10029 (determine_use_iv_cost_generic): Pass new parameter.
10030 (determine_use_iv_cost_address): Ditto.
10031 (determine_use_iv_cost_condition): Ditto.
10032 (autoinc_possible_for_pair): Ditto.
10033 (determine_use_iv_costs): More dumps.
10034 (iv_ca_get_num_inv_exprs): New function.
10035 (iv_ca_recount_cost): Consider loop invariants in register pressure
10037 (iv_ca_add_use): New parameter.
10038 (iv_ca_dump): Better dumping.
10039 (iv_ca_extend): New parameter.
10040 (try_add_cand_for): Attempt to get better partial solution.
10041 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
10042 (create_new-ivs): More dumps.
10043 (rewrite_use_compare): Ditto.
10044 (free_loop_data): More cleanup.
10045 (treee_ssa_iv_optimize_finalize): Ditto.
10047 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
10049 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
10050 * config/i386/i386.c (ix86_profile_before_prologue): New.
10051 (override_options): Add special handling for -mfentry.
10052 (ix86_function_regparm): Likewise.
10053 (ix86_function_sseregparm): Likewise.
10054 (ix86_frame_pointer_required): Likewise.
10055 (ix86_expand_prologue): Check for ms_hook_prologue.
10056 (x86_function_profiler): Adjust mcount output.
10057 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
10058 * config/i386/i386.opt (mfentry): New.
10059 * doc/invoke.texi (mfentry): Add documentation.
10060 * doc/tm.texi: Regenerated..
10061 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
10062 * final.c (final_start_function): Replace macro
10063 PROFILE_BEFORE_PROLOGUE by target hook.
10064 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10065 * target.def (profile_before_prologue): New hook.
10066 * targhooks.c (default_profile_before_prologue): New.
10067 * targhooks.h (default_profile_before_prologue): New.
10069 2010-07-28 Jakub Jelinek <jakub@redhat.com>
10072 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
10075 * dwarf2out.c (dwarf2out_var_location): Always consider
10076 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
10078 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
10080 PR rtl-optimization/45107
10081 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
10083 2010-07-28 Richard Guenther <rguenther@suse.de>
10085 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
10086 (set_lattice_value): Do not query an old default value.
10087 (get_value_for_expr): New function. Properly canonicalize
10089 (ccp_visit_phi_node): Use it.
10091 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
10093 * config/arm/arm.c (arm_pcs_default): Remove static.
10094 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
10095 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
10096 (arm_pcs_default): Declare.
10098 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
10100 * config/rs6000/rs6000.c (rs6000_override_options):
10101 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
10102 ... to darwin_rs6000_override_options.
10103 (rs6000_return_in_memory): Update preceding comment for darwin
10104 64 bit ABI. Use TARGET_MACHO inline.
10105 (rs6000_darwin64_struct_check_p): New.
10106 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
10107 (function_arg): Likewise.
10108 (rs6000_arg_partial_bytes): Likewise.
10109 (rs6000_function_value): Likewise.
10111 2010-07-28 Andi Kleen <ak@linux.intel.com>
10113 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
10115 2010-07-28 Richard Guenther <rguenther@suse.de>
10117 PR middle-end/44903
10118 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
10119 targets try harder to not generate unaligned accesses.
10121 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
10123 PR rtl-optimization/45101
10124 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
10127 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
10129 PR tree-optimization/44885
10130 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
10131 with non-aliased component.
10133 2010-07-28 Joseph Myers <joseph@codesourcery.com>
10135 * config/darwin-driver.c (SWITCH_TAKES_ARG,
10136 WORD_SWITCH_TAKES_ARG): Remove.
10137 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
10138 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
10139 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
10140 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
10141 definitions from gcc.c.
10142 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
10144 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
10145 Move to defaults.h.
10146 * opts-common.c: Include tm.h.
10147 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
10148 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
10149 Handle more than one argument. Set canonical_option_num_elements.
10150 (decode_cmdline_options_to_array): Set
10151 canonical_option_num_elements and trailing elements of
10153 * opts.h (struct cl_decoded_option): Allow four elements in
10154 canonical_option. Add field canonical_option_num_elements.
10155 * Makefile.in (opts-common.o): Update dependencies.
10157 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
10159 PR middle-end/44790
10160 PR middle-end/44993
10161 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
10162 sure the base has address_mode before adding the offset.
10164 2010-07-27 Xinliang David Li <davidxl@google.com>
10166 * tree-flow.h (create_mem_ref): Add one new parameter.
10167 * tree-ssa-address.c (create_mem_ref): New parameter.
10168 (addr_to_parts): Ditto.
10169 (move_variant_to_index): New function.
10170 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
10172 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
10174 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
10176 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
10177 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
10178 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
10179 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
10180 CODE_LABELs and NOTEs.
10181 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
10182 * combine.c (try_combine): Likewise.
10183 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10184 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
10186 2010-07-27 Joseph Myers <joseph@codesourcery.com>
10188 * coretypes.h (struct cl_option_handlers): Declare.
10189 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
10190 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
10191 * langhooks-def.h (lhd_handle_option): Declare.
10192 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
10193 * langhooks.c (lhd_handle_option): New.
10194 * langhooks.h (struct lang_hooks): Update prototype and return
10195 value type of handle_option hook.
10196 * optc-gen.awk: Generate target_flags_explicit definition for the
10198 * opts-common.c: Include diagnostic.h.
10199 (handle_option): Move from opts.c. Update prototype and return
10200 value type. Use handlers structure.
10201 (read_cmdline_option): Move from opts.c. Update prototype. Use
10202 handlers structure.
10203 (set_option): Move from opts.c.
10204 * opts.c (common_handle_option): Update prototype and return value
10205 type. Update calls to handle_option and enable_warning_as_error.
10206 (unknown_option_callback, post_handling_callback,
10207 lang_handle_option, target_handle_option): New.
10208 (handle_option, read_cmdline_option): Move to opts-common.c.
10209 (read_cmdline_options): Update prototype. Update call to
10210 read_cmdline_option.
10211 (decode_options): Initialize and use handlers structure.
10212 (set_option): Move to opts-common.c.
10213 (enable_warning_as_error): Update prototype. Update call to
10215 * opts.h (struct cl_option_handler_func, struct
10216 cl_option_handlers): New.
10217 (handle_option, enable_warning_as_error): Update prototypes.
10218 (read_cmdline_option): Declare.
10219 * Makefile.in (opts-common.o): Update dependencies.
10221 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10223 * config/arm/arm.c (params.h): Include.
10224 (arm_override_options): Tune gcse-unrestricted-cost.
10225 * config/arm/t-arm (arm.o): Define dependencies.
10227 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10230 PR middle-end/42574
10231 * basic-block.h (get_dominated_to_depth): Declare.
10232 * dominance.c (get_dominated_to_depth): New function, use
10233 get_all_dominated_blocks as a base.
10234 (get_all_dominated_blocks): Use get_dominated_to_depth.
10236 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
10237 (hoist_exprs): Remove.
10238 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
10239 (compute_code_hoist_vbeinout): Add debug print outs.
10240 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
10242 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
10243 quadratic behavior.
10244 * params.h (MAX_HOIST_DEPTH): New macro.
10245 * doc/invoke.texi (max-hoist-depth): Document.
10247 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10249 PR rtl-optimization/40956
10250 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
10253 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10256 PR middle-end/42574
10257 * config/arm/arm.c (legitimize_pic_address): Use
10258 gen_calculate_pic_address pattern to emit calculation of PIC address.
10259 (will_be_in_index_register): New function.
10260 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
10261 (thumb1_legitimate_address_p): Use it provided !strict_p.
10262 * config/arm/arm.md (calculate_pic_address): New expand and split.
10264 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10267 PR middle-end/42574
10268 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
10269 * config/arm/arm.md (define_split "J", define_split "K"): Make
10270 IRA/reload friendly.
10272 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10274 * gcse.c (insert_insn_end_basic_block): Update signature, remove
10276 (pre_edge_insert, hoist_code): Update.
10278 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10281 PR middle-end/42574
10282 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
10284 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10286 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
10288 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10290 PR rtl-optimization/40956
10292 PR middle-end/42574
10293 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
10295 (hoist_code): Count occurences in current block too.
10297 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10299 * gcse.c (struct expr:max_distance): New field.
10300 (doing_code_hoisting_p): New static variable.
10301 (want_to_gcse_p): Change signature. Allow constrained hoisting of
10302 simple expressions, don't change behavior for PRE. Set max_distance.
10303 (insert_expr_in_table): Set new max_distance field.
10304 (hash_scan_set): Update.
10305 (hoist_expr_reaches_here_p): Stop search after max_distance
10307 (find_occr_in_bb): New static function. Use it in ...
10308 (hoist_code): Calculate sizes of basic block before any changes are
10309 done. Pass max_distance to hoist_expr_reaches_here_p.
10310 (one_code_hoisting_pass): Set doing_code_hoisting_p.
10312 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
10313 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
10314 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
10316 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
10319 2010-07-27 Jeff Law <law@redhat.com>
10320 Maxim Kuvyrkov <maxim@codesourcery.com>
10322 * gcse.c (compute_transpout, transpout): Remove, move logic
10323 to prune_expressions.
10324 (compute_pre_data): Move pruning of trapping expressions ...
10325 (prune_expressions): ... here. New static function.
10326 (compute_code_hoist_data): Use it.
10327 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
10329 2010-07-27 Xinliang David Li <davidxl@google.com>
10331 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
10332 (rewrite_use_address): Adjust iv update position when needed.
10334 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
10336 * dbgcnt.def (hoist_insn): New debug counter.
10337 * gcse.c (hoist_code): Use it.
10339 2010-07-27 Xinliang David Li <davidxl@google.com>
10341 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
10342 (niter_for_single_dom_exit): Passes additional parameter.
10343 (iv_period): Fix comments.
10344 (may_eliminate_iv): Handles multiple exit loops properly.
10345 (free_tree_niter_desc): New function.
10346 (free_loop_data): Frees up loop iteration descriptors.
10348 2010-07-27 Jakub Jelinek <jakub@redhat.com>
10351 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
10352 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
10353 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
10354 (expand_one_var): Don't consider DECL_ALIGN for variables for
10355 which expand_one_stack_var_at has been already called.
10358 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
10359 constraints on IA-64.
10361 2010-07-27 Jie Zhang <jie@codesourcery.com>
10365 2010-07-23 Jie Zhang <jie@codesourcery.com>
10367 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
10368 false if ! tree_versionable_function_p.
10370 2010-07-27 Jakub Jelinek <jakub@redhat.com>
10372 * dwarf2out.c (add_data_member_location_attribute): Use
10373 add_AT_unsigned instead of add_AT_int if offset is non-negative.
10375 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
10377 * postreload.c (try_replace_in_use): New static function.
10378 (reload_combine_recognize_const_pattern): Use it here. Allow
10379 substituting into a final add insn, and substituting into a memory
10380 reference in an insn that sets the reg.
10382 2010-07-27 Joseph Myers <joseph@codesourcery.com>
10384 * common.opt (o): Add MissingArgError.
10385 * doc/options.texi (MissingArgError): Document.
10386 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
10387 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
10388 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
10389 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
10390 * langhooks.h (struct lang_hooks): Remove missing_argument.
10391 * optc-gen.awk: Handle MissingArgError and output new structure
10392 field initializers.
10393 * opts.c (read_cmdline_option): Use missing_argument_error field
10394 instead of missing_argument langhook.
10395 * opts.h (struct cl_option): Add missing_argument_error field.
10396 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
10398 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
10401 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
10402 Darwin64 ABI, for zero-sized objects.
10404 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
10409 Merge from Apple local 4.2.1.
10410 2005-05-11 Stan Shebs <shebs@apple.com>
10411 Fix 64-bit varargs for Darwin (Radar 4028089).
10412 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
10413 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10414 Add argument, add case for 8-byte register half-filled with a float.
10415 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
10416 single-precision floats specially.
10418 2010-07-27 Ira Rosen <irar@il.ibm.com>
10420 PR tree-optimization/44152
10421 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
10422 complex numbers for further check.
10423 (vect_supported_load_permutation_p): Check nodes with
10426 2010-07-27 Joseph Myers <joseph@codesourcery.com>
10428 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
10429 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
10430 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
10431 (LANG_HOOKS_INITIALIZER): Add new hooks.
10432 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
10433 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
10434 and complain_wrong_lang_p. Update init_options prototype.
10435 * c-objc-common.c (c_initialize_diagnostics): First call
10436 c_common_initialize_diagnostics.
10437 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
10438 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
10439 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
10440 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
10441 (hook_uint_void_0): New.
10442 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
10443 (hook_uint_void_0): New.
10444 * opts-common.c (decode_cmdline_option,
10445 decode_cmdline_options_to_array): Also fill in canonical_option field.
10446 * opts.c (complain_wrong_lang): Use langhook to determine whether
10447 to complain instead of special-casing LTO.
10448 (decode_options): Separate lang_mask determination with
10449 option_lang_mask hook from call of init_options hook.
10450 * opts.h (struct cl_decoded_option): Add canonical_option.
10452 2010-07-27 Jakub Jelinek <jakub@redhat.com>
10454 PR tree-optimization/45083
10455 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
10457 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
10459 * postreload.c (reload_combine_recognize_const_pattern): Move test
10460 for limiting the insn movement to the right scope.
10462 PR rtl-optimization/45051
10463 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
10464 than reg_mentioned_p.
10466 2010-07-26 Richard Henderson <rth@redhat.com>
10469 * tree-emutls.c: New file.
10470 * Makefile.in (OBJS-common): Add it.
10471 * tree-pass.h (pass_ipa_lower_emutls): Declare.
10472 * passes.c (init_optimization_passes): Add it.
10474 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
10475 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
10476 * expr.c (emutls_var_address): Delete.
10477 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
10478 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
10479 (emutls_finish): Delete.
10480 * toplev.c (compile_file): Don't call it.
10481 * tree.h (emutls_decl): Delete.
10482 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
10483 (emutls_finish, emutls_finalize_control_var): Delete.
10484 (emutls_object_type): Move to tree-emutls.c.
10485 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
10486 default_emutls_var_fields, get_emutls_object_type,
10487 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
10488 default_emutls_var_init): Likewise.
10489 (get_variable_section): Don't special case emutls.
10490 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
10491 default_elf_select_section, default_unique_section,
10492 default_encode_section_info): Likewise.
10493 * varpool.c (decide_is_variable_needed): Likewise.
10494 * gimple-iterator.c (update_call_edge_frequencies): New
10495 (gsi_insert_on_edge_immediate): Use it.
10496 (gsi_insert_seq_on_edge_immediate): Likewise.
10497 (gsi_commit_one_edge_insert): Likewise.
10499 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
10500 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
10501 (x86_64_elf_unique_section): Likewise.
10503 2010-07-26 Jan Hubicka <jh@suse.cz>
10505 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
10508 2010-07-26 Anatoly Sokolov <aesok@post.ru>
10510 * target.def (output_source_filename): New hook.
10511 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
10512 * doc/tm.texi: Regenerate.
10513 * toplev.c (output_file_directive) Remove function.
10514 * toplev.h (output_file_directive) Remove.
10515 * output.h (default_asm_output_source_filename,
10516 output_file_directive): Declare.
10517 * varasm.h (default_asm_output_source_filename,
10518 output_file_directive): New functions.
10520 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
10521 * config/mips/mips-protos.h (mips_output_filename): Remove.
10522 * config/mips/mips.c (mips_output_filename): Make Static.
10523 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
10525 2010-07-26 Richard Guenther <rguenther@suse.de>
10527 PR tree-optimization/43784
10528 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
10529 if the destination is used by the call.
10531 2010-07-26 Richard Guenther <rguenther@suse.de>
10533 PR middle-end/45073
10534 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
10535 SSA updating on being in SSA form.
10537 2010-07-26 Richard Guenther <rguenther@suse.de>
10539 PR middle-end/45056
10540 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
10542 2010-07-26 Richard Guenther <rguenther@suse.de>
10544 PR tree-optimization/45071
10545 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
10548 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
10550 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
10551 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
10552 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
10553 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
10554 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
10555 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
10556 save_r31, return_r31, save_interrupt, return_interrupt,
10557 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
10558 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
10559 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
10560 new ABI requirements.
10561 (save_r6_r9, L_callt_save_r6_r9): Remove.
10562 * config/v850/predicates.md (even_reg_operand, disp23_operand,
10563 const_float_1_operand const_float_0_operand): New Predicates.
10564 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
10565 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
10566 * config/v850/t-v850: Update multilibs for new target variants.
10567 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
10568 * config/v850/t-v850e: Likewise.
10569 * config/v850/v850.c (v850_issue_rate): New.
10570 (v850_strict_argument_naming): New.
10571 (function_arg): Modify to generate a different ABI.
10572 (print_operand): Update case 'z' to support float modes.
10573 (output_move_single): Modify to generate appropriate and better
10575 (v850_float_z_comparison_operator, v850_select_cc_mode,
10576 v850_float_nz_comparison_operator, v850_gen_float_compare,
10577 v850_gen_compare): New functions to support comparison of float values.
10578 (ep_memory_offset): Add support for V850E2 targets.
10579 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
10580 (INTERRUPT_REGPARM_NUM): Remove.
10581 (compute_register_save_size): Add extra case to save/restore long call.
10582 (use_prolog_function): New function to support prologue.
10583 (expand_prologue): Add support for V850E2 targets and modified
10584 as per the current ABI requirements.
10585 (expand_epilogue): Likewise.
10586 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
10587 (construct_save_jarl): Likewise.
10588 (construct_dispose_instruction): Update as per the current ABI
10590 (construct_prepare_instruction): Likewise.
10591 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
10592 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
10593 (CPP_SPEC): Updated to support v850e2 targets.
10594 (STRICT_ALIGNMENT): Modified.
10595 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
10596 (FIXED_REGISTERS): Likewise.
10597 (CALL_USED_REGISTERS): Likewise.
10598 (CONDITIONAL_REGISTER_USAGE): Updated.
10599 (HARD_REGNO_MODE_OK): Updated.
10600 (reg_class): Updated to add even registers.
10601 (REG_CLASS_NAMES): Likewise.
10602 (REG_CLASS_CONTENTS): Likewise.
10603 (REGNO_REG_CLASS): Updated for CC registers.
10604 (REG_CLASS_FROM_LETTER): Added support for even registers.
10605 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
10606 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
10607 ARG_POINTER_REGNUM): Updated.
10608 (FUNCTION_ARG_ADVANCE): Define.
10609 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
10610 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
10611 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
10612 (GO_IF_LEGITIMATE_ADDRESS): Updated.
10613 (SELECT_CC_MODE): Define.
10614 (REGISTER_NAMES): Updated to add psw and fcc registers.
10615 (ADDITIONAL_REGISTER_NAMES): Updated.
10616 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
10617 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
10618 * config/v850/v850.md (define_constants): Define new constants.
10619 (type): Update store,bit1,macc,div,fpu and single attributes.
10620 (cpu): New attribute.
10621 (cc): Add set_z attribute.
10622 (unsign23byte_load, sign23byte_load, unsign23hword_load,
10623 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
10624 23word_store): New instructions for 23-bit displacement load and store.
10625 (movqi_internal, movhi_internal): Update the attributes.
10626 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
10627 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
10629 (v850_tst1): Modified using CC_REGNUM.
10631 (cmpsi): Modified as define_expand from define_insn.
10632 (cmpsi_insn, cmpsf, cmpdf): New instructions.
10633 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
10634 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
10635 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
10636 one_cmplsi2): Clobber the CC_REGNUM register.
10637 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
10638 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
10639 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
10640 (setf_insn, set_z_insn, set_nz_insn): New instructions for
10642 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
10643 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
10645 (sasf_1, sasf_2): Remove.
10646 (sasf): New instruction.
10647 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
10648 targets. CC_REGNUM register is clobbered and attributes are
10650 (branch_z_normal, branch_z_invert, branch_nz_normal,
10651 branch_nz_invert): New branch related instructions.
10652 (jump): Updated the attributes.
10653 (switch): Update to support new targets. CC_REGNUM register is
10654 clobbered and attributes are updated.
10655 (call_internal_short, call_internal_long, call_value_internal_short,
10656 call_value_internal_long): Updated the attributes.
10657 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
10658 clobbered and attributes are updated.
10659 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
10660 Update to support new targets. CC_REGNUM register is clobbered.
10661 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
10663 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
10665 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
10666 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
10667 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
10668 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
10669 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
10670 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
10671 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
10672 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
10673 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
10674 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
10675 point instructions defined for V850e2v3 target.
10676 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
10677 Add support for V850E2 targets and CC_REGNUM register is clobbered.
10678 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
10679 support for new targets.
10680 * config/v850/v850-modes.def: New file.
10681 * config/v850/v850.opt(mstrict-align): Remove.
10682 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
10683 mv850e2v3): New command line options for V850.
10684 * config.gcc: Update the newly added files.
10685 * doc/invoke.texi: Update the newly added command line options for
10688 2010-07-26 Richard Guenther <rguenther@suse.de>
10690 PR tree-optimization/45052
10691 * ipa-pure-const.c (check_stmt): Check volatileness.
10693 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
10696 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
10697 * config/sparc/sparc.c: Include reload.h.
10698 (legitimize_tls_address): Rename into...
10699 (sparc_legitimize_tls_address): ...this.
10700 (legitimize_pic_address): Rename into...
10701 (sparc_legitimize_pic_address): ...this.
10702 (sparc_expand_move): Adjust to above renaming.
10703 (sparc_tls_referenced_p): Likewise.
10704 (sparc_legitimize_tls_address): Likewise.
10705 (sparc_legitimize_pic_address): Likewise.
10706 (sparc_legitimize_address): Likewise.
10707 (sparc_output_mi_thunk): Likewise.
10708 (sparc_legitimize_reload_address): New global function. Recognize
10709 (lo_sum (high ...) ...) patterns generated by earlier passes.
10710 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
10712 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
10715 * config/sparc/predicates.md (memory_reg_operand): Delete.
10716 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
10717 (*sync_compare_and_swap): Encode the address form in the pattern.
10718 (*sync_compare_and_swapdi_v8plus): Likewise.
10720 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
10722 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
10723 Streamline paragraph on compatibility with the system compiler.
10725 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
10727 PR middle-end/45035
10728 * alias.c (true_dependence_1): Fix thinko in merge of old
10729 true_dependence and canon_true_dependence.
10731 2010-07-23 Jan Hubicka <jh@suse.cz>
10733 * lto-streamer-out.c (write_symbol): Fix visibilities of external
10736 2010-07-23 Le-Chun Wu <lcwu@google.com>
10738 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
10739 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
10740 and an unnecessary assignment.
10741 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
10742 self-assign warning.
10743 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
10744 unnecessary self-init.
10746 2010-07-23 Richard Guenther <rguenther@suse.de>
10749 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
10750 for -flto and -fwhopr.
10752 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
10755 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
10756 (stmp-int-hdrs): Prefix/postfix headers by include_next.
10757 * config.gcc (user_headers_inc_next_pre): New.
10758 (user_headers_inc_next_post): Likewise.
10759 (*-w64-mingw*): Use for float.h post-fixing, and for
10760 stddef.h/stdarg.h pre-fixing by include_next.
10761 * configure.ac (user_headers_inc_next_post): New.
10762 (user_headers_inc_next_pre): New.
10763 * configure: Regenerated.
10765 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10767 * configure.ac: Don't disable TLS on Solaris 8/9 by default
10768 Set tga_func for Solaris 2/x86 resp. SPARC.
10769 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
10770 (LIB_THREAD_LDFLAGS_SPEC): Define.
10771 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
10772 * configure: Regenerate.
10773 * config.in: Regenerate.
10774 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
10775 -pthread, -threads, LIB_TLS_SPEC with -pthread.
10776 * doc/install.texi (Specific, *-*-solaris2*): Document use of
10777 alternate thread libraries on Solaris 8.
10778 Document TLS patch requirements.
10779 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
10783 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
10786 2010-07-23 Jakub Jelinek <jakub@redhat.com>
10788 * tree.h (struct tree_base): Add nameless_flag bitfield.
10789 (TYPE_NAMELESS, DECL_NAMELESS): Define.
10790 * omp-low.c (create_omp_child_function, scan_omp_parallel,
10791 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
10792 DECL_ARTIFICIAL where needed.
10793 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
10794 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
10795 has DECL_NAMELESS set.
10797 2010-07-23 Martin Jambor <mjambor@suse.cz>
10799 PR tree-optimization/44915
10800 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
10801 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
10802 (analyze_function): Likewise.
10804 2010-07-23 Martin Jambor <mjambor@suse.cz>
10806 PR tree-optimization/44914
10807 * tree-sra.c (sra_modify_function_body): Return true if CFG was
10808 changed, add purging dead eh edges.
10809 (ipa_sra_modify_function_body): Return true if CFG was changed,
10810 simplify purging dead eh edges.
10811 (modify_function): Return true if CFG was changed.
10812 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
10814 (ipa_early_sra): Likewise.
10816 2010-07-23 Jie Zhang <jie@codesourcery.com>
10819 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
10821 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
10822 false if ! tree_versionable_function_p.
10824 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
10826 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
10827 * ipa-pure-const.c (special_builtlin_state): Remove
10828 BUILT_IN_ARGS_INFO case.
10829 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
10830 * builtins.c (expand_builtin): Likewise.
10831 (expand_builtin_args_info): Remove.
10832 * doc/tm.texi (__builtin_args_info): Remove.
10833 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
10834 * doc/tm.text.in: Likewise.
10836 2010-07-23 Richard Guenther <rguenther@suse.de>
10838 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
10839 (lto_symtab_merge_decls_2): Likewise.
10840 * tree-ssa.c (useless_type_conversion_p): Likewise.
10841 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10842 * gimple.c (gtc_visited2, gtc_ob2): Remove.
10843 (struct type_pair_d): Make same_p an array indexed by mode.
10845 (lookup_type_pair): Update initialization.
10846 (struct sccs): Adjust same_p type.
10847 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
10849 (print_gimple_types_stats): Likewise.
10850 * gimple.h (enum gtc_mode): New.
10851 (gimple_types_compatible_p): Adjust prototype.
10853 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
10855 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
10856 again after processing insn.
10858 2010-07-23 Jie Zhang <jie@codesourcery.com>
10860 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
10861 proper words when !tree_versionable_function_p.
10863 2010-07-23 Richard Guenther <rguenther@suse.de>
10865 PR tree-optimization/45037
10866 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
10868 2010-07-23 Jie Zhang <jie@codesourcery.com>
10870 * doc/extend.texi: Remove IP2K from the description of naked attribute.
10873 2010-07-10 Andi Kleen <ak@linux.intel.com>
10876 * lto-opts.c (lto_write_options): Add NULL file_data argument to
10877 lto_get_section_name.
10878 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10879 * lto-streamer-out.c (produce_asm): Likewise.
10880 (copy_function): Likewise.
10881 (produce_symtab): Likewise.
10882 (produce_asm_for_decls): Likewise.
10883 * lto-streamer.c (lto_get_section_name): Add file_data argument.
10884 Rewrite to add random postfix to LTO sections.
10885 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
10886 (lto_get_section_name): Add file_data argument to prototype.
10888 2010-07-10 Andi Kleen <ak@linux.intel.com>
10890 * lto-section-in.c (lto_section_name): Synchronize names
10891 with lto_get_section_name.
10893 2010-07-10 Andi Kleen <ak@linux.intel.com>
10895 * lto-opts.c (lto_read_file_options): Check for missing section.
10897 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
10899 * ira.c (check_allocation): Correctly handle the case where an allocno
10900 with two objects was allocated to a single reg.
10902 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
10904 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
10905 (is_widening_mult_p): Likewise.
10906 (convert_to_widen): Use them.
10907 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
10908 well as integer ones.
10910 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
10912 * alias.c (true_dependence_1): New function, merged version of
10913 true_dependence and canon_true_dependence.
10914 (true_dependence): Simplify.
10915 (canon_true_dependence): Simplify.
10917 2010-07-22 Richard Henderson <rth@redhat.com>
10920 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
10921 of V4SFmode for the SSE saves; increase stack alignment if needed.
10922 (ix86_gimplify_va_arg): Don't increase stack alignment here.
10924 2010-07-22 Jakub Jelinek <jakub@redhat.com>
10927 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
10928 call cprop_find_used_regs again via note_uses.
10930 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
10932 * alias.c (get_alias_set): Fix formatting issues.
10934 2010-07-22 Steve Ellcey <sje@cup.hp.com>
10936 PR middle-end/44878
10937 * stmt.c (expand_value_return): Call promote_function_mode with
10938 a for_return argument of 2 when returning by reference.
10940 2010-07-22 Dodji Seketeli <dodji@redhat.com>
10943 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
10944 unit DIE if we can find the scope DIE.
10946 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
10948 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
10949 changed. Initialize OBJECT_SUBWORD.
10950 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
10951 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
10952 all callers changed.
10953 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
10954 (finish_allocno): Likewise.
10955 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
10956 (remove_low_level_allocnos): Likewise.
10957 (update_bad_spill_attribute): Likewise.
10958 (setup_min_max_allocno_live_range_point): Likewise.
10959 (sort_conflict_id_map): Likewise.
10960 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
10961 (ior_hard_reg_conflicts): New function.
10962 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
10963 (compress_conflict_vecs): Iterate over objects, not allocnos.
10964 (ira_add_live_range_to_object): New function.
10965 (object_range_compare_func): Renamed from allocno_range_compare_func.
10966 All callers changed.
10967 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
10968 subobjects, widen the min/max range of the lowest-order object to
10969 potentially include all other such low-order objects.
10970 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
10971 (check_allocation): Likewise. Use more fine-grained tests for register
10973 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
10974 allocno subobjects.
10975 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
10976 choices about which bits to set in each set. Don't use
10977 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
10978 using the multiple sets we computed.
10979 (push_allocno_to_stack): Iterate over allocno subobjects.
10980 (all_conflicting_hard_regs_coalesced): New static function.
10981 (setup_allocno_available_regs_num): Use it.
10982 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
10984 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
10985 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10986 by ALLOCNO_NUM_OBJECTS.
10987 (calculate_spill_cost): Likewise.
10988 (color_pass): Express if statement in a more normal way.
10989 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
10990 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
10991 (setup_slot_coalesced_allocno_live_ranges): Likewise.
10992 (allocno_reload_assign): Likewise.
10993 (ira_reassign_pseudos): Likewise.
10994 (fast_allocation): Likewise.
10995 * ira-conflicts.c (build_conflict_bit_table): Likewise.
10996 (print_allocno_conflicts): Likewise.
10997 (ira_build_conflicts): Likewise.
10998 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
10999 callers changed. Test subword 0 of each allocno for conflicts.
11000 (build_object_conflicts): Renamed from build_allocno_conflicts. All
11001 callers changed. Iterate over allocno subobjects.
11002 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
11003 * ira-int.h (struct ira_allocno): New member: num_objects.
11004 Rename object to objects and change it into an array.
11005 (ALLOCNO_OBJECT): Add new argument N.
11006 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
11007 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
11008 (ior_hard_reg_conflicts): Declare.
11009 (ira_add_live_range_to_object): Declare.
11010 (ira_allocno_object_iterator): New.
11011 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
11012 (FOR_EACH_ALLOCNO_OBJECT): New macro.
11013 * ira-lives.c (objects_live): Renamed from allocnos_live; all
11015 (allocnos_processed): New sparseset.
11016 (make_object_born): Renamed from make_allocno_born; take an
11017 ira_object_t argument. All callers changed.
11018 (make_object_dead): Renamed from make_allocno_dead; take an
11019 ira_object_t argument. All callers changed.
11020 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
11021 All callers changed.
11022 (mark_pseudo_regno_live): Iterate over allocno subobjects.
11023 (mark_pseudo_regno_dead): Likewise.
11024 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
11026 (mark_ref_live): Detect subword accesses and call
11027 mark_pseudo_regno_subword_live as appropriate.
11028 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
11029 (process_bb_nodes_live): Deal with object-related updates first; set
11030 and test bits in allocnos_processed to avoid computing allocno
11031 statistics more than once.
11032 (create_start_finish_chains): Iterate over objects, not allocnos.
11033 (print_object_live_ranges): New function.
11034 (print_allocno_live_ranges): Use it.
11035 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
11038 2010-07-22 Richard Guenther <rguenther@suse.de>
11041 * gimple.c (gtc_next_dfs_num): New global.
11042 (struct sccs): Make value a union, add integer same_p member.
11043 (gtc_visit): New function.
11044 (gimple_types_compatible_p_1): New function, split out from ...
11045 (gimple_types_compatible_p): ... here. Start a DFS walk here.
11046 (iterative_hash_gimple_type): Adjust for sccs change.
11048 2010-07-22 Martin Jambor <mjambor@suse.cz>
11050 PR tree-optimization/44891
11051 * tree-sra.c: Include gimple-pretty-print.h.
11052 (replace_uses_with_default_def_ssa_name): Renamed to
11053 get_repl_default_def_ssa_name, return the new SSA name instead of
11054 replacing the old one.
11055 (sra_modify_assign): Dump a message when removing a load, if the LHS
11056 is an SSA_NAME, do not do any propagation, just set the RHS to a
11057 default definition SSA NAME, type convert if necessary.
11058 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
11060 2010-07-22 Richard Guenther <rguenther@suse.de>
11062 PR tree-optimization/45017
11063 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
11064 TYPE_PRECISION of integral types in addition to size.
11066 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
11068 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
11069 when no C library is specified.
11071 2010-07-22 Martin Jambor <mjambor@suse.cz>
11073 * ipa-prop.h (struct ipa_node_params): Updated comment.
11074 (struct ipa_edge_args): Likewise.
11075 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
11077 2010-07-22 Martin Jambor <mjambor@suse.cz>
11079 * cgraphunit.c (verify_edge_count_and_frequency): New function.
11080 (verify_cgraph_node): Verify frequencies of indirect edges.
11081 * tree-inline.c (tree_function_versioning): Update frequencies of
11084 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11087 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
11088 Set *arm_rev to be predicable.
11090 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
11092 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
11093 (LINK_COMMAND_SPEC_A): New.
11095 (DSYMUTIL_SPEC): New.
11096 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
11097 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
11099 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
11101 * calls.c (load_register_parameters): Move check for zero
11102 sized items so that only the call to
11103 mem_overlaps_already_clobbered_arg_p () is protected.
11105 2010-07-22 Jan Hubicka <jh@suse.cz>
11107 * ipa-pure-const.c (varying_state): Break out from ...
11108 (get_function_state): ... here; always return varying_state
11109 when state would be NULL otherwise.
11110 (remove_node_data): Do not free varying state.
11112 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
11115 PR middle-end/45009
11116 * postreload.c: Include "target.h".
11117 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
11119 (fixup_debug_insns): Don't copy the rtx.
11120 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
11121 Don't copy when replacing. Call fixup_debug_insns in the case where
11122 we merged one add with another.
11123 (reload_combine_recognize_pattern): Fail if there aren't any uses.
11124 Try harder to determine whether we're picking a valid index register.
11125 Don't set store_ruid for an insn we're going to scan in the
11127 (reload_combine): Remove unused code.
11128 (reload_combine_note_use): When updating use information for
11129 an old insn, ignore a use that occurs after store_ruid.
11130 * Makefile.in (postreload.o): Update dependencies.
11132 * function.c (record_hard_reg_sets): Restrict the previous change
11133 to cases where the incoming nominal mode is the same as the
11134 incoming promoted mode and everything happens in MODE_INT.
11136 2010-07-21 Jakub Jelinek <jakub@redhat.com>
11139 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
11140 ASM_OPERANDS_OUTPUT_IDX.
11141 (adjust_insn): For inline asm with multiple sets ensure first
11142 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
11145 2010-07-21 Richard Henderson <rth@redhat.com>
11147 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
11148 comparison for avoiding xmm register saves. Emit the xmm register
11150 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
11151 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
11152 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
11153 Remove patterns and the associated splitters.
11155 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
11157 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
11158 and imagine parts of a complex, so that they can have the same
11159 base and fall into the same group.
11161 2010-07-21 Richard Guenther <rguenther@suse.de>
11164 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
11165 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
11166 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
11168 2010-07-21 Martin Jambor <mjambor@suse.cz>
11170 PR tree-optimization/44900
11171 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
11172 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
11174 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
11176 PR middle-end/44738
11177 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
11179 2010-07-21 Richard Guenther <rguenther@suse.de>
11181 PR middle-end/45013
11182 * tree-ssa.c (useless_type_conversion_p): Dispatch to
11183 gimple_types_compatible_p only when in lto.
11184 * gimple.c (gimple_types_compatible_p): Use canonical types
11185 to speed up comparison.
11187 2010-07-21 Richard Guenther <rguenther@suse.de>
11189 * tree-flow.h (referenced_var): Move define ...
11190 * tree-flow-inline.h (referenced_var): ... here as an inline
11191 function. Assert here ...
11192 * tree-dfa.c (referenced_var_lookup): ... instead of here.
11193 * tree-ssa.c (maybe_optimize_var): Check if the variable
11194 is in referenced vars.
11195 (execute_update_addresses_taken): Remove old broken check.
11196 * gimple-pretty-print.c (pp_points_to_solution): Use
11197 referenced_var_lookup.
11198 * tree-into-ssa.c (dump_decl_set): Likewise.
11200 2010-07-21 Jakub Jelinek <jakub@redhat.com>
11203 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
11204 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
11207 2010-07-20 Richard Henderson <rth@redhat.com>
11209 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
11211 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
11213 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
11214 computing the sum of the stack pointer and a large constant.
11215 * config/arm/constraints.md (M): Remove superfluous parentheses.
11216 (Pc): New constraint.
11218 2010-07-20 Jakub Jelinek <jakub@redhat.com>
11221 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
11222 operand's type if exp is tcc_unary class tree.
11224 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
11226 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
11227 Reverse sense of if_then_else condition.
11229 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
11231 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
11232 * config/rs6000/rs6000.c (rs6000_override_options): Set
11233 rs6000_block_move_inline_limit appropriately.
11234 (expand_block_move): Use rs6000_block_move_inline_limit.
11235 * doc/invoke.texi (mblock-move-inline-limit): Document.
11237 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
11239 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
11240 FROM and TO. All callers changed. Don't look for tracked uses,
11241 just scan the RTL for DEBUG_INSNs and substitute.
11242 (reload_combine_recognize_pattern): Call fixup_debug_insns.
11243 (reload_combine): Ignore DEBUG_INSNs.
11245 2010-07-20 Jakub Jelinek <jakub@redhat.com>
11247 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
11251 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
11252 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
11253 instead of the result's type.
11255 2010-07-20 Richard Guenther <rguenther@suse.de>
11257 PR tree-optimization/44977
11258 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
11261 2010-07-20 Richard Guenther <rguenther@suse.de>
11263 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
11264 (lto_symtab_merge_decls_2): Likewise.
11265 * gimple.h (gimple_types_compatible_p): Declare.
11266 * gimple.c (gimple_queue_type_fixup): Remove.
11267 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
11268 (gimple_compatible_complete_and_incomplete_type_p): New function.
11269 (gimple_types_compatible_p): Adjust.
11270 (gimple_register_type): Remove type fixup code.
11271 (print_gimple_types_stats): Adjust.
11272 (free_gimple_type_tables): Likewise.
11273 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
11274 * tree-ssa.c (useless_type_conversion_p): Likewise.
11276 2010-07-20 Richard Guenther <rguenther@suse.de>
11278 PR middle-end/44971
11279 PR middle-end/44988
11280 * tree-ssa.c (maybe_optimize_var): New function split out from ...
11281 (execute_update_addresses_taken): ... here.
11282 (non_rewritable_mem_ref_base): Likewise.
11283 (execute_update_addresses_taken): Do not iterate over all referenced
11284 vars but just all local decls and parms.
11285 Properly check call and asm arguments and rewrite call arguments.
11287 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
11289 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
11291 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
11293 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
11295 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
11297 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11299 * gengtype.c (start_root_entry): New function, split out from
11300 write_root. Check whether V is null and raise an error if so.
11301 (write_field_root): Check for V being null. Don't raise an error here;
11302 set V to null instead.
11303 (write_root): Update comment above function. Use start_root_entry.
11305 2010-07-19 Xinliang David Li <davidxl@google.com>
11308 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
11310 (find_uninit_use): Add dump.
11311 (is_use_properly_guarded): Ditto.
11312 (warn_uninitialized_phi): Ditto.
11313 (execute_late_warn_uninitialized): Ditto.
11315 2010-07-19 Richard Guenther <rguenther@suse.de>
11317 PR middle-end/44941
11318 * expr.c (emit_block_move_hints): Move zero size check first.
11319 Move asserts to more useful places.
11320 * calls.c (load_register_parameters): Check for zero size.
11322 2010-07-19 Richard Henderson <rth@redhat.com>
11324 * tree-optimize.c (execute_all_early_local_passes): New. Change
11325 cgraph_state here ...
11326 (execute_early_local_optimizations): ... not here. Remove.
11327 (pass_early_local_passes, pass_all_early_optimizations): Update.
11329 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
11331 * postreload.c (reload_combine_closest_single_use): Ignore the
11332 number of uses for DEBUG_INSNs.
11333 (fixup_debug_insns): New static function.
11334 (reload_combine_recognize_const_pattern): Use it. Don't let the
11335 main loop be affected by DEBUG_INSNs.
11336 Really disallow moving adds past a jump insn.
11337 (reload_combine_recognize_pattern): Don't update use_ruid here.
11338 (reload_combine_note_use): Do it here.
11339 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
11341 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
11343 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
11345 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
11347 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
11349 * config/i386/darwin.h: Define darwin_emit_branch_islands.
11350 (TARGET_MACHO_BRANCH_ISLANDS): New.
11351 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
11352 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
11354 * config/i386/i386.c (output_pic_addr_const): Do not emit
11355 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
11356 (x86_output_mi_thunk): Adjust symbol creation.
11357 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
11358 Remove out of date comment.
11359 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
11360 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
11361 (DARWIN_GENERATE_ISLANDS): Ditto.
11362 (output_call): Do not emit branch islands unless
11363 darwin_emit_branch_islands is set.
11364 * config/darwin.c: Declare darwin_emit_branch_islands.
11365 (machopic_indirect_data_reference): Do not emit unless
11366 darwin_emit_branch_islands is set.
11367 (darwin_override_options): Set darwin_emit_branch_islands
11368 where it is needed.
11369 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
11371 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11373 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11374 sse_runtime, sse2_runtime.
11376 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
11378 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
11379 low half of a single-register SCmode return value before ORing
11380 it with the high half.
11381 * config/mips/mips16.S (MERGE_GPRf): Likewise.
11383 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11386 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
11389 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
11392 * postreload.c (reload_cse_move2add): Return bool, true if anything.
11393 changed. All callers changed.
11394 (move2add_use_add2_insn): Likewise.
11395 (move2add_use_add3_insn): Likewise.
11396 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
11398 (RELOAD_COMBINE_MAX_USES): Bump to 16.
11399 (last_jump_ruid): New static variable.
11400 (struct reg_use): New members CONTAINING_MEM and RUID.
11401 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
11402 (reload_combine_split_one_ruid, reload_combine_split_ruids,
11403 reload_combine_purge_insn_uses, reload_combine_closest_single_use
11404 reload_combine_purge_reg_uses_after_ruid,
11405 reload_combine_recognize_const_pattern): New static functions.
11406 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
11407 is true for our reg and that we have available index regs.
11408 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
11409 callers changed. Use them to initialize fields in struct reg_use.
11410 (reload_combine): Initialize last_jump_ruid. Be careful when to
11411 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
11412 Call reload_combine_recognize_const_pattern.
11413 (reload_combine_note_store): Update REAL_STORE_RUID field.
11415 2010-07-16 Jason Merrill <jason@redhat.com>
11417 * Makefile.in (opts-common.o): Depend on options.h.
11419 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
11421 * tree.c (build_common_builtin_nodes): Use build_function_type_list
11422 instead of build_function_type.
11423 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
11424 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
11426 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
11428 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
11430 (rs6000_emit_int_cmove): Use function pointers for insn generation.
11431 Don't force values into registers unnecessarily.
11432 (output_isel): Assert that we're not given conditions we can't handle.
11433 Delete corresponding code.
11434 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
11435 scc_comparison_operator constraint. Permit 0 for the consequent
11436 operand. Permit any GPR for the alternative operand.
11437 (isel_unsigned_<mode>): Likewise.
11439 2010-07-16 Jakub Jelinek <jakub@redhat.com>
11442 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
11443 argument to const_tree.
11444 * config/i386/i386.c (function_arg_advance): If padding needs to be
11445 inserted before argument, increment cum->words by number of padding
11447 (contains_aligned_value_p): Change argument to const_tree.
11448 (ix86_function_arg_boundary): Change second argument to const_tree.
11450 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
11453 * function.c (record_hard_reg_sets): New static function.
11454 (assign_parm_setup_reg): If an optab for extending exists and the
11455 generated code clobbbers no hard regs, emit the insn directly and
11456 create a REG_EQUIV note.
11458 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
11460 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
11462 * c-typeck.c (push_init_level): Likewise.
11463 (process_init_element): Likewise.
11465 2010-07-15 Anatoly Sokolov <aesok@post.ru>
11467 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
11468 (integer_three_node): Add.
11469 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
11470 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
11471 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
11472 of call build_int_cst.
11473 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
11474 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
11475 (find_interesting_uses_address): Ditto.
11476 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
11477 * tree-eh.c (lower_eh_constructs_2): Ditto.
11478 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
11479 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
11480 * expmed.c (expand_divmod): Ditto.
11481 * tree-mudflap.c (mx_register_decls): Ditto.
11482 * varasm.c (array_size_for_constructor): Ditto.
11483 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
11484 * c-parser.c (c_parser_postfix_expression): Ditto.
11486 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
11488 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
11489 New static variables.
11490 (reload_combine_recognize_pattern): New static function, broken out
11492 (reload_combine): Use it. Only initialize first_index_reg and
11493 last_index_reg once.
11495 2010-07-15 Richard Henderson <rth@redhat.com>
11497 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
11500 2010-07-15 Jan Hubicka <jh@suse.cz>
11502 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
11503 comdats for broken gold.
11504 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
11506 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
11508 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
11510 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
11512 * tree.h (DECL_CHAIN): Define.
11513 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
11514 * c-decl.c: Likewise.
11515 * c-parser.c: Likewise.
11516 * c-typeck.c: Likewise.
11517 * cfgexpand.c: Likewise.
11518 * cgraph.c: Likewise.
11519 * cgraphunit.c: Likewise.
11520 * combine.c: Likewise.
11521 * config/alpha/alpha.c: Likewise.
11522 * config/arm/arm.c: Likewise.
11523 * config/frv/frv.c: Likewise.
11524 * config/i386/i386.c: Likewise.
11525 * config/i386/winnt-cxx.c: Likewise.
11526 * config/ia64/ia64.c: Likewise.
11527 * config/iq2000/iq2000.c: Likewise.
11528 * config/mep/mep.c: Likewise.
11529 * config/mips/mips.c: Likewise.
11530 * config/pa/som.h: Likewise.
11531 * config/rs6000/rs6000.c: Likewise.
11532 * config/s390/s390.c: Likewise.
11533 * config/sh/sh.c: Likewise.
11534 * config/sh/symbian-cxx.c: Likewise.
11535 * config/sparc/sparc.c: Likewise.
11536 * config/spu/spu.c: Likewise.
11537 * config/stormy16/stormy16.c: Likewise.
11538 * config/vxworks.c: Likewise.
11539 * config/xtensa/xtensa.c: Likewise.
11540 * coverage.c: Likewise.
11541 * dbxout.c: Likewise.
11542 * dwarf2out.c: Likewise.
11543 * emit-rtl.c: Likewise.
11544 * expr.c: Likewise.
11545 * function.c: Likewise.
11546 * gimple-low.c: Likewise.
11547 * gimple-pretty-print.c: Likewise.
11548 * gimplify.c: Likewise.
11549 * integrate.c: Likewise.
11550 * ipa-inline.c: Likewise.
11551 * ipa-prop.c: Likewise.
11552 * ipa-split.c: Likewise.
11553 * ipa-struct-reorg.c: Likewise.
11554 * ipa-type-escape.c: Likewise.
11555 * langhooks.c: Likewise.
11556 * lto-cgraph.c: Likewise.
11557 * omp-low.c: Likewise.
11558 * stor-layout.c: Likewise.
11559 * tree-cfg.c: Likewise.
11560 * tree-complex.c: Likewise.
11561 * tree-dfa.c: Likewise.
11562 * tree-dump.c: Likewise.
11563 * tree-inline.c: Likewise.
11564 * tree-mudflap.c: Likewise.
11565 * tree-nested.c: Likewise.
11566 * tree-object-size.c: Likewise.
11567 * tree-pretty-print.c: Likewise.
11568 * tree-sra.c: Likewise.
11569 * tree-ssa-live.c: Likewise.
11570 * tree-ssa-loop-niter.c: Likewise.
11571 * tree-ssa-math-opts.c: Likewise.
11572 * tree-ssa-reassoc.c: Likewise.
11573 * tree-ssa-sccvn.c: Likewise.
11574 * tree-ssa-structalias.c: Likewise.
11575 * tree-tailcall.c: Likewise.
11576 * tree-vrp.c: Likewise.
11577 * tree.c: Likewise.
11578 * var-tracking.c: Likewise.
11579 * varasm.c: Likewise.
11581 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11584 * config/spu/spu.c (spu_expand_builtin_1): Allow references
11585 (as well as pointers) as argument to mask_for_load builtins.
11587 2010-07-15 Richard Guenther <rguenther@suse.de>
11589 PR tree-optimization/44946
11590 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
11591 with accessing only padding properly.
11593 2010-07-15 Jan Hubicka <jh@suse.cz>
11595 * ipa.c (function_and_variable_visibility): Variables marked as used
11596 should not be localized.
11598 2010-07-15 Jan Hubicka <jh@suse.cz>
11600 * cgraph.c: Include lto-streamer.h
11601 (change_decl_assembler_name): Work when assembler name hash is at place.
11602 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
11603 be sure to rename it to avoid name clash.
11604 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
11605 Localize hidden symbols only when locally defined.
11607 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
11609 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
11611 2010-07-15 Magnus Granberg <zorry@gentoo.org>
11612 Kevin F. Quinn <kevquinn@gentoo.org>
11614 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
11615 * common.opt: Add -Wtrampolines.
11616 * doc/invoke.texi: Add -Wtrampolines.
11618 2010-07-15 Jie Zhang <jie@codesourcery.com>
11620 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
11621 cortex_a8_issue_ls.
11623 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
11625 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
11626 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
11628 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11630 * config/spu/spu.c (reg_names): Remove prototype.
11631 (call_used_regs): Likewise.
11633 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
11635 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
11636 "unused" with attribute "used".
11637 (__JCR_END__): Likewise.
11638 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
11640 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
11642 2010-07-14 Richard Guenther <rguenther@suse.de>
11644 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
11645 (maybe_fixup_decls): Likewise.
11646 (input_gimple_stmt): Do not fixup anything.
11647 * lto-streamer-out.c (output_gimple_stmt): Make sure all
11648 non-automatic variable uses are wrapped inside a MEM_REF.
11650 2010-07-14 Richard Henderson <rth@redhat.com>
11652 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
11654 * varasm.c (assemble_variable): Remove early exit for functions;
11655 assert that we're given a variable.
11657 2010-07-14 Jie Zhang <jie@codesourcery.com>
11659 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
11660 cortex_a8_default when neon_type is not none.
11662 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
11664 * lower-subreg.c (subreg_context): New static bitmap.
11665 (decompose_multiword_subregs): Allocate and free it.
11666 (find_decomposable_subregs): Set a bit in it for a register that
11667 occurs in a subreg that changes mode but not size.
11668 (can_decompose_p): Test it instead of non_decomposable_context.
11670 2010-07-14 Richard Guenther <rguenther@suse.de>
11672 PR tree-optimization/44824
11673 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
11674 is_gimple_mem_ref_addr.
11675 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
11676 non-decl_address_invariant_p addresses.
11678 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
11680 * reload.c (find_reloads): Revert code to penalize small register
11681 classes that was brought in with the IRA merge.
11683 2010-07-14 Richard Guenther <rguenther@suse.de>
11685 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
11686 as base of ARRAY_REFs.
11688 2010-07-14 Richard Guenther <rguenther@suse.de>
11690 PR middle-end/44930
11691 * tree-pretty-print.c (do_niy): Do not print a newline.
11693 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
11695 * ira-int.h (struct ira_object): New.
11696 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
11697 (struct ira_allocno): Remove members min, max,
11698 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
11699 conflict_allocnos_num and conflict_vec_p. Add new member object.
11700 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
11701 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
11702 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
11703 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
11704 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
11705 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
11706 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
11707 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
11708 an ira_object_t rather than ira_allocno_t. All uses changed.
11709 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
11710 contains a vector of ira_object_t; all uses changed.
11711 (ira_objects_num): Declare variable.
11712 (ira_create_allocno_object): Declare function.
11713 (ira_conflict_vector_profitable_p): Adjust prototype.
11714 (ira_allocate_conflict_vec): Renamed from
11715 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
11716 (ira_allocate_object_conflicts): Renamed from
11717 ira_allocate_allocno_conflicts; first arg now ira_object_t.
11718 (struct ira_object_iterator): New.
11719 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
11720 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
11721 to conflict_vec_p. All uses changed.
11722 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
11723 Changed to take into account that conflicts are now tracked for
11725 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
11726 Args changed to accept ira_object_t. All uses changed.
11727 (allocnos_conflict_p): New static function.
11728 (collected_conflict_objects): Renamed from collected_allocno_objects;
11729 now a vector of ira_object_t. All uses changed.
11730 (build_conflict_bit_table): Changed to take into account that
11731 conflicts are now tracked for objects.
11732 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
11733 (print_allocno_conflicts, ira_build_conflicts): Likewise.
11734 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
11735 setup_allocno_left_conflicts_size, allocno_reload_assign,
11736 fast_allocation): Likewise.
11737 * ira-lives.c (make_hard_regno_born, make_allocno_born)
11738 process_single_reg_class_operands, process_bb_node_lives): Likewise.
11739 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
11741 * ira-build.c (ira_objects_num): New variable.
11742 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
11743 contains a vector of ira_object_t; all uses changed.
11744 (ira_object_id_map_vec): Corresponding change.
11745 (object_pool): New static variable.
11746 (initiate_allocnos): Initialize it.
11747 (finish_allocnos): Free it.
11748 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
11750 (ira_create_allocno): Don't set members that were removed.
11751 (ira_set_allocno_cover_class): Don't change conflict hard regs.
11752 (merge_hard_reg_conflicts): Changed to take into account that
11753 conflicts are now tracked for objects.
11754 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
11755 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
11756 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
11757 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
11758 setup_min_max_conflict_allocno_ids, ): Likewise.
11759 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
11760 to ira_object_t; all callers changed.
11761 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
11762 to ira_object_t, all callers changed.
11763 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
11764 to ira_object_t, all callers changed.
11765 (conflict_check, curr_conflict_check_tick): Renamed from
11766 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
11768 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
11769 arg changed to ira_object_t, all callers changed.
11770 (create_cap_allocno): Call ira_create_allocno_object.
11771 (finish_allocno): Free the corresponding object.
11772 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
11773 callers changed. Adjusted for dealing with objects.
11774 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
11775 dealing with objects.
11776 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
11778 * ira-int.h (struct live_range): Rename allocno member to object
11779 and change type to ira_object_t.
11780 (struct ira_object): New member live_ranges.
11781 (struct ira_allocno): Remove member live_ranges.
11782 (ALLOCNO_LIVE_RANGES): Remove.
11783 (OBJECT_LIVE_RANGES): New macro.
11784 (ira_create_live_range, ira_copy_live_range_list,
11785 ira_merge_live_range_list, ira_live_ranges_intersect_p,
11786 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
11787 * ira-build.c (ira_create_object): Initialize live ranges here.
11788 (ira_create_allocno): Not here.
11789 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
11790 changed to ira_object_t, all callers changed.
11791 (copy_live_range): Rename from copy_allocno_live_range, all callers
11793 (ira_copy_live_range_list): Rename from
11794 ira_copy_allocno_live_range_list, all callers changed.
11795 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
11796 all callers changed.
11797 (ira_live_ranges_intersect_p): Rename from
11798 ira_allocno_live_ranges_intersect_p, all callers changed.
11799 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
11801 (ira_finish_live_range_list): Rename from
11802 ira_finish_allocno_live_range_list, all callers changed.
11803 (change_object_in_range_list): Rename from change_allocno_in_range_list,
11804 last arg changed to ira_object_t, all callers changed.
11805 (finish_allocno): Changed to expect live ranges in the allocno's object.
11806 (move_allocno_live_ranges, copy_allocno_live_ranges,
11807 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
11808 ira_flattening, ira_build): Likewise.
11809 * ira-color.c (allocnos_have_intersected_live_ranges_p,
11810 slot_coalesced_allocno_live_ranges_intersect,
11811 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
11812 * ira-conflicts.c (build_conflict_bit_table): Likewise.
11813 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
11814 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
11815 make_allocno_dead, create_start_finish_chains,
11816 remove_some_program_points_and_update_live_ranges,
11817 ira_debug_live_range_list): Likewise.
11819 * ira-int.h (ira_object_conflict_iterator): Rename from
11820 ira_allocno_conflict_iterator.
11821 (ira_object_conflict_iter_init): Rename from
11822 ira_allocno_conflict_iter_init, second arg changed to
11823 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
11824 FOR_EACH_ALLOCNO_CONFLICT.
11825 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
11826 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
11827 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
11828 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11830 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
11833 * tree-dump.c (dump_options): Add enumerate_locals entry.
11834 Add TDF_NOID exclusion to all entry.
11835 * tree-dump.h (dump_enumerated_decls): Declare.
11836 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
11837 Don't display type uid.
11838 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
11839 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
11840 * tree-ssa-live.c: Include gimple.h.
11841 (numbered_tree_d): New struct.
11842 (numbered_tree): New typedef.
11843 (DEF_VEC_O (numbered_tree): New.
11844 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
11845 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
11846 (dump_enumerated_decls): Likewise.
11847 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
11848 debug info and flag_dump_final_insns, call dump_enumerated_decls.
11849 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
11850 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
11852 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
11854 * expmed.h (MAX_BITS_PER_WORD): Move to...
11855 * defaults.h (MAX_BITS_PER_WORD): ...here.
11857 2010-07-13 DJ Delorie <dj@redhat.com>
11859 * config/h8300/h8300.c (h8300_init_once): Default to
11860 -fstrict_volatile_bitfields.
11862 * config/sh/sh.c (sh_override_options): Default to
11863 -fstrict_volatile_bitfields.
11865 * config/rx/rx.c (rx_option_override): New.
11867 * config/m32c/m32c.c (m32c_override_options): Default to
11868 -fstrict_volatile_bitfields.
11870 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
11872 * tree.h (build_function_call_expr): Delete.
11873 (build_call_expr_loc_array): New function.
11874 (build_call_expr_loc_vec): New function.
11875 * tree-flow.h (struct omp_region): Change type of ws_args field
11877 * builtins.c (build_function_call_expr): Delete.
11878 (build_call_expr_loc_array): New function.
11879 (build_call_expr_loc): Call it. Use XALLOCAVEC.
11880 (build_call_expr): Likewise.
11881 (build_call_expr_loc_vec): New function.
11882 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
11883 build_function_call_expr.
11884 * expr.c (emutls_var_address): Likewise.
11885 * varasm.c (emutls_common_1): Likewise.
11886 * omp-low.c (expand_omp_atomic_mutex): Likewise.
11887 (expand_omp_taskreg): Adjust for new type of region->ws_args.
11888 (get_ws_args_for): Return a VEC instead of a tree.
11889 (expand_parallel_call): Call build_call_expr_loc_vec instead of
11890 build_function_call_expr.
11891 * stor-layout.c (self_referential_size): Likewise.
11893 2010-07-13 Jakub Jelinek <jakub@redhat.com>
11896 * recog.c (constrain_operands): Allow side-effects in memory
11897 operands if either < or > constraint is used, rather than if
11898 both < and > is used.
11900 2010-07-13 Richard Guenther <rguenther@suse.de>
11902 PR middle-end/44911
11903 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
11904 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
11907 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
11910 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
11911 to variable emited.
11912 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
11913 * config/sh/sh.md (symGOT_load): Likewise.
11914 (symDTPOFF2reg): Likewise.
11915 (symTPOFF2reg): Likewise.
11917 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11919 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
11920 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
11922 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11924 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
11926 Find ucontext_t * on Solaris 11.
11927 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
11928 Handle new Solaris 11 __sighndlr patterns.
11930 2010-07-13 Jakub Jelinek <jakub@redhat.com>
11933 * vec.h (VEC_block_remove): Fix comment.
11934 * tree-ssa-live.c (remove_unused_locals): Don't use
11935 VEC_unordered_remove on local_decls, instead replace a single
11936 vector element in each iteration if at least one element had
11937 to be removed and VEC_truncate at the end.
11938 * omp-low.c (expand_omp_taskreg): Likewise.
11940 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
11942 * c-decl.c (finish_function): Fix typo in comment.
11944 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
11947 * postreload.c (move2add_use_add3_insn): Silence gcc warning
11950 2010-07-12 Jakub Jelinek <jakub@redhat.com>
11952 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
11953 (simplify_stmt_using_ranges): Use it.
11955 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11957 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
11958 member. Do not mark as GTY(()).
11959 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
11960 (spu_builtin_decls): New static variable.
11961 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
11962 (spu_init_builtins): Likewise.
11963 (spu_builtin_mul_widen_even): Likewise.
11964 (spu_builtin_mul_widen_odd): Likewise.
11965 (spu_builtin_mask_for_load): Likewise.
11966 (spu_builtin_vec_perm): Likewise.
11967 * config/spu/spu-c.c: Include "target.h".
11968 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
11969 of using spu_builtins[].fndecl.
11971 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11973 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
11974 imply -minterlink-mips16.
11976 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11978 * config/mips/mips.h (mips16_globals): Declare.
11979 (SWITCHABLE_TARGET): Define.
11980 * config/mips/mips.c: Include target-globals.h.
11981 (mips16_globals): New variable.
11982 (mips_set_mips16_mode): Use save_target_globals and
11983 restore_target_globals instead of target_reinit.
11985 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11987 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
11988 to say that the function can be called more than once.
11989 * target-globals.c (save_target_globals): Call init_reg_sets.
11991 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
11993 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
11994 * bb-reorder.h: New file.
11995 * bb-reorder.c (default_target_bb_reorder): New variable.
11996 (this_target_bb_reorder): New conditional variable.
11997 (uncond_jump_length): Redefine as a macro.
11998 * target-globals.h (this_target_bb_reorder): Declare.
11999 (target_globals): Add a bb_reorder field.
12000 (restore_target_globals): Copy the bb_reorder field to
12001 this_target_bb-reorder.
12002 * target-globals.c: Include bb-reorder.h.
12003 (default_target_globals): Initialize the bb_reorder field.
12004 (save_target_globals): Likewise.
12006 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12008 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
12009 * gcse.h: New file.
12010 * gcse.c: Include gcse.h.
12011 (default_target_gcse): New variable.
12012 (this_target_gcse): New conditional variable.
12013 (can_copy): Redefine as a macro.
12014 (can_copy_init_p): New macro.
12015 (can_copy_p): Remove can_copy_init_p.
12016 * target-globals.h (this_target_gcse): Declare.
12017 (target_globals): Add a gcse field.
12018 (restore_target_globals): Copy the gcse field to this_target_gcse.
12019 * target-globals.c: Include gcse.h.
12020 (default_target_globals): Initialize the gcse field.
12021 (save_target_globals): Likewise.
12023 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12025 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
12026 and x_ira_prohibited_mode_move_regs_initialized_p.
12027 (ira_prohibited_mode_move_regs): Redefine as a macro.
12028 * ira.c (ira_prohibited_mode_move_regs): Delete.
12029 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
12031 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12033 * reload.h (target_reload): Add x_cached_reg_save_code and
12034 x_cached_reg_restore_code.
12035 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
12036 Redefine as macros.
12038 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12040 * Makefile.in (target-globals.o): Depend on builtins.h.
12041 * builtins.h: New file.
12042 * builtins.c: Include builtins.h.
12043 (default_target_builtins): New variable.
12044 (this_target_builtins): New conditional variable.
12045 (apply_args_mode, apply_result_mode): Redefine as macros.
12046 * target-globals.h (this_target_builtins): Declare.
12047 (target_globals): Add a builtins field.
12048 (restore_target_globals): Copy the builtins field to
12049 this_target_builtins.
12050 * target-globals.c: Include builtins.h.
12051 (default_target_globals): Initialize the builtins field.
12052 (save_target_globals): Likewise.
12054 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12056 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
12057 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
12059 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
12060 (alg_hash, alg_hash_used_p): New macros.
12061 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
12062 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
12063 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
12065 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12067 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
12068 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
12069 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
12070 (this_op_costs, costs_classes): Redefine as macros.
12071 (record_reg_classes): Don't take op_costs as a parameter.
12072 (record_operand_costs): Likewise. Update calls to record_reg_classes.
12073 (scan_one_insn): Update call to record_operand_costs.
12075 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12077 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
12078 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
12079 (target_ira_int): New structure.
12080 (default_target_ira_int): Declare.
12081 (this_target_ira_int): Declare as a variable or define as a macro.
12082 (ira_reg_mode_hard_regset, ira_register_move_cost)
12083 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
12084 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
12085 (prohibited_class_mode_regs, ira_important_classes_num)
12086 (ira_important_classes, ira_reg_class_intersect)
12087 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
12088 (ira_reg_class_union): Redefine as macros.
12089 * ira.h (target_ira): New structure.
12090 (default_target_ira): Declare.
12091 (this_target_ira): Declare as a variable or define as a macro.
12092 (ira_available_class_regs, ira_hard_regno_cover_class)
12093 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
12094 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
12095 (ira_class_hard_regs_num): Redefine as macros.
12096 * ira.c (default_target_ira, default_target_ira_int): New variables.
12097 (this_target_ira, this_target_ira_int): New conditional variables.
12098 (ira_reg_mode_hard_regset, ira_memory_move_cost)
12099 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
12100 (ira_class_subset_p): Delete.
12101 (no_unit_alloc_regs): Redefine as a macro.
12102 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
12103 (ira_class_hard_regs_num, ira_class_hard_reg_index)
12104 (ira_available_class_regs): Delete.
12105 (alloc_reg_class_subclasses): Redefine as a macro.
12106 (ira_reg_class_cover_size, ira_reg_class_cover)
12107 (ira_important_classes_num, ira_important_classes)
12108 (ira_important_class_nums, ira_class_translate): Delete.
12109 (cover_class_order): Document the variable's lifetime.
12110 (reorder_important_classes): Don't set ira_important_class_nums.
12111 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
12112 (ira_reg_class_super_classes, ira_reg_class_union)
12113 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
12115 (setup_reg_class_nregs): Don't set ira_max_regs.
12116 (prohibited_class_mode_regs): Delete.
12117 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
12118 (target_globals): Add ira and ira_int fields.
12119 (restore_target_globals): Copy the ira field to this_target_ira
12120 and the ira_int field to this_target_ira_int.
12121 * target-globals.c: Include ira-int.h.
12122 (default_target_globals): Initialize the ira and ira_int fields.
12123 (save_target_globals): Likewise.
12125 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12127 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
12128 * cfgloop.h (target_cfgloop): New structure.
12129 (default_target_cfgloop): Declare.
12130 (this_target_cfgloop): Declare as a variable or define as a macro.
12131 (target_avail_regs, target_clobbered_regs, target_res_regs)
12132 (target_reg_cost, target_spill_cost): Redefine as macros.
12133 * cfgloopanal.c (default_target_cfgloop): New variable.
12134 (this_target_cfgloop): New conditional variable.
12135 (target_avail_regs, target_clobbered_regs, target_res_regs)
12136 (target_reg_cost, target_spill_cost): Delete.
12137 * target-globals.h (this_target_cfgloop): Declare.
12138 (target_globals): Add a cfgloop field.
12139 (restore_target_globals): Copy the cfgloop field to
12140 this_target_cfgloop.
12141 * target-globals.c: Include cfgloop.h.
12142 (default_target_globals): Initialize the cfgloop field.
12143 (save_target_globals): Likewise.
12145 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12147 * regs.h (target_regs): Add x_direct_load, x_direct_store and
12148 x_float_extend_from_mem.
12149 (direct_load, direct_store, float_extend_from_mem): New macros.
12150 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
12152 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12154 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
12155 (target-globals.o): Depend on $(LIBFUNCS_H).
12156 * libfuncs.h: Include hashtab.h.
12157 (libfunc_entry): Moved from optabs.c.
12158 (target_libfuncs): New structure.
12159 (default_target_libfuncs): Declare.
12160 (this_target_libfuncs): Declare as a variable or define as a macro.
12161 (libfunc_table): Redefine as a macro.
12162 * optabs.c (default_target_libfuncs): New variable.
12163 (this_target_libfuncs): New conditional variable.
12164 (libfunc_table): Delete.
12165 (libfunc_entry): Moved to optabs.h.
12166 (libfunc_hash): Redefine as a macro.
12167 (hash_libfunc, eq_libfunc): Fix comments.
12168 (init_optabs): Use libfunc_hash to detect cases where the function
12169 has already been called. Clear the hash table instead of
12171 * target-globals.h (this_target_libfuncs): Declare.
12172 (target_globals): Add a libfuncs field.
12173 (restore_target_globals): Copy the libfuncs field to
12174 this_target_libfuncs.
12175 * target-globals.c: Include libfuncs.h.
12176 (default_target_globals): Initialize the libfuncs field.
12177 (save_target_globals): Likewise.
12179 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12181 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
12182 in all dependency lists.
12184 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12186 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
12187 * optabs.h (target_optabs): New structure.
12188 (default_target_optabs): Declare.
12189 (this_target_optabs): Declare as a variable or define as a macro.
12190 (optab_table, convert_optab_table, direct_optab_table): Redefine
12192 * optabs.c (default_target_optabs): New variable.
12193 (this_target_optabs): New conditional variable.
12194 (optab_table, convert_optab_table, direct_optab_table): Delete.
12195 * target-globals.h (this_target_optabs): Declare.
12196 (target_globals): Add a optabs field.
12197 (restore_target_globals): Copy the optabs field to
12198 this_target_optabs.
12199 * target-globals.c: Include expr.h and optabs.h.
12200 (default_target_globals): Initialize the optabs field.
12201 (save_target_globals): Likewise.
12203 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12205 * flags.h (target_flagstate): Add x_flag_excess_precision.
12206 (flag_excess_precision): Redefine as a macro.
12207 * toplev.c (flag_excess_precision): Delete.
12209 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12211 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
12212 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
12213 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
12214 (no_caller_save_reg_set): Redefine as a macro.
12215 * reload.h (target_reload): Add x_caller_save_initialized_p and
12217 (caller_save_initialized_p): Redefine as a macro.
12218 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
12219 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
12220 (regno_save_mode): Redefine as a macro.
12222 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12224 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
12225 * expmed.h: New file.
12226 * expmed.c (default_target_costs): New variable.
12227 (this_target_costs): New conditional variable.
12228 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
12229 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
12230 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
12231 * target-globals.h (this_target_expmed): Declare.
12232 (target_globals): Add a expmed field.
12233 (restore_target_globals): Copy the expmed field to
12234 this_target_expmed.
12235 * target-globals.c: Include expmed.h.
12236 (default_target_globals): Initialize the expmed field.
12237 (save_target_globals): Likewise.
12239 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12241 * Makefile.in (target-globals.o): Depend on reload.h.
12242 * reload.h (target_reload): New structure.
12243 (default_target_reload): Declare.
12244 (this_target_reload): Declare as a variable or define as a macro.
12245 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
12246 * reload1.c (default_target_reload): New variable
12247 (this_target_reload): New conditional variable.
12248 (indirect_symref_ok, double_reg_address_ok): Delete.
12249 (spill_indirect_levels): Redefine as a macro.
12250 * target-globals.h (this_target_reload): Declare.
12251 (target_globals): Add a reload field.
12252 (restore_target_globals): Copy the reload field to
12253 this_target_reload.
12254 * target-globals.c: Include hard-reg-set.h.
12255 (default_target_globals): Initialize the reload field.
12256 (save_target_globals): Likewise.
12258 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12260 * rtl.h (target_rtl): Add x_static_reg_base_value.
12261 * alias.c (static_reg_base_value): Redefine as a macro.
12263 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12265 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
12266 (GTFILES): Remove reginfo.c.
12267 * rtl.h (target_rtl): Add x_top_of_stack.
12268 (top_of_stack): New macro.
12269 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
12270 (top_of_stack): Delete.
12272 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12274 * regs.h (target_regs): Add x_hard_regs_of_mode,
12275 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
12276 x_may_move_out_cost and x_last_mode_for_init_move_cost.
12277 (have_regs_of_mode, contains_reg_of_mode, move_cost)
12278 (may_move_in_cost, may_move_out_cost): Redefine as macros.
12279 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
12280 (may_move_in_cost, may_move_out_cost): Delete.
12281 (last_mode_for_init_move_cost): Redefine as a macro.
12283 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12285 * hard-reg-set.h (target_hard_regs): New structure.
12286 (default_target_hard_regs): Declare.
12287 (this_target_hard_regs): Declare as a variable or define as a macro.
12288 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
12289 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
12290 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
12291 (reg_class_size, reg_class_subclasses, reg_class_subunion)
12292 (reg_class_superunion, reg_names): Redefine as macros.
12293 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
12294 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
12295 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
12296 (reg_class_contents, reg_class_size, reg_class_subclasses)
12297 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
12298 (default_target_hard_regs): New variable
12299 (this_target_hard_regs, initial_call_really_used_regs)
12300 (initial_reg_alloc_order): New conditional variables.
12301 (initial_reg_names): New variable.
12302 (init_reg_sets): Assert that initial_call_really_used_regs,
12303 initial_reg_alloc_order and initial_reg_names
12304 are all the same size as their variable counterparts. Use them to
12305 initialize those counterparts.
12306 * target-globals.h (this_target_hard_regs): Declare.
12307 (target_globals): Add a hard_regs field.
12308 (restore_target_globals): Copy the hard_regs field to
12309 this_target_hard_regs.
12310 * target-globals.c: Include hard-reg-set.h.
12311 (default_target_globals): Initialize the hard_regs field.
12312 (save_target_globals): Likewise.
12314 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12316 * Makefile.in (target-globals.o): Depend on $(RTL_H).
12317 * rtl.h (target_rtl): New structure.
12318 (default_target_rtl): Declare.
12319 (this_target_rtl): Declare as a variable or define as a macro.
12320 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
12321 Redefine as macros.
12322 * emit-rtl.c (default_target_rtl): New variable.
12323 (this_target_rtl): New conditional variable.
12324 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
12325 (return_address_pointer_rtx): Delete.
12326 (initial_regno_reg_rtx): New macro.
12327 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
12328 (init_emit_regs): Likewise.
12329 * target-globals.h (this_target_rtl): Declare.
12330 (target_globals): Add a rtl field.
12331 (restore_target_globals): Copy the rtl field to this_target_rtl.
12332 * target-globals.c: Include rtl.h.
12333 (default_target_globals): Initialize the rtl field.
12334 (save_target_globals): Likewise.
12336 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12338 * Makefile.in (target-globals.o): Depend on $(REGS_H).
12339 * regs.h (target_reg_modes): New structure.
12340 (default_target_reg_modes): Declare.
12341 (this_target_reg_modes): Declare as a variable or define as a macro.
12342 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
12343 * reginfo.c (default_target_reg_modes): New variable.
12344 (this_target_reg_modes): New conditional variable.
12345 (hard_regno_nregs, reg_raw_mode): Delete.
12346 * target-globals.h (this_target_regs): Declare.
12347 (target_globals): Add a regs field.
12348 (restore_target_globals): Copy the regs field to this_target_regs.
12349 * target-globals.c: Include regs.h.
12350 (default_target_globals): Initialize the regs field.
12351 (save_target_globals): Likewise.
12353 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12355 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
12356 * doc/tm.texi: Regenerate.
12357 * Makefile.in (OBJS-common): Add target-globals.o.
12358 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
12359 and target-globals.h.
12360 (target-globals.o): New rule.
12361 (GTFILES): Include $(srcdir)/target-globals.h.
12362 * defaults.h (SWITCHABLE_TARGET): Define.
12363 * gengtype.c (open_base_files): Add target-globals.h to the
12365 * target-globals.h: New file.
12366 * target-globals.c: Likewise.
12368 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
12369 * flags.h (target_flag_state): New structure.
12370 (default_target_flag_state): Declare.
12371 (this_target_flag_state): Declare as a variable or define as a macro.
12372 (align_loops_log): Redefine as a macro.
12373 (align_loops_max_skip, align_jumps_log): Likewise.
12374 (align_jumps_max_skip, align_labels_log): Likewise.
12375 (align_labels_max_skip, align_functions_log): Likewise.
12376 * toplev.c (default_target_flag_state): New variable.
12377 (this_target_flag_state): New conditional variable.
12378 (align_loops_log): Delete.
12379 (align_loops_max_skip, align_jumps_log): Likewise.
12380 (align_jumps_max_skip, align_labels_log): Likewise.
12381 (align_labels_max_skip, align_functions_log): Likewise.
12382 * target-globals.h (this_target_flag_state): Declare.
12383 (target_globals): Add a flag_state field.
12384 (restore_target_globals): Copy the flag_state field to
12385 this_target_flag_state.
12386 * target-globals.c: Include flags.h.
12387 (default_target_globals): Initialize the flag_state field.
12388 (save_target_globals): Likewise.
12390 2010-07-12 Jie Zhang <jie@codesourcery.com>
12392 * postreload.c (reg_symbol_ref[]): New.
12393 (move2add_use_add2_insn): New.
12394 (move2add_use_add3_insn): New.
12395 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
12396 (move2add_note_store): Likewise.
12398 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
12400 PR rtl-optimization/44752
12401 * genautomata.c (main): Don't emit an empty file even if there
12404 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12406 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
12407 ix86_solaris_return_in_memory.
12408 * config/i386-protos.h: Reflect this.
12409 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
12410 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
12412 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
12414 2010-07-12 Jie Zhang <jie@codesourcery.com>
12416 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
12417 align the stack when it's going to be saved.
12419 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12422 * config/host-solaris.c (mmap_fixed): New function.
12423 (sol_gt_pch_get_address): Use it.
12424 (sol_gt_pch_use_address): Likewise.
12426 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12428 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
12429 pentiumpro on Solaris 8 and 9/x86.
12430 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
12431 Document SSE/SSE2 support.
12432 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
12434 2010-07-12 Andi Kleen <ak@linux.intel.com>
12436 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
12437 instead of gcc_assert to print better error message for multiple
12440 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
12442 * config/i386/i386.c (ix86_asm_output_function_label): Change format
12443 string placeholder from 0x%x to %#x.
12444 (ix86_code_end): Use putc to output '\n'.
12445 (ix86_print_operand) <case ';'>: Use putc to output ';'.
12447 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
12449 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
12450 in directive -export.
12452 2010-07-10 Anatoly Sokolov <aesok@post.ru>
12454 * reginfo.h (reg_classes_intersect_p): Change arguments type to
12456 * rtl.h (reg_classes_intersect_p): Adjust prototype.
12458 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12460 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
12461 rs6000_memory_move_cost): Remove
12462 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
12463 TARGET_MEMORY_MOVE_COST): Define.
12464 (rs6000_register_move_cost): Make static. Change arguments type from
12465 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
12466 (rs6000_memory_move_cost): Make static. Change arguments type from
12467 'enum reg_class' to reg_class_t.
12469 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
12471 PR middle-end/42505
12472 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
12473 lookup code into....
12474 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
12476 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
12477 * cfgloopanal.c (target_clobbered_regs): Define.
12478 (init_set_costs): Initialize target_clobbered_regs.
12479 (estimate_reg_pressure_cost): Add call_p argument. When true,
12480 adjust the number of available registers to exclude the
12481 call-clobbered registers.
12482 * cfgloop.h (target_clobbered_regs): Declare.
12483 (estimate_reg_pressure_cost): Adjust declaration.
12484 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
12485 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
12486 (determine_set_costs): Dump target_clobbered_regs.
12487 (loop_body_includes_call): New function.
12488 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
12489 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
12490 call_p flag through.
12491 (best_gain_for_invariant): Likewise.
12492 (find_invariants_to_move): Likewise.
12493 (move_single_loop_invariants): Likewise, using already-computed
12496 2010-07-10 Richard Guenther <rguenther@suse.de>
12497 Joern Rennecke <joern.rennecke@embecosm.com>
12500 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
12501 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
12502 unless they have DECL_IGNORED_P set.
12504 2010-07-10 Richard Guenther <rguenther@suse.de>
12507 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
12509 (gimple_types_compatible_p): Similar to pointed-to
12510 types allow and merge a mix of complete and incomplete aggregate.
12511 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
12512 (iterative_hash_gimple_type): Adjust for that.
12514 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
12516 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
12518 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
12521 * config/darwin.c (output_objc_section_asm_op): Save and restore
12522 section when outputting ObjC section list.
12524 2010-07-09 Jan Hubicka <jh@suse.cz>
12526 * lto-streamer-out.c (produce_symtab): Do not write alias
12527 cgraph/varpool nodes.
12529 2010-07-09 Jan Hubicka <jh@suse.cz>
12531 * tree-inline.c (declare_return_variable): Fix ICE while
12532 inlining DECL_BY_VALUE function not in SSA form
12534 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
12536 PR tree-optimization/44576
12537 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
12538 New. Pull out from is_loop_prefetching_profitable to implement
12539 the trip count to ahead ratio heuristic.
12540 (mem_ref_count_reasonable_p): New. Pull out from
12541 is_loop_prefetching_profitable to implement the instruction to
12542 memory reference ratio heuristic. Also consider not reasonable if
12543 the memory reference count is above a threshold (to avoid
12544 explosive compilation time.
12545 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
12546 is_loop_prefetching_profitable to implement the instruction to
12547 prefetch ratio heuristic.
12548 (is_loop_prefetching_profitable): Removed.
12549 (loop_prefetch_arrays): Distribute the cost analysis across the
12550 function to allow early exit of the prefetch analysis.
12551 is_loop_prefetching_profitable is splitted into three functions,
12552 with each one called as early as possible.
12553 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
12554 number of memory references in a loop is considered too many.
12556 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
12558 * reload.c (find_reloads): Don't clear badop if we have a winreg
12559 alternative, but not win, and the class only has fixed regs.
12560 * hard-reg-set.h (class_only_fixed_regs): Declare.
12561 * reginfo.c (class_only_fixed_regs): New array.
12562 (init_reg_sets_1): Initialize it.
12563 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
12564 discourage alternatives using the stack pointer.
12566 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
12568 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
12570 * config/arm/arm.md (cbranchqi4): Fix array size.
12571 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
12572 calculating length.
12574 2010-07-09 Richard Guenther <rguenther@suse.de>
12576 * gimple.c (struct type_fixup_s): New struct and VEC type.
12577 (gimple_register_type_fixups): New static global.
12578 (gimple_queue_type_fixup): New function.
12579 (gimple_types_compatible_p): Queue type fixups instead of
12580 applying them here.
12581 (gimple_register_type): Apply queued fixups for the
12582 canonical type. Empty the type fixup queue.
12584 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
12586 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
12587 * configure: Regenerate.
12588 * config.in: Ditto.
12590 2010-07-09 Jakub Jelinek <jakub@redhat.com>
12591 Denys Vlasenko <dvlasenk@redhat.com>
12592 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12594 PR tree-optimization/28632
12595 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
12596 (extract_range_from_binary_expr): Further optimize
12597 BIT_AND_EXPR and BIT_IOR_EXPR.
12599 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
12601 * tree-if-conv.c (fold_or_predicates): New.
12602 (add_to_predicate_list): Call it.
12604 2010-07-09 Richard Guenther <rguenther@suse.de>
12606 PR middle-end/44890
12607 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
12608 if base is a pointer.
12609 * tree-cfg.c (verify_expr): Update MEM_REF checking.
12611 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12614 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
12615 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
12616 builtin mask for load/store builtins.
12618 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
12620 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
12622 * configure: Regenerate.
12623 * config/i386/i386.c (ix86_print_operand) <case ';'>:
12624 Remove TARGET_MACHO.
12626 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
12628 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
12630 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
12632 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
12634 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
12636 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
12638 * config/picochip/picochip.md (commsTestPort): Emit more
12639 efficient sequence for tstport instruction.
12641 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
12643 * config/i386/i386.c (ix86_veclib_handler): Make static.
12645 2010-07-09 Richard Guenther <rguenther@suse.de>
12647 PR tree-optimization/44852
12648 * tree-ssa-alias.c: Include toplev.h for exact_log2.
12649 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
12651 (indirect_refs_may_alias_p): Likewise.
12652 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
12654 2010-07-09 Richard Guenther <rguenther@suse.de>
12656 PR tree-optimization/44882
12657 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
12659 (vectorizable_load): Likewise.
12661 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
12664 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
12665 All callers changed.
12666 Handle the case when we're called for the epilogue.
12667 (thumb_unexpanded_epilogue): Use it.
12668 (thumb1_expand_epilogue): Likewise.
12670 2010-07-09 Jakub Jelinek <jakub@redhat.com>
12672 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
12673 both ranges are range_int_cst_p with non-negative minimum,
12674 try harder to derive smaller range.
12676 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12678 * genrecog.c: Include diagnostic-core.h before toplev.h.
12679 * genoutput.c: Likewise.
12680 * genextract.c: Likewise.
12681 * genautomata.c: Likewise.
12682 * genemit.c: Likewise.
12683 * genpeep.c: Likewise.
12684 * genattrtab.c: Likewise.
12685 * genconditions.c: Likewise.
12686 * genpreds.c: Likewise.
12688 2010-07-08 Andi Kleen <ak@linux.intel.com>
12690 * lto-section-in.c (lto_section_name): Add missing comma.
12692 2010-07-08 Anatoly Sokolov <aesok@post.ru>
12694 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
12695 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
12696 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
12697 (ia64_override_options): Rename to...
12698 (ia64_option_override): ... this one. Make static.
12700 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12702 PR middle-end/44843
12703 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
12704 pointed-to type of the offset in a MEM_REF to compute the alignment.
12706 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
12708 * final.c (final_scan_insn): Replace
12709 TARGET_UNWIND_INFO macro check by unwind_emit
12711 * targhooks.c (default_unwind_emit): Removed.
12712 * targhooks.h (default_unwind_emit): Likewise.
12713 * target.def (unwind_emit): Set default value to NULL.
12715 * config/i386/i386-protos.h (ix86_asm_output_function_label):
12717 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
12718 for NULL fntype argument and allow 64-bit targets.
12719 (ix86_asm_output_function_label): New function.
12720 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
12721 (ix86_handle_fndecl_attribute): Likewise.
12722 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
12723 * doc/doc/tm.texi: Regenerated.
12724 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
12725 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
12726 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
12727 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
12728 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
12729 * config/elfos.h: Likewise.
12730 * config/i386/cygming.h: Likewise.
12731 * config/netbsd-aout.h: Likewise.
12732 * config/openbsd.h: Likewise.
12733 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
12734 by ix86_asm_output_function_label function call.
12735 * varasm.c (assemble_start_function): Use
12736 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
12738 2010-07-08 Jan Hubicka <jh@suse.cz>
12740 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
12742 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
12744 * ipa-cp.c (ipcp_estimate_growth): Use it.
12745 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
12748 2010-07-08 Jan Hubicka <jh@suse.cz>
12750 * tree-inline.c (declare_return_variable): Allocate annotation for new
12753 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
12755 PR tree-optimization/44710
12756 * tree-if-conv.c (parse_predicate): New.
12757 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
12758 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
12760 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
12762 * common.opt (ftree-loop-if-convert): New flag.
12763 * doc/invoke.texi (ftree-loop-if-convert): Documented.
12764 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
12765 when flag_tree_loop_if_convert is set.
12767 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
12769 * config/i386/i386.c: Use short syntax for function calls
12770 through function pointers.
12771 * config/i386/i386.md: Ditto.
12773 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12775 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
12777 2010-07-08 Richard Guenther <rguenther@suse.de>
12779 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
12780 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
12782 2010-07-08 Jakub Jelinek <jakub@redhat.com>
12784 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
12785 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
12786 (loc_list_from_tree): Likewise.
12787 (output_loc_operands): Handle outputting DW_OP_const[48]u
12788 with loc->dtprel set.
12789 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
12791 2010-07-08 Jan Hubicka <jh@suse.cz>
12793 * ipa.c: Include pointer-set.h
12794 (cgraph_externally_visible_p): New attribute ALIASED;
12795 when in LTO, hidden symbols are local unless they are aliased.
12796 (function_and_variable_visibility): Compute aliased nodes;
12797 handle LTO and hidden symbol on functions and vars.
12798 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
12799 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
12801 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12803 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12804 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12805 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12806 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12807 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12808 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
12809 (ix86_gen_probe_stack_range): Likewise.
12810 (override_options): Set them.
12811 (ix86_target_stack_probe): New function.
12812 (ix86_compute_frame_layout): Force use of push instructions to
12813 save registers if stack checking with probes is enabled.
12814 (get_scratch_register_on_entry): New function.
12815 (release_scratch_register_on_entry): Likewise.
12816 (ix86_adjust_stack_and_probe): Likewise.
12817 (output_adjust_stack_and_probe): Likewise.
12818 (ix86_emit_probe_stack_range): Likewise.
12819 (output_probe_stack_range): Likewise.
12820 (ix86_expand_prologue): Emit stack checking code if static built-in
12821 stack checking is enabled.
12822 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
12823 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
12824 (output_adjust_stack_and_probe): Likewise.
12825 (output_probe_stack_range): Likewise.
12826 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12827 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
12828 TARGET_STACK_PROBE.
12829 (allocate_stack_worker_64): Likewise.
12830 (allocate_stack): Likewise.
12831 (adjust_stack_and_probe): New insn.
12832 (probe_stack_range): Likewise.
12834 2010-07-08 Richard Guenther <rguenther@suse.de>
12836 PR tree-optimization/44831
12837 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
12838 a MEM_REF preserving TBAA info of the original dereference.
12839 Dereference the original pointer if the address is not invariant.
12840 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
12841 at least one invariant address that we are going to dereference.
12843 2010-07-08 Richard Guenther <rguenther@suse.de>
12845 PR tree-optimization/44861
12846 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
12847 information when building MEM_REFs.
12848 (vectorizable_load): Likewise.
12849 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
12851 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12853 * config/sol2-c.c: Do not include diagnostic-core.h.
12855 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12858 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
12859 with respect to current_function_decl. Pass decl of the function.
12860 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
12861 * ipa-inline.c (compute_inline_parameters): Pass decl to
12862 estimated_stack_frame_size.
12864 2010-07-08 Richard Guenther <rguenther@suse.de>
12866 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12868 (valueize_refs): Call it.
12870 2010-07-08 Richard Guenther <rguenther@suse.de>
12872 PR rtl-optimization/44838
12873 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
12874 SSA form do not use pointer equivalence.
12876 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
12878 * dwarf2out.c (AT_linkage_name): Delete.
12879 (add_linkage_attr): New function.
12880 (add_linkage_name): Call it to emit the linkage attribute.
12881 (dwarf2out_finish): Likewise.
12882 (move_linkage_attr): Explicitly accept both attribute variants.
12884 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12886 * toplev.h: Do not include diagnostic-core.h.
12887 Include diagnostic-core.h in every file that includes toplev.h.
12888 * c-tree.h: Do not include toplev.h.
12889 * pretty-print.h: Update comment.
12890 * Makefile.in: Update dependencies.
12891 * alias.c: Include diagnostic-core.h in every file that includes
12893 * attribs.c: Likewise.
12894 * auto-inc-dec.c: Likewise.
12895 * bb-reorder.c: Likewise.
12896 * bt-load.c: Likewise.
12897 * caller-save.c: Likewise.
12898 * calls.c: Likewise.
12900 * cfganal.c: Likewise.
12901 * cfgbuild.c: Likewise.
12902 * cfgcleanup.c: Likewise.
12903 * cfghooks.c: Likewise.
12904 * cfgloop.c: Likewise.
12905 * combine.c: Likewise.
12906 * config/alpha/alpha.c: Likewise.
12907 * config/arc/arc.c: Likewise.
12908 * config/arm/arm.c: Likewise.
12909 * config/arm/pe.c: Likewise.
12910 * config/avr/avr.c: Likewise.
12911 * config/bfin/bfin.c: Likewise.
12912 * config/cris/cris.c: Likewise.
12913 * config/crx/crx.c: Likewise.
12914 * config/darwin-c.c: Likewise.
12915 * config/darwin.c: Likewise.
12916 * config/fr30/fr30.c: Likewise.
12917 * config/frv/frv.c: Likewise.
12918 * config/h8300/h8300.c: Likewise.
12919 * config/host-darwin.c: Likewise.
12920 * config/i386/i386.c: Likewise.
12921 * config/i386/netware.c: Likewise.
12922 * config/i386/nwld.c: Likewise.
12923 * config/i386/winnt-cxx.c: Likewise.
12924 * config/i386/winnt-stubs.c: Likewise.
12925 * config/i386/winnt.c: Likewise.
12926 * config/ia64/ia64-c.c: Likewise.
12927 * config/ia64/ia64.c: Likewise.
12928 * config/iq2000/iq2000.c: Likewise.
12929 * config/lm32/lm32.c: Likewise.
12930 * config/m32c/m32c-pragma.c: Likewise.
12931 * config/m32c/m32c.c: Likewise.
12932 * config/m32r/m32r.c: Likewise.
12933 * config/m68hc11/m68hc11.c: Likewise.
12934 * config/m68k/m68k.c: Likewise.
12935 * config/mcore/mcore.c: Likewise.
12936 * config/mep/mep-pragma.c: Likewise.
12937 * config/mep/mep.c: Likewise.
12938 * config/mmix/mmix.c: Likewise.
12939 * config/mn10300/mn10300.c: Likewise.
12940 * config/moxie/moxie.c: Likewise.
12941 * config/pa/pa.c: Likewise.
12942 * config/pdp11/pdp11.c: Likewise.
12943 * config/picochip/picochip.c: Likewise.
12944 * config/rs6000/rs6000-c.c: Likewise.
12945 * config/rs6000/rs6000.c: Likewise.
12946 * config/rx/rx.c: Likewise.
12947 * config/s390/s390.c: Likewise.
12948 * config/score/score.c: Likewise.
12949 * config/score/score3.c: Likewise.
12950 * config/score/score7.c: Likewise.
12951 * config/sh/sh.c: Likewise.
12952 * config/sh/symbian-base.c: Likewise.
12953 * config/sh/symbian-c.c: Likewise.
12954 * config/sh/symbian-cxx.c: Likewise.
12955 * config/sol2-c.c: Likewise.
12956 * config/sol2.c: Likewise.
12957 * config/sparc/sparc.c: Likewise.
12958 * config/spu/spu.c: Likewise.
12959 * config/stormy16/stormy16.c: Likewise.
12960 * config/v850/v850-c.c: Likewise.
12961 * config/v850/v850.c: Likewise.
12962 * config/vax/vax.c: Likewise.
12963 * config/vxworks.c: Likewise.
12964 * config/xtensa/xtensa.c: Likewise.
12965 * convert.c: Likewise.
12967 * cselib.c: Likewise.
12968 * dbgcnt.c: Likewise.
12969 * dbxout.c: Likewise.
12971 * dominance.c: Likewise.
12972 * emit-rtl.c: Likewise.
12973 * explow.c: Likewise.
12974 * expmed.c: Likewise.
12975 * fixed-value.c: Likewise.
12976 * fold-const.c: Likewise.
12977 * fwprop.c: Likewise.
12978 * gcse.c: Likewise.
12979 * ggc-common.c: Likewise.
12980 * ggc-page.c: Likewise.
12981 * ggc-zone.c: Likewise.
12982 * gimple-low.c: Likewise.
12983 * gimplify.c: Likewise.
12984 * graph.c: Likewise.
12985 * haifa-sched.c: Likewise.
12986 * ifcvt.c: Likewise.
12987 * implicit-zee.c: Likewise.
12988 * integrate.c: Likewise.
12989 * ira-build.c: Likewise.
12990 * ira-color.c: Likewise.
12991 * ira-conflicts.c: Likewise.
12992 * ira-costs.c: Likewise.
12993 * ira-lives.c: Likewise.
12995 * lists.c: Likewise.
12996 * loop-doloop.c: Likewise.
12997 * loop-iv.c: Likewise.
12998 * lto-opts.c: Likewise.
12999 * lto-symtab.c: Likewise.
13000 * main.c: Likewise.
13001 * modulo-sched.c: Likewise.
13002 * optabs.c: Likewise.
13003 * params.c: Likewise.
13004 * plugin.c: Likewise.
13005 * postreload-gcse.c: Likewise.
13006 * postreload.c: Likewise.
13007 * predict.c: Likewise.
13008 * profile.c: Likewise.
13009 * real.c: Likewise.
13010 * regcprop.c: Likewise.
13011 * reginfo.c: Likewise.
13012 * regmove.c: Likewise.
13013 * reorg.c: Likewise.
13014 * resource.c: Likewise.
13016 * rtlanal.c: Likewise.
13017 * sched-deps.c: Likewise.
13018 * sched-ebb.c: Likewise.
13019 * sched-rgn.c: Likewise.
13020 * sdbout.c: Likewise.
13021 * sel-sched-dump.c: Likewise.
13022 * sel-sched-ir.c: Likewise.
13023 * simplify-rtx.c: Likewise.
13024 * stmt.c: Likewise.
13025 * stor-layout.c: Likewise.
13026 * store-motion.c: Likewise.
13027 * targhooks.c: Likewise.
13028 * tree-cfg.c: Likewise.
13029 * tree-cfgcleanup.c: Likewise.
13030 * tree-dump.c: Likewise.
13031 * tree-eh.c: Likewise.
13032 * tree-inline.c: Likewise.
13033 * tree-nomudflap.c: Likewise.
13034 * tree-object-size.c: Likewise.
13035 * tree-optimize.c: Likewise.
13036 * tree-outof-ssa.c: Likewise.
13037 * tree-phinodes.c: Likewise.
13038 * tree-profile.c: Likewise.
13039 * tree-ssa-ccp.c: Likewise.
13040 * tree-ssa-coalesce.c: Likewise.
13041 * tree-ssa-live.c: Likewise.
13042 * tree-ssa-loop-niter.c: Likewise.
13043 * tree-ssa-loop-prefetch.c: Likewise.
13044 * tree-ssa-loop.c: Likewise.
13045 * tree-ssa-structalias.c: Likewise.
13046 * tree-ssa-uninit.c: Likewise.
13047 * tree-ssa.c: Likewise.
13048 * tree-vect-data-refs.c: Likewise.
13049 * tree-vect-loop-manip.c: Likewise.
13050 * tree-vect-loop.c: Likewise.
13051 * tree-vect-patterns.c: Likewise.
13052 * tree-vect-stmts.c: Likewise.
13053 * tree-vrp.c: Likewise.
13054 * varasm.c: Likewise.
13057 * xcoffout.c: Likewise.
13059 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
13061 * gengtype.c (write_field_root): New function.
13062 (write_root): Use it.
13064 2010-07-07 Wei Guozhi <carrot@google.com>
13066 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
13067 of lowest bits to lshift/compare): Add a missing line.
13069 2010-07-07 Wei Guozhi <carrot@google.com>
13071 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
13072 of lowest bits to lshift/compare): New.
13074 2010-07-07 Tom Tromey <tromey@redhat.com>
13076 * doc/tm.texi: Update.
13077 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
13079 * target.def (want_debug_pub_sections): New hook.
13080 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
13081 * dwarf2out.c (add_pubname_string): Check
13082 targetm.want_debug_pub_sections.
13083 (add_pubname): Likewise.
13084 (add_pubtype): Likewise.
13086 2010-07-07 Jie Zhang <jie@codesourcery.com>
13088 * genautomata.c (output_automata_list_min_issue_delay_code):
13089 Correctly decompress min_issue_delay.
13091 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
13093 PR rtl-optimization/44404
13094 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
13095 possible, use reg_overlap_mentioned_p instead.
13097 2010-07-07 Duncan Sands <baldrick@free.fr>
13099 PR middle-end/41355
13100 * tree.c (build_function_type_skip_args): Copy the original type using
13101 build_distinct_type_copy rather than copy_node.
13103 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
13106 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
13108 (ix86_expand_prologue): Likewise.
13109 (ix86_handle_fndecl_attribute): Likewise.
13110 (ix86_asm_declare_function_name): Likewise.
13111 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13112 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13113 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
13114 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
13115 * doc/extend.texi: Likewise.
13117 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
13120 * config/i386/i386.md (rdrand<mode>): Changed to expand to
13121 retry if the carry flag isn't valid.
13122 (rdrand<mode>_1): New.
13124 2010-07-07 Richard Guenther <rguenther@suse.de>
13126 PR middle-end/44790
13127 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
13128 for expanding the constant offset for MEM_REFs.
13130 2010-07-07 Richard Guenther <rguenther@suse.de>
13132 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
13133 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
13134 * gimple.h (is_gimple_operand): Remove.
13135 * gimple.c (is_gimple_operand): Likewise.
13136 (walk_gimple_op): Fix wi->val_only setting for calls.
13137 * tree-cfg.c (verify_gimple_call): Fix argument validation.
13138 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
13139 invalid gimple calls.
13141 2010-07-06 Jan Hubicka <jh@suse.cz>
13143 * lto-cgraph.c (output_cgraph): Add missing declaration.
13145 2010-07-06 Jan Hubicka <jh@suse.cz>
13147 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
13150 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
13152 * doc/gimple.texi (GIMPLE_DEBUG): Document.
13153 * doc/rtl.texi (Debug Information): New node.
13154 (NOTE_INSN_VAR_LOCATION): Document.
13155 (debug_insn): Likewise.
13156 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
13158 2010-07-07 Jan Hubicka <jh@suse.cz>
13160 With parts by Richard Guenther.
13162 PR middle-end/44813
13163 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
13164 for functions passed by reference.
13165 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
13166 in memory when passed by reference.
13167 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
13169 * ipa-split.c (split_function): Cleanup way return value is passed;
13170 handle SSA DECL_BY_REFERENCE retvals.
13171 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
13172 DECL_BY_REFERENCE is set.
13173 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
13174 find_what_p_points_to): Handle RESULT_DECL.
13175 * tree-inline.c (declare_return_variable): Get new entry_block argument;
13176 when passing by reference ensure that RESULT_DECL is gimple_val.
13177 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
13178 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
13180 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
13182 PR rtl-optimization/44787
13183 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
13184 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
13186 2010-07-06 Jan Hubicka <jh@suse.cz>
13188 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
13189 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
13190 with body can prevail.
13191 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
13192 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
13193 * cgraph.c (cgraph_get_node_or_alias): New function.
13194 * cgraph.h (cgraph_get_node_or_alias): Declare.
13196 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
13198 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
13200 (ix86_expand_prologue): Likewise.
13201 (ix86_handle_fndecl_attribute): Likewise.
13202 (ix86_asm_declare_function_name): New function for
13203 ASM_DECLARE_FUNCTION_NAME.
13204 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
13205 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
13206 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
13207 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
13208 * doc/extend.texi: Adjust documentation about ms_hook_prologue
13211 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
13213 * config/i386/i386.md (immediate_operand): New mode attribute.
13215 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
13216 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
13217 using P mode iterator.
13218 (pro_epilogue_adjust_stack_di_2): Rename from
13219 pro_epilogue_adjust_stack_rex64_2.
13221 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
13223 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
13225 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
13226 through gen_mov_insv_1 function pointer.
13227 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
13228 gen_truncxf<mode>2 through gen_truncxf function pointer.
13229 (remainder<mode>3): Ditto.
13230 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
13231 (allocate_stack): Call gen_allocate_stack_worker_64 or
13232 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
13234 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
13237 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
13239 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
13240 operand constraint instead of <r><i>m.
13242 2010-07-06 Richard Guenther <rguenther@suse.de>
13244 PR middle-end/44828
13245 * convert.c (convert_to_integer): Watch out for overflowing
13248 2010-07-05 Jan Hubicka <jh@suse.cz>
13250 * lto-streamer.c (write_symbol_vec): Rename to ...
13251 (write_symbol) ... this one; write only symbol given and when
13252 present in cache. Sanity check that what is defined is present
13253 in cgraph/varpool with body/finalized decl.
13254 (write_symbols_of_kind): Remove.
13255 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
13256 pairs to produce symtab.
13257 (produce_asm_for_decls): Update call of produce_symtab; don't do so
13258 when doing WPA streaming.
13260 2010-07-05 Jan Hubicka <jh@suse.cz>
13262 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
13263 function is still available to fold into.
13265 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
13267 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
13268 * function.h (struct_function): Change type of local_decls field
13270 (add_local_decl): New function.
13271 (FOR_EACH_LOCAL_DECL): New macro.
13272 * cfgexpand.c (init_vars_expansion): Adjust for new type of
13274 (estimated_stack_frame_size): Likewise.
13275 (expand_used_vars): Likewise.
13276 * cgraphbuild.c (build_cgraph_edges): Likewise.
13277 * function.c (instantiate_decls_1): Likewise.
13278 * ipa-struct-reorg.c (build_data_structure): Likewise.
13279 * ipa-type-escape.c (analyze_function): Likewise.
13280 * lto-streamer-in.c (input_function): Likewise.
13281 * lto-streamer-out.c (output_function): Likewise.
13282 * tree-ssa-live.c (remove_unused_locals): Likewise.
13283 * tree.c (free_lang_data_in_decl): Likewise.
13284 (find_decls_types_in_node): Likewise.
13285 * omp-low.c (remove_exit_barrier): Likewise.
13286 (expand_omp_taskreg): Likewise.
13287 (list2chain): Rename to...
13288 (vec2chain): ...this. Adjust.
13289 * cgraphunit.c (assemble_thunk): Call add_local_decl.
13290 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
13291 * gimple-low.c (record_vars_into): Likewise.
13292 * tree-inline.c (remap_decls): Likewise.
13293 (declare_return_variable): Likewise.
13294 (declare_inline_vars): Likewise.
13295 (copy_forbidden): Adjust for new type of cfun->local_decls.
13296 (add_local_variables): New function.
13297 (expand_call_inline): Call it.
13298 (tree_function_versioning): Likewise.
13300 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
13302 AVX Programming Reference (June, 2010)
13303 * config/i386/cpuid.h (bit_F16C): New.
13304 (bit_RDRND): Likewise.
13305 (bit_FSGSBASE): Likewise.
13307 * config/i386/i386-builtin-types.def: Add
13308 "DEF_FUNCTION_TYPE (UINT16)", function types for
13309 float16 <-> float conversions and
13310 "DEF_FUNCTION_TYPE (VOID, UINT64)".
13312 * config/i386/i386-c.c (ix86_target_macros_internal): Support
13313 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
13314 OPTION_MASK_ISA_F16C.
13316 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
13317 (OPTION_MASK_ISA_RDRND_SET): Likewise.
13318 (OPTION_MASK_ISA_F16C_SET): Likewise.
13319 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
13320 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
13321 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
13322 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
13323 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
13324 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
13325 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
13326 (override_options): Handle them.
13327 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
13328 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
13329 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
13330 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
13331 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
13332 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
13333 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
13334 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
13335 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
13336 (bdesc_args): Likewise.
13337 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
13338 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
13339 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
13340 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
13341 Handle non-memory store.
13343 * config/i386/i386.h (TARGET_FSGSBASE): New.
13344 (TARGET_RDRND): Likewise.
13345 (TARGET_F12C): Likewise.
13347 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
13348 (UNSPEC_VCVTPS2PH): Likewise.
13349 (UNSPECV_RDFSBASE): Likewise.
13350 (UNSPECV_RDGSBASE): Likewise.
13351 (UNSPECV_WRFSBASE): Likewise.
13352 (UNSPECV_WRGSBASE): Likewise.
13353 (UNSPECV_RDRAND): Likewise.
13354 (rdfsbase<mode>): Likewise.
13355 (rdgsbase<mode>): Likewise.
13356 (wrfsbase<mode>): Likewise.
13357 (wrgsbase<mode>): Likewise.
13358 (rdrand<mode>): Likewise.
13360 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
13362 * config/i386/immintrin.h (_rdrand_u16): New.
13363 (_rdrand_u32): Likewise.
13364 (_readfsbase_u32): Likewise.
13365 (_readfsbase_u64): Likewise.
13366 (_readgsbase_u32): Likewise.
13367 (_readgsbase_u64): Likewise.
13368 (_writefsbase_u32): Likewise.
13369 (_writefsbase_u64): Likewise.
13370 (_writegsbase_u32): Likewise.
13371 (_writegsbase_u64): Likewise.
13372 (_rdrand_u64): Likewise.
13373 (_cvtsh_ss): Likewise.
13374 (_mm_cvtph_ps): Likewise.
13375 (_mm256_cvtph_ps): Likewise.
13376 (_cvtss_sh): Likewise.
13377 (_mm_cvtps_ph): Likewise.
13378 (_mm256_cvtps_ph): Likewise.
13380 * config/i386/sse.md (vcvtph2ps): New.
13381 (*vcvtph2ps_load): Likewise.
13382 (vcvtph2ps256): Likewise.
13383 (vcvtps2ph): Likewise.
13384 (*vcvtps2ph): Likewise.
13385 (*vcvtps2ph_store): Likewise.
13386 (vcvtps2ph256): Likewise.
13388 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
13390 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
13392 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
13395 * genenums.c (main): Output include of insn-constants.h
13396 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
13398 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
13400 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
13401 (override_options): Initialize it.
13402 (ix86_expand_prologue): Use it.
13404 2010-07-05 Jakub Jelinek <jakub@redhat.com>
13406 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
13408 2010-07-05 Anatoly Sokolov <aesok@post.ru>
13410 * double-int.h (fit_double_type): Remove declaration.
13411 * double-int.c (fit_double_type): Remove function.
13412 * tree.h (int_fits_type_p): Adjust prototype.
13413 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
13414 instead of fit_double_type.
13415 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
13416 instead of fit_double_type and build_int_cst_wide.
13417 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
13418 instead of fit_double_type and build_int_cst_wide.
13419 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
13420 of fit_double_type.
13422 2010-07-05 Jan Hubicka <jh@suse.cz>
13424 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
13425 in_other_partition.
13426 * lto-cgraph.c (referenced_from_other_partition_p,
13427 reachable_from_other_partition_p): Use in_other_partition flags.
13428 (output_node, output_varpool_node): COMDAT nodes always have private
13429 copies and thus are never used from other partition.
13431 2010-07-05 Anatoly Sokolov <aesok@post.ru>
13433 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13434 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
13435 * config/ia64/ia64.c Include reload.h.
13436 (ia64_memory_move_cost): New function.
13437 (TARGET_MEMORY_MOVE_COST): Define.
13438 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
13441 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
13443 PR middle-end/42505
13444 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
13445 comments about cost model.
13446 (try_add_cand_for): Add second strategy for choosing initial set
13447 based on original IVs, controlled by ORIGINALP argument.
13448 (get_initial_solution): Add ORIGINALP argument.
13449 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
13450 (find_optimal_iv_set): Try two different strategies for choosing
13451 the IV set, and return the one with lower cost.
13453 2010-07-05 Richard Guenther <rguenther@suse.de>
13455 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
13457 2010-07-05 Richard Guenther <rguenther@suse.de>
13459 * tree.c (reference_alias_ptr_type): New function.
13460 * tree.h (reference_alias_ptr_type): Declare.
13461 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
13462 allow non-TARGET_MEM_REF new refs.
13463 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
13464 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
13465 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
13466 (create_mem_ref): Get alias pointer type. Adjust calls to
13467 create_mem_ref_raw.
13468 (maybe_fold_tmr): Likewise.
13469 * tree-flow.h (create_mem_ref): Adjust prototype.
13471 2010-07-05 Jakub Jelinek <jakub@redhat.com>
13474 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
13475 *from_p is VAR_DECL.
13477 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
13479 * tree.h (build_call_list): Remove.
13480 * tree.c (build_call_list): Remove.
13482 2010-07-05 Richard Guenther <rguenther@suse.de>
13484 * double-int.h (double_int_sub): Declare.
13485 * double-int.c (double_int_sub): New function.
13486 * dwarf2out.c (field_byte_offset): Use it.
13487 * fixed-value.c (do_fixed_add): Likewise.
13488 (do_fixed_multiply): Likewise.
13489 (do_fixed_divide): Likewise.
13490 * tree-predcom.c (add_ref_to_chain): Likewise.
13491 (determine_roots_comp): Likewise.
13492 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
13494 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
13496 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
13499 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
13501 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
13502 * arm-modes.def (CC_NOTB): Don't define.
13503 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
13504 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
13505 (LTUGEU): New code_iterator.
13506 (cnb, optab): New corresponding code_attrs.
13507 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
13508 to canonical form. Operands 1 and 2 are commutative. Parametrize
13510 (addsi3_carryin_shift_<optab>): Likewise.
13511 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
13512 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
13513 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
13514 (subsi3_compare): Renamed from subsi3_compare0_c.
13515 Change CC_NOTB to CC.
13516 (arm_subsi3_insn): Allow constants for operand 0.
13517 (compare_scc peephole for eq case): New.
13518 (compare_scc splitters): Change CC_NOTB to CC.
13520 2010-07-05 Richard Guenther <rguenther@suse.de>
13522 * tree-ssa-loop-im.c (for_each_index): Do not handle
13523 ALIGN_INDIRECT_REF.
13524 (gen_lsm_tmp_name): Likewise.
13525 * tree-dump.c (dequeue_and_dump): Likewise.
13526 * tree-pretty-print.c (dump_generic_node): Likewise.
13527 (op_code_prio): Likewise.
13528 (op_symbol_code): Likewise.
13529 * tree.c (staticp): Likewise.
13530 (build1_stat): Likewise.
13531 * tree.h (INDIRECT_REF_P): Likewise.
13532 * fold-const.c (maybe_lvalue_p): Likewise.
13533 (operand_equal_p): Likewise.
13534 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13535 (ao_ref_init_from_vn_reference): Likewise.
13536 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
13537 (find_interesting_uses_address): Likewise.
13538 * dwarf2out.c (loc_list_from_tree): Likewise.
13539 * gimplify.c (gimplify_expr): Likewise.
13540 * tree-eh.c (tree_could_trap_p): Likewise.
13541 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13542 * cfgexpand.c (expand_debug_expr): Likewise.
13543 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13544 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13545 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
13546 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
13547 * tree-ssa-operands.c (get_expr_operands): Likewise.
13548 * expr.c (safe_from_p): Likewise.
13549 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
13550 * tree-vect-data-refs.c (vect_setup_realignment): Build
13551 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
13552 * tree-vect-stmts.c (vectorizable_load): Likewise.
13553 * tree.def (ALIGN_INDIRECT_REF): Remove.
13555 2010-07-05 Richard Guenther <rguenther@suse.de>
13557 PR tree-optimization/44784
13558 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
13559 for inserted stmts.
13560 (find_or_generate_expression): Fix SCCVN insertion check.
13562 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
13564 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
13565 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
13566 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
13569 2010-07-05 Ira Rosen <irar@il.ibm.com>
13571 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
13572 statements that are not vectorized.
13573 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
13576 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
13579 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
13581 2010-07-05 Richard Guenther <rguenther@suse.de>
13583 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
13584 RESULT_DECLs properly.
13586 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
13588 PR rtl-optimization/44695
13589 * config/i386/i386.md (extract_code): Removed.
13590 (<u>divmodqi4): Likewise.
13592 (udivmodqi4): Likewise.
13593 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
13594 (udivmodhiqi3): Likewise.
13596 2010-07-04 Jan Hubicka <jh@suse.cz>
13598 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
13600 2010-07-04 Jan Hubicka <jh@suse.cz>
13602 * cgraphunit.c (init_cgraph): Only initialize dump file if it
13603 is not already initialized.
13605 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
13607 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
13608 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
13609 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
13610 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
13611 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
13612 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
13613 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
13614 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
13615 (sync_new_nand_optab): Redefine as macros.
13616 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
13618 (direct_optab_index): New enum.
13619 (direct_optab_d): New structure.
13620 (direct_optab): New typedef.
13621 (direct_optab_table): Declare.
13622 (direct_optab_handler, set_direct_optab_handler): New functions.
13623 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
13624 (sync_lock_release_optab): New macros.
13625 * optabs.c (direct_optab_table): New variable.
13626 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
13627 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
13628 cmpstr_optab and cmpstrn_optab.
13629 (emit_conditional_move): Likewise for movcc_optab.
13630 (can_conditionally_move_p): Likewise for movcc_gen_code.
13631 (init_insn_codes): Clear direct_optab_table.
13632 (init_optabs): Don't initialize the new "direct optabs" here.
13633 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
13635 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
13636 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
13637 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
13638 (expand_sync_operation): Likewise other sync_*_optabs.
13639 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
13640 to sync_compare_and_swap_optab.
13641 (expand_sync_lock_test_and_set): Use direct_optab_handler for
13642 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
13643 to the names of both.
13644 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
13645 cmpstr_optab and cmpstrn_optab.
13646 (expand_builtin_lock_release): Likewise sync_lock_release.
13647 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
13648 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
13649 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
13650 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
13651 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
13652 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
13653 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
13654 (sync_lock_test_and_set, sync_lock_release): Delete.
13655 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
13656 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
13657 * genopinit.c (optabs): Use set_direct_optab_handler for the new
13659 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
13660 the "optab" local variable. Use direct_optab_handler for optab and
13661 sync_compare_and_swap_optab.
13662 * reload1.c (reload_in_optab, reload_out_optab): Delete.
13663 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
13664 reload_in_optab and reload_out_optab.
13665 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
13666 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
13667 * config/pa/pa.c (pa_secondary_reload): Likewise.
13668 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
13669 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
13670 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
13671 (VMSupportsCS8_builtin): Likewise.
13673 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
13675 * optabs.h (optab_handlers): Change type of insn_code to int.
13676 (optab_handler, set_optab_handler, convert_optab_handler)
13677 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
13679 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
13680 (init_insn_codes): Zero both the above arrays.
13681 (init_optabs): Never call init_insn_codes first time around.
13683 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
13685 * optabs.h (optab_handler, convert_optab_handler): Turn into
13686 inline functions that return an insn code.
13687 (set_optab_handler, set_convert_optab_handler): New functions.
13688 * builtins.c: Replace optab_handler(X)->insn_code with
13689 optab_handler or set_optab_handler thoughout. Likewise
13690 convert_optab_handler(X)->insn_code with convert_optab_handler
13691 and set_convert_optab_handler.
13692 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
13693 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
13694 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
13695 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13696 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
13697 config/spu/spu.c: Likewise.
13699 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
13702 * config.gcc (sh*-*-*): Use regular expressions instead of
13703 the 'i' modifier for sed substitutions.
13705 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
13707 * gimple.c (gimple_body): Comments added.
13709 2010-07-04 Richard Guenther <rguenther@suse.de>
13711 PR middle-end/44809
13712 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
13713 of an INDIRECT_REF.
13715 2010-07-04 Richard Guenther <rguenther@suse.de>
13717 PR tree-optimization/44479
13718 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
13719 extra SSA name copy statements which preserves points-to
13721 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13722 Copy points-to information for all pointers. Properly handle
13724 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
13726 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
13729 2010-07-04 Richard Guenther <rguenther@suse.de>
13731 PR middle-end/44785
13732 * tree-inline.c (initialize_inlined_parameters): Do not
13733 re-use pointer-map slot over remap_type call.
13735 2010-07-04 Richard Guenther <rguenther@suse.de>
13737 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
13739 2010-07-04 Richard Guenther <rguenther@suse.de>
13741 PR tree-optimization/44656
13742 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
13743 again after value-replacing in the defintions lhs.
13745 2010-07-04 Ira Rosen <irar@il.ibm.com>
13746 Revital Eres <eres@il.ibm.com>
13748 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
13749 Document new arguments.
13750 * doc/tm.texi: Regenerate.
13751 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
13752 Handle unaligned store.
13753 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
13754 * target.def (builtin_vectorization_cost): Add new arguments.
13755 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
13756 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
13757 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
13758 (vect_vfa_segment_size): Fix indentation.
13759 * tree-vectorizer.h (struct _vect_peel_info): New.
13760 (struct _vect_peel_extended_info): New.
13761 (struct _loop_vec_info): Add new field for peeling hash table and a
13762 macro for its access.
13763 (VECT_MAX_COST): Define.
13764 (vect_get_load_cost): Declare.
13765 (vect_get_store_cost, vect_get_known_peeling_cost,
13766 vect_get_single_scalar_iteraion_cost): Likewise.
13767 (vect_supportable_dr_alignment): Add new argument.
13768 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
13770 (destroy_loop_vec_info): Free peeling hash table.
13771 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
13772 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
13773 vect_analyze_slp. Fix indentation.
13774 (vect_get_single_scalar_iteraion_cost): New function.
13775 (vect_get_known_peeling_cost): Likewise.
13776 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
13777 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
13778 statement. Move outside cost calculation inside unknown peeling case.
13779 Call vect_get_known_peeling_cost for known amount of peeling.
13780 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
13781 reference to the print message of forced alignment.
13782 (vect_verify_datarefs_alignment): Update call to
13783 vect_supportable_dr_alignment.
13784 (vect_get_data_access_cost): New function.
13785 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
13786 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
13787 vect_peeling_hash_choose_best_peeling): Likewise.
13788 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
13789 to store all the accesses in the loop and find best possible access to
13790 align using peeling for known alignment case. For unknown alignment
13791 check if stores are preferred or if peeling is worthy.
13792 (vect_find_same_alignment_drs): Analyze pairs of loads too.
13793 (vect_supportable_dr_alignment): Add new argument and check aligned
13794 accesses according to it.
13795 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
13796 (cost_for_stmt): Call vect_get_stmt_cost.
13797 (vect_model_simple_cost): Likewise.
13798 (vect_model_store_cost): Call vect_get_stmt_cost. Call
13799 vect_get_store_cost to calculate the cost of the statement.
13800 (vect_get_store_cost): New function.
13801 (vect_model_load_cost): Call vect_get_stmt_cost. Call
13802 vect_get_load_cost to calculate the cost of the statement.
13803 (vect_get_load_cost): New function.
13804 (vectorizable_store): Update call to vect_supportable_dr_alignment.
13805 (vectorizable_load): Likewise.
13806 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
13807 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
13808 arguments. Handle unaligned store.
13809 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
13810 (rs6000_builtin_support_vector_misalignment): Return true for word and
13811 double word alignments for VSX.
13812 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
13813 vect_supportable_dr_alignment and builtin_vectorization_cost.
13815 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13818 * config/pa/predicates.md (prefetch_cc_operand): Remove.
13819 (prefetch_nocc_operand): Likewise.
13820 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
13821 (prefetch_20): New insn.
13822 (prefetch_cc): Remove.
13823 (prefetch_nocc): Likewise.
13825 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
13827 * expr.c (vector_mode_valid_p): Move to c-common.c.
13828 * expr.h (vector_mode_valid_p): Do not declare here.
13829 * system.h: Poison GCC_EXPR_H in front-ends.
13830 * Makefile.in: Update dependencies.
13832 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13835 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
13837 2010-07-03 Jan Hubicka <jh@suse.cz>
13839 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
13840 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
13841 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
13842 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
13845 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
13847 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
13848 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
13849 TV_IPA_LTO_DECL_OUT): New.
13850 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
13852 2010-07-03 Jan Hubicka <jh@suse.cz>
13854 * ipa-inline.c (update_edge_key): Break out from ...
13855 update_callers_keys): ... here;
13856 (update_callee_keys): Update only the edges from caller to callee.
13857 (update_all_calle_keys): Do what update_calle_keys did.
13858 (decide_inlining_of_small_functions): Avoid recomputing of all
13859 callees when badness increase.
13861 2010-07-03 Jie Zhang <jie@codesourcery.com>
13863 * config/arm/arm.c (arm_attr_length_move_neon): New.
13864 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
13865 * config/arm/neon.md (define_mode_attr V_slen): Remove.
13866 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
13867 to compute length attribute.
13869 2010-07-03 Jie Zhang <jie@codesourcery.com>
13871 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
13872 as predicate for operand 1 and remove its constraint.
13873 * config/arm/predicates.md (vfp_register_operand): New.
13874 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
13875 (*push_fp_multi): Likewise.
13877 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
13879 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
13881 2010-07-03 Jan Hubicka <jh@suse.cz>
13883 * config/i386/i386.c (override_options): Revert accidental commit.
13885 2010-07-02 Le-Chun Wu <lcwu@google.com>
13888 * doc/invoke.texi: Update documentation of -Wshadow.
13890 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
13891 Julian Brown <julian@codesourcery.com>
13892 Sandra Loosemore <sandra@codesourcery.com>
13894 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
13895 comparisons. Adjust to take both operands.
13896 (arm_select_cc_mode): Handle DImode comparisons.
13897 (arm_gen_compare_reg): Generate a scratch register for DImode
13898 comparisons which require one. Use xor for Thumb equality checks.
13899 (arm_const_double_by_immediates): New.
13900 (arm_print_operand): Allow 'Q' and 'R' for constants.
13901 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
13902 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
13903 arm_canonicalize_comparison.
13904 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
13905 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
13907 (arm_const_double_by_immediates): Declare.
13908 * config/arm/constraints.md (Di): New constraint.
13909 * config/arm/predicates.md (arm_immediate_di_operand)
13910 (arm_di_operand, cmpdi_operand): New.
13911 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
13912 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
13913 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
13914 (cstoredi4): Handle non-Cirrus also.
13916 2010-07-02 Julian Brown <julian@codesourcery.com>
13917 Sandra Loosemore <sandra@codesourcery.com>
13920 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
13921 (smax<mode>3): Disable for NEON float modes when
13922 flag_unsafe_math_optimizations is false.
13923 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
13925 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
13926 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
13927 for NEON float modes when flag_unsafe_math_optimizations is false.
13928 (quad_halves_<code>v4sf): Only enable if
13929 flag_unsafe_math_optimizations is true.
13930 * doc/invoke.texi (ARM Options): Add note about floating point
13931 vectorization requiring -funsafe-math-optimizations.
13933 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
13934 Julian Brown <julian@codesourcery.com>
13936 * config/arm/neon.md (UNSPEC_VABA): Delete.
13937 (UNSPEC_VABAL): Delete.
13938 (UNSPEC_VABS): Delete.
13939 (UNSPEC_VMUL_N): Delete.
13940 (adddi3_neon): New.
13941 (subdi3_neon): New.
13942 (mul<mode>3add<mode>_neon): Make the pattern named.
13943 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
13944 (neon_vadd<mode>): Replace with define_expand, and move the remaining
13946 (neon_vadd<mode>_unspec): ...to this.
13947 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
13948 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
13949 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
13950 (neon_vaba<mode>): Rewrite in terms of vabd.
13951 (neon_vabal<mode>): Rewrite in terms of vabdl.
13952 (neon_vabs<mode>): Rewrite without unspec.
13953 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
13954 (*arm_subdi3): Likewise.
13955 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
13956 No_op attribute to disable assembly output checks.
13957 * config/arm/arm_neon.h: Regenerated.
13958 * doc/arm-neon-intrinsics.texi: Regenerated.
13960 2010-07-02 Jan Hubicka <jh@suse.cz>
13962 * ipa-split.c (split_function): For aggregate values, set the return
13963 slot optimization bit. When passing DECL_BY_REFERENCE, produce
13964 *<retval> = fncall.part ().
13965 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
13967 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
13969 * config/arm/neon.md (UNSPEC_VAND): Delete.
13970 (UNSPEC_VBIC): Delete.
13971 (UNSPEC_VCLZ): Delete.
13972 (UNSPEC_VCNT): Delete.
13973 (UNSPEC_VEOR): Delete.
13974 (UNSPEC_VORN): Delete.
13975 (UNSPEC_VORR): Delete.
13976 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
13977 core registers too.
13978 (anddi3_neon): Likewise.
13979 (orndi3_neon): Likewise.
13980 (bicdi3_neon): Likewise.
13981 (xordi3_neon): Likewise.
13982 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
13983 rid of unspec and handle unused operand.
13984 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
13985 * config/arm/predicates.md (imm_for_neon_logic_operand):
13986 Require TARGET_NEON.
13987 (imm_for_neon_inv_logic_operand): Likewise.
13988 * config/arm/arm.md (define_split for logical_binary_operator):
13989 Disable for NEON registers.
13990 (anddi3): Add new define_expand, and rename the insn. Disable
13991 this insn for NEON, where anddi3_neon now applies.
13992 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
13993 (iordi3): As for anddi3.
13994 (xordi3): Likewise.
13995 * config/arm/neon.ml (Vand): Split DImode variants and mark them
13996 as No_op to disable testing for exact instruction match.
14001 * config/arm/arm_neon.h: Regenerated.
14002 * doc/arm-neon-intrinsics.texi: Regenerated.
14004 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
14006 * expr.h (emit_stack_probe): Declare.
14007 * explow.c (emit_stack_probe): Make global.
14008 (anti_adjust_stack_and_probe): Fix comments.
14009 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14010 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14011 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14012 * config/sparc/sparc.c: Include except.h.
14013 (sparc_emit_probe_stack_range): New function.
14014 (output_probe_stack_range): Likewise.
14015 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
14016 built-in stack checking is enabled.
14017 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
14018 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14019 (probe_stack_range): New insn.
14021 2010-07-02 Richard Guenther <rguenther@suse.de>
14024 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
14025 for argument alignment.
14027 2010-07-02 Jan Hubicka <jh@suse.cz>
14029 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
14030 walk backwards from entry_bb to check only those basic block of header
14031 that might lead to execution of split part.
14032 (consider_split) ... here.
14033 (find_return_bb): Allow assignment in return BB.
14034 (find_retval): New.
14035 (split_function): Fix name of cloned function; take care of updating
14036 return value in return_bb containing move.
14038 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
14041 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
14042 used variable insn.
14044 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
14046 * implicit-zee.c (combine_reaching_defs): Fix long lines.
14047 (is_set_with_extension_DI): Delete.
14048 (struct zero_extend_info): New structure.
14049 (add_removable_zero_extend): New function.
14050 (find_removable_zero_extends): Use note_stores to find SETs.
14051 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
14053 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
14055 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
14056 is_miss_rate_acceptable. Pull total_positions computation
14057 out of the loops. Early return if miss_positions exceeds
14058 the acceptable threshold.
14059 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
14060 is_miss_rate_acceptable after renaming of compute_miss_rate.
14062 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
14064 PR middle-end/44576
14065 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
14066 of 1000) for miss rate if the address diference is greater than or
14067 equal to the cache line size (the two reference will never hit the
14070 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
14073 * config/arm/arm-modes.def (CC_NOTB): New mode.
14074 * config/arm/arm.c (get_arm_condition_code): Handle it.
14075 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
14076 * config/arm/arm.md (subsi3_compare0_c): New pattern.
14077 (compare_scc): Now a define_and_split. Add a number of extra
14078 splitters before it.
14081 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
14083 (arm_rtx_costs_1): Likewise.
14084 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
14085 * config/arm/arm.md (is_arch6): New attribute.
14086 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
14087 extendqisi2): Tighten the code somewhat, avoiding invalid
14088 RTL to occur in the expander patterns.
14089 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
14090 (thumb1_zero_extendhisi2_v6): Delete.
14091 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
14092 (thumb1_extendhisi2_v6): Delete.
14093 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
14094 (thumb1_extendqisi2_v6): Delete.
14095 (zero_extendhisi2 for register input splitter): New.
14096 (zero_extendqisi2 for register input splitter): New.
14097 (thumb1_extendhisi2 for register input splitter): New.
14098 (extendhisi2 for register input splitter): New.
14099 (extendqisi2 for register input splitter): New.
14100 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
14101 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
14102 and add support for a register alternative requiring a split.
14103 (thumb1_zero_extendqisi2): Likewise.
14104 (arm_zero_extendqisi2): Likewise.
14105 (arm_extendhisi2): Likewise.
14106 (arm_extendqisi2): Likewise.
14108 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
14110 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
14111 instead of an unspec.
14112 (neon_expand_vector_init): Likewise.
14113 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
14114 (UNSPEC_VDUP_LANE): Delete.
14115 (UNSPEC VDUP_N): Delete.
14116 (UNSPEC_VGET_HIGH): Delete.
14117 (UNSPEC_VGET_LANE): Delete.
14118 (UNSPEC_VGET_LOW): Delete.
14119 (UNSPEC_VMVN): Delete.
14120 (UNSPEC_VSET_LANE): Delete.
14121 (V_double_vector_mode): New.
14122 (vec_set<mode>_internal): Make code emitted match that for the
14123 corresponding intrinsics.
14124 (vec_setv2di_internal): Likewise.
14125 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
14126 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
14127 (neon_vset_lane<mode>): Combine double and quad patterns and
14128 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
14129 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
14130 (neon_vdup_n<mode>): Rewrite RTL without unspec.
14131 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
14132 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
14133 with neon_vdup_lanev2di, adjusting the pattern from the latter
14134 to be predicable for consistency.
14135 (neon_vdup_lane<mode>_internal): New.
14136 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
14137 to avoid using an unspec.
14138 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
14139 (neon_vdup_lanev2di): Turn into a define_expand.
14140 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
14141 (neon_vget_high<mode>): Replace with....
14142 (neon_vget_highv16qi): New pattern using canonical RTL.
14143 (neon_vget_highv8hi): Likewise.
14144 (neon_vget_highv4si): Likewise.
14145 (neon_vget_highv4sf): Likewise.
14146 (neon_vget_highv2di): Likewise.
14147 (neon_vget_low<mode>): Replace with....
14148 (neon_vget_lowv16qi): New pattern using canonical RTL.
14149 (neon_vget_lowv8hi): Likewise.
14150 (neon_vget_lowv4si): Likewise.
14151 (neon_vget_lowv4sf): Likewise.
14152 (neon_vget_lowv2di): Likewise.
14154 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
14155 test for this emitting vmov.
14156 (Vset_lane): Likewise.
14157 (Vdup_n): Likewise.
14158 (Vmov_n): Likewise.
14160 * doc/arm-neon-intrinsics.texi: Regenerated.
14162 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
14164 * config/arm/neon.md (vec_extractv2di): Correct error in register
14165 numbering to reconcile with neon_vget_lanev2di.
14167 2010-07-02 Richard Guenther <rguenther@suse.de>
14169 * tree-ssa-structalias.c (pt_solution_set_var): New function.
14170 * tree-ssa-alias.h (pt_solution_set_var): Declare.
14171 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
14172 points-to information.
14174 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
14176 * config/s390/s390.c (override_options): Adopt prefetching
14177 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
14179 2010-07-02 Jan Hubicka <jh@suse.cz>
14181 * df-problems.c (df_kill_notes): Do not collect dead notes.
14182 (df_set_note): Just call add_reg_note.
14183 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
14184 df_create_unused_note): Do not deal with lists of old notes.
14185 (df_note_bb_compute): Likewise.
14187 2010-07-02 Richard Guenther <rguenther@suse.de>
14189 * tree-ssa-structalias.c (find_func_aliases): Handle
14190 pointer alignment via BIT_AND_EXPR.
14191 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
14193 2010-07-02 Richard Guenther <rguenther@suse.de>
14195 * tree-data-ref.c (initialize_data_dependence_relation): Handle
14196 mismatching number of dimensions properly.
14198 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14201 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
14202 (lo_sum (high ...) ...) patterns generated by earlier passes.
14204 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14206 * doc/install.texi (Prerequisites): Document Perl requirement on
14208 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
14210 2010-07-02 Richard Guenther <rguenther@suse.de>
14212 PR middle-end/44777
14213 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
14215 2010-07-02 Jan Hubicka <jh@suse.cz>
14217 PR middle-end/44706
14218 * predict.c (predict_paths_for_bb): Handle case when control dependence
14219 BB has only abnormal edges.
14221 2010-07-02 Richard Guenther <rguenther@suse.de>
14223 PR tree-optimization/44748
14224 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
14225 the embedded conversion in MEM_REFs.
14227 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
14229 * reload.c: Include toplev.h.
14230 * recog.c: Likewise.
14231 * Makefile.in: Adjust dependencies.
14233 2010-07-01 Jakub Jelinek <jakub@redhat.com>
14236 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
14237 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
14239 2010-07-01 Richard Guenther <rguenther@suse.de>
14241 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
14244 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
14247 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
14248 Fix argument types.
14250 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
14253 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14254 Make sure operand 0 dies.
14256 2010-07-01 Richard Guenther <rguenther@suse.de>
14258 PR middle-end/42834
14259 PR middle-end/44468
14260 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
14261 * doc/generic.texi (References to storage): Document MEM_REF.
14262 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
14263 (print_call_name): Likewise.
14264 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
14265 (build_simple_mem_ref_loc): New function.
14266 (mem_ref_offset): Likewise.
14267 * tree.h (build_simple_mem_ref_loc): Declare.
14268 (build_simple_mem_ref): Define.
14269 (mem_ref_offset): Declare.
14270 * fold-const.c: Include tree-flow.h.
14271 (operand_equal_p): Handle MEM_REF.
14272 (build_fold_addr_expr_with_type_loc): Likewise.
14273 (fold_comparison): Likewise.
14274 (fold_unary_loc): Fold
14275 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
14276 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
14277 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
14278 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
14279 (ptr_deref_may_alias_ref_p_1): Likewise.
14280 (ao_ref_base_alias_set): Properly differentiate base object for
14282 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
14283 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
14284 (indirect_refs_may_alias_p): Likewise.
14285 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
14287 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
14288 (call_may_clobber_ref_p_1): Likewise.
14289 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
14290 * expr.c (expand_assignment): Handle MEM_REF.
14291 (store_expr): Handle MEM_REFs from STRING_CSTs.
14292 (store_field): If expanding a MEM_REF of a non-addressable
14293 decl use bitfield operations.
14294 (get_inner_reference): Handle MEM_REF.
14295 (expand_expr_addr_expr_1): Likewise.
14296 (expand_expr_real_1): Likewise.
14297 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
14298 * alias.c (ao_ref_from_mem): Handle MEM_REF.
14299 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
14300 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
14301 (dr_analyze_indices): Likewise.
14302 (dr_analyze_alias): Likewise.
14303 (object_address_invariant_in_loop_p): Likewise.
14304 * gimplify.c (mark_addressable): Handle MEM_REF.
14305 (gimplify_cond_expr): Build MEM_REFs.
14306 (gimplify_modify_expr_to_memcpy): Likewise.
14307 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
14308 (gimple_fold_indirect_ref): Adjust.
14309 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
14310 * tree.def (MEM_REF): New tree code.
14311 * tree-dfa.c: Include toplev.h.
14312 (get_ref_base_and_extent): Handle MEM_REF.
14313 (get_addr_base_and_unit_offset): New function.
14314 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
14315 * gimple-fold.c (may_propagate_address_into_dereference): Handle
14317 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
14318 accesses if the array has just one dimension. Remove always true
14319 parameter. Do not require type compatibility here.
14320 (maybe_fold_offset_to_component_ref): Remove.
14321 (maybe_fold_stmt_indirect): Remove.
14322 (maybe_fold_reference): Remove INDIRECT_REF handling.
14323 Fold back to non-MEM_REF.
14324 (maybe_fold_offset_to_address): Simplify. Deal with type
14326 (maybe_fold_reference): Likewise.
14327 (maybe_fold_stmt_addition): Likewise. Also handle
14328 &ARRAY + I in addition to &ARRAY[0] + I.
14329 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
14330 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
14331 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
14332 * tree-ssa.c (useless_type_conversion_p): Make most pointer
14333 conversions useless.
14334 (warn_uninitialized_var): Handle MEM_REF.
14335 (maybe_rewrite_mem_ref_base): New function.
14336 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
14338 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
14339 INDIRECT_REF handling.
14340 (copy_tree_body_r): Handle MEM_REF.
14341 * gimple.c (is_gimple_addressable): Adjust.
14342 (is_gimple_address): Likewise.
14343 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
14344 invariant base are invariant.
14345 (is_gimple_min_lval): Adjust.
14346 (is_gimple_mem_ref_addr): New function.
14347 (get_base_address): Handle MEM_REF.
14348 (count_ptr_derefs): Likewise.
14349 (get_base_loadstore): Likewise.
14350 * gimple.h (is_gimple_mem_ref_addr): Declare.
14351 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
14352 * tree-cfg.c (verify_address): New function, split out from ...
14353 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
14354 the address operand of MEM_REFs. Verify MEM_REFs. Reject
14356 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
14357 INDIRECT_REF. Allow conversions.
14358 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
14359 a register does not change its size.
14360 (verify_types_in_gimple_reference): Verify MEM_REF.
14361 (verify_gimple_assign_single): Disallow INDIRECT_REF.
14363 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
14365 (mark_address_taken): Handle MEM_REF.
14366 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
14367 (get_asm_expr_operands): Pass opf_not_non_addressable.
14368 (get_expr_operands): Handle opf_[not_]non_addressable.
14369 Handle MEM_REF. Remove INDIRECT_REF handling.
14370 * tree-vrp.c (check_array_ref): Handle MEM_REF.
14371 (search_for_addr_array): Likewise.
14372 (check_array_bounds): Likewise.
14373 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
14374 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
14375 (ref_always_accessed_p): Likewise.
14376 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
14377 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
14379 * cgraphbuild.c (mark_load): Properly check for NULL result
14380 from get_base_address.
14381 (mark_store): Likewise.
14382 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
14383 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
14384 handling for MEM_REF.
14385 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
14386 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
14387 * builtins.c (stabilize_va_list_loc): Use the function ABI
14388 valist type if we couldn't canonicalize the argument type.
14389 Always dereference with the canonical va-list type.
14390 (maybe_emit_free_warning): Handle MEM_REF.
14391 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
14393 * builtins.c (fold_builtin_memory_op): Use ref-all types
14394 for all memcpy foldings.
14395 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
14396 (build_outer_var_ref): Likewise.
14397 (scan_omp_1_op): Likewise.
14398 (lower_rec_input_clauses): Likewise.
14399 (lower_lastprivate_clauses): Likewise.
14400 (lower_reduction_clauses): Likewise.
14401 (lower_copyprivate_clauses): Likewise.
14402 (expand_omp_atomic_pipeline): Likewise.
14403 (expand_omp_atomic_mutex): Likewise.
14404 (create_task_copyfn): Likewise.
14405 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
14406 Remove old union trick. Initialize constant offsets.
14407 (ao_ref_init_from_vn_reference): Likewise. Do not handle
14408 INDIRECT_REF. Init base_alias_set properly.
14409 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
14410 (vn_reference_fold_indirect): Adjust for MEM_REFs.
14411 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
14413 (may_insert): Remove.
14414 (visit_reference_op_load): Do not test may_insert.
14415 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
14416 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14417 a field to store the constant offset this op applies.
14418 (run_scc_vn): Adjust prototype.
14419 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
14420 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
14421 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
14422 bother about volatile qualifiers on pointers.
14423 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
14424 * tree-ssa-loop-ivopts.c
14425 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
14426 (strip_offset_1): Likewise.
14427 (find_interesting_uses_address): Replace INDIRECT_REF handling with
14429 (get_computation_cost_at): Likewise.
14430 * ipa-pure-const.c (check_op): Handle MEM_REF.
14431 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
14432 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
14434 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
14435 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
14436 (eliminate_local_variables_1): Likewise.
14437 (create_call_for_reduction_1): Likewise.
14438 (create_loads_for_reductions): Likewise.
14439 (create_loads_and_stores_for_name): Likewise.
14440 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
14441 (ssa_accessed_in_tree): Handle MEM_REF.
14442 (ssa_accessed_in_assign_rhs): Likewise.
14443 (update_type_size): Likewise.
14444 (analyze_accesses_for_call_stmt): Likewise.
14445 (analyze_accesses_for_assign_stmt): Likewise.
14446 (transform_access_sites): Likewise.
14447 (transform_allocation_sites): Likewise.
14448 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
14449 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14450 not handle INDIRECT_REF.
14451 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
14452 (cond_store_replacement): Likewise.
14453 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
14454 MEM_REF, no not handle INDIRECT_REFs.
14455 (insert_into_preds_of_block): Properly initialize avail.
14456 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
14457 for ARRAY_REFs. Properly handle reference lookups that
14458 require a bit re-interpretation.
14459 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
14460 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
14461 (build_ref_for_offset_1): Remove.
14462 (build_ref_for_offset): Build MEM_REFs.
14463 (gate_intra_sra): Disable for now.
14464 (sra_ipa_modify_expr): Handle MEM_REF.
14465 (ipa_early_sra_gate): Disable for now.
14466 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
14468 (disqualify_base_of_expr): Likewise.
14469 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
14471 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
14472 Use mem_ref_offset. Remove bogus folding.
14473 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
14474 (make_fancy_name_1): Add support for MEM_REF.
14475 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
14476 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
14477 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
14478 (compute_complex_ancestor_jump_func): Likewise.
14479 (ipa_analyze_virtual_call_uses): Likewise.
14480 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
14481 INDIRECT_REF folding with more generalized MEM_REF folding.
14482 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
14483 (forward_propagate_addr_into_variable_array_index): Also handle
14484 &ARRAY + I in addition to &ARRAY[0] + I.
14485 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
14486 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
14487 creates assignments with overlap.
14488 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
14489 (get_frame_field): Likewise.
14490 (get_nonlocal_debug_decl): Likewise.
14491 (convert_nonlocal_reference_op): Likewise.
14492 (struct nesting_info): Add mem_refs pointer-set.
14493 (create_nesting_tree): Allocate it.
14494 (convert_local_reference_op): Insert to be folded mem-refs.
14495 (fold_mem_refs): New function.
14496 (finalize_nesting_tree_1): Perform defered folding of mem-refs
14497 (free_nesting_tree): Free the pointer-set.
14498 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
14499 (vectorizable_load): Likewise.
14500 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
14501 (propagate_with_phi): Likewise.
14502 * tree-object-size.c (addr_object_size): Handle MEM_REFs
14503 instead of INDIRECT_REFs.
14504 (compute_object_offset): Handle MEM_REF.
14505 (plus_stmt_object_size): Handle MEM_REF.
14506 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
14508 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
14509 (symbol_marked_for_renaming): Likewise.
14510 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
14511 (fold-const.o): Add $(TREE_FLOW_H).
14512 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
14513 (find_func_clobbers): Likewise.
14514 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
14515 (decompose_access): Likewise.
14516 (replace_field_acc): Likewise.
14517 (replace_field_access_stmt): Likewise.
14518 (insert_new_var_in_stmt): Likewise.
14519 (get_stmt_accesses): Likewise.
14520 (reorg_structs_drive): Disable.
14521 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
14522 (ix86_canonical_va_list_type): Likewise.
14524 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
14527 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
14528 * target.def (struct gcc_target): Replace enum reg_class with
14529 reg_class_t in hook argument / return types.
14530 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
14531 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
14532 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14533 * targhooks.h (default_branch_target_register_class): Likewise.
14534 (default_ira_cover_classes, default_secondary_reload): Likewise.
14535 (default_memory_move_cost, default_register_move_cost): Likewise.
14536 * targhooks.c (default_branch_target_register_class): Likewise.
14537 (default_ira_cover_classes, default_secondary_reload): Likewise.
14538 (default_memory_move_cost, default_register_move_cost): Likewise.
14539 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
14540 * bt-load.c (branch_target_load_optimize): Likewise.
14541 * ira.c (setup_cover_and_important_classes): Likewise.
14542 * ira-costs.c (copy_cost): Likewise.
14543 * reload1.c (emit_input_reload_insns): Likewise.
14544 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
14545 * config/frv/frv.c (frv_secondary_reload): Likewise.
14546 * config/s390/s390.c (s390_secondary_reload): Likewise.
14547 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
14548 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
14549 (ix86_register_move_cost): Likewise.
14550 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
14551 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
14552 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
14553 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
14554 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
14555 (rs6000_ira_cover_classes): Likewise.
14556 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
14557 * config/picochip/picochip-protos.h (picochip_secondary_reload):
14559 * config/pa/pa.c (pa_secondary_reload): Likewise.
14560 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
14561 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
14562 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
14563 * doc/tm.texi: Regenerate.
14565 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
14567 PR bootstrrap/44726
14568 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
14570 (build_alias_set_optimal_p): Likewise.
14571 (build_base_obj_set_for_drs): Likewise.
14573 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
14575 * target.def: Remove comment about licensing problems of function
14578 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
14579 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
14580 * doc/tm.texi: Regenerate.
14582 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
14583 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
14585 * target.def (enum_va_list_p): Use DEFHOOK.
14586 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
14587 Rename ptype to ptree.
14588 * doc/tm.texi: Regenerate.
14590 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
14591 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
14592 * doc/tm.texi: Regenerate.
14594 * target.def (memory_move_cost): Use DEFHOOK.
14595 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
14596 Rename regclass AKA class to rclass.
14597 * doc/tm.texi: Regenerate.
14599 * target.def (pragma_parse): Use DEFHOOK.
14600 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
14601 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
14602 * doc/tm.texi: Regenerate.
14604 * target.def (pass_by_reference): Use DEFHOOK.
14605 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
14606 * doc/tm.texi: Regenerate.
14608 * target.def (resolve_overloaded_builtin): Rename params to arglist.
14610 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
14611 * doc/tm.texi: Regenerate.
14613 * target.def (return_pops_args): Use DEFHOOK.
14614 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
14615 Rename stack-size to size.
14616 * doc/tm.texi: Regenerate.
14618 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
14619 last-sched_cycle to last_clock, cur_cycle to clock.
14620 * doc/tm.texi.in: Use @hook.
14621 * doc/tm.texi: Regenerate.
14623 * target.def (print_operand, print_operand_address): Update comment.
14624 (print_operand_punct_valid_p): Likewise.
14626 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
14628 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
14630 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
14631 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
14632 * rtl-error.h: New.
14633 * regrename.c: Do not include toplev.h. Include rtl-error.h.
14634 * rtl-error.c: Likewise.
14635 * reload.c: Likewise.
14636 * recog.c: Likewise.
14637 * sel-sched.c: Likewise.
14638 * function.c: Likewise.
14639 * reg-stack.c: Likewise.
14640 * cfgrtl.c: Likewise.
14641 * reload1.c: Likewise.
14642 * final.c: Include rtl-error.
14643 * Makefile.in: Adjust dependencies.
14645 2010-06-30 Jan Hubicka <jh@suse.cz>
14647 PR middle-end/PR44706
14648 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
14649 to return the value.
14651 2010-06-30 Michael Matz <matz@suse.de>
14654 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
14655 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
14656 a gimple reg, attach the original VDEF to the last store in the
14659 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
14662 * config/darwin.c (darwin_override_options): Use renamed
14663 targetm.asm_out.emit_unwind_label.
14665 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
14667 PR tree-optimization/39799
14668 * tree-inline.c (remap_ssa_name): Initialize variable only if
14669 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
14671 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
14673 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
14675 2010-06-30 Richard Guenther <rguenther@suse.de>
14678 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
14679 against oscillation with reverse peephole2.
14681 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
14684 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14687 2010-06-30 Nick Clifton <nickc@redhat.com>
14689 * config/rx/rx-modes.def: New file.
14690 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
14691 (CC_REGNUM): Define.
14692 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
14694 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
14695 (SELECT_CC_MODE): Define.
14696 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
14697 (reg:CC CC_REG) instead of (cc0).
14698 (attr "cc"): Delete.
14699 (cbranchsi4): Do not split compare and branch here. Instead move
14701 (cbranchsi4_<code>): ... here. New patterns.
14702 (cmpsi): Call rx-compare_redundant to find out if it is necessary
14703 to emit the compare instruction.
14704 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
14706 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
14707 FIRST_PSEUDO_REGNUM.
14708 (rx_expand_prologue, rx_expand_epilogue): Likewise.
14709 (rx_notice_update_cc): Delete.
14710 (rx_cc_modes_compatible): New function.
14711 (flags_needed_for_conditional): New function.
14712 (flags_from_mode): New function.
14713 (rx_compare_redundant): New function - scans backwards through
14714 insn list to find out if condition flags are already set correctly.
14715 (TARGET_CC_MODES_COMPATIBLE): Define.
14716 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
14718 * config/rx/rx.h (BRANCH_COST): Define.
14719 (REGISTER_MOVE_COST): Define.
14720 * config/rx/predicates (rx_source_operand): Allow all constant types.
14721 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
14722 (tstsi4): New pattern.
14723 * config/rx/rx.c (rx_memory_move_cost): Define.
14724 (TARGET_MEMORY_MOVE_COST): Define.
14726 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
14728 * tree.h (block_may_fallthru): Declare here.
14729 * tree-flow.h (block_may_fallthru): Do not declare here.
14730 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
14732 * Makefile.in (c-typeck.o): Update dependencies.
14734 2010-06-30 Jakub Jelinek <jakub@redhat.com>
14737 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
14738 * cselib.c (cfa_base_preserved_regno): New static variable.
14739 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
14740 of REGNO (cfa_base_preserved_val->locs->loc).
14741 (cselib_preserve_cfa_base_value): Add regno argument, set
14742 cfa_base_preserved_regno to it.
14743 (cselib_invalidate_regno): Allow removal of registers other than
14744 cfa_base_preserved_regno from cfa_base_preserved_val.
14745 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
14746 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
14747 of MEM addresses, if not on LHS.
14748 (reverse_op): Don't add reverse ops for cfa_base_rtx.
14749 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
14751 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
14753 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
14755 (peep2_buf_position): New static function.
14756 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
14757 peephole2_optimize): Use it.
14758 (peep2_attempt, peep2_update_life): New static functions, broken out
14759 of peephole2_optimize.
14760 (peep2_fill_buffer): New static function.
14761 (peephole2_optimize): Change the main loop to try to fill the buffer
14762 with the maximum number of insns before matching them against
14763 peepholes. Use a forward scan. Remove special case for targets with
14764 conditional execution.
14765 * genrecog.c (change_state): Delete dead code.
14766 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14767 Rewrite so as not to expect the second insn to have had a peephole
14770 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
14772 * genhooks.c (emit_findices): Cast field precision to int.
14773 (emit_documentation): Likewise.
14775 2010-06-29 Jakub Jelinek <jakub@redhat.com>
14777 PR tree-optimization/43801
14778 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
14779 if old_decl was DECL_ONE_ONLY.
14782 * dwarf2out.c (add_accessibility_attribute): New function.
14783 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
14784 instead of adding DW_AT_accessibility manually.
14785 (gen_enumeration_type_die, gen_struct_or_union_type_die,
14786 gen_typedef_die): Use it.
14788 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14790 * vmsdbgout.c (full_name): Just output the file name if not native.
14792 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14794 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
14795 (funcnam_table): New static table.
14796 (funcnum_table): New static table.
14797 (write_rtnbeg): Write value saved in funcnum_table.
14798 (write_rtnend): Write value saved in funcnum_table.
14799 (vmsdbgout_begin_function): Save current function info in
14800 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
14801 (vmsdbgout_finish): Iterate over funcnum_table.
14803 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14805 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
14806 (vmsdbgout_type_decl): Declare
14807 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
14808 (FUNC_EPILOGUE_LABEL): New macro
14809 (vmsdbgout_begin_epilogue): New function.
14810 (vmsdbgout_type_decl): New function.
14812 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14814 * vmsdbg.h: Update copyright.
14816 2010-06-29 Douglas B Rupp <rupp@gnat.com>
14818 * vmsdbg.h (DST_K_TBG): New DST constant.
14819 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
14820 (write_modbeg): Cast module_language to avoid warning.
14821 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
14823 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
14826 * target.def, doc/tm.texi.in, genhooks.c: New files.
14827 * target.h: Instead of defining individual hook members,
14828 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
14829 include target.def.
14830 * target-def.h: Instead of defining individual hook initializers,
14831 include target-hooks-def.h.
14832 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
14833 targetm.live_on_entry -> targetm.extra_live_on_entry
14834 targetm.sched.md_finish ->targetm.sched.finish
14835 targetm.sched.md_init -> targetm.sched.init
14836 targetm.sched.md_init_global -> targetm.sched.init_global
14837 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
14838 targetm.asm_out.except_table_label ->
14839 targetm.asm_out.emit_except_table_label
14840 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
14841 targetm.target_help -> targetm.help
14842 targetm.vectorize.builtin_support_vector_misalignment ->
14843 targetm.vectorize.support_vector_misalignment
14844 targetm.file_start_app_off -> targetm.asm_file_start_app_off
14845 targetm.file_start_file_directive ->
14846 targetm.asm_file_start_file_directive
14847 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
14848 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
14849 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
14850 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
14851 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
14852 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
14853 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
14854 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
14855 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
14856 * Makefile.in (TARGET_H): Depend on target.def.
14857 (TARGET_DEF_H): Depend on target-hooks-def.h.
14858 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
14859 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
14860 * doc/tm.texi: Regenerate.
14862 * Makefile.in (s-tm-texi): Remove stray tab / rule.
14864 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
14865 (targetm.sched.init): Likewise.
14867 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
14870 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
14871 (function_arg_advance_32): Const-ify TYPE parameter.
14872 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
14873 (ix86_function_arg_advance): Change type of NAMED to bool.
14874 (function_arg_32): Const-ify CUM and TYPE parameters.
14875 (function_arg_64): Likewise. Change type of NAMED to bool.
14876 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
14878 (ix86_function_arg): Change type of NAMED to bool.
14879 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
14880 last argument as a bool.
14882 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
14884 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
14885 (OVERRIDE_OPTIONS): Add note of obsolescence.
14886 Replace references with references to TARGET_OPTION_OVERRIDE.
14887 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
14889 * targhooks.c (default_target_option_override): New function.
14890 * targhooks.h (default_target_option_override): Declare.
14891 * target.h (struct gcc_target): Add override member to
14892 target_option member.
14893 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
14894 targetm.target_option.override call.
14895 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
14896 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
14898 2010-06-29 Jan Hubicka <jh@suse.cz>
14900 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
14902 2010-06-29 Jan Hubicka <jh@suse.cz>
14904 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
14906 (rebuild_frequencies): New function.
14907 * predict.h (rebuild_frequencies): Declare.
14908 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
14909 entry block and edge reaching new_entry.
14910 (tree_function_versioning): When doing partial cloning, rebuild
14911 frequencies when done.
14912 * passes.c (execute_function_todo): Use rebild_frequencies.
14914 2010-06-29 Richard Guenther <rguenther@suse.de>
14916 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
14917 * tree-flow.h (enum noalias_state): Remove.
14918 (struct var_ann_d): Remove noalias_state member.
14920 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
14923 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
14924 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
14925 (maddhidi4): Likewise.
14927 Revert parts of the change for PR25130.
14928 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14931 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
14933 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
14934 targetm.calls.function_incoming_arg, and
14935 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
14936 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
14937 * target.h (struct gcc_target): Add function_arg_advance,
14938 function_arg, and function_incoming_arg fields.
14939 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
14940 (TARGET_FUNCTION_INCOMING_ARG): Define.
14941 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
14942 and TARGET_FUNCTION_INCOMING_ARG.
14943 * targhooks.h (default_function_arg_advance): Declare.
14944 (default_function_arg, default_function_incoming_arg): Declare.
14945 * targhooks.c (default_function_arg_advance): New function.
14946 (default_function_arg, default_function_incoming_arg): New function.
14947 * config/i386/i386.c (function_arg_advance): Rename to...
14948 (ix86_function_arg_advance): ...this. Make static.
14949 (function_arg): Rename to...
14950 (ix86_function_arg): ...this. Make static.
14951 (TARGET_FUNCTION_ARG_ADVANCE): Define.
14952 (TARGET_FUNCTION_ARG): Define.
14953 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
14954 (FUNCTION_ARG): Delete.
14955 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
14956 (function_arg): Delete prototype.
14958 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
14960 * reginfo.c (init_reg_sets_1): Adjust comments.
14961 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
14962 * calls.c (prepare_call_address): Likewise.
14963 (emit_call_1): Use targetm.calls.return_pops_args.
14964 (expand_call): Likewise.
14965 * function.c (assign_parms): Likewise.
14966 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
14967 * target.h (struct gcc_target) [struct calls]: Add
14968 return_pops_args field.
14969 * targhooks.h (default_return_pops_args): Declare.
14970 * targhooks.c (default_return_pops_args): Define.
14971 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
14972 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
14973 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
14974 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
14976 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
14977 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
14978 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
14979 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
14980 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
14981 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
14982 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
14983 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
14984 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
14985 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
14986 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
14987 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
14988 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
14989 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
14990 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
14991 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
14992 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
14993 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
14994 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
14995 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
14996 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
14997 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
14998 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
14999 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
15000 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
15001 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
15002 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
15003 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
15004 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
15005 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
15006 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
15007 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
15008 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
15009 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
15010 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
15011 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
15012 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
15013 * config/i386/i386.c (ix86_return_pops_args): Make static.
15014 Constify arguments.
15015 (TARGET_RETURN_POPS_ARGS): Define.
15016 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
15017 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
15018 (TARGET_RETURN_POPS_ARGS): Define.
15019 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
15020 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
15021 (TARGET_RETURN_POPS_ARGS): Define.
15023 2010-06-29 Richard Guenther <rguenther@suse.de>
15025 PR middle-end/44667
15026 * tree-inline.c (initialize_inlined_parameters): Make sure
15027 to remap the inlined parameter variable substitutions types.
15029 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
15031 PR rtl-optimization/44659
15032 * combine.c (make_compound_operation) <SUBREG>: Do not return the
15033 result of force_to_mode if it partially re-expanded the compound.
15035 2010-06-28 Jan Hubicka <jh@suse.cz>
15037 PR middle-end/44671
15038 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
15041 2010-06-28 Anatoly Sokolov <aesok@post.ru>
15043 * double-int.h (force_fit_type_double): Remove declaration.
15044 * double-int.c (force_fit_type_double): Move to tree.c.
15045 * tree.h (force_fit_type_double): Declare.
15046 * tree.h (force_fit_type_double): Moved from double-int.c. Use
15047 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
15048 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
15049 * convert.c (convert_to_pointer): Adjust call to
15050 force_fit_type_double.
15051 * tree-vrp.c (extract_range_from_assert,
15052 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
15053 * fold-const.c: Update comment.
15054 (int_const_binop, fold_convert_const_int_from_int,
15055 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
15056 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
15057 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
15058 round_up_loc): Adjust call to force_fit_type_double.
15060 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15062 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
15064 2010-06-28 Martin Jambor <mjambor@suse.cz>
15066 * tree-sra.c (convert_callers): New parameter, change fndecls of
15068 (modify_function): Pass the old decl to convert_callers.
15070 2010-06-28 Martin Jambor <mjambor@suse.cz>
15072 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
15073 ipa_check_create_node_params and ipa_initialize_node_params with
15074 checking asserts they are not necessary.
15076 2010-06-28 Jan Hubicka <jh@suse.cz>
15078 PR tree-optimization/44687
15079 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
15081 2010-06-28 Martin Jambor <mjambor@suse.cz>
15084 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
15085 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
15086 instead of BINFO_BASE_BINFO.
15088 2010-06-28 Michael Matz <matz@suse.de>
15090 PR middle-end/44592
15091 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
15092 proper VDEF chain for intermediate stores in the sequence.
15094 2010-06-28 Jan Hubicka <jh@suse.cz>
15096 PR tree-optimization/44357
15097 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
15098 uninlinable functions.
15100 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15102 * config.gcc (powerpc*-*-*): Handle titan.
15103 * config/rs6000/rs6000.c (titan_cost): New costs.
15104 (rs6000_override_options): Add "titan" to processor_target_table.
15105 Add Titan to branch alignment logic.
15106 Correctly set rs6000_cost for titan.
15107 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
15108 * config/rs6000/titan.md: New file.
15109 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
15111 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
15113 * tree-browser.c (TB_history_stack): Convert to a VEC.
15114 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
15115 (TB_history_prev): Likewise.
15117 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
15119 * vec.h (vec_heap_free): Add parentheses around free.
15121 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
15123 * system.h: Poison GCC_EXCEPT_H for front-end files.
15125 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
15127 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
15128 Define to NULL by default.
15129 * except.h: Define GCC_EXCEPT_H.
15130 (doing_eh): Remove prototype.
15131 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
15132 (lang_protect_cleanup_actions): Remove.
15133 * except.c (lang_protect_cleanup_actions): Remove.
15134 (doing_eh): Remove.
15135 (gen_eh_region): Don't check doing_eh here.
15136 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
15137 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
15138 instead of lang_protect_cleanup_actions.
15139 * omp-low.c (maybe_catch_exception): Likewise.
15140 * Makefile.in: Update dependencies.
15142 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
15144 * cgraph.h (struct varpool_node): new used_from_object_file flag.
15145 (struct cgraph_local_info): new used_from_object_file flag.
15146 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
15147 (cgraph_clone_node): initialize used_from_object_file.
15148 (cgraph_create_virtual_clone): initialize used_from_object_file.
15149 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
15150 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
15151 when compiling with -fwhole-program.
15152 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
15154 * ipa.c (function_and_variable_visibility): Set externally_visible
15155 flag of varpool_node if used_from_object_file flag is set.
15156 (cgraph_externally_visible_p): check used_from_object_file flag.
15157 * doc/invoke.texi (-fwhole-program option): Change description of
15158 externally_visible attribute accordingly.
15159 * doc/extend.texi (externally_visible): Ditto.
15161 2010-06-27 Jan Hubicka <jh@suse.cz>
15163 * params.def (max-inline-insns-auto): Default to 40.
15164 * doc/invoke.texi (max-inline-insns-auto): Document the change.
15166 2010-06-27 Jan Hubicka <jh@suse.cz>
15168 PR middle-end/44671
15169 PR middle-end/44686
15170 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
15172 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
15173 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
15175 2010-06-27 Anatoly Sokolov <aesok@post.ru>
15177 * target.h (struct gcc_target): Add register_move_cost field.
15178 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
15179 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
15180 * targhooks.c (default_register_move_cost): New function.
15181 * targhooks.h (default_register_move_cost): Declare function.
15182 * defaults.h (REGISTER_MOVE_COST): Delete.
15183 * ira-int.h (ira_register_move_cost): Update comment.
15184 * ira.c (ira_register_move_cost): Update comment.
15185 * reload.h (register_move_cost): Declare.
15186 * reginfo.c (register_move_cost): New function.
15187 (move_cost): Update comment.
15188 (init_move_cost, memory_move_secondary_cost): Replace
15189 REGISTER_MOVE_COST with register_move_cost.
15190 * postreload.c (reload_cse_simplify_set): (Ditto.).
15191 * reload.c (find_valid_class, find_reloads): (Ditto.).
15192 * reload1.c (choose_reload_regs): (Ditto.).
15193 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
15194 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
15195 * doc/md.texi (can_create_pseudo_p): Update documentation.
15197 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
15198 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
15199 * config/i386/i386.h (ix86_memory_move_cost): Make static.
15200 (TARGET_MEMORY_MOVE_COST): Define.
15202 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
15203 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
15204 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
15205 (TARGET_MEMORY_MOVE_COST): Define.
15207 2010-06-27 Richard Guenther <rguenther@suse.de>
15209 PR tree-optimization/44683
15210 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
15211 false edge from the inverted condition.
15213 2010-06-27 Richard Guenther <rguenther@suse.de>
15215 PR middle-end/44684
15216 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
15217 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
15218 for register LHS. Or non-store assignments.
15220 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
15222 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
15223 (sparc_emit_set_const64): Likewise. Remove disabled code.
15224 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
15225 (sparc_emit_set_const64): Likewise.
15227 2010-06-26 Catherine Moore <clm@codesourcery.com>
15229 * config/mips/mips.md (alu_type): New attribute.
15230 (type): Infer type from alu_type.
15231 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
15232 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
15233 *subsi3_extended, negsi2, negdi2, *low<mode>,
15234 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
15235 xor<mode>3, *nor<mode>3,
15236 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
15237 *zero_extendhi_truncqi): Set alu_type instead of type.
15239 2010-06-26 Douglas B Rupp <rupp@gnat.com>
15241 * config/alpha/alpha.c (alpha_need_linkage): Adjust
15242 splay_tree_new_ggc call.
15243 (alpha_use_linkage): Likewise.
15245 2010-06-26 Joseph Myers <joseph@codesourcery.com>
15247 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
15248 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
15249 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
15250 (static_specs): Remove switches_need_spaces.
15251 (process_command, do_self_spec): Hardcode handling "-o" instead of
15252 checking switches_need_spaces.
15253 * system.h (SWITCHES_NEED_SPACES): Poison.
15255 2010-06-26 Richard Guenther <rguenther@suse.de>
15257 PR tree-optimization/44393
15258 * tree-loop-distribution.c (generate_loops_for_partition): Fix
15259 stmt removal and VOP renaming.
15260 (generate_memset_zero): Remove redundant stmt updating.
15261 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
15262 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
15264 2010-06-26 Jan Hubicka <jh@suse.cz>
15266 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
15267 edges comming from header are equivalent.
15268 (visit_bb): Handle PHIs correctly.
15269 * tree-inline.c (copy_phis_for_bb): Be able to copy
15270 PHI from entry edge.
15271 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
15273 2010-06-26 Richard Guenther <rguenther@suse.de>
15275 PR middle-end/44674
15276 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
15277 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
15279 2010-06-26 Joseph Myers <joseph@codesourcery.com>
15281 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
15282 add_infile, alloc_switch): New.
15283 (process_command): Remove variable lang_n_infiles. Process
15284 options in a single pass. Use new functions for allocating
15285 infiles and switches arrays. Properly skip operands of
15286 -Xpreprocessor and -Xassembler.
15288 2010-06-26 Jan Hubicka <jh@suse.cz>
15290 PR middle-end/44671
15291 * cgraphunit.c (cgraph_function_versioning): Remove wrong
15292 cgraph_make_decl_local call; fix typo copying RTL data.
15294 2010-06-25 DJ Delorie <dj@redhat.com>
15296 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
15297 (m32c_output_aligned_common): Likewise.
15298 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
15299 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15300 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
15301 (m32c_register_pragmas): Register it.
15302 * config/m32c/m32c.c (m32c_get_pragma_address): New.
15303 (m32c_insert_attributes): Set #pragma address decls volatile.
15304 (pragma_entry_eq): New.
15305 (pragma_entry_hash): New.
15306 (m32c_note_pragma_address): New.
15307 (m32c_get_pragma_address): New.
15308 (m32c_output_aligned_common): New.
15309 * doc/extend.texi: Document the new pragma.
15311 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
15313 * config/m32c/predicates.md (m32c_any_operand): Check the code
15314 instead of memory_operand so as to allow matching volatile MEMs.
15315 (m32c_nonimmediate_operand): Likewise.
15316 (mra_operand): Allow volatiles.
15318 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
15321 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
15322 address if the offset is unknown.
15324 2010-06-25 Douglas B Rupp <rupp@gnat.com>
15326 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
15327 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
15328 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
15329 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
15330 to ia64_start_function. Invoke it.
15331 * config/ia64/ia64.c (ia64_start_function): Call new function
15332 dwarf2out_vms_debug_main_pointer.
15334 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15336 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
15337 statements computing the true predicate.
15339 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15341 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
15342 to boolean_true_node.
15343 (reset_bb_predicate): New.
15344 (predicate_bbs): Call reset_bb_predicate.
15346 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15348 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
15349 (tree_if_conversion): Returns true when something has been changed.
15350 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
15353 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
15355 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
15356 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
15357 * tree-if-conv.c: Include dbgcnt.h.
15358 (tree_if_conversion): Use if_conversion_tree to count the number of
15359 if-convertible loops.
15361 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
15363 * common.opt (fprefetch-loop-arrays): Re-define
15364 -fprefetch-loop-arrays as a tri-state option with the initial
15366 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
15367 pass only when flag_prefetch_loop_arrays > 0.
15368 * toplev.c (process_options): Note that, with tri-states,
15369 flag_prefetch_loop_arrays>0 means prefetching is enabled.
15370 * config/i386/i386.c (override_options): Enable prefetching at -O3
15371 for a set of CPUs that sw prefetching is helpful.
15372 (software_prefetching_beneficial_p): New. Return TRUE if software
15373 prefetching is beneficial for the given CPU.
15375 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
15377 PR rtl-optimization/44326
15378 * implicit-zee.c (find_removable_zero_extends): Replace
15379 INSN_P with NONDEBUG_INSN_P.
15381 2010-06-25 Martin Jambor <mjambor@suse.cz>
15383 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
15384 (struct ipa_node_params): Removed the modification_analysis_done flag.
15385 (ipa_is_param_modified): Removed.
15386 (ipa_analyze_node): Declare.
15387 (ipa_compute_jump_functions): Remove declaration.
15388 (ipa_count_arguments): Likewise.
15389 (ipa_detect_param_modifications): Likewise.
15390 (ipa_analyze_params_uses): Likewise.
15391 * ipa-prop.c (struct param_analysis_info): New type.
15392 (visit_store_addr_for_mod_analysis): Removed.
15393 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
15394 moved down in the file.
15395 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
15396 (ipa_count_arguments): Made static.
15397 (mark_modified): New function.
15398 (is_parm_modified_before_call): New function.
15399 (compute_pass_through_member_ptrs): New parameter parms_info, call
15400 is_parm_modified_before_call instead of ipa_is_param_modified.
15401 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
15402 it to compute_pass_through_member_ptrs.
15403 (ipa_compute_jump_functions): New parameter parms_info, pass it to
15404 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
15405 on the callee if it is analyzed. Made static.
15406 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
15407 is_parm_modified_before_call instead of ipa_is_param_modified.
15408 (ipa_analyze_call_uses): New parameter parms_info, pass it to
15409 ipa_analyze_indirect_call_uses.
15410 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
15411 ipa_analyze_call_uses.
15412 (ipa_analyze_params_uses): New parameter parms_info, pass it to
15413 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
15414 (ipa_analyze_node): New function.
15415 (ipa_print_node_params): Do not dump the modified flag.
15416 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
15417 it. Do not stream the modified parameter flag.
15418 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
15419 it. Do not stream the modified parameter flag.
15420 * ipa-cp.c (ipcp_analyze_node): Removed.
15421 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
15422 with only a call to ipa_analyze_node.
15423 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
15424 node with only a call to ipa_analyze_node.
15426 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15428 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
15430 2010-06-25 Jan Hubicka <jh@suse.cz>
15432 * tree-pass.h (pass_split_functions): Declare.
15433 * opts.c (decode_options): Enable function splitting at -O2
15434 * timevar.def (TV_IPA_FNSPLIT): New macro.
15435 * ipa-split.c: New file.
15436 * common.opt (-fpartial-inlining): New flag.
15437 * Makefile.in (ipa-split.o): New object file.
15438 * passes.c (init_optimization_passes): Add ipa-split.
15439 * params.def (partial-inlining-entry-probability): New parameters.
15440 * doc/invoke.texi (-fpartial-inlining): New.
15442 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15445 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
15446 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
15447 (gimplify_expr): Likewise.
15449 2010-06-25 Martin Jambor <mjambor@suse.cz>
15451 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
15452 statements instead of bailing out on them.
15453 (ipa_analyze_indirect_call_uses): Do not require that loads from the
15454 parameter are in the same BB as the condition. Update comments.
15456 2010-06-25 Jakub Jelinek <jakub@redhat.com>
15458 PR middle-end/43866
15459 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
15460 true or always false, return NULL_TREE.
15461 (tree_unswitch_single_loop): Optimize conditions even when reaching
15462 max-unswitch-level parameter. If num > 0, optimize first all conditions
15463 using entry checks, then do still reachable block discovery and consider
15464 only conditions in still reachable basic blocks in the loop.
15466 PR tree-optimization/44539
15467 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
15468 the call doesn't have LHS, but has VDEF.
15470 2010-06-25 Joseph Myers <joseph@codesourcery.com>
15472 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
15473 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
15474 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
15475 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
15476 * system.h (MODIFY_TARGET_NAME): Poison.
15478 2010-06-25 Alan Modra <amodra@gmail.com>
15480 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
15481 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
15482 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
15483 CMODEL_LARGE as default.
15484 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
15485 (offsettable_ok_by_alignment): Delete.
15486 (rs6000_emit_move): Remove mcmodel=medium optimization.
15488 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
15490 With large parts from Jim Wilson:
15492 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
15493 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
15494 * optabs.c (optab_for_tree_code): Likewise.
15495 (expand_widen_pattern_expr): Likewise.
15496 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
15497 out of execute_optimize_widening_mul.
15498 (convert_plusminus_to_widen): New function.
15499 (execute_optimize_widening_mul): Use the two new functions.
15500 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
15501 Remove code to generate widening multiply-accumulate. Add support
15502 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
15503 * gimple-pretty-print.c (dump_ternary_rhs): New function.
15504 (dump_gimple_assign): Call it when appropriate.
15505 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
15506 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
15507 (expand_gimple_stmt_1): Likewise.
15508 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
15509 WIDEN_MULT_MINUS_EXPR.
15510 * tree-ssa-operands.c (get_expr_operands): Likewise.
15511 * tree-inline.c (estimate_operator_cost): Likewise.
15512 * gimple.c (extract_ops_from_tree_1): Renamed from
15513 extract_ops_from_tree. Add new arg for a third operand; fill it.
15514 (gimple_build_assign_stat): Support operations with three operands.
15515 (gimple_build_assign_with_ops_stat): Likewise.
15516 (gimple_assign_set_rhs_from_tree): Likewise.
15517 (gimple_assign_set_rhs_with_ops_1): Renamed from
15518 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
15519 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
15520 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
15521 WIDEN_MULT_MINUS_EXPR.
15522 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
15523 (extract_ops_from_tree_1): Adjust declaration.
15524 (gimple_assign_set_rhs_with_ops_1): Likewise.
15525 (gimple_build_assign_with_ops): Pass NULL for last operand.
15526 (gimple_build_assign_with_ops3): New macro.
15527 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
15528 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
15530 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
15531 (verify_gimple_assign): Call it.
15532 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
15533 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
15534 functions for dealing with three-operand statements.
15535 * tree.c (commutative_ternary_tree_code): New function.
15536 * tree.h (commutative_ternary_tree_code): Declare it.
15537 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
15538 ternary statements.
15539 (gimple_assign_nonzero_warnv_p): Likewise.
15540 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
15541 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
15542 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
15543 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
15544 (struct hashtable_expr): New member ternary in the union.
15545 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
15546 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
15547 (iterative_hash_hashable_expr): Likewise.
15548 (print_expr_hash_elt): Handle EXPR_TERNARY.
15549 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
15550 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
15551 statements. Handle GIMPLE_TERNARY_RHS.
15553 2010-06-25 Jan Hubicka <jh@suse.cz>
15555 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
15557 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
15560 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
15561 parameters are not good.
15562 (c_parser_parameter_declaration): Error unknown type name if the type
15563 name can't start declaration specifiers.
15565 2010-06-25 Joseph Myers <joseph@codesourcery.com>
15567 * gcc.c (translate_options): Don't mention +e in comment.
15568 (process_command): Don't handle +e specially.
15570 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
15572 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
15574 * ira-build.c (merge_hard_reg_conflicts): New function.
15575 (create_cap_allocno, copy_info_to_removed_store_destinations,
15576 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
15577 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
15578 (remove_unnecessary_allocnos, remove_low_level_allocnos)
15579 copy_nifo_to_removed_store_destination): Use them.
15580 * ira-lives.c (make_hard_regno_born): New function, split out of
15582 (make_allocno_born): Likewise.
15583 (make_hard_regno_dead): New function, split out of make_regno_dead.
15584 (make_allocno_dead): Likewise.
15585 (inc_register_pressure): New function, split out of set_allocno_live.
15586 (dec_register_pressure): New function, split out of clear_allocno_live.
15587 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
15588 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
15589 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
15590 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
15591 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
15592 mark_pseudo_regno_live.
15593 (process_bb_node_lives): Use mark_pseudo_regno_live,
15594 make_hard_regno_born and make_allocno_dead.
15595 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
15596 set_allocno_live, clear_allocno_live): Delete functions.
15598 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
15599 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
15601 (ira_flattening): Use ira_parent_allocno.
15602 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
15603 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
15605 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
15608 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
15609 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
15610 minmax_set_iter_cond, minmax_set_iter_next,
15611 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
15612 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
15613 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
15614 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
15617 * ira-int.h (struct live_range, live_range_t): Renamed from struct
15618 ira_allocno_live_range and allocno_live_range_t; all uses changed.
15619 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
15622 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
15624 * thumb2.md (thumb2_tlobits_cbranch): Delete.
15625 (peephole2 to convert zero_extract/compare of single bit to
15626 lshift/compare): New.
15628 2010-06-24 Anatoly Sokolov <aesok@post.ru>
15630 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
15631 recursive call and call to 'int_const_binop'.
15632 (build_range_check, fold_cond_expr_with_comparison, unextend,
15633 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
15634 multiple_of_p): Adjust call to const_binop.
15636 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
15638 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
15639 determine size of XFmode operand.
15640 (XFmode extended DFmode push splitter): Ditto.
15641 (XFmode extended SFmode push splitter): Ditto.
15643 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
15646 * config/i386/i386.md (extract_code): New.
15647 (<u>divmodqi4): Likewise.
15648 (divmodhiqi3): Likewise.
15649 (udivmodhiqi3): Likewise.
15650 (<u>divqi3): Remvoved.
15652 2010-06-24 Jakub Jelinek <jakub@redhat.com>
15654 PR middle-end/44492
15655 * recog.h (struct recog_data): Add is_asm field.
15656 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
15657 present in constraints of inline-asm operand and memory operand
15658 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
15659 (extract_insn): Initialize recog_data.is_asm.
15660 * doc/md.texi (Constraints): Document operand side-effect rules.
15662 2010-06-24 Andi Kleen <ak@linux.intel.com>
15664 * c-parser.c (c_parser_conditional_expression): Call
15665 warn_for_omitted_condop.
15666 * doc/invoke.texi: Document omitted condop warning.
15668 2010-06-24 Nick Clifton<nickc@redhat.com>
15670 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
15671 insn in the sequence is a jump insn before setting its label.
15673 2010-06-24 Alan Modra <amodra@gmail.com>
15675 * collect2.c (main): Match exactly --version and --help.
15677 2010-06-24 DJ Delorie <dj@redhat.com>
15679 * config/m32c/m32c-pragma.c: Don't include rtl.h.
15681 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
15683 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
15684 using X87MODEF mode iterator.
15685 (pushsf splitter): Macroize splitter using P mode iterator.
15686 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
15689 (*movxf_internal): Rename from *movxf_integer.
15690 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
15691 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
15692 (*movdf_internal): Rename from *movdf_integer.
15693 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
15694 (*movsf_internal): Rename from *movdf_1.
15696 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
15698 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
15699 (const_gimple_seq_node): Removed typedefs.
15701 * gimple.h (gimple_seq_node_d, gimple_seq_node)
15702 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
15704 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
15706 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
15707 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
15708 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
15709 and CODE_FOR_vec_extract_lo_v4df.
15711 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
15712 Changed to define_insn_and_split.
15713 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
15714 (vec_extract_lo_v16hi): Likewise.
15715 (vec_extract_lo_v32qi): Likewise.
15716 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
15717 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
15719 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
15722 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
15723 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
15724 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
15725 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
15726 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
15729 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
15732 * df-core.c (struct df): Rename to df_d.
15733 * df.h (struct df): Likewise.
15734 * dse.h (struct df): Remove forward declaration.
15735 * recog.h (struct insn_data): Rename to:
15736 (struct_insn_data_d). Adjusted all users.
15738 2010-06-23 Arnaud Charlet <charlet@adacore.com
15741 * doc/install.texi: Update requirements to build GNAT.
15743 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
15745 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
15747 (m68k_sched_attr_opx_type): Remove unreachable return.
15748 (m68k_sched_attr_opy_type): Likewise.
15749 (m68k_sched_attr_size): Likewise.
15750 (sched_get_opxy_mem_type): Likewise.
15751 (m68k_sched_attr_op_mem): Likewise.
15753 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
15755 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
15756 new statement and adjust VDEF only if necessary. Remove superfluous
15757 call to maybe_clean_or_replace_eh_stmt.
15758 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
15760 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
15761 * tree-inline.c (copy_bb): ...and not there.
15763 2010-06-22 Cary Coutant <ccoutant@google.com>
15765 * dwarf2out.c (is_nested_in_subprogram): New function.
15766 (should_move_die_to_comdat): Use it.
15767 (copy_ancestor_tree): Don't mark DIEs here.
15768 (copy_decls_walk): Start walk from root of newly-added tree;
15769 mark DIEs here instead.
15771 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
15773 * config/i386/i386.md (unit): Also check sseishft1.
15775 2010-06-22 Jan Hubicka <jh@suse.cz>
15777 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
15780 2010-06-22 Jan Hubicka <jh@suse.cz>
15782 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
15783 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
15784 Return true if something changed.
15785 * df.h (df_confluence_function_n): Return bool.
15786 * df-core.c (df_worklist_propagate_forward,
15787 df_worklist_propagate_backward): Track changes and ages.
15788 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
15790 * dse.c (dse_confluence_n): Return always true.
15792 2010-06-22 Jan Hubicka <jh@suse.cz>
15794 * bitmap.c (bitmap_clear_bit): Micro optimize.
15796 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
15798 * config/i386/i386.md (SWI1248x): New mode iterator.
15803 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
15804 SWI1248x mode iterator.
15805 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
15806 using SWI124 mode iterator.
15807 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
15809 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
15810 *pushdi2_prologue_rex64 using P mode iterator.
15811 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
15812 using SWI48 mode iterator.
15813 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
15814 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
15815 using SWI1248x mode iterator.
15816 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
15817 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
15818 SWI48 mode iterator.
15819 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
15821 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
15822 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
15823 SWI12 mode iterator.
15824 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
15825 SWI12 mode iterator.
15826 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
15827 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
15828 SWI24 mode iterator.
15829 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
15830 SWI48 mode iterator.
15831 (mov<mode>_insn_1): New expander.
15832 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
15833 using SWI48x mode iterator.
15835 (*movoi_internal_avx): Rename from *movoi_internal.
15836 (*movti_internal_rex64): Rename from *movti_rex64.
15837 (*movti_internal_sse): Rename from *movti_sse.
15838 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
15839 (*movdi_internal): Rename from *movdi_2.
15840 (*movsi_internal): Rename from *movsi_1.
15841 (*movhi_internal): Rename from *movhi_1.
15842 (*movqi_internal): Rename from *movqi_1.
15844 (insv): Update the call to gen_movsi_insv_1 for rename.
15845 * config/i386/i386.c (promote_duplicated_reg): Ditto.
15847 2010-06-22 Jan Hubicka <jh@suse.cz>
15849 * passes.c (execute_function_todo): Move call of statistics_fini_pass
15851 (execute_todo) ... this one.
15853 2010-06-22 Alan Modra <amodra@gmail.com>
15856 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15857 * caller-save.c (insert_restore, insert_save): Use non-validate
15858 form of adjust_address.
15860 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15863 * config/pa/pa.c (override_options): Disable
15864 -freorder-blocks-and-partition.
15866 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
15869 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
15871 * config/i386/i386.md (type): Add sseishft1
15873 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
15874 (ppro_insn_load): Likewise.
15875 (ppro_insn_store): Likewise.
15876 (ppro_insn_both): Likewise.
15878 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
15879 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
15881 (*vec_extractv2di_1_avx): Likewise.
15882 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
15883 type. Remove atom_unit.
15884 (*vec_extractv2di_1_sse2): Likewise.
15886 2010-06-21 DJ Delorie <dj@redhat.com>
15888 * diagnostic.h (diagnostic_classification_change_t): New.
15889 (diagnostic_context): Add history and push/pop list.
15890 (diagnostic_push_diagnostics): Declare.
15891 (diagnostic_pop_diagnostics): Declare.
15892 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
15893 from pragmas in a history chain instead of the global table.
15894 (diagnostic_push_diagnostics): New.
15895 (diagnostic_pop_diagnostics): New.
15896 (diagnostic_report_diagnostic): Scan history chain to find state
15897 of diagnostics as of the diagnostic location.
15898 * opts.c (set_option): Pass UNKNOWN_LOCATION to
15899 diagnostic_classify_diagnostic.
15900 (enable_warning_as_error): Likewise.
15901 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
15902 use in the history chain.
15903 * doc/extend.texi: Document pragma GCC diagnostic changes.
15905 2010-06-21 Jakub Jelinek <jakub@redhat.com>
15907 * dwarf2out.c (add_linkage_name): New function. Don't add
15908 anything to DW_TAG_member DIEs.
15909 (add_name_and_src_coords_attributes): Use it.
15910 (gen_variable_die): Call it for C++ static data members if
15911 specification is DW_TAG_member.
15913 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
15914 C++ char16_t and char32_t.
15916 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
15917 * genattrtab.c: Include vecprim.h.
15918 (cached_attrs, cached_attr_count, attrs_seen_once,
15919 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
15920 attrs_cached_after): New variables.
15921 (find_attrs_to_cache): New function.
15922 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
15923 (write_test_expr): Add attrs_cached argument, return it too,
15924 attempt to cache non-const attributes used more than once in
15925 a single case handling.
15926 (write_attr_get): Use find_attrs_to_cache, for caching candidates
15927 emit cached_* variables. Adjust write_attr_set callers.
15928 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
15929 to find attributes that should be cached in this block. Adjust
15930 write_test_expr callers.
15931 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
15933 (make_automaton_attrs): Adjust write_test_expr caller.
15935 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
15936 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
15937 (make_automaton_attrs): If find_tune_attr returns non-NULL,
15938 write separate internal_dfa_insn_code_* and insn_default_latency_*
15939 functions for each attribute's value and emit init_sched_attrs
15940 function and function pointers.
15941 * genattr.c (const_attrs, reservations): New variables.
15942 (gen_attr): Add const attributes to const_attrs vector.
15943 (check_tune_attr, find_tune_attr): New functions.
15944 (main): Add reservations to reservations vector. If find_tune_attr
15945 returns true, add prototype for init_sched_attrs and make
15946 internal_dfa_insn_code and insn_default_latency function pointers,
15947 otherwise define init_sched_attrs as dummy macro.
15948 * cfgexpand.c: Include insn-attr.h.
15949 (gimple_expand_cfg): Call init_sched_attrs.
15951 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
15954 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
15955 va_arg from a set of register save slots into a temporary,
15956 if the container is bigger than type size, do the copying
15957 using smaller mode or using memcpy.
15960 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
15962 (sel_print_to_dot): Remove macro.
15963 (sel_print): Likewise. New prototype.
15964 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
15965 (sel_print): New function.
15967 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15969 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
15970 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
15972 2010-06-21 Nick Clifton <nickc@redhat.com>
15974 * config/rx/rx.h (PTRDIFF_TYPE): Define.
15975 (SMALL_REGISTER_CLASS): Define (to zero).
15976 (PRINT_OPERAND): Delete.
15977 (PRINT_OPERAND_ADDRESS): Delete.
15978 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
15979 (rx_print_operand_address): Delete prototype.
15980 * config/rx/rx.c (rx_print_operand): Make static.
15981 Allow %H and %L to handle CONST_DOUBLEs.
15982 (rx_print_operand_address): Make static.
15983 (rx_gen_move_template): Rename local variable 'template' to
15985 (rx_function_arg): Do not pass unknown sized objects in registers.
15986 (TARGET_PRINT_OPERAND): Define.
15987 (TARGET_PRINT_OPERAND_ADDRESS): Define.
15989 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15991 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
15993 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
15995 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
15996 stack-alignment for simple leaf-functions.
15998 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
16000 * doc/install.texi: Document bootstrap-lto.
16002 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
16005 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
16006 (input_function): Drop them here, if VTA is disabled.
16008 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
16011 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
16013 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
16014 ix86_swapped_fp_comparsion_operator instead of
16015 ix86_fp_comparison_operator.
16017 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
16018 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
16019 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
16020 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
16021 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
16022 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
16024 2010-06-20 Joseph Myers <joseph@codesourcery.com>
16027 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
16028 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
16029 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
16030 (decode_cmdline_option): Update for this return value. Set
16031 orig_option_with_args_text field. Set arg field for unknown
16032 options. Make static.
16033 (decode_cmdline_options_to_array): New.
16034 (prune_options): Update handling of find_opt return value.
16035 * opts.c (read_cmdline_option): Take decoded option. Return void.
16036 (read_cmdline_options): Take decoded options.
16037 (decode_options): Add parameters for decoded options. Use
16038 decode_cmdline_options_to_array. Use decoded options for -O
16039 scan. Use integral_argument for -O parameters. Update call to
16040 read_cmdline_options.
16041 (enable_warning_as_error): Update handling of find_opt return value.
16042 * opts.h: Update comment on unknown options.
16043 (struct cl_decoded_option): Update comments on opt_index and arg.
16044 Add orig_option_with_args_text.
16045 (decode_cmdline_option): Remove.
16046 (decode_cmdline_options_to_array): Declare.
16047 (decode_options): Update prototype.
16048 * toplev.c (save_argv): Remove.
16049 (save_decoded_options, save_decoded_options_count): New.
16050 (read_integral_parameter): Remove.
16051 (print_switch_values): Use decoded options.
16052 (toplev_main): Don't set save_argv. Update call to decode_options.
16053 * toplev.h (read_integral_parameter): Remove.
16054 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
16056 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
16059 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
16061 * constraints.md (Pw, Px): New constraints.
16062 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
16064 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
16066 * config/i386/sse.md (fma4modesuffixf4): Removed.
16067 (ssemodesuffixf2s): Likewise.
16068 (ssemodesuffixf4): Likewise.
16069 (ssemodesuffixf2c): Likewise.
16070 (ssescalarmodesuffix2s): Likewise.
16071 (avxmodesuffixf2c): Likewise.
16072 (ssemodesuffix): New.
16073 (ssescalarmodesuffix): Likewise.
16074 Update patterns with ssemodesuffix and ssescalarmodesuffix.
16076 2010-06-19 Philip Herron <herron.philip@googlemail.com>
16078 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
16080 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
16082 * stor-layout.c (debug_rli): Remove unused local variables.
16084 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
16086 PR rtl-optimization/40900
16087 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
16088 original expression for later reuse.
16089 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
16090 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
16092 2010-06-18 Anatoly Sokolov <aesok@post.ru>
16094 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
16095 double_int_fits_in_uhwi_p): Implement as static inline.
16096 (double_int_xor): New inline function.
16097 (double_int_lrotate, double_int_rrotate, double_int_max,
16098 double_int_umax, double_int_smax, double_int_min, double_int_umin,
16099 double_int_smin): Declare.
16100 (lrotate_double, rrotate_double): Remove declaration.
16101 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
16102 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
16103 (double_int_lrotate, double_int_rrotate, double_int_max,
16104 double_int_umax, double_int_smax, double_int_min, double_int_umin,
16105 double_int_smin): New function.
16106 * fold-const.c (int_const_binop): Clean up, use double_int_*
16108 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
16109 double_int_* and immed_double_int_const functions.
16111 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
16113 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
16114 * function.c (types_used_by_cur_var_decl): Likewise.
16115 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
16117 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
16119 * tree.h (record_layout_info): Change type of pending_statics field
16121 * stor-layout.c (start_record_layout): Store NULL into
16123 (debug_rli): Call debug_vec_tree instead of debug_tree.
16124 (place_field): Likewise.
16125 (finish_record_layout): Likewise.
16127 2010-06-18 Alan Modra <amodra@gmail.com>
16129 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
16131 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16134 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
16135 for SET source operand from SET destination operand.
16137 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
16139 PR rtl-optimization/39871
16140 * reload1.c (init_eliminable_invariants): For flag_pic, disable
16141 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
16142 (function_invariant_p): Rule out a plus of frame or arg pointer with
16144 * ira.c (find_reg_equiv_invariant_const): Likewise.
16146 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
16148 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
16149 print_operand_address and puts to output the operand for CONST.
16151 2010-06-17 Jakub Jelinek <jakub@redhat.com>
16154 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
16157 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16159 * v850-protos.h (print_operand): Delete.
16160 (print_operand_address): Delete.
16161 * v850.h (PRINT_OPERAND): Delete.
16162 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16163 (PRINT_OPERAND_ADDRESS): Delete.
16164 * v850.c (print_operand_address): Rename to...
16165 (v850_print_operand_address): ...this. Make static. Call
16166 v850_print_operand.
16167 (print_operand): Rename to...
16168 (v850_print_operand): ...this. Make static. Call
16169 v850_print_operand_address.
16170 (v850_print_operand_punct_valid_p): New function.
16171 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16172 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16174 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16176 * config/sh/sh-protos.h (print_operand): Delete.
16177 (print_operand_address): Delete.
16178 * config/sh/sh.h (PRINT_OPERAND): Delete.
16179 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16180 (PRINT_OPERAND_ADDRESS): Delete.
16181 * config/sh/sh.c (sh_print_operand_address): Make static.
16182 (sh_print_operand): Make static. Call sh_print_operand_address
16183 and sh_print_operand.
16184 (sh_print_operand_punct_valid_p): New function.
16185 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16186 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16188 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16190 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
16191 (mcore_print_operand_address): Delete.
16192 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
16193 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16194 (PRINT_OPERAND_ADDRESS): Delete.
16195 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
16196 (mcore_print_operand): Make static.
16197 (mcore_print_operand_punct_valid_p): New function.
16198 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
16199 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16201 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16203 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
16204 (print_operand_address): Delete.
16205 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
16206 (PRINT_OPERAND_ADDRESS): Delete.
16207 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
16209 (m68hc11_print_operand): Make static.
16210 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16212 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16214 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
16215 (m32r_print_operand_address): Delete.
16216 * config/m32r/m32r.h (m32r_punct_chars): Delete.
16217 (PRINT_OPERAND): Delete.
16218 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16219 (PRINT_OPERAND_ADDRESS): Delete.
16220 * config/m32r/m32r.c (m32r_punct_chars): Make static.
16221 (m32r_print_operand_address): Make static.
16222 (m32r_print_operand): Make static.
16223 (m32r_print_operand_punct_valid_p): New function.
16224 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16225 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16227 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16229 * config/iq2000/iq2000-protos.h (print_operand): Delete.
16230 (print_operand_address): Delete.
16231 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
16232 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16233 (PRINT_OPERAND_ADDRESS): Delete.
16234 (iq2000_print_operand_punct): Delete.
16235 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
16236 (iq2000_print_operand_address): Make static.
16237 (iq2000_print_operand): Make static.
16238 (iq2000_print_operand_punct_valid_p): New function.
16239 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16240 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16242 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16244 * config/frv/frv-protos.h (frv_print_operand): Delete.
16245 (frv_print_operand_address): Delete.
16246 * config/frv/frv.h (PRINT_OPERAND): Delete.
16247 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16248 (PRINT_OPERAND_ADDRESS): Delete.
16249 * config/frv/frv.c (frv_print_operand_address): Make static.
16250 (frv_print_operand): Make static.
16251 (frv_print_operand_punct_valid_p): New function.
16252 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16253 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16255 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
16257 * tree.h (vec_member): Declare.
16258 * tree.c (vec_member): Define.
16260 2010-06-17 Richard Guenther <rguenther@suse.de>
16262 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
16263 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
16265 2010-06-17 Richard Guenther <rguenther@suse.de>
16267 * tree-inline.c (declare_return_variable): Remove bogus code.
16269 2010-06-17 Richard Guenther <rguenther@suse.de>
16271 * gimplify.c (gimplify_bind_expr): Always promote complex
16272 and vector variables to registers if possible.
16274 2010-06-17 Richard Guenther <rguenther@suse.de>
16276 * expr.c (get_inner_reference): Use double_int for bit_offset
16279 2010-06-16 DJ Delorie <dj@redhat.com>
16281 * common.opt (-fstrict-volatile-bitfields): new.
16282 * doc/invoke.texi: Document it.
16283 * fold-const.c (optimize_bit_field_compare): For volatile
16284 bitfields, use the field's type to determine the mode, not the
16286 * expr.c (expand_assignment): Likewise.
16287 (get_inner_reference): Likewise.
16288 (expand_expr_real_1): Likewise.
16289 * expmed.c (store_fixed_bit_field): Likewise.
16290 (extract_bit_field_1): Likewise.
16291 (extract_fixed_bit_field): Likewise.
16293 2010-06-16 Richard Guenther <rguenther@suse.de>
16295 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
16297 2010-06-16 Douglas B Rupp <rupp@gnat.com>
16299 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
16300 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
16301 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
16302 * debug.c: Likewise.
16303 * sdbout.c: Likewise.
16304 * vmsdbgout.c: Likewise.
16305 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
16306 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
16307 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
16308 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
16309 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
16310 * dwarf2out.c (dw_fde_struct): New fields
16311 dw_fde_vms_{end,begin}_prologue.
16312 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
16313 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
16314 (dwarf2out_vms_end_prologue): New function.
16315 (dwarf2out_vms_begin_epilogue): New function.
16316 (dw_val_struct): New value dw_val_class_vms_delta.
16317 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
16318 begin_epilogue for VMS.
16319 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
16320 new static functions.
16321 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
16322 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
16324 (print_die): New case dw_val_class_vms_delta.
16325 (attr_checksum): Likewise.
16326 (same_dw_val_p: Likewise.
16327 (size_of_die): Likewise.
16328 (value_format): Likewise.
16329 (output_die): Likewise.
16330 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
16331 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
16332 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
16333 dwarf2out_cfi_begin_epilogue
16334 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
16336 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
16338 * config/cris/cris-protos.h (cris_print_operand): Delete.
16339 (cris_print_operand_address): Delete.
16340 * config/cris/cris.h (PRINT_OPERAND): Delete.
16341 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16342 (PRINT_OPERAND_ADDRESS): Delete.
16343 * config/cris/cris.c (cris_print_operand_address): Make static.
16344 (cris_print_operand): Make static.
16345 (cris_print_operand_punct_valid_p): New function.
16346 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16347 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16349 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
16351 * config/arm/arm-protos.h (arm_print_operand): Delete.
16352 (arm_print_operand_address): Delete.
16353 * config/arm/arm.h (PRINT_OPERAND): Delete.
16354 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16355 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
16356 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
16357 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
16358 (arm_print_operand): Make static.
16359 (arm_print_operand_punct_valid_p): New function.
16360 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16361 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16363 2010-06-16 Nick Clifton <nickc@redhat.com>
16365 * config/rx/constraints.md (NEGint4): New constraint.
16366 * config/rx/rx.md (attr cc): Add set_zsc.
16367 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
16370 (call_internal): Clobber the cc0 register.
16371 (call_value_internal): Likewise.
16372 (cstoresi4): Likewise.
16373 (movsieq): Likewise.
16374 (movsine): Likewise.
16375 (addsi3): Add alternative to handle small negative constants.
16376 (sunsi3): Likewise.
16377 (addsi3): Do not set the O bit in the cc0 register.
16378 (adddi3): Likewise.
16379 (subsi3): Likewise.
16380 (subdi3): Likewise.
16381 (andsi3): Reorder alternatives to prefer shorter forms.
16382 (mulsi3): Likewise.
16383 (iorsi3): Likewise.
16384 (negsi2): Note that the cc0 flags are set.
16385 (rotlsi3): Note that only the Z and S bits are set in cc0.
16386 (lshrsi3): Likewise.
16387 (ashlsi3): Likewise.
16388 (subsf3): Use %Q for the MEM operand.
16389 (fix_truncsfsi2): Likewise.
16390 (floatsisf2): Likewise.
16391 (bitset): Remove early clobber from destination.
16392 (bitset_in_memory): Likewise.
16393 (lrintsf2): Clobber the cc0 register.
16394 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
16395 (rx_print_operand): Handle %N.
16397 2010-06-16 Jan Hubicka <jh@suse.cz>
16399 * df-core.c (df_compact_blocks): Free problem_temps vector.
16401 2010-06-16 Martin Jambor <mjambor@suse.cz>
16403 PR tree-optimization/43905
16404 * tree-sra.c: Include tree-inline.h.
16405 (create_abstract_origin): Removed.
16406 (modify_function): Version the call graph node instead of creating
16407 abstract origins and dealing with same_body aliases.
16408 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
16409 function is versionable.
16410 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
16412 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
16414 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
16415 (CHOOSE_DYNAMIC_LINKER): Update.
16417 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
16419 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
16420 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
16421 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
16422 *prefetch_3dnow_rex.
16424 2010-06-15 Anatoly Sokolov <aesok@post.ru>
16426 * target.h (struct asm_out):Add declare_constant_name field.
16427 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
16428 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
16429 * output.h (default_asm_declare_constant_name): Declare.
16430 (assemble_label): Update prototype.
16431 * varasm.c (assemble_constant_contents): Use
16432 targetm.asm_out.declare_constant_name target hook.
16433 (assemble_label): Add 'file' argument.
16434 (default_asm_declare_constant_name): New function.
16435 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
16436 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
16437 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
16439 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
16440 * config/darwin.c (darwin_asm_declare_constant_name): New function.
16441 (machopic_output_indirection): Update assemble_label argument list.
16442 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
16443 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
16445 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
16447 PR middle-end/44391
16448 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
16449 size_one_node for pointer types. Do not call gmp_cst_to_tree.
16451 2010-06-15 Richard Guenther <rguenther@suse.de>
16453 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
16455 2010-06-15 Paul Brook <paul@codesourcery.com>
16457 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
16460 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
16462 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
16463 don't get a vector type for output.
16465 2010-06-15 Jakub Jelinek <jakub@redhat.com>
16468 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
16469 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
16470 (LANG_HOOKS_DECLS): Add it.
16471 * gimplify.c (omp_notice_variable): Call
16472 lang_hooks.decls.omp_report_decl.
16474 2010-06-15 Martin Jambor <mjambor@suse.cz>
16477 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
16478 on the newly dead SSA name.
16480 2010-06-15 Alan Modra <amodra@gmail.com>
16482 * doc/invoke.texi: Add mcmodel to powerpc options.
16483 * configure.ac: Add HAVE_LD_LARGE_TOC test.
16484 * configure: Regenerate.
16485 * config.in: Regenerate.
16486 * config/rs6000/linux64.opt (mcmodel): New.
16487 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
16488 (TARGET_CMODEL, SET_CMODEL): Define.
16489 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
16490 select CMODEL_MEDIUM default.
16491 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
16492 (TARGET_CMODEL): Define default.
16493 * config/rs6000/rs6000.c (cmodel): New variable.
16494 (rs6000_explicit_options): Add cmodel field.
16495 (rs6000_handle_option): Handle -mcmodel.
16496 (create_TOC_reference): Add largetoc_reg param. Generate high,
16497 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
16498 (rs6000_delegitimize_address): Recognise new toc reference rtl
16499 and minimal-toc rtl.
16500 (rs6000_legitimize_reload_address): Handle new toc references.
16501 (print_operand_address): Handle legitimate_constant_pool_address_p
16502 match before lo_sum.
16503 (rs6000_eliminate_indexed_memrefs): Tidy.
16504 (rs6000_emit_move): Tweak threshold for inlining constants.
16505 Keep rs6000_emit_allocate_stack large stack frame offsets
16506 loaded into r0 inline.
16507 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
16508 (tocrel_base, tocrel_offset): New variables.
16509 (toc_relative_expr_p): Set them here.
16510 (print_operand_address): Skip over any offset on constant pool address.
16511 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
16512 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
16513 (offsettable_ok_by_alignment): New function.
16514 (rs6000_emit_move): Address suitably aligned local symbol_refs
16515 relative to the toc pointer for -mcmodel=medium.
16516 (legitimate_constant_pool_address_p): Make param const_rtx. Add
16517 strict param. Allow lo_sum version of addressing. Verify reg
16518 used for -mminimal-toc and -mcmodel != small. Update all callers.
16519 * config/rs6000/constraints.md: Update for above change.
16520 * config/rs6000/predicates.md: Likewise.
16521 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
16523 (tls_gd): Split for -mcmodel=medium/large.
16524 (tls_gd_high, tls_gd_low): New.
16525 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
16526 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
16527 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
16528 (largetoc_high, largetoc_low): New.
16529 (cmptf_internal2): Add clobber.
16530 * config/rs6000/rs6000-protos.h: Update.
16532 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
16534 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
16535 true if no prefetch is going to be generated for a given group.
16536 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
16537 estimate the prefetch_count.
16538 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
16539 prefetch count by considering the unroll_factor and prefetch_mod
16540 for is_loop_prefetching_profitable.
16542 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
16544 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
16545 anything if the argument is not a MEM.
16547 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
16552 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
16554 (canonicalize_loop_ivs): Likewise.
16556 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
16559 * haifa-sched.c (setup_insn_reg_pressure_info,
16560 update_register_pressure): Reject debug insns.
16561 (ready_sort): Don't setup reg pressure for debug insns.
16562 (schedule_insn): Don't update reg pressure for debug insns.
16564 2010-06-14 Richard Guenther <rguenther@suse.de>
16566 * lto-streamer.c (cached_bp): Remove.
16567 (bitpack_delete): Likewise.
16568 (bitpack_create): Likewise.
16569 (bp_get_next_word): Likewise.
16570 (bp_pack_value, bp_unpack_value): Move ...
16571 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
16573 (struct bitpack_d): Likewise.
16574 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
16575 New inline functions.
16576 * lto-streamer-out.c (lto_output_bitpack): Remove.
16577 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
16578 (pack_value_fields): Adjust.
16579 (lto_write_tree): Likewise.
16580 (output_gimple_stmt): Likewise.
16581 (output_function): Likewise.
16582 * lto-streamer-in.c (input_gimple_stmt): Adjust.
16583 (input_function): Likewise.
16584 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
16585 (lto_input_bitpack): Remove.
16586 (lto_materialize_tree): Adjust.
16587 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
16588 * lto-cgraph.c (lto_output_edge): Adjust.
16589 (lto_output_node): Likewise.
16590 (lto_output_varpool_node): Likewise.
16591 (lto_output_ref): Likewise.
16592 (input_node): Likewise.
16593 (input_varpool_node): Likewise.
16594 (input_ref): Likewise.
16595 (input_edge): Likewise.
16596 (output_node_opt_summary): Likewise.
16597 (input_node_opt_summary): Likewise.
16598 * ipa-pure-const.c (pure_const_write_summary): Likewise.
16599 (pure_const_read_summary): Likewise.
16600 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
16601 (ipa_read_indirect_edge_info): Likewise.
16602 (ipa_write_node_info): Likewise.
16603 (ipa_read_node_info): Likewise.
16605 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
16608 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
16609 (vec_extract_lo_v16hi): Likewise.
16610 (vec_extract_lo_v32qi): Likewise.
16612 2010-06-14 Jakub Jelinek <jakub@redhat.com>
16615 * tree.h (build_call_expr): Don't define as vararg macro, instead
16617 * builtins.c (build_call_nofold): Remove.
16618 (expand_builtin_int_roundingfn, expand_builtin_pow,
16619 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
16620 expand_builtin_memset_args, expand_builtin_strcmp,
16621 expand_builtin_strncmp, expand_builtin_memory_chk): Use
16622 build_call_nofold_loc instead of build_call_nofold.
16623 (build_call_expr): New function.
16625 PR tree-optimization/44508
16626 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
16627 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
16628 don't eliminate trivially dead stmts.
16629 * tree-vrp.c (vrp_finalize): Pass false as last argument
16630 to substitute_and_fold.
16631 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
16632 to substitute_and_fold.
16633 * tree-ssa-ccp.c (ccp_finalize): Likewise.
16636 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
16638 2010-06-14 Ira Rosen <irar@il.ibm.com>
16640 PR tree-optimization/44507
16641 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
16642 to build initial vector for BIT_AND_EXPR.
16643 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
16645 2010-06-14 Jakub Jelinek <jakub@redhat.com>
16647 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
16648 adjust z10prop set_attr.
16650 2010-06-13 Jan Hubicka <jh@suse.cz>
16652 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
16653 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
16654 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
16655 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
16656 datastructure checks into checking asserts.
16657 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
16658 * tree-ssa-sccvn.c (VN_INFO): Likewise.
16659 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
16660 df_ref_create_structure): Likewise.
16661 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
16662 pool_free): Use gcc_checking_assert.
16663 * alias.c (get_alias_set): Likewise.
16664 * var-tracking.c (variable_htab_free, shared_hash_copy,
16665 canonicalize_values_mark, variable_merge_over_cur): Likewise.
16666 * lto-streamer.c (bp_unpack_value): Likewise.
16668 2010-06-13 Richard Guenther <rguenther@suse.de>
16670 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
16671 Do not stream but initialize TYPE_CANONICAL to NULL.
16672 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
16673 * gimple.c (gimple_types_compatible_p): Disregard
16674 TYPE_STRUCTURAL_EQUALITY_P.
16675 (gimple_register_type): Use TYPE_CANONICAL as cache.
16676 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
16677 before registering common types.
16678 * config/i386/i386.c (ix86_function_arg_boundary): Do not
16679 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
16680 * tree.h (TYPE_CANONICAL): Clarify documentation.
16682 2010-06-13 Anatoly Sokolov <aesok@post.ru>
16684 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
16685 LIBCALL_VALUE): Remove macros.
16686 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
16687 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16688 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16689 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
16690 (ia64_function_value): Make static. Handle receiving the function
16691 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
16693 2010-06-12 Jan Hubicka <jh@suse.cz>
16695 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
16698 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
16700 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
16702 2010-06-12 Jan Hubicka <jh@suse.cz>
16704 * df-core.c (df_clear_bb_info): New function.
16705 (df_set_blocks): bb_info is always allocated.
16706 (df_get_bb_info): Use block_info_elt_size.
16707 (df_set_bb_info): Likewise.
16708 (df_compact_blocks): Update for new block_info.
16709 (grow_bb_info): New function.
16710 * df-problems.c (df_grow_bb_info): Move to df-core.c
16711 (df_rd_set_bb_info): Remove.
16712 (df_rd_free_bb_info): Do not free block pool.
16713 (df_rd_alloc): Do not create pool, use check for
16714 obstack presence instead of NULL pointer for new blocks.
16715 (df_rd_free): DO not free alloc pool; clear block_info.
16716 (problem_RD): Add size of block info structure.
16717 (df_lr_set_bb_info): Remove.
16718 (df_lr_free_bb_info): Do not free block pool.
16719 (df_lr_alloc): Do not create pool, use check for
16720 obstack presence instead of NULL pointer for new blocks.
16721 (df_lr_free): DO not free alloc pool; clear block_info.
16722 (problem_LR): Add size of block info structure.
16723 (df_live_set_bb_info): Remove.
16724 (df_live_free_bb_info): Do not free block pool.
16725 (df_live_alloc): Do not create pool, use check for
16726 obstack presence instead of NULL pointer for new blocks.
16727 (df_live_free): DO not free alloc pool; clear block_info.
16728 (problem_LIVE): Add size of block info structure.
16729 (problem_CHAIN): Add size of block info structure.
16730 (df_byte_lr_set_bb_info): Remove.
16731 (df_byte_lr_free_bb_info): Do not free block pool.
16732 (df_byte_lr_alloc): Do not create pool, use check for
16733 obstack presence instead of NULL pointer for new blocks.
16734 (df_byte_lr_free): DO not free alloc pool; clear block_info.
16735 (problem_BYTE_LR): Add size of block info structure.
16736 (problem_NOTE): Add size of block info structure.
16737 (df_byte_MD_set_bb_info): Remove.
16738 (df_byte_MD_free_bb_info): Do not free block pool.
16739 (df_byte_MD_alloc): Do not create pool, use check for
16740 obstack presence instead of NULL pointer for new blocks.
16741 (df_byte_MD_free): DO not free alloc pool; clear block_info.
16742 (problem_BD): Add size of block info structure.
16743 * df-scan.c (df_scan_free_internal): Free block pool.
16744 (df_scan_set_bb_info): Remove.
16745 (df_scan_free_bb_info): Check for artificial_defs instead
16746 of bb_info being non-NULL.
16747 (df_scan_alloc): DO not create df_scan_block pool.
16748 (problem_SCAN): Set size of block info.
16749 (df_bb_refs_record): Do not allocate bb_info.
16750 * df.h (df_problem): Add block_info_elt_size.
16751 (struct dataflow): Change block_info to void *.
16752 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
16753 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
16754 in-line structures.
16756 2010-06-12 Jan Hubicka <jh@suse.cz>
16758 PR tree-optimize/44485
16759 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
16760 containing use of return value of noreturn function.
16762 2010-06-12 Anatoly Sokolov <aesok@post.ru>
16764 * targhooks.c (default_function_value): Don't use
16765 FUNCTION_OUTGOING_VALUE.
16766 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
16767 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
16769 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
16771 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
16772 Add crtfastmath.o to extra_parts.
16773 * config/mips/crtfastmath.c: New.
16774 * config/mips/linux.h (ENDFILE_SPEC): New.
16776 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
16778 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
16779 old_type in parameter.
16780 (gcc_type_for_value): Update call to gcc_type_for_interval.
16781 (compute_type_for_level_1): Renamed compute_type_for_level.
16782 Update call to gcc_type_for_interval.
16784 2010-06-11 Joseph Myers <joseph@codesourcery.com>
16786 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
16787 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
16789 2010-06-11 Joseph Myers <joseph@codesourcery.com>
16791 * opts-common.c: Include options.h.
16792 (integral_argument): Move from opts.c.
16793 (decode_cmdline_option): New. Based on read_cmdline_option.
16794 * opts.c (integral_argument): Move to opts-common.c.
16795 (read_cmdline_option): Move most contents to
16796 decode_cmdline_option. Use %qs in diagnostics.
16797 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
16798 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
16799 decode_cmdline_option): New.
16801 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
16804 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
16805 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
16806 (partiysi2_cmp): Ditto.
16807 (*partiyhi2_cmp): Ditto.
16808 (*parityqi2_cmp): Remove.
16810 2010-06-11 Jan Hubicka <jh@suse.cz>
16812 * bitmap.h (bmp_iter_next_bit): New.
16813 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
16815 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
16816 Eric Botcazou <ebotcazou@adacore.com>
16818 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
16821 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
16823 * config/i386/i386.md (unspec): New define_c_enum.
16826 2010-06-10 Jakub Jelinek <jakub@redhat.com>
16828 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
16830 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
16832 PR middle-end/44483
16833 * tree-if-conv.c (bb_predicate_s): New struct.
16834 (bb_predicate_p): New.
16835 (bb_has_predicate): New.
16836 (bb_predicate): New.
16837 (set_bb_predicate): New.
16838 (bb_predicate_gimplified_stmts): New.
16839 (set_bb_predicate_gimplified_stmts): New.
16840 (add_bb_predicate_gimplified_stmts): New.
16841 (init_bb_predicate): New.
16842 (free_bb_predicate): New.
16843 (is_predicated): Use bb_predicate.
16844 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
16845 (predicate_bbs): Same. Gimplify the condition of the basic blocks
16846 before processing their successors.
16847 (clean_predicate_lists): Removed.
16848 (find_phi_replacement_condition): Use bb_predicate.
16849 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
16851 (insert_gimplified_predicates): New.
16852 (combine_blocks): Call insert_gimplified_predicates.
16853 (tree_if_conversion): Call free_bb_predicate instead of
16854 clean_predicate_lists.
16856 2010-10-11 Paul Brook <paul@codesourcery.com>
16858 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
16859 * config/arm/arm.c (all_architectures): Change v7e-m default to
16861 * config/arm/arm-cores.def: Add cortex-m4.
16862 * config/arm/arm-tune.md: Regenerate.
16864 2010-06-11 Jan Hubicka <jh@suse.cz>
16866 * ipa-pure-const.c (special_builtlin_state): New function.
16867 (check_call): Use it instead of special casign BUILT_IN_RETURN.
16868 (propagate_pure_const): Use it.
16870 2010-06-11 Jan Hubicka <jh@suse.cz>
16872 * df-problems.c (df_live_scratch): Convert to bitmap_head.
16873 (df_live_alloc): Initialize df_live_scratch when initializing
16875 (df_live_transfer_function): Update uses of df_live_scratch.
16876 (df_live_free): Free problem_data; clear df_live_scratch before
16877 releasing the obstack.
16878 (df_md_free): Free problem data.
16880 2010-06-11 Jan Hubicka <jh@suse.cz>
16882 * doc/invoke.texi (Wsuggest-attribute): Document.
16883 (Wmissing-noreturn): Remove.
16884 * ipa-pure-const.c (warn_function_noreturn): New function.
16885 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
16886 warn_missing_noreturn.
16887 * common.opt (Wsuggest-attribute=noreturn): New.
16888 * tree-flow.h (warn_function_noreturn): Declare.
16889 * tree-cfg.c (execute_warn_function_noreturn): Use
16890 warn_function_noreturn.
16891 (gate_warn_function_noreturn): New.
16892 (pass_warn_function_noreturn): Update.
16894 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16896 * c-typeck.c (handle_warn_cast_qual): Add loc
16897 parameter. Improve warning message.
16898 (build_c_cast): Pass location to handle_warn_cast_qual.
16900 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
16902 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
16903 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
16905 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
16907 2010-06-10 Dodji Seketeli <dodji@redhat.com>
16909 Fix bootstap on mips
16910 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
16911 be naming typedefs.
16913 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
16915 * system.h (helper_const_non_const_cast): New inline for
16916 gcc version <= 4.0.
16917 (CONST_CAST2): For gcc version <= 4.0 use
16918 new helper to do const/non-const casting.
16920 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16922 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
16923 * Makefile.in (OBJS-common): Include insn-enums.o.
16924 (insn-enums.o): New rule.
16925 (simple_generated_c): Add insn-enums.c.
16926 (build/genenums.o): New rule.
16927 (genprogmd): Add "enums".
16928 * genconstants.c (print_enum_type): Declare a C string array
16930 * genenums.c: New file.
16931 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
16932 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
16933 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
16935 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16937 * doc/md.texi (define_enum_attr): Document.
16938 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
16939 * read-md.h (lookup_enum_type): Declare.
16940 * read-md.c (lookup_enum_type): New function.
16941 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
16942 * genattrtab.c (attr_desc): Add an enum_name field.
16943 (evaluate_eq_attr): Take the associated attribute as argument.
16944 Get the enum prefix from the enum_name field, if defined.
16945 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
16946 (simplify_test_exp): Pass attr to evaluate_eq_attr.
16947 (add_attr_value): New function, split out from...
16948 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
16949 (write_test_expr): Pass attr to evaluate_eq_attr.
16950 (write_attr_get): Use the enum_name as the enum tag, if defined.
16951 (write_attr_valueq): Use the enum_name as a prefix, if defined.
16952 (find_attr): Initialize enum_name.
16953 (main): Handle DEFINE_ENUM_ATTR.
16954 * gensupport.c (process_rtx): Likewise.
16955 * config/mips/mips.h (mips_tune_attr): Delete.
16956 * config/mips/mips.md (cpu): Use define_attr_enum.
16958 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
16960 * doc/md.texi (define_c_enum, define_enum): Document.
16961 * read-md.h (md_constant): Add a parent_enum field.
16962 (enum_value, enum_type): New structures.
16963 (upcase_string, traverse_enum_types): Declare.
16964 * read-md.c (enum_types): New variable.
16965 (upcase_string, add_constant): New functions.
16966 (handle_constants): Don't create the hash table here.
16968 (traverse_md_constants): Don't check for a null md_constants.
16969 (decimal_string, handle_enum, traverse_enum_types): New functions.
16970 (read_md_files): Initialize md_constants and md_enums.
16971 * genconstants.c (print_md_constant): Ignore info argument.
16972 Only print constants that belong to no enum.
16973 (print_enum_type): New function.
16974 (main): Don't pass stdout to print_md_constant. Call print_enum_type
16975 for each defined enum type.
16976 * config/mips/mips.md (processor): New define_enum.
16977 (unspec): New define_c_enum.
16978 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
16979 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
16980 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
16981 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
16982 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
16983 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
16984 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
16985 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
16986 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
16987 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
16988 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
16989 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
16990 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
16991 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
16992 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
16993 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
16994 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
16995 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
16996 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
16997 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
16998 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
16999 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
17000 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
17001 (UNSPEC_RDDSP): Move to mips-dsp.md.
17002 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
17003 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
17004 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
17005 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
17006 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
17007 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
17008 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
17009 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
17010 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
17011 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
17012 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
17013 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
17014 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
17015 Moved to mips-dspr2.md.
17016 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
17017 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
17018 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
17019 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
17020 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
17021 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
17022 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
17023 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
17024 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
17025 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
17026 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
17027 UNSPEC_LOONGSON_PSADBH)
17028 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
17029 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
17030 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
17031 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
17032 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
17033 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
17034 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
17035 (cpu): Update comment.
17036 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
17037 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
17038 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
17039 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
17040 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
17041 UNSPEC_LOONGSON_PCMPEQ)
17042 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
17043 UNSPEC_LOONGSON_PINSR_0)
17044 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
17045 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
17046 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
17047 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
17048 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
17049 UNSPEC_LOONGSON_PSADBH)
17050 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
17051 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
17052 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
17053 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
17054 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
17055 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
17056 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
17057 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
17058 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
17059 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
17060 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
17061 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
17062 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
17063 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
17064 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
17065 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
17066 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
17067 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
17068 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
17069 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
17070 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
17071 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
17072 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
17073 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
17074 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
17075 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
17076 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
17077 (UNSPEC_RDDSP): Moved from mips.md.
17078 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
17079 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
17080 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
17081 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
17082 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
17083 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
17084 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
17085 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
17086 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
17087 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
17088 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
17089 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
17090 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
17091 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
17092 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
17093 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
17094 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
17095 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
17096 (UNSPEC_SCC): Moved from mips.md.
17097 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
17098 "processor_type" to "processor".
17099 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
17100 * config/mips/mips.h (processor_type): Delete.
17101 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
17102 "processor_type" to "processor".
17104 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17106 * configure.ac (tm_include_list): Add insn-constants.h.
17107 * configure: Regenerate.
17108 * Makefile.in (GTM_H): Move insn-constants.h here from...
17110 * mkconfig.sh: Remove special handling for insn-constants.h.
17112 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17114 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
17115 (BUILD_MD): ...this new variable.
17116 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
17117 that include the old contents of simple_generated_h and
17118 simple_generated_c.
17119 (simple_generated_h, simple_generated_c): Include them. Add
17121 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
17122 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
17123 Remove these dependencies from the main rule and include
17124 insn-conditions.md in the command line only if it appears
17125 in the dependency list.
17126 (insn-constants.h, s-constants): Delete.
17127 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
17129 (build/genmddeps.o): Likewise.
17130 (genprogrtl): New variable that contains everything from genprogmd
17131 except mddeps and constants.
17132 (genprogmd): Redefine in terms of genprogrtl. Make these programs
17133 depend on $(BUILD_MD)
17134 (genprog): New variable. Make these programs depend on
17136 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
17137 (main): Use read_md_files instead of init_rtx_reader_args.
17138 * genconstants.c: As for genmddeps.c.
17139 * read-md.h (read_skip_construct): Declare.
17140 * read-md.c (read_skip_construct): New function.
17141 (handle_file): Allow a null handle_directive, skipping the
17143 (parse_include): Update the comment accordingly.
17145 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17147 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
17148 * genmddeps.c: Include read-md.h.
17149 (main): Call init_rtx_reader_args instead of init_md_reader_args.
17150 * genattr.c (main): Likewise.
17151 * genattrtab.c (main): Likewise.
17152 * genautomata.c (main): Likewise.
17153 * gencodes.c (main): Likewise.
17154 * genconditions.c (main): Likewise.
17155 * genconfig.c (main): Likewise.
17156 * genconstants.c (main): Likewise.
17157 * genemit.c (main): Likewise.
17158 * genextract.c (main): Likewise.
17159 * genflags.c (main): Likewise.
17160 * genopinit.c (main): Likewise.
17161 * genoutput.c (main): Likewise.
17162 * genpeep.c (main): Likewise.
17163 * genrecog.c (main): Likewise.
17164 * genpreds.c (main): Likewise.
17165 * gensupport.h (in_fname): Move to read-md.h.
17166 (init_md_reader_args_cb): Rename to...
17167 (init_rtx_reader_args_cb): ...this and return a bool.
17168 (init_md_reader_args): Rename to...
17169 (init_rtx_reader_args): ...this and return a bool.
17170 (include_callback): Move to read-md.h.
17171 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
17172 (file_name_list, first_dir_md_include): Move to read-md.c
17173 (first_bracket_include): Delete unused variable.
17174 (last_dir_md_include): Move to read-md.c.
17175 (process_include): Delete, moving code to read-md.c:handle_include.
17176 (process_rtx): Don't handle INCLUDE.
17177 (save_string): Delete.
17178 (rtx_handle_directive): New function.
17179 (init_md_reader_args_cb): Rename to...
17180 (init_rtx_reader_args_cb): ...this and return a boolean success value.
17182 (init_md_reader_args): Rename to...
17183 (init_rtx_reader_args): ...this and return a boolean success value.
17184 * rtl.def (INCLUDE): Delete.
17185 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
17187 * read-rtl.c (read_conditions): Don't gobble ')' here.
17188 (read_mapping): Likewise.
17189 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
17190 Handle top-level non-rtx constructs here rather than in read_rtx_1.
17191 Store the whole queue in *X. Remove call to init_md_reader.
17192 (read_rtx_1): Rename to...
17193 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
17194 Don't handle top-level non-rtx constructs here. Don't handle (nil)
17196 (read_nested_rtx): New function. Handle (nil) here rather than
17198 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
17200 * read-md.h (directive_handler_t): New type.
17201 (in_fname, include_callback): Moved from read-md.h.
17202 (read_constants, init_md_reader): Delete.
17203 (read_md_files): Declare.
17204 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
17205 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
17207 (read_constants): Rename to...
17208 (handle_constants): ...this. Don't gobble ')' here.
17209 (handle_include, handle_file, handle_toplevel_file)
17210 (parse_include): New functions, mostly taken from gensupport.c.
17211 (init_md_reader): Subsume into...
17212 (read_md_files): ...this new function.
17214 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17216 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
17217 (unread_char): Decrement read_md_lineno after putting back '\n'.
17218 * read-md.c (fatal_with_file_and_line): Push back any characters
17219 that we decide not to add to the context.
17220 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
17221 fatal_expected_char in cases where '/' ends a line (for example).
17222 (read_name): Don't increment read_md_lineno here.
17223 (read_escape): Likewise.
17224 (read_quoted_string): Likewise.
17225 (read_braced_string): Likewise.
17227 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17229 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
17230 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
17231 * genconstants.c: Include read-md.h.
17232 * read-rtl.c (md_constants): Move to read-md.c.
17233 (md_name): Move to read-md.h.
17234 (initialize_iterators): Use leading_string_hash instead of def_hash
17235 and leading_string_eq_p instead of def_name_eq_p.
17236 (read_name): Move to read-md.c.
17237 (def_hash, def_name_eq_p): Delete.
17238 (read_constants, traverse_md_constants): Move to read-md.c.
17239 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
17240 * read-md.h: Include hashtab.h.
17241 (md_name): Moved from read-rtl.c.
17242 (md_constant): Moved from read-md.h.
17243 (leading_string_hash, leading_string_eq_p, read_name)
17244 (read_constants, traverse_md_constants): Declare.
17245 * read-md.c (md_constants): Moved from read-rtl.c.
17246 (leading_string_hash, leading_string_eq_p): New functions.
17247 (read_name, read_constants, traverse_md_constants): Moved from
17250 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17252 * read-rtl.c (md_name): New structure.
17253 (read_name): Take an md_name instead of a buffer pointer.
17254 Use the "string" field instead of strcpy when expanding constants.
17255 (read_constants): Remove the tmp_char argument. Update the calls
17256 to read_name, using two local name buffers instead of the tmp_char
17257 argument. Merge the constant-creation code.
17258 (read_conditions): Remove the tmp_char argument. Update the calls
17259 to read_name, using a local name buffer instead of the tmp_char
17261 (read_mapping): Replace tmp_char variable with a local name buffer.
17262 Update the calls to read_name.
17263 (read_rtx_1): Likewise. Update the calls to read_constants and
17266 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17268 * Makefile.in (build/read-md.o): Depend on errors.h.
17269 * read-md.h (error_with_line): Declare.
17270 * read-md.c: Include errors.h.
17271 (message_with_line_1): New function, extracted from...
17272 (message_with_line): ...here.
17273 (error_with_line): New function.
17274 * genattrtab.c: If a call to message_with_line is followed by
17275 "have_error = 1;", replace both statements with a call to
17277 * genoutput.c: Likewise.
17278 * genpreds.c: Likewise.
17279 * genrecog.c: If a call to message_with_line is followed by
17280 "error_count++;", replace both statements with a call to
17282 (errorcount): Delete.
17283 (main): Don't check it.
17284 * gensupport.c: If a call to message_with_line is followed by
17285 "errors = 1;", replace both statements with a call to error_with_line.
17287 (process_define_cond_exec): Check have_error instead of errors.
17288 (init_md_reader_args_cb): Likewise. Don't set errors.
17290 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17292 * read-md.h (read_md_file): Declare.
17293 (read_char, unread_char): New functions.
17294 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
17295 (read_quoted_string, read_string): Remove FILE * argument.
17296 * read-md.c (read_md_file): New variable.
17297 (read_md_filename, read_md_lineno): Update comments and remove
17298 unnecessary initialization.
17299 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
17300 (read_escape, read_quoted_string, read_braced_string, read_string):
17301 Remove FILE * argument. Update calls accordingly, using read_char
17302 and unread_char instead of getc and ungetc.
17303 * rtl.h (read_rtx): Remove FILE * argument.
17304 * read-rtl.c (iterator_group): Remove FILE * argument from
17306 (iterator_traverse_data): Remove "infile" field.
17307 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
17308 (add_mapping, read_name, read_constants, read_conditions)
17309 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
17310 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
17311 Remove file arguments from all calls, using read_char and unread_char
17312 instead of getc and ungetc.
17313 * gensupport.c (process_include): Preserve read_md_file around
17314 the include. Set read_md_file to the handle of the included file.
17315 Update call to read_rtx.
17316 (init_md_reader_args_cb): Set read_md_file to the handle of the file
17317 and remove local FILE *. Update calls to read_rtx.
17319 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17321 * read-md.h (read_rtx_lineno): Rename to...
17322 (read_md_lineno): ...this.
17323 (read_rtx_filename): Rename to...
17324 (read_md_filename): ...this.
17325 (copy_rtx_ptr_loc): Rename to...
17326 (copy_md_ptr_loc): ...this.
17327 (print_rtx_ptr_loc): Rename to...
17328 (print_md_ptr_loc): ...this.
17329 * read-md.c: Likewise. Update references after renaming.
17330 (string_obstack): Replace RTL with MD in comment.
17331 (set_rtx_ptr_loc): Rename to...
17332 (set_md_ptr_loc): ...this.
17333 (get_rtx_ptr_loc): Rename to...
17334 (get_md_ptr_loc): ...this.
17335 * genconditions.c: Update references after renaming.
17336 * genemit.c: Likewise.
17337 * genoutput.c: Likewise.
17338 * genpreds.c: Likewise.
17339 * gensupport.c: Likewise.
17340 * read-rtl.c: Likewise.
17342 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
17344 * Makefile.in (READ_MD_H): New variable.
17345 (BUILD_RTL): Add build/read-md.o.
17346 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
17347 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
17348 (build/genattrtab.o, build/genconditions.o build/genemit.o)
17349 (build/genextract.o, build/genflags.o, build/genoutput.o)
17350 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
17351 (build/read-md.o): New rule.
17352 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
17353 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
17354 * coretypes.h: ...here.
17355 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
17356 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
17357 * genattr.c: Include read-md.h.
17358 * genattrtab.c: Likewise.
17359 * genconditions.c: Likewise.
17360 * genemit.c: Likewise.
17361 * genextract.c: Likewise.
17362 * genflags.c: Likewise.
17363 * genoutput.c: Likewise.
17364 * genpreds.c: Likewise.
17365 * genrecog.c: Likewise.
17366 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
17367 (join_c_conditions, print_c_condition, read_rtx_filename)
17368 (read_rtx_lineno): Move to read-md.h.
17369 * read-rtl.c: Include read-md.h.
17370 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
17371 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
17372 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
17373 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
17374 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
17375 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
17376 (read_braced_string, read_string): Move to read-md.c.
17377 (read_rtx): Move some initialization to init_md_reader and call
17378 init_md_reader here.
17379 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
17381 * gensupport.c: Include read-md.h.
17382 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
17383 * read-md.h, read-md.c: New files.
17385 2010-06-10 Anatoly Sokolov <aesok@post.ru>
17387 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17388 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17389 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
17390 * config/moxie/moxie.c (moxie_function_value): Make static.
17391 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
17392 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17394 2010-06-10 Martin Jambor <mjambor@suse.cz>
17396 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
17397 * dbgcnt.def (tree_sra): New counter.
17398 * tree-sra.c: Include dbgcnt.h.
17399 (gate_intra_sra): Check tree_sra debug counter.
17401 2010-06-10 Martin Jambor <mjambor@suse.cz>
17403 PR tree-optimization/44258
17404 * tree-sra.c (build_access_subtree): Return false iff there is a
17406 (build_access_trees): Likewise.
17407 (analyze_all_variable_accesses): Disqualify candidates if
17408 build_access_trees returns true for them.
17410 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
17413 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
17414 tail-recurse into canonical node. Fast-forward over
17415 non-canonical VALUEs.
17417 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
17420 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
17421 (*addsi_1_zext) <TYPE_LEA>: Likewise.
17422 (add lea splitter): Likewise.
17423 (add_zext lea splitter): Likewise.
17425 2010-06-10 Joseph Myers <joseph@codesourcery.com>
17427 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
17429 2010-06-10 Jan Hubicka <jh@suse.cz>
17431 * df-problems.c (df_live_problem_data): Add live_bitmaps.
17432 (df_live_alloc): Initialize problem data and live_osbtacks.
17433 (df_live_finalize): Remove obstack, problem data; do not
17435 (df_live_top_dump, df_live_bottom_dump): Do not dump old
17436 data when not allocated.
17437 (df_live_verify_solution_start): Do not allocate problem data.
17438 (df_live_verify_solution_end): Check if out is allocated.
17439 (struct df_md_problem_data): New structure.
17440 (df_md_alloc): Allocate problem data.
17441 (df_md_free): Free problem data; do not clear bitmaps.
17443 2010-06-10 Jan Beulich <jbeulich@novell.com>
17446 * configure.ac: Replace $() with ${} when intending to expand
17447 variables rather than invoking commands.
17448 * configure: Re-generate.
17450 2010-06-10 Jan Hubicka <jh@suse.cz>
17452 PR rtl-optimization/44460
17453 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
17454 TYPE_NEEDS_CONSTRUCTING sanity check.
17456 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17458 * doc/include/fdl.texi: Move to GFDL version 1.3.
17460 * doc/cpp.texi: Move to GFDL version 1.3.
17461 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
17462 * doc/gccint.texi: Move to GFDL version 1.3.
17463 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
17464 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
17465 * doc/invoke.texi: Move to GFDL version 1.3.
17467 2010-06-09 Jan Hubicka <jh@suse.cz>
17469 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
17471 (propagate) ... here; swap the order.
17473 2010-06-09 Jan Hubicka <jh@suse.cz>
17475 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
17476 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
17477 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
17478 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
17480 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
17482 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
17483 Do not the gather memory reference in the outer loop if the step
17486 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
17488 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
17489 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
17490 8 to 4. Minor change of the related comments.
17492 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
17494 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
17495 the scev analysis when the variable is not used outside the loop
17496 in a close phi node: call compute_overall_effect_of_inner_loop.
17498 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
17500 * graphite-sese-to-poly.c (single_pred_cond): Renamed
17501 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
17502 (build_sese_conditions_before): Renamed call to single_pred_cond.
17503 (build_sese_conditions_after): Same.
17505 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
17507 * graphite-poly.h: Fix comments and indentation.
17508 * graphite-sese-to-poly.c: Same.
17509 (build_sese_conditions_before): Compute stmt and gbb only when needed.
17510 * tree-chrec.c: Fix comments and indentation.
17511 (tree-ssa-loop-niter.c): Same.
17513 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
17515 PR rtl-optimization/42461
17516 * dce.c (deletable_insn_p): Return true for const or pure calls again.
17517 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
17519 2010-06-09 Jan Hubicka <jh@suse.cz>
17521 * bitmap.c (bitmap_and): Walk array forward.
17522 (bitmap_and_compl_into): Likewise.
17523 (bitmap_xor): Likewise.
17524 (bitmap_xor_into): Likewise.
17525 (bitmap_equal_p): Likewise.
17526 (bitmap_intersect_p): Likewise.
17527 (bitmap_intersect_compl_p): Likewise.
17528 (bitmap_ior_and_into): Likewise.
17529 (bitmap_elt_copy): Likewise.
17530 (bitmap_and_compl): Likewise.
17531 (bitmap_elt_ior): Likewise.
17533 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
17535 * opts-common.c (prune_options): Ensure replacement argv array
17536 is correctly terminated by a NULL entry.
17538 2010-06-09 Jan Hubicka <jh@suse.cz>
17540 * cgraph.h (varpool_first_static_initializer,
17541 varpool_next_static_initializer): Make checking only when
17543 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
17544 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
17545 gcc_assert to gcc_checking_assert.
17546 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
17547 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
17548 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
17549 op_iter_init_phiuse, op_iter_init_phidef,
17550 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
17551 gcc_checking_assert.
17552 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
17553 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
17554 partition_is_global, live_on_entry, live_on_exit,
17555 live_merge_and_clear): Likewise.
17556 * system.h (gcc_checking_assert): New macro.
17557 * gimple.h (set_bb_seq): Use gcc_checking_assert.
17559 2010-06-09 Jason Merrill <jason@redhat.com>
17561 * Makefile.in (TAGS): Collect tags info from c-family.
17563 2010-06-09 Jan Hubicka <jh@suse.cz>
17565 * gimple.h (gcc_gimple_checking_assert): New macro.
17566 (gimple_set_def_ops, gimple_set_use_ops,
17567 gimple_set_vuse, gimple_set_vdef,
17568 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
17569 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
17570 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
17571 gimple_asm_output_op, gimple_asm_output_op_ptr,
17572 gimple_asm_set_output_op, gimple_asm_clobber_op,
17573 gimple_asm_set_clobber_op, gimple_asm_label_op,
17574 gimple_asm_set_label_op, gimple_try_set_kind,
17575 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
17576 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
17577 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
17578 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
17579 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
17580 gimple_omp_for_set_initial, gimple_omp_for_final,
17581 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
17582 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
17583 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
17584 conditional with ENABLE_GIMPLE_CHECKING.
17585 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
17587 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
17589 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
17590 (get_computation_cost_at): Use it.
17591 (determine_use_iv_cost_condition): Likewise.
17592 (determine_iv_cost): Likewise.
17594 2010-06-09 Richard Guenther <rguenther@suse.de>
17596 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
17599 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
17601 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
17603 2010-06-09 Martin Jambor <mjambor@suse.cz>
17605 PR tree-optimization/44423
17606 * tree-sra.c (dump_access): Dump also grp_assignment_read.
17607 (analyze_access_subtree): Pass negative allow_replacements to children
17608 if the current type is scalar.
17610 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
17613 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
17614 * doc/plugins.texi (Plugin license check): Update information
17615 on type of plugin_is_GPL_compatible.
17616 * Makefile.in (PLUGINCC): Define as $(COMPILER).
17617 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
17619 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
17621 * config/arm/arm.c (thumb2_reorg): New function.
17622 (arm_reorg): Call it.
17623 * config/arm/thumb2.md (define_peephole2 for flag clobbering
17624 arithmetic operations): Delete.
17626 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
17629 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
17632 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
17635 * gcc-plugin.h: Encapsulate all declarations in extern "C".
17637 2010-06-08 Jan Hubicka <jh@suse.cz>
17639 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
17640 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
17642 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
17644 PR tree-optimization/39874
17645 PR middle-end/28685
17646 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
17648 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
17649 same_bool_result_p): New.
17650 (and_var_with_comparison, and_var_with_comparison_1,
17651 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
17652 (or_var_with_comparison, or_var_with_comparison_1,
17653 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
17654 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
17655 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
17656 of combine_comparisons.
17657 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
17659 2010-06-08 Anatoly Sokolov <aesok@post.ru>
17661 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17662 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17663 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
17664 pdp11_function_value_regno_p): New functions.
17665 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17666 TARGET_FUNCTION_VALUE_REGNO_P): Define.
17668 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
17670 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
17671 Thumb-2 in the MINUS case.
17673 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17675 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
17677 * doc/gty.texi (GTY Options): Document typed GC allocation and
17678 variable_size GTY option.
17680 * ggc-internal.h: New.
17682 * ggc.h: Update copyright year.
17683 (digit_string): Move to stringpool.c.
17684 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
17685 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
17686 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
17687 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
17688 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
17689 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
17690 (ggc_force_collect, ggc_get_size, ggc_statistics)
17691 (ggc_print_common_statistics): Move to ggc-internal.h.
17692 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
17693 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
17694 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
17695 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
17696 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
17697 (ggc_alloc_zone_pass_stat): Remove.
17698 (ggc_internal_alloc_stat, ggc_internal_alloc)
17699 (ggc_internal_cleared_alloc_stat): New.
17700 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
17701 (ggc_internal_vec_alloc_stat)
17702 (ggc_internal_cleared_vec_alloc_stat)
17703 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
17704 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
17705 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
17706 (ggc_cleared_alloc_ptr_array_two_args): New.
17707 (htab_create_ggc, splay_tree_new_ggc): Redefine.
17708 (ggc_splay_alloc): Change the type of the first argument to
17709 enum gt_types_enum.
17710 (ggc_alloc_string): Make macro.
17711 (ggc_alloc_string_stat): New.
17712 (ggc_strdup): Redefine.
17713 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
17714 (ggc_alloc_rtvec_sized): New.
17715 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
17716 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
17717 (ggc_internal_cleared_alloc_zone_stat)
17718 (ggc_internal_zone_alloc_stat)
17719 (ggc_internal_zone_cleared_alloc_stat)
17720 (ggc_internal_zone_vec_alloc_stat)
17721 (ggc_alloc_zone_rtx_def_stat)
17722 (ggc_alloc_zone_tree_node_stat)
17723 (ggc_alloc_zone_cleared_tree_node_stat)
17724 (ggc_alloc_cleared_gimple_statement_d_stat): New.
17726 * ggc-common.c: Include ggc-internal.h.
17727 (ggc_internal_cleared_alloc_stat): Rename from
17728 ggc_alloc_cleared_stat.
17729 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
17730 (ggc_calloc): Remove.
17731 (ggc_cleared_alloc_htab_ignore_args): New.
17732 (ggc_cleared_alloc_ptr_array_two_args): New.
17733 (ggc_splay_alloc): Add obj_type parameter.
17734 (init_ggc_heuristics): Formatting fixes.
17736 * ggc-none.c: Update copyright year.
17737 (ggc_alloc_stat): Rename to ggc_alloc_stat.
17738 (ggc_alloc_cleared_stat): Rename to
17739 ggc_internal_cleared_alloc_stat.
17740 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
17742 * ggc-page.c: Update copyright year. Include ggc-internal.h.
17743 Remove references to ggc_alloc in comments.
17744 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
17745 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
17746 (new_ggc_zone, destroy_ggc_zone): Remove.
17747 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
17749 * ggc-zone.c: Include ggc-internal.h. Remove references to
17750 ggc_alloc in comments.
17751 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
17752 (ggc_internal_alloc_zone_pass_stat): New.
17753 (ggc_internal_cleared_alloc_zone_stat): New.
17754 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
17755 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
17756 (new_ggc_zone, destroy_ggc_zone): Remove.
17758 * stringpool.c: Update copyright year. Include ggc-internal.h
17759 (digit_vector): Make static.
17760 (digit_string): Moved from ggc.h.
17761 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
17762 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
17764 * Makefile.in (GGC_INTERNAL_H): New.
17765 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
17766 $(GGC_INTERNAL_H) to dependencies.
17768 * gentype.c: Update copyright year.
17769 (walk_type): Accept variable_size GTY option.
17770 (USED_BY_TYPED_GC_P): New macro.
17771 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
17772 whitespace at the end of strings.
17773 (get_type_specifier, variable_size_p): New functions.
17774 (alloc_quantity, alloc_zone): New enums.
17775 (write_typed_alloc_def): New function.
17776 (write_typed_struct_alloc_def): Likewise.
17777 (write_typed_typed_typedef_alloc_def): Likewise.
17778 (write_typed_alloc_defns): Likewise.
17779 (output_typename, write_splay_tree_allocator_def): Likewise.
17780 (write_splay_tree_allocators): Likewise.
17781 (main): Call write_typed_alloc_defns and
17782 write_splay_tree_allocators.
17784 * lto-streamer.h (lto_file_decl_data_ptr): New.
17786 * passes.c (order): Define using cgraph_node_ptr.
17788 * strinpool.c (struct string_pool_data): Declare nested_ptr using
17791 * gimple.h (union gimple_statement_d): Likewise.
17793 * rtl.h (struct rtx_def): Likewise.
17794 (struct rtvec_def): Likewise.
17796 * tree.h (union tree_node): Likewise.
17798 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
17800 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
17802 * tree-scalar-evolution.c (scev_initialize): Likewise.
17804 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
17806 * dwarf2asm.c (dw2_force_const_mem): Likewise.
17808 * omp-low.c (lower_omp_critical): Likewise.
17810 * bitmap.h (struct bitmap_head_def): Update comment to not
17811 reference ggc_alloc.
17813 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
17815 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
17817 * ipa-prop.c (duplicate_ggc_array): Rename to
17818 duplicate_ipa_jump_func_array. Use typed GC allocation.
17819 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
17821 * gimple.c (gimple_alloc_stat): Use
17822 ggc_alloc_cleared_gimple_statement_d_stat.
17824 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
17826 * tree.c (make_node_stat): Use
17827 ggc_alloc_zone_cleared_tree_node_stat.
17828 (make_tree_vec_stat): Likewise.
17829 (build_vl_exp_stat): Likewise.
17830 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
17831 (make_tree_binfo_stat): Likewise.
17832 (tree_cons_stat): Likewise.
17834 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
17835 (shallow_copy_rtx_stat): Likewise.
17836 (make_node_stat): Likewise.
17838 * lto-symtab.c: Fix comment.
17840 * tree-cfg.c (create_bb): Update comment to not reference
17842 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
17844 * varpool.c (varpool_node): Use typed GC allocation.
17845 (varpool_extra_name_alias): Likewise.
17847 * varasm.c (emutls_decl): Likewise.
17848 (get_unnamed_section): Likewise.
17849 (get_noswitch_section): Likewise.
17850 (get_section): Likewise.
17851 (get_block_for_section): Likewise.
17852 (build_constant_desc): Likewise.
17853 (create_constant_pool): Likewise.
17854 (force_const_mem): Likewise.
17856 * tree.c (build_vl_exp_stat): Likewise.
17857 (build_real): Likewise.
17858 (build_string): Likewise.
17859 (decl_debug_expr_insert): Likewise.
17860 (decl_value_expr_insert): Likewise.
17861 (type_hash_add): Likewise.
17862 (build_omp_clause): Likewise.
17864 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
17866 * tree-ssa.c (init_tree_ssa): Likewise.
17868 * tree-ssa-structalias.c (heapvar_insert): Likewise.
17870 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17872 * tree-ssa-loop-niter.c (record_estimate): Likewise.
17874 * tree-ssa-alias.c (get_ptr_info): Likewise.
17876 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17878 * tree-phinodes.c (allocate_phi_node): Likewise.
17880 * tree-iterator.c (tsi_link_before): Likewise.
17881 (tsi_link_after): Likewise.
17883 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17885 * tree-dfa.c (create_var_ann): Likewise.
17887 * tree-cfg.c (create_bb): Likewise.
17889 * toplev.c (alloc_for_identifier_to_locale): Likewise.
17890 (general_init): Likewise.
17892 * stringpool.c (stringpool_ggc_alloc): Likewise.
17893 (gt_pch_save_stringpool): Likewise.
17895 * sese.c (if_region_set_false_region): Likewise.
17897 * passes.c (do_per_function_toporder): Likewise.
17899 * optabs.c (set_optab_libfunc): Likewise.
17900 (set_conv_libfunc): Likewise.
17902 * lto-symtab.c (lto_symtab_register_decl): Likewise.
17904 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
17905 (input_eh_region): Likewise.
17906 (input_eh_lp): Likewise.
17907 (make_new_block): Likewise.
17908 (unpack_ts_real_cst_value_fields): Likewise.
17910 * lto-section-in.c (lto_new_in_decl_state): Likewise.
17912 * lto-cgraph.c (input_node_opt_summary): Likewise.
17914 * loop-init.c (loop_optimizer_init): Likewise.
17916 * lambda.h (lambda_vector_new): Likewise.
17918 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
17920 * ira.c (update_equiv_regs): Likewise.
17922 * ipa.c (cgraph_node_set_new): Likewise.
17923 (cgraph_node_set_add): Likewise.
17924 (varpool_node_set_new): Likewise.
17925 (varpool_node_set_add): Likewise.
17927 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
17928 (duplicate_ipa_jump_func_array): Likewise.
17929 (ipa_read_node_info): Likewise.
17931 * ipa-cp.c (ipcp_create_replace_map): Likewise.
17933 * integrate.c (get_hard_reg_initial_val): Likewise.
17935 * gimple.c (gimple_alloc_stat): Likewise.
17936 (gimple_build_omp_for): Likewise.
17937 (gimple_seq_alloc): Likewise.
17938 (gimple_copy): Likewise.
17940 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
17941 (gsi_insert_after_without_update): Likewise.
17943 * function.c (add_frame_space): Likewise.
17944 (insert_temp_slot_address): Likewise.
17945 (assign_stack_temp_for_type): Likewise.
17946 (allocate_struct_function): Likewise.
17947 (types_used_by_var_decl_insert): Likewise.
17949 * except.c (init_eh_for_function): Likewise.
17950 (gen_eh_region): Likewise.
17951 (gen_eh_region_catch): Likewise.
17952 (gen_eh_landing_pad): Likewise.
17953 (add_call_site): Likewise.
17955 * emit-rtl.c (get_mem_attrs): Likewise.
17956 (get_reg_attrs): Likewise.
17957 (start_sequence): Likewise.
17958 (init_emit): Likewise.
17960 * dwarf2out.c (new_cfi): Likewise.
17961 (queue_reg_save): Likewise.
17962 (dwarf2out_frame_init): Likewise.
17963 (new_loc_descr): Likewise.
17964 (find_AT_string): Likewise.
17965 (new_die): Likewise.
17966 (add_var_loc_to_decl): Likewise.
17967 (clone_die): Likewise.
17968 (clone_as_declaration): Likewise.
17969 (break_out_comdat_types): Likewise.
17970 (new_loc_list): Likewise.
17971 (loc_descriptor): Likewise.
17972 (add_loc_descr_to_each): Likewise.
17973 (add_const_value_attribute): Likewise.
17974 (tree_add_const_value_attribute): Likewise.
17975 (add_comp_dir_attribute): Likewise.
17976 (add_name_and_src_coords_attributes): Likewise.
17977 (lookup_filename): Likewise.
17978 (store_vcall_insn): Likewise.
17979 (dwarf2out_init): Likewise.
17981 * dbxout.c (dbxout_init): Likewise.
17983 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
17985 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
17987 * config/score/score7.c (score7_output_external): Likewise.
17989 * config/score/score3.c (score3_output_external): Likewise.
17991 * config/s390/s390.c (s390_init_machine_status): Likewise.
17993 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
17994 (rs6000_init_machine_status): Likewise.
17995 (output_toc): Likewise.
17997 * config/pa/pa.c (pa_init_machine_status): Likewise.
17998 (get_deferred_plabel): Likewise.
18000 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
18002 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
18004 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
18006 * config/mep/mep.c (mep_init_machine_status): Likewise.
18007 (mep_note_pragma_flag): Likewise.
18009 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
18011 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
18013 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
18015 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18016 (i386_pe_maybe_record_exported_symbol): Likewise.
18018 * config/i386/i386.c (get_dllimport_decl): Likewise.
18019 (ix86_init_machine_status): Likewise.
18020 (assign_386_stack_local): Likewise.
18022 * config/frv/frv.c (frv_init_machine_status): Likewise.
18024 * config/darwin.c (machopic_indirection_name): Likewise.
18026 * config/cris/cris.c (cris_init_machine_status): Likewise.
18028 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
18030 * config/avr/avr.c (avr_init_machine_status): Likewise.
18032 * config/arm/arm.c (arm_init_machine_status): Likewise.
18034 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
18035 (alpha_need_linkage): Likewise.
18036 (alpha_use_linkage): Likewise.
18038 * cgraph.c (cgraph_allocate_node): Likewise.
18039 (cgraph_create_edge_1): Likewise.
18040 (cgraph_create_indirect_edge): Likewise.
18041 (cgraph_add_asm_node): Likewise.
18043 * cfgrtl.c (init_rtl_bb_info): Likewise.
18045 * cfgloop.c (alloc_loop): Likewise.
18046 (rescan_loop_exit): Likewise.
18048 * cfg.c (init_flow): Likewise.
18049 (alloc_block): Likewise.
18050 (unchecked_make_edge): Likewise.
18052 * c-parser.c (c_parse_init): Likewise.
18053 (c_parse_file): Likewise.
18055 * c-decl.c (bind): Likewise.
18056 (record_inline_static): Likewise.
18057 (push_scope): Likewise.
18058 (make_label): Likewise.
18059 (lookup_label_for_goto): Likewise.
18060 (finish_struct): Likewise.
18061 (finish_enum): Likewise.
18062 (c_push_function_context): Likewise.
18064 * bitmap.c (bitmap_element_allocate): Likewise.
18065 (bitmap_gc_alloc_stat): Likewise.
18067 * alias.c (record_alias_subset): Likewise.
18068 (init_alias_analysis): Likewise.
18070 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
18072 * fold-const.c (fold_comparison): Remove redundant parenthesis.
18073 * tree-inline.c (expand_call_inline): Pass translated return value of
18074 cgraph_inline_failed_string to diagnostic function.
18076 2010-06-08 Andrew Pinski <pinskia@gmail.com>
18077 Shujing Zhao <pearly.zhao@oracle.com>
18080 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
18081 implicit bad conversions is initialization.
18082 (error_init): Use gmsgid instead of msgid for argument name and change
18083 the call for error.
18084 (pedwarn_init): Use gmsgid instead of msgid for argument name and
18085 change the call for pedwarn.
18086 (warning_init): Use gmsgid instead of msgid for argument name and
18087 change the call for warning.
18089 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
18091 * config/mips/mips-protos.h (mips_print_operand): Delete.
18092 (mips_print_operand_address): Delete.
18093 * config/mips/mips.h (mips_print_operand_punct): Delete.
18094 (PRINT_OPERAND): Delete.
18095 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18096 (PRINT_OPERAND_ADDRESS): Delete.
18097 * config/mips/mips.c (mips_print_operand_punct): Make static.
18098 (mips_print_operand_address): Make static.
18099 (mips_print_operand): Make static. Call
18100 mips_print_operand_punct_valid_p.
18101 (mips_print_operand_punct_valid_p): New function.
18102 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18103 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18105 2010-06-07 Jan Hubicka <jh@suse.cz>
18107 PR middle-end/44454
18108 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
18111 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
18113 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
18116 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18118 * doc/sourcebuild.texi (Effective-Target Keywords, Other
18119 attributes): Document gas.
18121 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
18123 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
18124 <TYPE_LEA>: Split instruction.
18125 <default>: Remove alternative 2 handling.
18126 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
18127 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
18128 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
18130 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
18131 (ashift_zext lea splitter): Use DImode for multiplication.
18133 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
18134 to generate addition.
18136 2010-06-07 Joseph Myers <joseph@codesourcery.com>
18138 * common.opt (fira-verbose): Use Var.
18139 (fpcc-struct-return): Use Init instead of VarExists.
18140 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
18142 * flags.h (flag_signed_char, flag_short_enums,
18143 flag_pcc_struct_return, flag_ira_verbose,
18144 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
18145 * toplev.c (flag_detailed_statistics, flag_signed_char,
18146 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
18147 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
18148 * toplev.h (flag_crossjumping, flag_if_conversion,
18149 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
18150 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
18151 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
18152 flag_cprop_registers, time_report, flag_ira_loop_pressure,
18153 flag_ira_coalesce, flag_ira_move_spills,
18154 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
18156 2010-06-07 Jan Hubicka <jh@suse.cz>
18158 * df-core.c (df_analyze_problem): Do verification after allocation.
18160 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
18161 (df_lr_alloc): Initialize problem data; move bitmaps to
18162 lr_bitmaps obstack.
18163 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
18164 (df_lr_verify_solution_start): Do not initialize problem data;
18165 allocate bitmaps in lr_bitmaps.
18166 (df_lr_verify_solution_end): Do not free problem data.
18168 2010-06-07 Jan Hubicka <jh@suse.cz>
18170 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
18171 if caller is noreturn.
18172 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
18173 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
18174 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
18175 * ipa-pure-const.c (check_decl): Add IPA parameter.
18176 (state_from_flags): New function.
18177 (better_state, worse_state): New functions.
18178 (check_call): When in IPA mode, do not care about callees.
18179 (check_load, check_store): Update.
18180 (check_ipa_load, check_ipa_store): New.
18181 (check_stmt): When in IPA mode, use IPA checkers.
18182 (analyze_function): Use state_from_flags.
18183 (propagate): Check indirect edges and references.
18185 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
18187 PR rtl-optimization/44404
18188 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
18189 of count_occurrences to see if it's safe to modify mem_insn.
18191 2010-06-07 Richard Guenther <rguenther@suse.de>
18193 * gimplify.c (gimplify_cleanup_point_expr): For empty body
18194 and EH-only cleanup drop the cleanup instead of inserting it
18197 2010-06-07 Ira Rosen <irar@il.ibm.com>
18199 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
18201 * targhooks.c (default_builtin_vectorization_cost): New function.
18202 * targhooks.h (default_builtin_vectorization_cost): Declare.
18203 * target.h (enum vect_cost_for_stmt): Define.
18204 (builtin_vectorization_cost): Change argument and comment.
18205 * tree-vectorizer.h: Remove cost model macros.
18206 * tree-vect-loop.c: Include target.h.
18207 (vect_get_cost): New function.
18208 (vect_estimate_min_profitable_iters): Replace cost model macros with
18209 calls to vect_get_cost.
18210 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
18211 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
18212 default implementation.
18213 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
18214 calls to target hook builtin_vectorization_cost.
18215 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
18217 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
18218 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
18219 implementation to return costs.
18220 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
18221 * config/spu/spu.h: Remove vectorizer cost model macros.
18222 * config/i386/i386.h: Likewise.
18223 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
18224 a call to target hook builtin_vectorization_cost.
18226 2010-06-06 Sriraman Tallam <tmsriram@google.com>
18229 * config/i386/i386.c (override_options): Turn zee pass on for level 2
18230 and above and defer till target is known.
18231 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
18232 turn off otherwise.
18234 2010-05-25 Jan Hubicka <jh@suse.cz>
18236 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
18237 (df_compact_blocks): Likewise.
18238 * df.h (struct df): Turn hardware_regs_used,
18239 regular_block_artificial_uses, eh_block_artificial_uses,
18240 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
18242 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
18243 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
18244 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
18245 df_scan_blocks, df_insn_delete, df_insn_rescan,
18246 df_insn_rescan_debug_internal, df_insn_rescan_all,
18247 df_process_deferred_rescans, df_process_deferred_rescans,
18248 df_notes_rescan, df_get_call_refs, df_get_call_refs,
18249 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
18250 df_record_entry_block_defs, df_record_exit_block_uses,
18251 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
18252 df_scan_verify): Update.
18254 2010-05-25 Dodji Seketeli <dodji@redhat.com>
18257 * c-common.c (is_typedef_decl): Move this definition ...
18258 * tree.c (is_typedef_decl): ... here.
18259 (typdef_variant_p): Move definition here from cp/tree.c.
18260 * c-common.h (is_typedef_decl): Move this declaration ...
18261 * tree.h (is_typedef_decl): ... here.
18262 (typedef_variant_p): Move declaration here from cp/cp-tree.h
18263 * dwarf2out.c (is_naming_typedef_decl): New function.
18264 (gen_tagged_type_die): Split out of ...
18265 (gen_type_die_with_usage): ... this function. When an anonymous
18266 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
18267 is emitted for the typedef.
18268 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
18269 anonymous tagged types.
18271 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
18274 * c-decl.c (grokdeclarator): Delete warning.
18276 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
18278 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
18279 newly built CALL_EXPR.
18280 * tree-profile.c (tree_profiling): Don't profile functions produced
18281 for built-in stuff.
18283 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
18287 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
18288 endianness-independent.
18290 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
18292 * c-common.c: Move to c-family/.
18293 * c-common.def: Likewise.
18294 * c-common.h: Likewise.
18295 * c-cppbuiltin.c: Likewise.
18296 * c-dump.c: Likewise.
18297 * c-format.c: Likewise.
18298 * c-format.h : Likewise.
18299 * c-gimplify.c: Likewise.
18300 * c-lex.c: Likewise.
18301 * c-omp.c: Likewise.
18303 * c-opts.c: Likewise.
18304 * c-pch.c: Likewise.
18305 * c-ppoutput.c: Likewise.
18306 * c-pragma.c: Likewise.
18307 * c-pragma.h: Likewise.
18308 * c-pretty-print.c: Likewise.
18309 * c-pretty-print.h: Likewise.
18310 * c-semantics.c: Likewise.
18311 * stub-objc.c: Likewise.
18313 * gengtype.c (get_file_langdir): Special-case files in c-family/.
18314 (get_output_file_with_visibility): Fix name for c-common.h.
18315 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
18317 * c-tree.h: Update include path for moved files.
18318 * c-lang.c: Likewise.
18319 * c-lang.h: Likewise.
18320 * c-parser.c: Likewise.
18321 * c-convert.c: Likewise.
18322 * c-decl.c: Likewise.
18323 * c-objc-common.c: Likewise.
18324 * configure.ac: Make sure c-family/ exists in the build directory.
18325 * configure: Regenerate.
18326 * Makefile.in: Update paths for moved files. Regroup files per
18327 location and update dependencies. Move generated_files down after
18330 * config/spu/spu-c.c: Update paths for moved files.
18331 * config/mep/mep-pragma.c: Likewise.
18332 * config/darwin-c.c: Likewise.
18333 * config/i386/msformat-c.c: Likewise.
18334 * config/i386/i386-c.c: Likewise.
18335 * config/avr/avr-c.c: Likewise.
18336 * config/sol2-c.c: Likewise.
18337 * config/ia64/ia64-c.c: Likewise.
18338 * config/rs6000/rs6000-c.c: Likewise.
18339 * config/arm/arm.c: Likewise.
18340 * config/arm/arm-c.c: Likewise.
18341 * config/h8300/h8300.c: Likewise.
18342 * config/v850/v850-c.c: Likewise.
18344 * config/t-darwin: Fix dependencies for moved files.
18345 * config/t-sol2: Fix dependencies for moved files.
18346 * config/mep/t-mep: Fix dependencies for moved files.
18347 * config/ia64/t-ia64: Fix dependencies for moved files.
18348 * config/rs6000/t-rs6000: Fix dependencies for moved files.
18349 * config/v850/t-v850: Fix dependencies for moved files.
18350 * config/v850/t-v850e: Fix dependencies for moved files.
18352 * config/m32c/m32c-pragma.c
18354 * po/exgettext: Look in c-family/ also.
18356 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
18358 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
18359 (mark_control_dependent_edges_necessary): Call it instead of marking
18360 the last statement manually.
18361 (propagate_necessity): Likewise.
18363 2010-06-05 Jan Hubicka <jh@suse.cz>
18365 * basic-block.h (compute_dominance_frontiers): Updated.
18366 (compute_idf): Likewise.
18368 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
18369 for dominance frontiers.
18370 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
18371 (insert_updated_phi_nodes_for): Likewise.
18372 (update_ssa): Likewise.
18373 * cfganal.c (compute_dominance_frontiers_1): Likewise.
18374 (compute_dominance_frontiers): Likewise.
18375 (compute_idf): Likewise.
18376 * df-problems.c (df_md_local_compute): Likewise.
18378 2010-06-05 Anatoly Sokolov <aesok@post.ru>
18380 * target.h (struct gcc_target): Add memory_move_cost field.
18381 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
18382 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
18383 * targhooks.c (default_memory_move_cost): New function.
18384 * targhooks.h (default_memory_move_cost): Declare function.
18385 * reload.h (memory_move_cost): Declare.
18386 (memory_move_secondary_cost): Change type of 'in' argument to bool.
18387 * reginfo.c (memory_move_cost): New function.
18388 (memory_move_secondary_cost): Change type of 'in' argument to bool.
18389 * ira.h (ira_memory_move_cost): Update comment.
18390 * ira.c (ira_memory_move_cost): Update comment.
18391 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
18392 with memory_move_cost.
18393 * postreload.c (reload_cse_simplify_set): (Ditto.).
18394 * reload1.c (choose_reload_regs): (Ditto.).
18395 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
18396 (MEMORY_MOVE_COST): Revise documentation.
18398 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
18399 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
18400 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
18401 type of 'in' argument to bool.
18402 (TARGET_MEMORY_MOVE_COST): Define.
18404 2010-06-05 Jan Hubicka <jh@suse.cz>
18406 * ipa-pure-const.c (propagate): Fix typo in handling of functions
18407 that cannot return. Be more careful when merging the results with
18408 previously known ones.
18410 2010-06-05 Matthias Klose <doko@ubuntu.com>
18412 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
18413 function to add the -iplugindir option.
18414 (find_plugindir_spec_function): Add new declaration and function.
18415 (static_spec_func): Use it for "find-plugindir".
18417 2010-06-05 Jakub Jelinek <jakub@redhat.com>
18420 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
18421 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
18422 statement expression.
18424 2010-06-05 Jan Hubicka <jh@suse.cz>
18426 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
18427 (df_rd_problem_data): Convert sparse_invalidated_by_call,
18428 dense_invalidated_by_call to bitmap head.
18429 (df_rd_alloc, df_rd_bb_local_compute_process_def,
18430 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
18431 df_rd_start_dump, df_lr_verify_transfer_functions,
18432 df_live_verify_transfer_functions, df_chain_create_bb,
18433 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
18434 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
18435 df_simulate_one_insn_forwards, df_md_alloc,
18436 df_md_bb_local_compute_process_def,
18437 df_md_bb_local_compute_process_def, df_md_local_compute,
18438 df_md_transfer_function df_md_free): Update.
18440 2010-06-05 Joseph Myers <joseph@codesourcery.com>
18443 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
18444 target type for ADDR_EXPR; require no changes to qualifiers except
18445 for function types.
18446 * c-tree.h (c_build_type_variant): Remove.
18448 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
18450 * genautomata.c (get_excl_set): Do work per element, not per char.
18451 (check_presence_pattern_sets): Similar.
18452 (check_absence_pattern_sets): Similar.
18454 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
18456 * genautomata.c (curr_state_pass_num): Delete.
18457 (min_issue_delay_pass_states): Delete.
18458 (min_issue_delay): Delete.
18459 (initiate_min_issue_delay_pass_states): Delete.
18460 (output_min_issue_delay_table): Compute min_issue_delay_vect
18461 using a breadth-first search variant.
18462 (output_tables): Don't call initiate_min_issue_delay_pass_states.
18464 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
18467 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
18468 (df_byte_lr_bb_local_compute): Likewise.
18470 2010-06-03 Jason Merrill <jason@redhat.com>
18472 Implement noexcept operator (5.3.7)
18473 * c-common.c (c_common_reswords): Add noexcept.
18474 * c-common.h (enum rid): Add RID_NOEXCEPT.
18476 2010-06-04 Joseph Myers <joseph@codesourcery.com>
18478 * config/darwin-driver.c (darwin_default_min_version): Use
18479 GCC-specific formats in diagnostics.
18480 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
18482 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
18483 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
18484 eval_spec_function, handle_braces, process_brace_body, main,
18485 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
18486 getenv_spec_function, compare_version_strings,
18487 version_compare_spec_function): Use GCC-specific formats in
18490 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
18492 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
18493 that operand 0 and operand 1 are equal.
18494 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
18495 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
18496 and operand 1 are equal.
18497 <default>: Ditto. Remove ??? comment.
18498 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
18499 and operand 1 are equal.
18500 <default>: Ditto. Remove ??? comment.
18501 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
18503 (*add<mode>_4) <default>: Ditto.
18504 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
18506 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
18508 * config/i386/i386-protos.h (ix86_print_operand): Declare.
18509 * config/i386/i386.c (ix86_print_operand): Make non-static.
18510 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
18511 * output.h (output_operand): Declare.
18512 * final.c (output_operand): Make non-static.
18514 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
18516 PR rtl-optimization/44013
18517 * sched-deps.c (add_dependence_list_and_free): Don't free lists
18518 when processing debug insns.
18521 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
18522 recursing. Check that recursion is bounded. Rename inner var
18523 to avoid hiding incoming argument.
18525 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
18527 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
18528 operands[2] == 255.
18532 (*addqi_ext_1_rex64): Ditto.
18533 (*addqi_ext_1): Ditto.
18535 (*addqi_4): Check for incdec_operand in QImode.
18537 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
18538 using SWI mode iterator.
18539 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
18540 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
18542 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
18543 using SWI mode iterator.
18545 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
18548 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
18549 * c-format.c (gcc_diag_flag_specs): Add hash.
18550 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
18551 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
18552 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
18553 pp_c_cv_qualifiers. Handle qualifiers spelling here.
18554 (pp_c_type_qualifier_list): Call the function above.
18555 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
18556 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
18557 (WARN_FOR_QUALIFIERS): New macro.
18558 (convert_for_assignment): Use it.
18560 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
18562 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
18564 2010-06-04 Jan Hubicka <jh@suse.cz>
18566 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
18567 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
18568 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
18569 DF_BYTE_LR_OUT): Update for embedded bitmaps.
18570 * fwprop.c (single_def_use_enter_block): Likewise.
18571 * ddg.c (create_ddg_dep_from_intra_loop_link,
18572 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
18573 * loop-iv.c (latch_dominating_def): Likewise.
18574 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
18575 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
18576 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
18577 df_rd_transfer_function, df_rd_top_dump,
18578 df_rd_bottom_dump): Update.
18579 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
18580 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
18581 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
18582 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
18583 df_lr_verify_solution_start, df_lr_verify_solution_end,
18584 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
18585 df_live_free_bb_info, df_live_alloc, df_live_reset,
18586 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
18587 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
18588 df_live_verify_solution_start, df_live_verify_solution_end,
18589 df_live_verify_transfer_functions, df_chain_create_bb,
18590 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
18591 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
18592 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
18593 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
18594 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
18595 df_byte_lr_transfer_function, df_byte_lr_top_dump,
18596 df_byte_lr_bottom_dump, df_create_unused_note,
18597 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
18598 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
18599 df_md_transfer_function, df_md_init, df_md_confluence_0,
18600 df_md_confluence_n,
18601 df_md_top_dump, df_md_bottom_dump): Update.
18602 (struct df_lr_problem_data): Embedd bitmap headers.
18604 2010-06-04 Jan Hubicka <jh@suse.cz>
18606 * dce.c (dce_process_block): Do not re-scan already marked
18609 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
18611 PR rtl-optimization/39871
18612 PR rtl-optimization/40615
18613 PR rtl-optimization/42500
18614 PR rtl-optimization/42502
18615 * ira.c (init_reg_equiv_memory_loc: New function.
18616 (ira): Call it twice.
18617 * reload.h (calculate_elim_costs_all_insns): Declare.
18618 * ira-costs.c: Include "reload.h".
18619 (regno_equiv_gains): New static variable.
18620 (init_costs): Allocate it.
18621 (finish_costs): Free it.
18622 (ira_costs): Call calculate_elim_costs_all_insns.
18623 (find_costs_and_classes): Take estimated elimination costs
18625 (ira_adjust_equiv_reg_cost): New function.
18626 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
18627 * reload1.c (init_eliminable_invariants, free_reg_equiv,
18628 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
18629 (elim_bb): New static variable.
18630 (reload): Move code out of here into init_eliminable_invariants and
18631 free_reg_equiv. Call them.
18632 (calculate_elim_costs_all_insns): New function.
18633 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
18634 all callers changed. If FOR_COSTS is true, don't call alter_reg,
18635 but call note_reg_elim_costly if we turned a valid memory address
18636 into an invalid one.
18637 * Makefile.in (ira-costs.o): Depend on reload.h.
18639 2010-06-04 Julian Brown <julian@codesourcery.com>
18641 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
18644 2010-06-04 Richard Guenther <rguenther@suse.de>
18647 * cgraph.h (struct varpool_node): Add lto_file_data field.
18648 * lto-cgraph.c (input_varpool_node): Initialize it.
18650 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
18652 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
18653 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
18654 predicate in "type" attribute calculation.
18655 (*addsi_1_zext): Ditto.
18656 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
18657 (*addsi_2_zext): Ditto.
18658 (*add<mode>_3): Ditto.
18659 (*addsi_3_zext): Ditto.
18660 (*add<mode>_5): Ditto.
18662 2010-06-03 Jan Hubicka <jh@suse.cz>
18664 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
18666 * cfganal.c (compute_dominance_frontiers_1): Likewise.
18668 2010-06-03 Jan Hubicka <jh@suse.cz>
18670 * df-problems.c (df_create_unused_note, df_note_bb_compute):
18671 micro-optimize the checks when to add new note.
18673 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
18675 * final.c (output_asm_insn): Call
18676 targetm.asm_out.print_operand_punct_valid_p. Update comments.
18677 (output_operand): Call targetm.asm_out.print_operand. Update comments.
18678 (output_address): Call targetm.asm_out.print_operand_address.
18680 * target.h (struct gcc_target): Add print_operand,
18681 print_operand_address, and print_operand_punct_valid_p fields.
18682 * targhooks.h (default_print_operand): Declare.
18683 (default_print_operand_address): Declare.
18684 (default_print_operand_punct_valid_p): Declare.
18685 * targhooks.c (default_print_operand): Define.
18686 (default_print_operand_address): Define.
18687 (default_print_operand_punct_valid_p): Define.
18688 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
18689 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
18690 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
18691 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
18692 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
18693 * vmsdbgout.c (addr_const_to_string): Update comment.
18694 * config/i386/i386.c (print_operand): Rename to...
18695 (ix86_print_operand): ...this. Make static.
18696 (print_operand_address): Rename to...
18697 (ix86_print_operand_address): ...this. Make static. Call
18698 ix86_print_operand instead of PRINT_OPERAND.
18699 (ix86_print_operand_punct_valid_p): New function.
18700 (TARGET_PRINT_OPERAND): Define.
18701 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18702 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18703 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
18704 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18705 (PRINT_OPERAND): Delete.
18706 (PRINT_OPERAND_ADDRESS): Delete.
18707 * config/i386/i386-protos.h (print_operand): Delete prototype.
18708 (print_operand_address): Delete prototype.
18710 2010-06-03 Richard Guenther <rguenther@suse.de>
18712 PR tree-optimization/44403
18713 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
18714 Preserve pointer qualifiers.
18715 (vect_create_data_ref_ptr): Likewise.
18717 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
18720 * defaults.h (MAX_FIXED_MODE_SIZE): New.
18722 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
18724 2010-06-03 Jakub Jelinek <jakub@redhat.com>
18727 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
18728 return false if merging the bbs would lead to goto_locus
18729 location being lost from the IL.
18731 2010-06-03 Jan Hubicka <jh@suse.cz>
18732 Jakub Jelinek <jakub@redhat.com>
18734 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
18735 set->regs[i] is NULL or has just one entry.
18737 2010-06-03 Jan Hubicka <jh@suse.cz>
18739 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
18740 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
18742 2010-06-03 Paul Brook <paul@codesourcery.com>
18744 * config/arm/arm.c (FL_TUNE): Define.
18745 (arm_default_cpu, arm_cpu_select): Remove.
18746 (all_cores): Populate core field.
18747 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
18748 (arm_find_cpu): New function.
18749 (arm_handle_option): Lookup cpu/architecture names.
18750 (arm_override_options): Cleanup mcpu/march/mtune handling.
18751 (arm_file_start): Ditto.
18753 2010-06-03 Alan Modra <amodra@gmail.com>
18756 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
18757 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
18758 rtx to gen_load_toc_v4_PIC_1b. Tidy.
18759 (rs6000_emit_load_toc_table): Likewise.
18761 2010-06-02 Jan Hubicka <jh@suse.cz>
18763 * passes.c (init_optimization_passes): Put ipa reference
18764 after ipa pure-const.
18766 2010-06-02 Jan Hubicka <jh@suse.cz>
18768 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
18769 calls_read_all and calls_write_all.
18770 (get_reference_optimization_summary): Fix formatting.
18771 (is_proper_for_analysis): Check that decl is not readonly.
18772 (propagate_bits): Check CONST/PURE/noreturn flags.
18773 (ipa_init): Move all_module_statics to optimization_summary_obstack.
18774 (analyze_function): Ignore indirect edges.
18775 (copy_global_bitmap): For all module statics, do nothing.
18776 (generate_summary): Do not print calls_read_all/calls_write_all.
18777 (read_write_all_from_decl): Take node as argument; check
18778 cgraph_node_cannot_return.
18779 (propagate): Reorganize read_all/write_all computation;
18780 check indirect edges; check ecf flags; use all_module_statics
18781 in the results; do not free all_module_statics.
18782 (stream_out_bitmap): Handle all_module_statics.
18783 (ipa_reference_write_optimization_summary): Likewise; use
18784 varpool/cgraph encoders to get boundaries.
18785 (ipa_reference_read_optimization_summary): Read in all_module_statics;
18786 use it when possible.
18788 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18791 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
18792 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
18794 * doc/extend.texi (powerpc builtins): Document vec_recip,
18795 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
18797 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
18798 (rs6000_emit_swrsqrt): Ditto.
18799 (rs6000_emit_swdivsf): Delete.
18800 (rs6000_emit_swdivdf): Ditto.
18801 (rs6000_emit_swrsqrtsf): Ditto.
18803 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
18804 describe the reciprocal estimate support for each type.
18805 (recip_options): Map -mrecip=<opt> into option bits.
18806 (gen_2arg_fn_t): New typedef for binary rtx gen function.
18807 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
18808 reciprocal estimate instructions.
18809 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
18810 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
18811 Set up rs6000_recip_bits based on the -mrecip* options. Print the
18812 cost information if -mdebug=cost or -mdebug=reg.
18813 (rs6000_override_options): Set -mrecip-precision for power6, and
18814 power7 machines. If -mvsx or -mdfp, enable various options that
18815 came in previous instruction set ISAs, unless the option was
18816 explicitly disabled by the command line option. Parse
18817 -mrecip=<opt> options.
18818 (rs6000_builtin_vectorized_function): Add support for vectorizing
18819 the reciprocal estimate builtins and expansions.
18820 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
18821 (bdesc_2arg): Add reciprocal estimate builtins.
18822 (bdesc_1arg): Add reciprocal square root estimate builtins.
18823 (rs6000_expand_builtin): Rewrite to use a switch statement,
18824 instead of multiple if/then/elses. Add reciprocal estimate builtins.
18825 (rs6000_init_builtins): Create declarations for reciprocal
18827 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
18828 sized, prefer traditional floating point registers, if integer
18829 vector types, prefer altivec registers. Don't actually look at
18830 the memory address any more.
18831 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
18833 (rs6000_load_constant_and_splat): New helper function to load up
18834 the constant for reciprocal estimate instructions.
18835 (rs6000_emit_madd): New helper function for generating
18836 multiply/add type instructions, based on the current switches.
18837 (rs6000_emit_msub): Ditto.
18838 (rs6000_emit_mnsub): Ditto.
18839 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
18840 replace a divide with a reciprocal estimate and fixup, adding
18841 support for machines with high precision and vectors.
18842 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
18843 low precision machines.
18844 (rs6000_emit_swdiv): New common function to be called to replace a
18845 division with reciprocal estimate and fixup.
18846 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
18847 for double and vector types. Add support for high precision machines.
18849 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
18850 the reciprocal estimate instructions can be generated.
18851 (TARGET_FRE): Ditto.
18852 (TARGET_FRSQRTES): Ditto.
18853 (TARGET_FRSQRTE): Ditto.
18854 (RS6000_RECIP_*): New macros for reciprocal estimate support.
18856 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
18857 square root estimate on vectors.
18858 (re<mode>2): New insn for reciprocal division estimate on vectors.
18860 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
18862 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
18863 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
18864 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
18865 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
18866 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
18867 (RS6000_BUILTIN_RSQRT): Ditto.
18868 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
18869 floating point builtin.
18871 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
18872 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
18873 __RECIP_PRECISION__ based on the command line switches.
18874 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
18876 * config/rs6000/rs6000.opt (-mrecip): Document add support for
18877 replacing division instructions with reciprocal estimate and fixup.
18878 (-mrecip=<opt>): New option.
18879 (-mrecip-precision): Ditto.
18881 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
18882 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
18883 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
18886 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
18887 (UNSPEC_VREFP): Ditto.
18888 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
18889 conterparts with regard to support of -mno-fused-madd and -ffast-math.
18890 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
18891 reciprocal estimate instructions to be generated.
18892 (altivec_vrefp): Ditto.
18894 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
18896 (rreg): New mode attribute for reciprocal estimate support.
18897 (recip<mode>3): New insn for division using reciprocal estimate
18898 and fixup builtins.
18899 (divide define_split): New define_split to convert floating point
18900 division to use reciprocal estimate if the user used the
18901 appropriate options and the split is run when we can add new
18902 pseudo registers for the fixup.
18903 (rsqrt<mode>2): New insn for reciprocal square root support.
18904 (recipsf3): Move into recip<mode>3.
18906 (fres): Use TARGET_FRES.
18907 (rsqrtsf2): Move into rsqrt<mode>2.
18908 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
18909 (copysignsf3): Add support for VSX.
18910 (fred): Use TARGET_FRE.
18912 (rsqrtdf_internal1): New function for frsqrte instruciton.
18914 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
18915 (vec_rsqrt): Ditto.
18917 2010-06-03 Richard Guenther <rguenther@suse.de>
18919 PR middle-end/44291
18920 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
18921 (set_user_assembler_libfunc): Likewise.
18923 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
18925 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
18927 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
18929 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
18930 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
18931 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
18932 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
18933 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
18934 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
18935 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
18936 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
18937 * defaults.h: Updated for above mentioned changes.
18939 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
18941 * c-common.c: Remove header include of tm_p.h.
18942 * Makefile.in (c-common.o): Remove TM_P_H dependency.
18944 2010-06-02 Jakub Jelinek <jakub@redhat.com>
18946 * tree.h (struct tree_decl_map): New type.
18947 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
18948 (tree_decl_map_hash): New prototype.
18949 (debug_expr_for_decl, value_expr_for_decl): Change into
18950 tree_decl_map hashtab from tree_map.
18951 (init_ttree): Adjust initialization.
18952 (tree_decl_map_hash): New function.
18953 (decl_debug_expr_lookup, decl_debug_expr_insert,
18954 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
18956 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18958 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
18960 * configure: Regenerate.
18961 * config.in: Regenerate.
18963 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
18964 (X86_64_EMULATION): Define.
18965 (TARGET_LD_EMULATION): Use them.
18967 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
18968 (SPARC64_EMULATION): Define.
18969 (LINK_ARCH_SPEC): Use them.
18971 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
18973 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
18974 smallest_mode_for_size for computing the precision types of new
18975 graphite IVs. Do not call lang_hooks.types.type_for_size.
18977 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
18979 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
18981 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
18983 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
18985 PR middle-end/44363
18986 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
18987 return false instead.
18989 2010-06-02 Jan Hubicka <jh@suse.cz>
18991 PR middle-end/44295
18992 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
18993 create new cgraph node to check callee.
18995 2010-06-02 Richard Guenther <rguenther@suse.de>
18997 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
18999 2010-06-02 Richard Guenther <rguenther@suse.de>
19001 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
19002 (lto_wrapper_cleanup): ... this. Do not exit.
19003 (fatal): Adjust. Exit here.
19004 (fatal_perror): Likewise.
19005 (fatal_signal): New function.
19006 (main): Set up signal handlers to cleanup temporary files.
19007 * Makefile.in (lto-wrapper.o): Adjust dependencies.
19009 2010-06-02 Richard Guenther <rguenther@suse.de>
19011 PR tree-optimization/44377
19012 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
19014 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19016 * config/s390/2097.md (z10_fhex): Remove insn reservation.
19017 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
19018 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
19019 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
19021 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
19023 2010-06-02 Jan Hubicka <jh@suse.cz>
19025 * bitmap.c (bitmap_descriptor): Add search_iter.
19026 (bitmap_find_bit): Increment it.
19027 (print_statistics): Print it.
19029 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
19031 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
19032 instead of gimple_build_call_vec. Delete unnecessary local variable.
19034 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
19036 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
19037 change from yesterday.
19039 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
19041 * c-ada-spec.c: Clean up redundant includes.
19043 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
19045 * gimplify.c: Do not include except.h and optabs.h.
19046 (gimplify_body): Do not initialize RTL profiling.
19047 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
19048 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
19049 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
19050 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
19053 * tree-pretty-print.h: Include pretty-print.h.
19054 * gimple-pretty-print.h: Include pretty-print.h.
19056 * tree-pretty-print.c: Do not include diagnostic.h.
19057 * tree-vrp.c: Likewise.
19058 * tree-tailcall.c: Likewise
19059 * tree-scalar-evolution.c: Likewise
19060 * tree-ssa-dse.c: Likewise
19061 * tree-chrec.c: Likewise
19062 * tree-ssa-sccvn.c: Likewise
19063 * tree-ssa-copyrename.c: Likewise
19064 * tree-nomudflap.c: Likewise
19065 * tree-call-cdce.c: Likewise
19066 * tree-stdarg.c: Likewise
19067 * tree-ssa-math-opts.c: Likewise
19068 * tree-nrv.c: Likewise
19069 * tree-ssa-sink.c: Likewise
19070 * tree-browser.c: Likewise
19071 * tree-ssa-loop-ivcanon.c: Likewise
19072 * tree-ssa-loop.c: Likewise
19073 * tree-parloops.c: Likewise
19074 * tree-ssa-address.c: Likewise
19075 * tree-ssa-ifcombine.c: Likewise
19076 * tree-if-conv.c: Likewise
19077 * tree-data-ref.c: Likewise
19078 * tree-affine.c: Likewise
19079 * tree-ssa-phiopt.c: Likewise
19080 * tree-ssa-coalesce.c: Likewise
19081 * tree-ssa-pre.c: Likewise
19082 * tree-ssa-live.c: Likewise
19083 * tree-predcom.c: Likewise
19084 * tree-ssa-forwprop.c: Likewise
19085 * tree-ssa-dce.c: Likewise
19086 * tree-ssa-ter.c: Likewise
19087 * tree-ssa-loop-prefetch.c: Likewise
19088 * tree-optimize.c: Likewise
19089 * tree-ssa-phiprop.c: Likewise
19090 * tree-object-size.c: Likewise
19091 * tree-outof-ssa.c: Likewise
19092 * tree-ssa-structalias.c: Likewise
19093 * tree-switch-conversion.c: Likewise
19094 * tree-ssa-reassoc.c: Likewise
19095 * tree-ssa-operands.c: Likewise
19096 * tree-vectorizer.c: Likewise
19097 * tree-vect-data-refs.c: Likewise
19098 * tree-vect-generic.c: Likewise
19099 * tree-vect-stmts.c: Likewise
19100 * tree-vect-patterns.c: Likewise
19101 * tree-vect-slp.c: Likewise
19102 * tree-vect-loop.c: Likewise
19103 * tree-ssa-loop-ivopts.c: Likewise
19104 * tree-ssa-loop-im.c: Likewise
19105 * tree-ssa-loop-niter.c: Likewise
19106 * tree-ssa-loop-unswitch.c: Likewise
19107 * tree-ssa-loop-manip.c: Likewise
19108 * tree-ssa-loop-ch.c: Likewise
19109 * tree-dump.c: Likewise
19110 * tree-complex.c: Likewise
19112 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
19113 * tree-ssa-uninit.c: Likewise
19114 * tree-ssa-threadupdate.c: Likewise
19115 * tree-ssa-uncprop.c: Likewise
19116 * tree-ssa-ccp.c: Likewise
19117 * tree-ssa-dom.c: Likewise
19118 * tree-ssa-propagate.c: Likewise
19119 * tree-ssa-alias.c: Likewise
19120 * tree-dfa.c: Likewise
19121 * tree-cfgcleanup.c: Likewise
19122 * tree-sra.c: Likewise
19123 * tree-ssa-copy.c: Likewise
19124 * tree-ssa.c: Likewise
19125 * tree-profile.c: Likewise
19126 * tree-cfg.c: Likewise
19127 * tree-ssa-threadedge.c: Likewise
19128 * tree-vect-loop-manip.c: Likewise
19130 * tree-inline.c: Do not include diagnostic.h and expr.h.
19132 (copy_decl_for_dup_finish): Do not use NULL_RTX.
19134 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
19135 * tree-loop-distribution.c: Likewise.
19137 2010-06-01 Jan Hubicka <jh@suse.cz>
19139 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
19141 2010-06-01 Jan Hubicka <jh@suse.cz>
19143 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
19144 remove return value.
19145 (split_bbs_on_noreturn_calls) .... here.
19146 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
19147 * tree-flow.h (fixup_noreturn_call): New.
19149 2010-06-01 Jan Hubicka <jh@suse.cz>
19151 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
19153 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
19155 * tree.h (build_nt_call_list): Delete.
19156 * tree.c (build_nt_call_list): Delete.
19158 2010-06-01 Jan Hubicka <jh@suse.cz>
19160 * fwprop.c: Make emit-rtl.h include last.
19161 * rtlanal.c: Include emit-rtl.h.
19162 * genautomata.c: Output emit-rtl include into insn-automata.c
19163 * df-scan.c: Include emit-rtl.h.
19164 * haifa-sched.c: Indlude emit-rtl.h.
19165 * mode-switching.c: Indlude emit-rtl.h.
19166 * graph.c: Indlude emit-rtl.h.
19167 * sel-sched.c: Include emit-rtl.h.
19168 * sel-sched-ir.c: Include emit-rtl.h.
19169 * ira-build.c: Include emit-rtl.h.
19170 * emit-rtl.c (first_insn, last_insn): Remove defines.
19171 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
19172 Move to emit-rtl.h.
19173 (set_new_first_and_last_insn, get_last_insn_anywhere,
19174 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
19175 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
19176 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
19177 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
19178 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
19179 Use accessor functions.
19180 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
19181 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
19182 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
19183 mem_expr_equal_p): Move here from rtl.h.
19184 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
19185 Move here from emit-rtl.c; make inline.
19186 * cfglayout.h: Include emit-rtl.h.
19187 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
19188 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
19189 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
19190 mem_expr_equal_p, get_insns, set_first-insn,
19191 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
19192 * reg-stack.c: Include emit-rtl.h.
19195 2010-06-01 Jan Hubicka <jh@suse.cz>
19197 * cgraph.h (tree_function_versioning): Update prototype.
19198 (cgraph_function_versioning): Update prototype.
19199 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
19201 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
19202 (cgraph_materialize_clone, save_inline_function_body): Update use of
19203 tree_function_versioning.
19204 * tree-inline.c (copy_bb): Look for previous copied block to link
19205 after; fix debug output.
19206 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
19207 (copy_body): Likewise.
19208 (expand_call_inline): Update use of copy_body.
19209 (tree_function_versioning): Update use of copy body; accept
19210 blocks_to_copy and new_entry.
19212 2010-06-01 Jan Hubicka <jh@suse.cz>
19214 * gegenrtl.c: Remove unnecesary prototypes.
19216 (gendef): Produce static inline.
19218 (main): Do not decode parameters; generate header only.
19219 * Makefile.in (genrtl.c): Remove.
19221 2010-06-01 Jan Hubicka <jh@suse.cz>
19223 * tree-switch-conversion.c (build_one_array): Make it readonly.
19225 2010-06-01 Richard Guenther <rguenther@suse.de>
19227 * optabs.c (init_optabs): Guard all accesses to reinit.
19228 * ipa-pure-const.c (propagate): Fix another typo.
19229 * opts.c (common_handle_option): Split assignment to bool.
19230 * c-opts.c (c_common_handle_option): Likewise.
19232 2010-06-01 Arnaud Charlet <charlet@adacore.com>
19233 Matthew Gingell <gingell@adacore.com>
19235 * doc/invoke.texi: Mention -fdump-ada-spec.
19236 * tree-dump.c (dump_files): Add ada-spec.
19237 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
19238 * tree-pass.h (tree_dump_index): Add TDI_ada.
19239 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
19240 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
19241 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
19242 * c-decl.c: Include c-ada-spec.h.
19243 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
19245 (c_write_global_declarations): Add handling of -fdump-ada-spec.
19246 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
19247 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
19248 * c-ada-spec.h, c-ada-spec.c: New files.
19250 2010-06-01 Richard Guenther <rguenther@suse.de>
19253 * ipa-pure-const.c (get_function_state): Hand back varying state
19254 if we do not have one.
19255 (has_function_state): New function.
19256 (duplicate_node_data): Adjust.
19257 (remove_node_data): Likewise.
19258 (pure_const_write_summary): Likewise.
19259 (propagate): Likewise. Fix typo.
19261 2010-06-01 Jan Hubicka <jh@suse.cz>
19263 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
19264 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
19265 (execute_all_ipa_transforms): Do not play with the states.
19267 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
19269 * config/arm/t-linux-androideabi: New.
19270 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
19272 2010-06-01 Jan Hubicka <jh@suse.cz>
19274 * tree-inline.c (estimate_num_insns): For stdarg functions look
19275 into call statement to count cost of argument passing.
19277 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
19279 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
19280 argument for fprintf.
19281 (ix86_output_addr_diff_elt): Likewise.
19282 (x86_function_profiler): Likewise.
19283 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
19284 (LPREFIX): Likewise.
19285 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
19287 2010-05-31 Jakub Jelinek <jakub@redhat.com>
19290 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
19291 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
19292 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
19293 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
19294 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
19295 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
19296 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
19297 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
19300 2010-05-31 Jan Hubicka <jh@suse.cz>
19302 * tree.h (tree_range_check_failed): Declare noreturn.
19304 2010-05-31 Jan Hubicka <jh@suse.cz>
19306 * gimple.c (gimple_call_builtin_p): New function.
19307 * gimple.h (gimple_call_builtin_p): Declare.
19308 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
19310 (execute_warn_function_return): BUILT_IN_RETURN is return.
19311 (split_critical_edges): Return edges are not critical.
19312 (is_ctrl_altering_stmt): Builtin_in_return is altering.
19313 (gimple_verify_flow_info): Handle built_in_return.
19314 (execute_warn_function_return): Handle built_in_return.
19315 * ipa-pure-const.c (check_call): Ignore builtin_return.
19317 2010-05-31 Jakub Jelinek <jakub@redhat.com>
19319 PR middle-end/44337
19320 * expr.c (expand_assignment): Don't store anything for out-of-bounds
19321 array accesses with non-MEM.
19323 PR tree-optimization/44182
19324 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
19325 newly needs to end a bb is followed by debug stmts, instead return
19326 true from the function at the end.
19327 (maybe_move_debug_stmts_to_successors): New function.
19328 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
19330 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
19333 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
19335 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
19337 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
19338 for nested functions in non-optimized compilation.
19340 2010-05-31 Richard Guenther <rguenther@suse.de>
19342 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
19344 2010-05-30 Jan Hubicka <jh@suse.cz>
19346 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
19348 2010-05-30 Richard Guenther <rguenther@suse.de>
19351 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
19352 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
19355 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
19357 * config/darwin.c (output_objc_section_asm_op): Add comment.
19358 (name_needs_quotes): Add '_' to list of valid comment chars.
19359 (machopic_output_function_base_name): Remove unneeded quotes.
19360 (darwin_encode_section_info): Adjust asm whitespace.
19361 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
19362 (ASM_OUTPUT_LOCAL): Ditto.
19363 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
19364 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
19365 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
19367 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
19369 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
19370 RS6000_OUTPUT_BASENAME unconditionally.
19371 (rs6000_output_function_epilogue): Likewise.
19373 2010-05-30 Jan Hubicka <jh@suse.cz>
19375 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
19378 2010-05-30 Richard Guenther <rguenther@suse.de>
19380 * tree-cfg.c (verify_gimple_assign_single): Implement
19381 verification for COND_EXPR rhs.
19383 2010-05-30 Jan Hubicka <jh@suse.cz>
19385 * cgraph.h (cgraph_dump_file): Declare.
19386 * cgraphunit.c (cgraph_dump_file): Export.
19387 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
19389 2010-05-30 Jan Hubicka <jh@suse.cz>
19391 * dwarf2out.c (reference_to_unused,
19392 premark_types_used_by_global_vars_helper): Avoid creation of new
19395 2010-05-30 Jan Hubicka <jh@suse.cz>
19397 * cgraph.h (cgraph_node_cannot_return,
19398 cgraph_edge_cannot_lead_to_return): New functions.
19399 * cgraph.c (cgraph_node_cannot_return,
19400 cgraph_edge_cannot_lead_to_return): Use them.
19401 * ipa-pure-const.c (pure_const_names): New static var.
19402 (check_call): Handle calls not leading to return.
19403 (pure_const_read_summary): Dump info read.
19404 (propagate): Dump info about propagation process; ignore side effects
19405 of functions not leading to exit; fix handling of pure functions.
19407 2010-05-30 Jan Hubicka <jh@suse.cz>
19409 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
19410 for tail call epilogues.
19412 2010-05-30 Jan Hubicka <jh@suse.cz>
19414 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
19415 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
19418 2010-05-29 Jan Hubicka <jh@suse.cz>
19420 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
19421 node; remove references in node we no longer keep in cgrpah but need
19424 2010-05-29 Jan Hubicka <jh@suse.cz>
19426 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
19428 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19431 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
19433 2010-05-29 Jan Hubicka <jh@suse.cz>
19435 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
19436 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
19437 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
19438 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
19439 debug_names_replaced_by, debug_update_ssa): Likewise.
19440 * sbitmap.c (debug_sbitmap): Likewise.
19441 * genrecog.c (debug_decision, debug_decision_list): Likewise.
19442 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
19443 debug_tree_chain): Likewise.
19444 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
19445 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
19446 * optabs.c (debug_optab_libfuncs): Likewise.
19447 (verify_loop_closed_ssa): Likewise.
19448 * value-prof.c (verify_histograms): Likewise.
19449 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
19450 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
19451 * cfghooks.c (verify_flow_info): Likewise.
19452 * fold-const.c (debug_fold_checksum): Likewise.
19453 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
19454 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
19456 * omega.c (debug_omega_problem): Likewise.
19457 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
19458 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
19459 * dominance.c (verify_dominators, debug_dominance_info,
19460 debug_dominance_tree): Likewise.
19461 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
19462 * df_regno_debug, df_ref_debug,
19463 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
19464 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
19465 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
19466 * sel-sched.c (debug_state): Likewise.
19467 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
19469 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
19470 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
19471 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
19472 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
19474 * c-pretty-print.c (debug_c_tree): Likewise.
19475 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
19476 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
19477 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
19478 * ebitmap.c (debug_ebitmap): Likewise.
19479 * function.c (debug_find_var_in_block_tree): Likewise.
19480 * print-rtl.c (debug_rtx): Likewise.
19481 (debug_rtx_count): Likewise.
19482 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
19483 * stor-layout.c (debug_rli): Likewise.
19484 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
19485 * tree-data-ref.c (debug_data_references,
19486 debug_data_dependence_relations, debug_data_reference,
19487 debug_data_dependence_relation, debug_rdg_vertex,
19488 debug_rdg_component, debug_rdg): Likewise.
19489 * tree-affine.c (debug_aff): Likewise.
19490 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
19492 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
19493 * emit-rtl.c (verify_rtl_sharing): Likewise.
19494 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
19495 debug_value_expressions): Likewise.
19496 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
19497 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
19498 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
19499 * cfglayout.c (verify_insn_chain): Likewise.
19500 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
19501 debug_clast_stmt, debug_generated_program): Likewise.
19502 * ggc-page.c (debug_print_page_list): Likewise.
19503 * tree-ssa-ter.c (debug_ter): Likewise.
19504 * graphite-dependences.c (debug_pddr): Likewise.
19505 * sched-deps.c (debug_ds): Likewise.
19506 * tree-ssa.c (verify_ssa): Likewise.
19507 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
19508 debug_scattering_functions, debug_iteration_domains, debug_pdr,
19509 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
19510 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
19511 * tree-inline.c (debug_find_tree): Likewise.
19512 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
19513 debug_ppl_powerset_matrix): Likewise.
19514 * var-tracking.c (debug_dv): Likewise.
19515 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
19516 * cfgloop.c (verify_loop_structure): Likewise.
19517 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
19518 * c-common.c (verify_sequence_points): Likewise.
19519 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
19520 debug_candidates, debug_rgn_dependencies): Likewise.
19521 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
19522 * debug_constraint_graph, debug_solution_for_var,
19523 debug_sa_points_to_info): Likewise.
19524 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
19526 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
19527 debug_loops, debug_loop, debug_loop_num): Likewise.
19528 * passes.c (debug_pass): Likewise.
19529 (dump_properties): Likewise; add cfglayout property.
19530 (debug_properties): Likewise.
19531 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
19532 * varpool.c (debug_varpool): Likewise.
19533 * regcprop.c (debug_value_data): Likewise.
19534 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
19535 debug_immediate_uses_for): Likewise.
19537 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
19540 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
19541 Filter out insn-flags.h.
19543 2010-05-29 Jan Hubicka <jh@suse.cz>
19545 * cgraph.h (struct varpool_node_set_def,
19546 struct cgraph_node_set_def): Remove unused AUX pointer.
19547 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
19550 2010-05-29 Jan Hubicka <jh@suse.cz>
19552 PR middle-end/44324
19553 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
19555 2010-05-29 Richard Guenther <rguenther@suse.de>
19557 * lto-streamer.c (cached_bp): New global variable.
19558 (bitpack_create): Return the cached bitpack, if available.
19559 (bitpack_delete): Clear and cache the bitpack, if appropriate.
19560 (bp_pack_value): Remove redundant asserts.
19562 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
19564 PR middle-end/44306
19565 * tree-if-conv.c (is_true_predicate): New.
19566 (is_predicated): Use is_true_predicate.
19567 (add_to_predicate_list): Same. Do not use unshare_expr.
19568 (add_to_dst_predicate_list): Same.
19570 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
19572 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
19574 (predicate_bbs): Same.
19575 (clean_predicate_lists): Same.
19576 (find_phi_replacement_condition): Do not AND the predicate from
19579 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
19582 * Makefile.in (build/gencondmd.o): Add a missing `\'.
19584 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19587 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
19588 (negdf2): Adjust expander pattern and use negdf2_slow.
19589 (negsf2): Likewise.
19591 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
19593 * basic-block.h (struct control_flow_graph): Move last_label_uid field
19595 * df.h (struct df_base_ref): Move regno field up.
19596 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
19597 * expr.h (struct separate_ops): Move location field up.
19598 * optabs.h (struct optab_d): Move libcall_basename field down.
19599 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
19600 * config/i386/i386.h (struct machine_function): Convert call_abi field
19601 into a bitfield. Move cfa field to the end of the structure.
19603 2010-05-29 Jan Hubicka <jh@suse.cz>
19605 * varpool.c (varpool_get_node): Fix lookup.
19607 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19609 * config/spu/spu-protos.h: Do not include rtl.h. Protect
19610 RTL specific prototypes with #ifdef RTX_CODE.
19611 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
19612 * config/spu/t-spu-elf: Fix dependencies.
19614 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
19616 2010-05-29 Mike Stump <mikestump@comcast.net>
19619 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
19620 TM_H when building to avoid dependency loops.
19622 2010-05-29 Jan Hubicka <jh@suse.cz>
19624 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
19625 refs and body; not the whole node for masters of materialized clones.
19627 2010-05-29 Mike Stump <mikestump@comcast.net>
19629 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
19631 2010-05-29 Jan Hubicka <jh@suse.cz>
19633 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
19634 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
19635 use of clone_function_name.
19636 * cgraph.h (cgraph_create_virtual_clone,
19637 cgraph_function_versioning): update prototypes.
19638 (clone_function_name): Declare.
19639 * ipa-cp.c (ipcp_insert_stage): Update call of
19640 cgraph_create_virtual_clone.
19641 * omp-low.c (create_omp_child_function_name): Use
19642 cgraph_create_virtual_clone.
19643 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
19644 (cgraph_function_versioning): Take SUFFIX argument; produce new name
19645 and make decl local.
19647 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19649 * vec.h: Include statistics.h
19650 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
19653 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19655 * c-lex.c: Do not include c-tree.h.
19656 * c-pretty-print.c: Likewise.
19657 * c-opts.c: Likewise.
19658 * c-gimplify.c: Likewise.
19659 * c-common.c: Likewise.
19660 * c-dump.c: Likewise. Include c-common.h.
19662 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19664 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
19665 before including diagnostic-core.h.
19666 (c_cpp_error): New prototype moved from c-tree.h.
19667 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
19668 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
19669 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
19670 (c_cpp_error): Prototype moved to c-common.h.
19671 * Makefile.in: Update dependency for C_COMMON_H.
19673 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
19675 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
19676 * c-common.c (c_register_addr_space): Remove here.
19677 * c-decl.c (c_register_addr_space): Re-add here.
19679 2010-05-28 Mike Stump <mikestump@comcast.net>
19681 * config/darwin-c.c: Remove c-tree.h include.
19683 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19685 * gcc.c: Include diagnostic.h.
19686 (error_count): Remove. All users changed to use errorcount.
19687 (programname): Remove. All users changed to use progname.
19688 (fancy_abort, internal_error, fatal_error, error, warning, inform,
19690 (execute): Don't include "Internal error" and bug reporting
19691 information in argument of internal_error call.
19692 (process_command): Don't increment error_count after calling
19694 (input_filename): Rename to gcc_input_filename. All users
19696 (main): Call diagnostic_initialize. Register delete_temp_files
19697 with atexit. Use seen_error to test for errors.
19698 * gcc.h: Include diagnostic-core.h.
19699 (fatal_error, error, warning): Remove.
19700 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
19701 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
19702 (gcc.o): Update dependencies.
19704 2010-05-28 Jeff Law <law@redhat.com>
19706 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
19708 * ira.h (ira_bad_reload_regno): Declare
19709 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
19711 * ira-color.c (update_curr_costs): Free updated hard reg costs.
19712 (ira_reassign_conflict_allocnos): Remove bogus asserts.
19713 (allocno_reload_assign): Likewise.
19715 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
19717 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
19720 2010-05-28 Richard Guenther <rguenther@suse.de>
19723 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
19724 Stream fixed-point constants mode.
19725 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
19726 and TYPE_PRECISION.
19727 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
19728 Stream fixed-point constants mode.
19729 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
19730 and TYPE_PRECISION.
19732 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
19734 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
19735 only place it was called from.
19736 (number_of_latch_executions): Do not return chrec_dont_know when the
19737 may_be_zero is a runtime condition: instead, return a COND_EXPR
19738 including the may_be_zero condition.
19739 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
19741 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
19744 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
19746 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
19747 generate COND_EXPRs for degenerate_phi_result.
19749 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
19751 PR middle-end/44293
19752 * tree-if-conv.c (if_convertible_loop_p): Check the
19753 if-convertibility of phi nodes in non predicated BBs.
19755 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19757 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
19759 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19762 * gcc.c (inform, warning, inform): New functions.
19763 (fatal_ice): Rename to internal_error; change cmsgid parameter to
19764 gmsgid. All callers changed.
19765 (notice): Rename to fnotice; add parameter fp. All callers changed.
19766 (fatal_error): Rename to fatal_signal. All users changed.
19767 (fatal): Rename to fatal_error; change cmsgid parameter to
19768 gmsgid. All callers changed.
19769 (process_command): Use warning instead of error for warnings.
19770 (end_going_arg): Don't use _() around argument of error.
19771 (do_spec_1): Use inform for message from %n specs. Use warning
19772 instead of error for warnings.
19773 (main): Use inform for comparison messages. Use warning for
19774 message about unused linker input.
19775 (error): Increment error_count. Print "error: ".
19776 * gcc.h (fatal): Change to fatal_error.
19777 (warning): Declare.
19778 * config/darwin-driver.c (darwin_default_min_version): Use warning
19779 instead of fprintf for warnings.
19780 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
19782 2010-05-28 Julian Brown <julian@codesourcery.com>
19784 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
19785 (*thumb2_addsi3_compare0_scratch): New.
19786 * config/arm/constraints.md (Pv): New.
19787 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
19789 (*addsi3_compare0_scratch): Likewise.
19791 2010-05-28 Jan Hubicka <jh@suse.cz>
19793 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
19795 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
19796 only on local statics.
19798 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
19800 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
19802 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
19805 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
19806 (OPTION_GLIBC): Define.
19808 2010-05-28 Jakub Jelinek <jakub@redhat.com>
19811 * dwarf2out.c (double_int_type_size_in_bits): New function.
19812 (round_up_to_align): Change first argument and return value to
19814 (field_byte_offset): Work internally on double_ints.
19817 * builtins.c (expand_movstr): Use a temporary pseudo instead
19818 of target even when target is not NULL and not const0_rtx, but
19819 fails movstr predicate.
19820 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
19822 2010-05-28 Joseph Myers <joseph@codesourcery.com>
19824 * final.c (rest_of_clean_state): Use %m in errors instead of
19826 * gengtype.c (read_input_list, close_output_files): Use xstrerror
19827 instead of strerror.
19828 * toplev.c (process_options): Use %m in errors instead of strerror
19830 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
19833 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
19835 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
19836 (ix86_canonical_va_list_type): Make static. Add declaration.
19837 (ix86_enum_va_list): Make static. Reindent.
19838 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
19839 (ix86_canonical_va_list_type): Ditto.
19840 (ix86_enum_va_list): Ditto.
19842 2010-05-28 Richard Guenther <rguenther@suse.de>
19844 * lto-wrapper.c (run_gcc): With -save-temps generate a
19845 user-visible ltrans filename. Fixup ltrans unit numbering.
19847 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
19849 * c-common.c (c_common_nodes_and_builtins): Replace use
19850 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
19851 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
19852 to ix86_enum_va_list.
19853 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
19854 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
19855 (TARGET_ENUM_VA_LIST_P): Add hook description.
19856 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
19857 * target.h (gcc_target): Add enum_va_list hook.
19860 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
19861 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
19862 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
19864 2010-05-28 Alan Modra <amodra@gmail.com>
19867 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
19868 emit_library_call machinery to set up __tls_get_addr calls.
19870 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19872 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
19874 2010-05-28 Dodji Seketeli <dodji@redhat.com>
19876 Revert fix for PR c++/44188
19877 * c-common.c (is_typedef_decl): Revert the moving of this
19879 * tree.c (is_typedef_decl): ... here.
19880 (typdef_variant_p): Revert the moving of this definition
19881 here from cp/tree.c.
19882 * c-common.h (is_typedef_decl): Revert the moving of this
19884 * tree.h (is_typedef_decl): ... here.
19885 (typedef_variant_p): Revert the moving of this declaration here
19887 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
19888 (gen_tagged_type_die): Revert the splitting out of ...
19889 (gen_type_die_with_usage): ... this function. Revert the anonymous
19890 tagged type handling.
19891 (gen_typedef_die): Revert emitting DW_TAG_typedef for
19892 typedefs naming anonymous tagged types.
19894 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
19896 * config/rs6000/rs6000-modes.def (PSImode): Delete.
19898 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
19900 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
19901 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
19903 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
19905 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
19906 XER_REGS to CA_REGS throughout.
19907 * config/rs6000/rs6000.h: Same.
19908 (ADDITIONAL_REGISTER_NAMES): Add "xer".
19909 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
19910 that mode_iterator "P" is the size for arithmetic carries as well.
19911 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
19913 2010-05-28 Jakub Jelinek <jakub@redhat.com>
19916 * combine.c (struct rtx_subst_pair): Define unconditionally.
19917 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
19918 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
19919 Call make_compound_operation on pair->to.
19920 (propagate_for_debug): Don't call make_compound_operation here.
19921 Always use simplify_replace_fn_rtx.
19923 2010-05-27 Sterling Augustine <sterling@tensilica.com>
19925 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
19926 * config/xtensa/xtensa.c (override_options): Check
19927 TARGET_FORCE_NO_PIC and set flag_pic.
19928 * config/xtensa/xtensa.opt: Document -mforce-no-pic
19930 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
19933 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
19934 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
19936 2010-05-27 Joseph Myers <joseph@codesourcery.com>
19938 * diagnostic-core.h: New. Contents moved from diagnostic.h and
19940 * diagnostic.c: Don't include toplev.h.
19941 (progname): Define. Moved from toplev.c.
19942 (seen_error): New function.
19943 * diagnostic.h: Include diagnostic-core.h.
19944 (diagnostic_t, emit_diagnostic): Don't declare here.
19945 * toplev.c (progname): Move to toplev.c.
19946 (emit_debug_global_declarations, compile_file, finalize,
19947 do_compile, toplev_main): Use seen_error.
19948 * toplev.h: Include diagnostic-core.h.
19949 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
19950 internal_error, warning, warning_at, error, error_n, error_at,
19951 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
19952 verbatim, fnotice, progname): Move to diagnostic-core.h.
19953 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
19954 (expand_builtin_expect): Use seen_error.
19955 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
19956 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
19957 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
19958 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
19959 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
19960 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
19961 errorcount for errors.
19962 * c-opts.c (c_common_finish): Use seen_error.
19963 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
19964 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
19965 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
19966 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
19967 (get_coverage_counts): Use seen_error.
19968 * dwarf2out.c (dwarf2out_finish): Use seen_error.
19969 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
19970 gimplify_body): Use seen_error.
19971 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
19972 * ipa-pure-const.c (gate_pure_const): Use seen_error.
19973 * ipa-reference.c (gate_reference): Use seen_error.
19974 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
19975 * lambda-code.c: Include diagnostic-core.h instead of
19977 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
19978 * lto-compress.c: Include diagnostic-core.h instead of
19980 * lto-section-in.c: Include diagnostic-core.h instead of
19982 * lto-streamer-out.c: Include diagnostic-core.h instead of
19984 * lto-streamer.c: Include diagnostic-core.h instead of
19986 (gate_lto_out): Use seen_error.
19987 * matrix-reorg.c: Include diagnostic-core.h instead of
19989 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
19990 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
19991 (gate_expand_omp, lower_omp_1): Use seen_error.
19992 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
19993 (rest_of_decl_compilation, rest_of_type_compilation,
19994 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
19995 * tree-cfg.c (label_to_block_fn): Use seen_error.
19996 * tree-inline.c (optimize_inline_calls): Use seen_error.
19997 * tree-mudflap.c (mudflap_finish_file): Use
19999 * tree-optimize.c (gate_all_optimizations,
20000 gate_all_early_local_passes, gate_all_early_optimizations): Use
20002 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
20003 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
20004 (varpool_remove_unreferenced_decls,
20005 varpool_assemble_pending_decls): Use seen_error.
20006 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
20007 (TOPLEV_H, DIAGNOSTIC_H): Update.
20008 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
20009 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
20010 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
20011 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
20012 coverage.o, lambda-code.o): Update dependencies.
20014 2010-05-25 Dodji Seketeli <dodji@redhat.com>
20017 * c-common.c (is_typedef_decl): Move this definition ...
20018 * tree.c (is_typedef_decl): ... here.
20019 (typdef_variant_p): Move definition here from cp/tree.c.
20020 * c-common.h (is_typedef_decl): Move this declaration ...
20021 * tree.h (is_typedef_decl): ... here.
20022 (typedef_variant_p): Move declaration here from cp/cp-tree.h
20023 * dwarf2out.c (is_naming_typedef_decl): New function.
20024 (gen_tagged_type_die): Split out of ...
20025 (gen_type_die_with_usage): ... this function. When an anonymous
20026 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
20027 is emitted for the typedef.
20028 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
20029 anonymous tagged types.
20031 2010-05-27 Jason Merrill <jason@redhat.com>
20033 * print-tree.c (debug_vec_tree): New fn.
20034 (print_vec_tree): New fn.
20035 * tree.h: Declare them.
20036 * gdbinit.in (pvt): New command.
20038 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
20040 * gdbinit.in (pdd): New command.
20042 2010-05-27 Jan Hubicka <jh@suse.cz>
20044 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
20045 (update_caller_keys): Return early if there are no callers;
20046 only update fibheap when decresing the key.
20047 (update_callee_keys): Avoid recursion.
20048 (decide_inlining_of_small_functions): When badness does not match;
20049 re-insert into fibheap.
20051 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
20053 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
20054 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
20055 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
20056 (ALL_HOST_OBJS): Now a union of the above two.
20057 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
20058 all files in ALL_HOST_FRONTEND_OBJS.
20059 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
20061 * c-common.c: Pretend to be a backend file by undefining
20062 IN_GCC_FRONTEND (still need rtl.h here).
20064 2010-05-27 Jan Hubicka <jh@suse.cz>
20066 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
20067 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
20069 2010-05-27 Jan Hubicka <jh@suse.cz>
20071 * sched-ebb.c: Rename struct deps to struct deps_desc.
20073 * sel-sched-ir.c: Likewise.
20074 * sched-deps.c: Likewise.
20075 * sched-int.h: Likewise.
20076 * sched-rgn.c: Likewise.
20078 2010-05-27 Jon Beniston <jon@beniston.com>
20081 * config/lm32/lm32.h: Remove definition of
20082 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
20084 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
20087 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
20089 2010-05-27 Richard Guenther <rguenther@suse.de>
20091 PR tree-optimization/44284
20092 * tree-vect-stmts.c (vectorizable_assignment): Handle
20093 sign-changing conversions as simple copy.
20095 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
20097 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
20099 (__gthread_active_p): Check for pthread_create if compiling against
20102 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
20104 Support compilation for Android platform. Reimplement -mandroid.
20106 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
20107 (*android*): Set ANDROID_DEFAULT.
20108 (arm*-*-linux*): Include linux-android.h.
20109 (arm*-*-eabi*): Don't include previous -mandroid implementation.
20110 * config/arm/eabi.h: Remove, move Android-specific parts ...
20111 * config/linux-android.h: ... here. New file.
20112 * config/arm/eabi.opt: Rename to ...
20113 * config/linux-android.opt: ... this.
20114 (mandroid): Allow -mno-android option. Initialize based on
20116 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
20117 Move logic to corresponding LINUX_TARGET_* macros.
20118 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
20119 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
20120 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
20121 Android definitions.
20122 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
20123 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
20126 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
20128 Add support for Bionic C library
20130 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
20132 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
20133 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
20135 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
20136 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
20137 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
20138 to support multiple C libraries. Handle Bionic.
20139 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
20140 (BIONIC_DYNAMIC_LINKER64): Define.
20141 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
20143 (TARGET_HAS_SINCOS): Enable for Bionic.
20145 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
20146 the last option specified on command line take effect.
20147 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
20149 (mglibc, muclibc): Update.
20151 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
20152 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
20155 * doc/invoke.texi (-mglibc, -muclibc): Update.
20156 (-mbionic): Document.
20158 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20160 * c-common.h (c_register_addr_space): Add prototype.
20161 (ADDR_SPACE_KEYWORD): Remove.
20162 * c-common.c (c_register_addr_space): New function.
20163 (c_addr_space_name): Reimplement.
20164 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
20166 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
20167 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
20169 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
20170 Remove TARGET_ADDR_SPACE_KEYWORDS.
20172 2010-05-27 Joseph Myers <joseph@codesourcery.com>
20174 * input.c: New file.
20175 * input.h (main_input_filename): Move declaration to toplev.h.
20176 * toplev.c (input_location, line_table): Move to input.c
20177 * toplev.h (main_input_filename): Move declaration from input.h.
20178 * tree.c (expand_location): Move to input.c.
20179 * Makefile.in (OBJS-common): Add input.o.
20180 (input.o): Add dependencies.
20182 2010-05-27 Richard Guenther <rguenther@suse.de>
20184 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
20185 for non-existant files.
20186 (fork_execute): Mark args_name file as deleted.
20188 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
20191 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
20192 (narrow_signed_type): Likewise.
20194 2010-05-26 Jan Hubicka <jh@suse.cz>
20196 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
20197 edge only when checking is enabled; check using former_clone_of;
20198 check inline clones too.
20199 (cgraph_materialize_clone): Record former_clone_of pointer.
20200 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
20201 combining redirections; dump args_to_skip bitmap
20202 (cgraph_materialize_all_clones): Do no redirection here.
20203 * ipa-inline.c (inline_transform): Do redirection here.
20204 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
20207 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20209 * config/avr/avr-c.c: Do not include regs.h.
20210 Include cpplib.h for cpp_define and tree.h for c-common.h.
20211 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
20212 * config/avr/t-avr: Fix dependencies for avr-c.o.
20214 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20216 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
20217 string instead of SYMBOL_REF rtx.
20218 * rtl.h (set_stack_check_libfunc): Move prototype from here...
20219 * libfuncs.h: ...to here. Adjust for explow.c change.
20221 2010-05-26 Joseph Myers <joseph@codesourcery.com>
20223 * pretty-print.c: Don't include ggc.h.
20224 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
20225 (identifier_to_locale): Use them for allocation.
20226 * pretty-print.h (identifier_to_locale_alloc,
20227 identifier_to_locale_free): Declare.
20228 * toplev.c (alloc_for_identifier_to_locale): New.
20229 (general_init): Set identifier_to_locale_alloc and
20230 identifier_to_locale_free.
20231 * Makefile.in (pretty-print.o): Update dependencies.
20233 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
20235 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
20236 pointer types if they have different alignment or mode.
20238 2010-05-26 Anatoly Sokolov <aesok@post.ru>
20240 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20241 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20242 * config/sparc/sparc-protos.h (function_value): Remove declaration.
20243 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
20244 sparc_function_value_regno_p): New functions.
20245 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20246 TARGET_FUNCTION_VALUE_REGNO_P): Define.
20247 (function_value): Rename to...
20248 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
20249 argument to 'outgoing'.
20250 (function_arg_record_value, function_arg_union_value,
20251 function_arg_vector_value): Update comment.
20253 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
20255 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
20256 (fde_needed_for_eh_p): New predicate.
20257 (output_call_frame_info): Use it throughout to decide whether FDEs
20258 are needed for EH purpose.
20259 (dwarf2out_begin_prologue): Reorder assignments.
20261 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20263 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
20264 special case loop->header.
20265 (is_predicated): New.
20266 (if_convertible_loop_p): Call it.
20268 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20270 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
20271 iterator in parameter. Do not generate code during the analysis.
20272 (tree_if_convert_cond_stmt): Removed.
20273 (tree_if_convert_stmt): Removed.
20274 (predicate_bbs): New.
20275 (if_convertible_loop_p): Call predicate_bbs.
20276 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
20277 now contains all the analysis part.
20279 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20281 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
20282 statements in the analysis part.
20283 (tree_if_convert_stmt): Update comment.
20284 (remove_conditions_and_labels): New.
20285 (combine_blocks): Call remove_conditions_and_labels.
20286 (tree_if_conversion): Update comment.
20288 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20290 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
20291 than 2 predecessors or more than 2 successors.
20293 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20295 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
20296 of loops in which the data dependence analysis fails.
20298 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20300 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
20301 CDI_POST_DOMINATORS.
20302 (tree_if_conversion): Same.
20304 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20306 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
20308 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
20310 * tree-if-conv.c: Update copyright years. Fix comments.
20313 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
20315 * builtin-types.def (BT_INT128): New primitive type.
20316 (BT_UINT128): Likewise.
20317 * c-common.c (c_common_r): Add __int128 keyword.
20318 (c_common_type_for_size): Handle __int128.
20319 (c_common_type_for_mode): Likewise.
20320 (c_common_signed_or_unsigned_type): Likewise.
20321 (c_common_nodes_and_builtins): Add builtin type
20322 if target supports 128-bit integer scalar.
20323 * c-common.h (enum rid): Add RID_INT128.
20324 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
20325 if target supports 128-bit integer scalar.
20326 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
20327 (finish_declspecs): Likewise.
20328 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
20329 (c_token_starts_declspecs): Likewise.
20330 (c_parser_declspecs): Likewise.
20331 (c_parser_attributes): Likewise.
20332 (c_parser_objc_selector): Likewise.
20333 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
20334 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
20335 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
20336 * tree.c (make_or_reuse_type): Likewise.
20337 (make_unsigned_type): Likewise.
20338 (build_common_tree_nodes_2): Likewise.
20339 * tree.h (enum integer_type_kind): Add itk_int128 and
20340 itk_unsigned_int128.
20341 (int128_integer_type_node): New define.
20342 (int128_unsigned_type_node): New define.
20343 * doc/extend.texi: Add documentation about __int128 type.
20345 2010-05-26 Richard Guenther <rguenther@suse.de>
20347 * tree-ssa-sccvn.c (copy_nary): Adjust.
20348 (copy_phis): Rename to ...
20349 (copy_phi): ... this. Adjust.
20350 (copy_references): Rename to ...
20351 (copy_reference): ... this. Adjust.
20352 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
20353 result into the valid table.
20355 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20357 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
20358 insn-config.h, insn-codes.h, recog.h, and optabs.h.
20360 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20362 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
20364 2010-05-26 Richard Guenther <rguenther@suse.de>
20366 * opts.c (common_handle_option): Handle OPT_Ofast.
20368 2010-05-26 Joseph Myers <joseph@codesourcery.com>
20370 * diagnostic.c: Don't include opts.h.
20371 (permissive_error_option): Define.
20372 (diagnostic_initialize): Take n_opts parameter. Allocate memory
20373 for classify_diagnostic. Don't use memset for
20374 classify_diagnostic. Initialize new and recently added fields.
20375 (diagnostic_classify_diagnostic): Use context->n_opts instead of
20377 (diagnostic_report_diagnostic): Pass context parameter to
20378 diagnostic_report_warnings_p. Use option_enabled and option_name
20379 hooks from context.
20380 (emit_diagnostic): Use permissive_error_option.
20381 (permerror): Likewise.
20382 * diagnostic.h: Don't include options.h.
20383 (struct diagnostic_context): Add n_opts, opt_permissive,
20384 inhibit_warnings, warn_system_headers, option_enabled and
20385 option_name fields. Change classify_diagnostic to a pointer.
20386 * opts-diagnostic.h: New file.
20387 * opts.c: Include opts-diagnostic.h.
20388 (common_handle_option): Set global_dc fields for -Wfatal-errors,
20389 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
20390 (option_name): New function.
20391 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
20392 (c_common_handle_option): Set global_dc->permissive for
20394 * c-common.c (c_cpp_error): Save and restore
20395 global_dc->warn_system_headers, not variable warn_system_headers.
20396 * toplev.c: Include opts-diagnostic.h.
20397 (general_init): Update call to diagnostic_initialize. Set
20398 global_dc->show_column, global_dc->option_enabled and
20399 global_dc->option_name.
20400 (process_options): Don't set global_dc fields here.
20401 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
20402 (diagnostic.o, opts.o, toplev.o): Update dependencies.
20404 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
20406 * config/picochip/picochip.md (movsi): Split a movsi from a
20407 const after reload.
20409 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20411 * ggc-zone.c: Update copyright year.
20412 (poison_region): Mark memory for Valgrind as undefined before
20413 memset () call and inaccessible afterwards.
20414 (ggc_pch_total_size): Change type of i to int.
20416 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20418 * ggc-common.c (ggc_free_overhead): Allow empty slot.
20420 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20422 * ggc-common.c: Update copyright year.
20423 (ggc_rlimit_bound): Remove prototype. Compile only if
20424 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
20425 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
20426 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
20427 (ggc_min_heapsize_heuristic): Likewise.
20429 2010-05-26 Richard Guenther <rguenther@suse.de>
20431 PR rtl-optimization/44164
20432 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
20433 no-common access-path disambiguation.
20434 (indirect_ref_may_alias_decl_p): Adjust.
20435 (indirect_refs_may_alias_p): Likewise.
20436 (refs_may_alias_p_1): Likewise.
20438 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20440 * c-typeck.c: Do not include expr.h.
20442 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
20444 * rtl.h (decl_default_tls_model): Move prototype from here...
20445 * output.h: ...to here.
20446 * c-decl.c: Do not include rtl.h.
20447 * c-pragma.c: Likewise.
20448 * c-parser.c: Likewise.
20449 * c-gimplify.c: Likewise. And also not hard-reg-set.
20450 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
20451 FIXME note for it. Add a FIXME note for expr.h.
20452 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
20453 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
20456 2010-05-26 Jakub Jelinek <jakub@redhat.com>
20459 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
20460 or total_size is larger than red zone size for non-V4 ABI, emit a
20461 stack_tie resp. frame_tie insn before stack pointer restore.
20462 * config/rs6000/rs6000.md (frame_tie): New insn.
20464 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
20466 * function.h (struct function): Add can_throw_non_call_exceptions bit.
20467 * lto-streamer-in.c (input_function): Stream it in.
20468 * lto-streamer-out.c (output_function): Stream it out.
20469 * function.c (allocate_struct_function): Set it.
20470 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
20471 for flag_non_call_exceptions.
20472 * cfgbuild.c (control_flow_insn_p): Likewise.
20473 (make_edges): Likewise.
20474 * cfgexpand.c (expand_stack_alignment): Likewise.
20475 * combine.c (distribute_notes): Likewise.
20476 * cse.c (cse_extended_basic_block): Likewise.
20477 * except.c (insn_could_throw_p): Likewise.
20478 * gcse.c (simple_mem): Likewise.
20479 * ipa-pure-const.c (check_call): Likewise.
20480 (check_stmt ): Likewise.
20481 * lower-subreg.c (lower-subreg.c): Likewise.
20482 * optabs.c (emit_libcall_block): Likewise.
20483 (prepare_cmp_insn): Likewise.
20484 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
20485 * postreload.c (rest_of_handle_postreload): Likewise.
20486 * reload1.c (reload_as_needed): Likewise.
20487 (emit_input_reload_insns): Likewise.
20488 (emit_output_reload_insns): Likewise.
20489 (fixup_abnormal_edges): Likewise.
20490 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
20491 * store-motion.c (find_moveable_store): Likewise.
20492 * tree-eh.c (stmt_could_throw_p): Likewise.
20493 (tree_could_throw_p): Likewise.
20494 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20495 * config/arm/arm.c (arm_expand_prologue): Likewise.
20496 (thumb1_expand_prologue): Likewise.
20497 * config/rx/rx.md (cbranchsf4): Likewise.
20499 * config/s390/s390.c (s390_emit_prologue): Likewise.
20500 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
20501 (inline_forbidden_into_p): New predicate.
20502 (expand_call_inline): Use it to forbid inlining.
20503 (tree_can_inline_p): Likewise.
20505 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
20507 * config/i386/i386-c.c: Do not include rtl.h.
20508 * config/i386/t-i386: Update dependencies.
20510 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
20512 * attribs.c: Do not include rtl.h.
20513 * Makefile.in: Update dependencies.
20515 2010-05-25 Anatoly Sokolov <aesok@post.ru>
20517 * double-int.h (double_int_and): New.
20518 * combine.c (try_combine): Clean up, use double_int_* and
20519 immed_double_int_const functions.
20521 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20523 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
20524 stderr to /dev/null instead of grep -q.
20525 * configure: Regenerate.
20527 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
20529 * Makefile.in (EXCEPT_H): Fix typo.
20531 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
20533 * ira-build.c (update_conflict_hard_reg_costs): New.
20534 (ira_build): Call update_conflict_hard_reg_costs.
20536 2010-05-25 Jakub Jelinek <jakub@redhat.com>
20539 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
20541 (intersect_loc_chains): Walk the s2var's loc_chain together
20542 with s1node chain as long as the locations are equal, don't
20543 call find_loc_in_1pdv in that case.
20546 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
20547 (copy_bind_expr): ... instead of here.
20548 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
20549 if the block hasn't been remapped.
20550 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
20551 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
20553 2010-05-25 Richard Guenther <rguenther@suse.de>
20555 PR middle-end/44069
20556 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
20557 out-of-bounds array accesses.
20559 2010-05-25 Richard Guenther <rguenther@suse.de>
20561 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
20562 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
20563 (run_gcc): Re-organize to make cleanup easier.
20565 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20567 * config/s390/s390.c (optimization_options): Fix and move the
20568 flag_prefetch_loop_arrays override ...
20569 (override_options): ... here.
20571 2010-05-25 Joseph Myers <joseph@codesourcery.com>
20573 * diagnostic.c: Don't include plugin.h.
20574 (diagnostic_report_diagnostic): Don't handle plugins specially
20575 here. Pass context to internal_error callback.
20576 * diagnostic.h (struct diagnostic_context): Add context parameter
20577 to internal_error callback.
20578 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
20579 * plugin.h (struct diagnostic_context): Declare.
20580 (warn_if_plugins, plugins_internal_error_function): Declare.
20581 * toplev.c (general_init): Set global_dc->internal_error.
20582 * Makefile.in (diagnostic.o): Update dependencies.
20584 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
20586 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
20587 * config/rs6000/t-darwin64: New.
20588 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
20591 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
20594 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
20595 match the original (and intended) behaviour before r159557. This
20596 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
20599 2010-05-25 Richard Guenther <rguenther@suse.de>
20601 * doc/invoke.texi: Document -Ofast.
20602 * target.h (struct gcc_target): Add handle_ofast.
20603 * target-def.h (TARGET_HANDLE_OFAST): Add.
20604 (TARGET_INITIALIZER): Adjust.
20605 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
20606 * common.opt (Ofast): Add.
20608 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
20610 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
20611 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
20613 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
20616 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
20617 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
20618 false_rtx. Use false_rtx to compute the correct *ptest for reversed
20619 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
20621 2010-05-25 Jakub Jelinek <jakub@redhat.com>
20623 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
20624 DW_OP_minus with negated offset instead of DW_OP_plus.
20625 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
20627 2010-05-25 Wei Guozhi <carrot@google.com>
20629 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
20630 tst instruction and a new alternative.
20631 * config/arm/constraints.md (Pu): New constraint.
20633 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
20635 * function.c (assign_stack_local_1): Initialize variable
20636 to avoid warning when bootstrapping at -O3.
20638 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
20640 * configure.ac (all_lang_makefiles): Remove everything related to it.
20641 * configure: Regenerate.
20642 * Makefile.in: Fix reference to ada Make-lang.in.
20643 Remove support for LANG_MAKEFILES.
20645 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
20646 Sandra Loosemore <sandra@codesourcery.com>
20648 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
20649 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
20650 description. Add arm_neon_fp16_ok.
20651 (Add Options): Add arm_neon and arm_neon_fp16.
20653 2010-05-24 Joseph Myers <joseph@codesourcery.com>
20655 * diagnostic.c: Don't include flags.h.
20656 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
20657 context parameters. Check flags in the context passed as a parameter.
20658 (diagnostic_build_prefix): Add context parameter. Check
20659 show_column flag in context.
20660 (diagnostic_action_after_output): Check fatal_errors flag in context.
20661 (diagnostic_report_current_module): Check show_column flag in context.
20662 (default_diagnostic_starter): Update call to
20663 diagnostic_build_prefix.
20664 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
20665 (emit_diagnostic): Pass context to permissive_error_kind.
20666 (permerror): Pass context to permissive_error_kind.
20667 * diagnostic.h (struct diagnostic_context): Add show_column,
20668 pedantic_errors, permissive and fatal_errors fields.
20669 (diagnostic_build_prefix): Update prototype.
20671 * toplev.c (process_options): Set flags in global_dc from
20672 flag_show_column, flag_pedantic_errors, flag_permissive,
20674 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
20675 to diagnostic_build_prefix.
20676 * Makefile.in (diagnostic.o): Update dependencies.
20678 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
20680 * config/i386/ia32intrin.h (__crc32q): Define only if
20681 __SSE4_2__ is defined.
20683 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
20686 PR middle-end/43602
20687 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
20688 DECL_VISIBILITY_SPECIFIED.
20689 (emutls_decl): Set DECL_PRESERVE_P and copy
20690 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
20691 (emutls_finalize_control_var): New callback.
20692 (emutls_finish): Finalize emutls control variables.
20693 * toplev.c (compile_file): Move the call to emutls_finish ()
20694 before varpool_assemble_pending_decls ().
20696 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
20698 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
20699 added to the preprocessor condition.
20701 2010-05-24 Paul Brook <paul@codesourcery.com>
20703 * gengtype-lex.l: Add HARD_REG_SET.
20704 * expr.c (expand_expr_real_1): Record writes to hard registers.
20705 * function.c (rtl_data): Add asm_clobbers.
20706 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
20707 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
20708 Use crtl->asm_clobbers.
20710 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20712 * doc/makefile.texi (Makefile): Mention stages 'profile'
20713 and 'feedback' for profiledbootstrap.
20715 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
20718 * config/i386/i386.c (def_builtin): Properly check
20719 OPTION_MASK_ISA_64BIT.
20721 2010-05-23 Joseph Myers <joseph@codesourcery.com>
20723 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
20724 typedefs with different but compatible types. Allow duplicate
20725 typedefs with the same type except for pedantic non-C1X, but give
20726 warning for variably modified types.
20727 * c-typeck.c (tagged_types_tu_compatible_p,
20728 function_types_compatible_p, type_lists_compatible_p,
20729 comptypes_internal): Add parameter different_types_p; set
20730 *different_types_p for different but compatible types. All
20732 (comptypes_check_different_types): New.
20733 * c-tree.h (comptypes_check_different_types): Declare.
20735 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
20737 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
20738 * jump.c: Include basic-block.h.
20739 * profile.c: Likewise.
20740 * tree-profile.c: Likewise.
20741 * coverage.c: Likewise.
20742 * basic-block.h (optimize_function_for_size_p): Move to function.h.
20743 (optimize_function_for_speed_p): Likewise.
20744 * function.h (optimize_function_for_size_p,
20745 optimize_function_for_speed_p): Moved here from basic-block.h.
20746 * Makefile.in: Update dependencies.
20748 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20750 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
20751 before calling make; allow override through $MAKE.
20752 * doc/invoke.texi (Optimize Options): Document override.
20754 2010-05-23 Anatoly Sokolov <aesok@post.ru>
20756 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
20757 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20758 (rs6000_mode_dependent_address_ptr): Make static.
20759 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20760 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
20763 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
20766 * config/i386/i386.c: Make sure that the correct regparm is passed.
20768 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
20770 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
20771 * sbitmap.c: ...to here to internalize sbitmap element access.
20772 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
20773 Explain why basic-block.h is included.
20774 * function.h: Include tm.h for CUMULATIVE_ARGS.
20775 * Makefile.in: Update dependencies.
20777 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
20779 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
20781 * sbitmap.h (struct sbitmap_def): Do not typedef here.
20782 * sbitmap.c: Include sbitmap.h.
20783 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
20784 hard-reg-set.h. Split everything related to regsets out from here...
20785 * regset.h: ...to here. New file.
20786 * df.h: Include regset.h and sbitmap.h.
20787 * tree-flow.h: Likewise.
20788 * cfgloop.h: Likewise.
20789 * except.h: Do not include sbitmap.h. Include hashtab.h.
20790 * cgraph.h: Include vec.h and function.h.
20791 * reload.h (struct insn_chain): Change types of live_throughout
20792 and dead_or_set from regset_head to bitmap_head.
20793 (compute_use_by_pseudos): Be defined also if regset.h is not included.
20794 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
20795 spilled_regs from regset_head to bitmap_head to avoid dependency
20797 * sel-sched-ir.h: Include regset.h.
20798 * reload.c: Include df.h before reload.h.
20799 * caller-save.c: Likewise.
20800 * reload1.c: Likewise.
20802 (mark_elimination): Update type of r to bitmap, consistent with
20804 * dominance.c: Include bitmap.h.
20805 * modulo-sched.c: Include df.h.
20806 * cfganal.c: Include bitmap.h and sbitmap.h.
20807 * cfgbuild.c: Include sbitmap.h.
20808 * lcm.c: Include sbitmap.h.
20809 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
20810 * domwalk.c: Include sbitmap.h, exclude ggc.h.
20811 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
20812 * cselib.c: Include bitmap.h.
20813 * tree-optimize.c: Include regset.h.
20814 * stmt.c: Include bitmap.h.
20815 * Makefile.in: Update dependencies.
20817 2010-05-22 Jan Hubicka <jh@suse.cz>
20819 * cgraph.h (struct varpool_node): Add same_comdat_group.
20820 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
20822 (output_varpool): Update call of lto_output_varpool_node.
20823 (input_varpool): Read same_comdat_group pointer.
20824 (input_varpool_1): Fixup same_comdat_group pointer.
20825 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
20826 group is needed, all are.
20827 * varpool.c (varpool_remove_node): Remove node from same comdat group
20829 (varpool_analyze_pending_decls): Walk same comdat groups.
20831 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
20833 * rtl.h (union rtunion_def): Remove rt_bit member.
20834 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
20835 * print-rtl (print_rtx): Do not print the member.
20836 * gengtype.c (adjust_field_rtx_def): Do not handle it.
20837 * gengenrtl.c (type_from_format): Likewise.
20838 (accessor_from_format): Likewise.
20840 2010-05-22 Joseph Myers <joseph@codesourcery.com>
20842 * dbgcnt.c: Include toplev.h instead of errors.h.
20843 * ira-emit.c: Don't include errors.h.
20844 * ira.c: Include toplev.h instead of errors.h.
20845 * lto-compress.c: Include toplev.h instead of errors.h.
20846 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
20847 ira.o, dbgcnt.o): Update dependencies.
20849 2010-05-22 Richard Guenther <rguenther@suse.de>
20851 * gimple.c (gimple_types_compatible_p): Check type qualifications
20852 before merging pointer to complete and pointer to incomplete type.
20853 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
20854 we use our own resolution algorithm. The gold linker plugin
20855 doesn't do the job we want it to do here.
20857 2010-05-22 Anatoly Sokolov <aesok@post.ru>
20859 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20860 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20861 (sparc_mode_dependent_address_p): New function.
20863 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
20865 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
20867 * timevar.c: Do not include any core headers.
20868 (timevar_print): De-i18n-ize.
20869 (print_time): Likewise.
20870 * timevar.h (timevar_push, timevar_pop): Make inline functions.
20872 2010-05-21 Joseph Myers <joseph@codesourcery.com>
20874 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
20876 (diagnostic_initialize): Initialize x_data not last_function.
20877 (diagnostic_report_current_function): Move to tree-diagnostic.c.
20878 (default_diagnostic_starter): Call
20879 diagnostic_report_current_module not
20880 diagnostic_report_current_function.
20881 (diagnostic_report_diagnostic): Initialize x_data not
20883 (verbatim): Likewise.
20884 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
20886 (struct diagnostic_context): Change last_function to x_data.
20887 (diagnostic_auxiliary_data): Replace with
20888 diagnostic_context_auxiliary_data and
20889 diagnostic_info_auxiliary_data.
20890 (diagnostic_last_function_changed, diagnostic_set_last_function,
20891 diagnostic_report_current_function): Move to tree-diagnostic.h.
20892 (print_declaration, dump_generic_node, print_generic_stmt,
20893 print_generic_stmt_indented, print_generic_expr,
20894 print_generic_decl, debug_c_tree, dump_omp_clauses,
20895 print_call_name, debug_generic_expr, debug_generic_stmt,
20896 debug_tree_chain, default_tree_printer): Move to
20897 tree-pretty-print.h.
20898 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
20899 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
20900 gimple-pretty-print.h.
20901 * pretty-print.c: Don't include tree.h
20902 (pp_base_format): Don't handle %K here.
20903 (pp_base_tree_identifier): Move to tree-pretty-print.c.
20904 * pretty-print.h (text_info): Change abstract_origin to x_data.
20905 (pp_tree_identifier, pp_unsupported_tree,
20906 pp_base_tree_identifier): Move to tree-pretty-print.h.
20907 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
20908 tree-pretty-print.h: New files.
20909 * tree-pretty-print.c: Include tree-pretty-print.h.
20910 (percent_K_format): New. Moved from pretty-print.c.
20911 (pp_base_tree_identifier): Move from pretty-print.c.
20912 * c-objc-common.c: Include tree-pretty-print.h.
20913 (c_tree_printer): Handle %K here.
20914 * langhooks.c: Include tree-diagnostic.h.
20915 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
20916 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
20917 (default_tree_printer): Handle %K using percent_K_format.
20918 (general_init): Use default_tree_diagnostic_starter.
20919 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
20920 (free_lang_data): Use default_tree_diagnostic_starter.
20921 * c-pretty-print.c: Include tree-pretty-print.h.
20922 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20923 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20924 * dwarf2out.c: Include tree-pretty-print.h.
20925 * except.c: Include tree-pretty-print.h.
20926 * gimple-pretty-print.c: Include tree-pretty-print.h and
20927 gimple-pretty-print.h.
20928 * gimplify.c: Include tree-pretty-print.h.
20929 * graphite-poly.c: Include tree-pretty-print.h and
20930 gimple-pretty-print.h.
20931 * ipa-cp.c: Include tree-pretty-print.h.
20932 * ipa-inline.c: Include gimple-pretty-print.h.
20933 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20934 * ipa-pure-const.c: Include gimple-pretty-print.h.
20935 * ipa-struct-reorg.c: Include tree-pretty-print.h and
20936 gimple-pretty-print.h.
20937 * ipa-type-escape.c: Include tree-pretty-print.h.
20938 * print-rtl.c: Include tree-pretty-print.h.
20939 * print-tree.c: Include gimple-pretty-print.h.
20940 * sese.c: Include tree-pretty-print.h.
20941 * tree-affine.c: Include tree-pretty-print.h.
20942 * tree-browser.c: Include tree-pretty-print.h.
20943 * tree-call-cdce.c: Include gimple-pretty-print.h.
20944 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20945 * tree-chrec.c: Include tree-pretty-print.h.
20946 * tree-data-ref.c: Include tree-pretty-print.h and
20947 gimple-pretty-print.h.
20948 * tree-dfa.c: Include tree-pretty-print.h.
20949 * tree-if-conv.c: Include tree-pretty-print.h and
20950 gimple-pretty-print.h.
20951 * tree-inline.c: Include tree-pretty-print.h.
20952 * tree-into-ssa.c: Include tree-pretty-print.h and
20953 gimple-pretty-print.h.
20954 * tree-nrv.c: Include tree-pretty-print.h.
20955 * tree-object-size.c: Include tree-pretty-print.h and
20956 gimple-pretty-print.h.
20957 * tree-outof-ssa.c: Include tree-pretty-print.h and
20958 gimple-pretty-print.h.
20959 * tree-parloops.c: Include tree-pretty-print.h and
20960 gimple-pretty-print.h.
20961 * tree-predcom.c: Include tree-pretty-print.h and
20962 gimple-pretty-print.h.
20963 * tree-scalar-evolution.c: Include tree-pretty-print.h and
20964 gimple-pretty-print.h.
20965 * tree-sra.c: Include tree-pretty-print.h.
20966 * tree-ssa-address.c: Include tree-pretty-print.h.
20967 * tree-ssa-alias.c: Include tree-pretty-print.h.
20968 * tree-ssa-ccp.c: Include tree-pretty-print.h and
20969 gimple-pretty-print.h.
20970 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
20971 * tree-ssa-copy.c: Include tree-pretty-print.h and
20972 gimple-pretty-print.h.
20973 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
20974 * tree-ssa-dce.c: Include tree-pretty-print.h and
20975 gimple-pretty-print.h.
20976 * tree-ssa-dom.c: Include tree-pretty-print.h and
20977 gimple-pretty-print.h.
20978 * tree-ssa-dse.c: Include gimple-pretty-print.h.
20979 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
20980 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
20981 * tree-ssa-live.c: Include tree-pretty-print.h and
20982 gimple-pretty-print.h.
20983 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
20984 gimple-pretty-print.h.
20985 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
20986 gimple-pretty-print.h.
20987 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
20988 gimple-pretty-print.h.
20989 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
20990 gimple-pretty-print.h.
20991 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
20992 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
20993 * tree-ssa-operands.c: Include tree-pretty-print.h and
20994 gimple-pretty-print.h.
20995 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
20996 gimple-pretty-print.h.
20997 * tree-ssa-pre.c: Include tree-pretty-print.h and
20998 gimple-pretty-print.h.
20999 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
21000 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
21001 gimple-pretty-print.h.
21002 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
21003 gimple-pretty-print.h.
21004 * tree-ssa-sink.c: Include gimple-pretty-print.h.
21005 * tree-ssa-ter.c: Include tree-pretty-print.h and
21006 gimple-pretty-print.h.
21007 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
21008 * tree-ssa.c: Include tree-pretty-print.h and
21009 gimple-pretty-print.h.
21010 * tree-stdarg.c: Include gimple-pretty-print.h.
21011 * tree-switch-conversion.c: Include gimple-pretty-print.h.
21012 * tree-tailcall.c: Include tree-pretty-print.h and
21013 gimple-pretty-print.h.
21014 * tree-vect-data-refs.c: Include tree-pretty-print.h and
21015 gimple-pretty-print.h.
21016 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
21017 gimple-pretty-print.h.
21018 * tree-vect-loop.c: Include tree-pretty-print.h and
21019 gimple-pretty-print.h.
21020 * tree-vect-patterns.c: Include gimple-pretty-print.h.
21021 * tree-vect-slp.c: Include tree-pretty-print.h and
21022 gimple-pretty-print.h.
21023 * tree-vect-stmts.c: Include tree-pretty-print.h and
21024 gimple-pretty-print.h.
21025 * tree-vectorizer.c: Include tree-pretty-print.h.
21026 * tree-vrp.c: Include tree-pretty-print.h and
21027 gimple-pretty-print.h.
21028 * value-prof.c: Include tree-pretty-print.h and
21029 gimple-pretty-print.h.
21030 * var-tracking.c: Include tree-pretty-print.h.
21031 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
21032 (tree-diagnostic.o): New dependencies.
21033 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
21034 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
21035 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
21036 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
21037 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
21038 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
21039 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
21040 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
21041 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
21042 tree-ssa-address.o, tree-ssa-loop-niter.o,
21043 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
21044 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
21045 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
21046 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
21047 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
21048 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
21049 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
21050 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
21051 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
21052 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
21053 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
21054 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
21055 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
21056 tree-switch-conversion.o, var-tracking.o, value-prof.o,
21057 cfgexpand.o, pretty-print.o): Update dependencies.
21059 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
21061 * tree-ssa-structalias.c: Remove tm_p.h from include.
21063 2010-05-21 Jeff Law <law@redhat.com>
21065 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
21067 2010-05-21 Jason Merrill <jason@redhat.com>
21069 * tree-eh.c (cleanup_is_dead_in): New.
21070 (lower_try_finally): Don't generate a dead cleanup region.
21071 (lower_cleanup): Likewise.
21073 2010-05-21 Jakub Jelinek <jakub@redhat.com>
21076 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
21077 unchain each use from the cyclic next_regno_use chain first.
21079 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
21081 * real: Do not include gmp.h, mpfr.h, and mpc.h.
21082 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
21083 (real_value_negate, real_value_abs): New prototypes.
21084 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
21085 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
21086 new include file for interface between MPFR and REAL_VALUE_TYPE.
21087 * real.c: Include realmpfr.h.
21088 (real_arithmetic2): Remove legacy function.
21089 (real_value_negate): New.
21090 (real_value_abs): New.
21091 (mfpr_from_real, real_from_mpfr): Move from here...
21092 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
21093 * builtins.c: Include realmpfr.h.
21094 * fold-const.c: Include realmpfr.h.
21095 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
21096 (fold_negate_const): Likewise.
21097 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
21098 * toplev.c: Include realmpfr.h.
21099 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
21100 and real_value_negate.
21101 * fixed-value.c (check_real_for_fixed_mode): Likewise.
21102 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
21103 (vfp3_const_double_index): Likewise.
21104 (arm_print_operand): Likewise.
21105 * Makefile.in: Update dependencies.
21107 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21109 * config/s390/s390.c (override_options): Increase the default
21110 of max-completely-peel-times.
21112 2010-05-21 Julian Brown <julian@codesourcery.com>
21113 Mark Mitchell <mark@codesourcery.com>
21115 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
21116 sibling calls for Thumb-1.
21117 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
21118 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
21120 (*call_insn, *call_value_insn): Don't use for Thumb-2.
21121 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
21123 (return): New expander.
21124 (*arm_return): New name for ARM return insn.
21125 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
21127 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
21129 * config.gcc (sparc64-*-rtems*): New target.
21131 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
21133 * tree.c (build_function_decl_skip_args): Fix grammar.
21134 (build_function_type_list_1): Fix typos, adjust formatting.
21136 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
21138 * tree.h: Include real.h and fixed-value.h as basic datatypes.
21139 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
21140 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
21141 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
21142 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
21143 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
21144 tree-pretty-print.c, tree-loop-distribution.c,
21145 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
21146 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
21147 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
21148 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
21149 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
21150 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
21151 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
21152 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
21153 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
21154 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
21155 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
21156 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
21157 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
21158 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
21159 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
21160 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
21161 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
21162 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
21163 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
21164 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
21165 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
21166 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
21167 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
21168 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
21169 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
21170 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
21171 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
21172 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
21173 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
21174 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
21175 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
21176 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
21177 config/score/score7.c, config/score/score.c, config/arm/arm.c,
21178 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
21179 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
21180 config/bfin/bfin.c: Clean up redundant includes.
21181 * Makefile.in: Update accordingly.
21183 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
21185 PR middle-end/44204
21186 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
21187 statement has no arguments.
21189 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
21192 * varasm.c (emutls_decl): Merge attributes to new decl.
21194 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
21196 PR middle-end/44101
21197 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
21198 around the uniquized constructor if its type requires a conversion.
21200 2010-05-21 Jakub Jelinek <jakub@redhat.com>
21203 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
21204 at -O0 goto_locus of any of the incoming edges differs from
21205 goto_locus of outgoing edge, or gimple_location of any of the
21208 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
21210 * ira.c (ira_non_ordered_class_hard_regs): Define.
21211 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
21212 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
21213 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
21214 cost of unaligned hard regs when allocating multi-reg pseudos.
21216 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
21218 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
21219 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
21220 for TARGET_NO_FLOAT.
21221 * config/mips/mips.c (mips_file_start): Expand conditional expression
21222 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
21223 (mips_override_options): Move -mno-float override -msoft-float and
21225 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
21226 Condition(TARGET_SUPPORTS_NO_FLOAT).
21227 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
21228 __mips_no_float here.
21229 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
21230 (TARGET_SUPPORTS_NO_FLOAT): Define.
21231 * config/mips/sdemtk.opt: Delete.
21233 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
21235 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
21237 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
21240 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
21241 * configure: Regenerate.
21242 * config.in: Regenerate.
21243 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
21244 instead of sahf only for 64bit targets.
21246 2010-05-20 Jakub Jelinek <jakub@redhat.com>
21249 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
21250 setup_ref_regs for DEBUG_INSNs.
21252 2010-05-20 Jan Hubicka <jh@suse.cz>
21254 PR middle-end/44197
21255 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
21257 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
21260 * df-scan.c (df_ref_compare): Stabilize sort.
21262 2010-05-20 Jakub Jelinek <jakub@redhat.com>
21264 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
21265 argument. Don't use DW_OP_piece if offset is non-zero,
21266 put offset into second DW_OP_bit_piece argument.
21267 (dw_sra_loc_expr): Adjust callers. For memory expressions
21270 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
21273 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
21274 settings for 16-bit-constant "addo" alternative.
21276 2010-05-19 James E. Wilson <wilson@codesourcery.com>
21278 * config/mips/mips-dsp.md (add<DSPV:mode>3,
21279 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
21282 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
21283 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
21286 2010-05-19 Joseph Myers <joseph@codesourcery.com>
21288 * diagnostic.c (FLOAT, FFS): Don't undefine.
21289 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
21290 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
21293 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21295 * combine.c (propagate_for_debug): Call make_compound_operation
21296 on the source value.
21297 (try_combine): When implementing a split chosen by find_split_point,
21298 either copy i2src or set it to null. Assert that i2src is not null
21299 before substituting into CALL_INSN_FUNCTION_USAGE.
21301 2010-05-19 Anatoly Sokolov <aesok@post.ru>
21303 * double-int.h (double_int_ior): New function.
21304 * tree.h (build_int_cst_wide_type): Remove.
21305 * tree.c (build_int_cst_wide_type): Remove.
21306 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
21307 of build_int_cst_wide_type.
21308 * stor-layout.c (set_sizetype): (Ditto.).
21309 * dojump.c (do_jump): Use build_int_cstu instead of
21310 build_int_cst_wide_type.
21312 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
21314 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
21315 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
21316 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
21317 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
21318 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
21319 propagate the 'data' argument to copy_tree_r.
21320 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
21321 Propagate 'data' argument to walk_tree.
21322 (copy_if_shared): New function.
21323 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
21324 (unmark_visited): New function.
21325 (unshare_body): Call copy_if_shared instead of doing it manually.
21326 (unvisit_body): Call unmark_visited instead of doing it manually.
21328 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
21330 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
21331 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
21332 * hooks.c: Likewise.
21333 * target-def.h (TARGET_FOLD_BUILTIN): Define to
21334 hook_tree_tree_int_treep_bool_null.
21335 * target.h (struct gcc_target): Update signature of fold_builtin
21337 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
21338 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
21339 instead of the call expression.
21340 (fold_builtin_call_array): Pass n and argarray directly.
21341 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
21343 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
21344 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
21345 `i' and use it in place of `arity'.
21346 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
21347 Dereference `args' directly.
21348 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
21350 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21352 * doc/sourcebuild.texi (Effective-Target Keywords): Document
21354 (Directives): Document optional dg-require-effective-target
21357 2010-05-19 Richard Guenther <rguenther@suse.de>
21360 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
21362 2010-05-19 Richard Guenther <rguenther@suse.de>
21364 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
21365 * common.opt (fwhopr=): New.
21366 * opts.c (common_handle_option): Handle OPT_fwhopr.
21367 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
21368 * collect2.c (main): Match -fwhopr*.
21369 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
21370 Execute ltrans stage in parallel when jobs is bigger than 1.
21372 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21374 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
21375 pentiumpro on Solaris 8/x86 with Sun as.
21376 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
21378 (gcc_cv_as_ix86_quad): Check for .quad directive.
21379 * configure: Regenerate.
21380 * config.in: Regenerate.
21381 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
21383 2010-05-19 Martin Jambor <mjambor@suse.cz>
21385 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
21386 also for indirect edges. Actual printing moved...
21387 (ipa_print_node_jump_functions_for_edge): ...here.
21388 (ipa_compute_jump_functions): Renamed to
21389 ipa_compute_jump_functions_for_edge and made static.
21390 (ipa_compute_jump_functions): New function.
21391 (make_edge_direct_to_target): Check if the number of arguments on
21392 the newly direct edge is the same as the number of parametrs of
21394 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
21395 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
21396 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
21397 analysis functions unconditionally, call the new
21398 ipa_analyze_params_uses on the node instead of every edge.
21400 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
21402 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
21404 (dump_mem_ref): Adopt debug code to handle a tree as step. This
21405 also checks for a constant int vs. non-constant but
21406 loop-invariant steps.
21407 (find_or_create_group): Change the sort algorithm to only consider
21408 steps that are constant ints.
21409 (idx_analyze_ref): Adopt code to handle a tree instead of a
21410 HOST_WIDE_INT for step.
21411 (gather_memory_references_ref): Handle tree instead of int and be
21412 prepared to see a NULL_TREE.
21413 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
21414 prefetches if the step cannot be calculated at compile time.
21415 (issue_prefetch_ref): Issue prefetches for non-constant but
21416 loop-invariant steps.
21418 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
21421 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
21423 * tree.h (build_call_list): Remove.
21424 * tree.c (build_call_list): Remove.
21426 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
21428 * tree.h (build_call_list): Remove.
21429 * tree.c (build_call_list): Remove.
21431 2010-05-18 Jan Hubicka <jh@suse.cz>
21433 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
21435 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
21437 PR rtl-optimization/43332
21438 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
21440 2010-05-18 Anatoly Sokolov <aesok@post.ru>
21442 * tree.h (build_int_cstu): Implement as static inline.
21443 * tree.c (build_int_cstu): Remove function.
21444 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
21447 2010-05-18 Richard Guenther <rguenther@suse.de>
21450 * lto-wrapper.c (verbose): New variable. Initialize from -v.
21451 (debug): Initialize from -save-temps.
21452 (collect_execute): Print command-line when verbose.
21453 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
21454 for ltrans invocation. Produce -dumpbase flag again.
21455 (process_args): Remove.
21457 * collect2.c (maybe_run_lto_and_relink): Only pass object
21458 files to lto-wrapper.
21459 * gcc.c (LINK_COMMAND_SPEC): Likewise.
21461 2010-05-18 Jan Hubicka <jh@suse.cz>
21463 * opts.c (decode_options): Do not disable whopr at ipa_cp.
21464 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
21466 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
21469 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
21471 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
21474 2010-05-18 Jakub Jelinek <jakub@redhat.com>
21477 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
21478 rtx_equal_p inline.
21480 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
21482 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
21483 lto-macho as lto_binary_reader.
21485 * darwin.c (darwin_asm_named_section): Do not add assembler comment
21486 after .section directive; just print it before the directive instead.
21488 2010-05-17 Jan Hubicka <jh@suse.cz>
21490 * cgraph.c (cgraph_create_virtual_clone): Only check
21491 versionable_function_p when not in wpa and checking is enabled.
21492 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
21493 there are no more functions to materialize.
21495 2010-05-17 Jan Hubicka <jh@suse.cz>
21497 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
21498 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
21500 (output_cgraph): Call output_cgraph_opt_summary.
21501 (input_cgrpah): Call input_cgraph_opt_summary.
21502 (output_cgraph_opt_summary_p, output_node_opt_summary,
21503 input_node_opt_summary, input_cgraph_opt_section): New functions.
21504 * lto-section-in.c (lto_section_name): Add cgraphopt.
21505 * tree-inline.c (tree_function_versioning): Handle parm_num.
21506 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
21507 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
21509 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
21511 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
21512 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
21513 the insn to prefetch ratio heuristic to loops with known trip count.
21515 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
21517 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
21518 (schedule_prefetches): Do not generate a prefetch if the unroll factor
21519 is far from what is required by the prefetch.
21521 2010-05-17 Jan Hubicka <jh@suse.cz>
21523 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
21524 (ipcp_estimate_growth): Likewise.
21525 (ipcp_const_param_count): Likewise.
21526 (ipcp_insert_stage): Likewise.
21527 * ipa-prop.c (visit_load_for_mod_analysis): New function.
21528 (visit_store_addr_for_mod_analysis): Set used flag.
21529 (ipa_detect_param_modifications): Set used flag for SSE params;
21530 update use of walk_stmt_load_store_addr_ops.
21531 (ipa_print_node_params): Print used flag.
21532 (ipa_write_node_info): Stream used flag.
21533 (ipa_read_node_info): Likewise.
21534 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
21535 (ipa_is_param_used): New function.
21536 (lto_ipa_fixup_call_notes): Remove unused declaration.
21538 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21541 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
21542 * configure: Regenerate.
21543 * config.in: Regenerate.
21544 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
21545 !HAVE_AS_IX86_REP_LOCK_PREFIX.
21546 Don't emit whitespace.
21547 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
21548 (*rep_movsi): Likewise.
21549 (*rep_movsi_rex64): Likewise.
21550 (*rep_movqi): Likewise.
21551 (*rep_movqi_rex64): Likewise.
21552 (*rep_stosdi_rex64): Likewise.
21553 (*rep_stossi): Likewise.
21554 (*rep_stossi_rex64): Likewise.
21555 (*rep_stosqi): Likewise.
21556 (*rep_stosqi_rex64): Likewise.
21557 (*cmpstrnqi_nz_1): Use {%;} after repz.
21558 (*cmpstrnqi_nz_rex_1): Likewise.
21559 (*cmpstrnqi_1): Likewise.
21560 (*cmpstrnqi_rex_1): Likewise.
21561 (*strlenqi_1): Use {%;} after repnz.
21562 (*strlenqi_rex_1): Likewise.
21563 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
21564 (*sync_compare_and_swap<mode>): Likewise.
21565 (sync_double_compare_and_swap<mode>): Likewise.
21566 (*sync_double_compare_and_swapdi_pic): Likewise.
21567 (sync_old_add<mode>): Likewise.
21568 (sync_add<mode>): Likewise.
21569 (sync_sub<mode>): Likewise.
21570 (sync_<code><mode>): Likewise.
21572 2010-05-17 Martin Jambor <mjambor@suse.cz>
21574 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
21575 otr_token and polymorphic.
21576 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
21577 (cgraph_clone_edge): Copy the above fields.
21578 * tree.c (get_binfo_at_offset): New function.
21579 * tree.h (get_binfo_at_offset): Declare.
21580 * ipa-prop.h (enum jump_func_type): Added known_type jump function
21581 type, reordered items, updated comments.
21582 (union jump_func_value): Added base_type field, reordered fields.
21583 (enum ipa_lattice_type): Moved down in the file.
21584 (struct ipa_param_descriptor): New field polymorphic.
21585 (ipa_is_param_polymorphic): New function.
21586 * ipa-prop.c: Include gimple.h and gimple-fold.h.
21587 (ipa_print_node_jump_functions): Print known type jump functions.
21588 (compute_complex_pass_through): Renamed to...
21589 (compute_complex_assign_jump_func): this.
21590 (compute_complex_ancestor_jump_func): New function.
21591 (compute_known_type_jump_func): Likewise.
21592 (compute_scalar_jump_functions): Create known type and complex ancestor
21594 (ipa_note_param_call): New parameter polymorphic, set the corresponding
21595 flag in the call note accordingly.
21596 (ipa_analyze_call_uses): Renamed to...
21597 (ipa_analyze_indirect_call_uses): this. New parameter target, define
21598 variable var only in the block where it is used.
21599 (ipa_analyze_virtual_call_uses): New function.
21600 (ipa_analyze_call_uses): Likewise.
21601 (combine_known_type_and_ancestor_jfs): Likewise.
21602 (update_jump_functions_after_inlining): Implemented handling of a
21603 number of new jump function types combination.
21604 (print_edge_addition_message): Removed.
21605 (make_edge_direct_to_target): New function.
21606 (try_make_edge_direct_simple_call): Likewise.
21607 (try_make_edge_direct_virtual_call): Likewise.
21608 (update_call_notes_after_inlining): Renamed to...
21609 (update_indirect_edges_after_inlining): this. Moved edge creation for
21610 indirect calls to try_make_edge_direct_simple_call, also calls
21611 try_make_edge_direct_virtual_call for virtual calls.
21612 (ipa_print_node_params): Changed the header message.
21613 (ipa_write_jump_function): Stream also known type jump functions.
21614 (ipa_read_jump_function): Likewise.
21615 (ipa_write_indirect_edge_info): Stream new fields in
21616 cgraph_indirect_call_info.
21617 (ipa_read_indirect_edge_info): Likewise.
21618 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
21621 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21623 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
21625 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
21627 * tree.h (CALL_EXPR_ARGS): Delete.
21628 (call_expr_arglist): Delete.
21629 * tree.c (call_expr_arglist): Delete.
21630 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
21631 targetm.fold_builtin.
21632 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
21633 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
21634 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
21635 arglist parameter. Use CALL_EXPR_ARG.
21636 (picochip_expand_builtin_3op): Likewise.
21637 (picochip_expand_builtin_2opvoid): Likewise.
21638 (picochip_expand_array_get): Likewise.
21639 (picochip_expand_array_put): Likewise.
21640 (picochip_expand_array_testport): Likewise.
21641 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
21642 rather than arglist.
21643 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
21645 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
21646 than TREE_VALUE and TREE_CHAIN.
21647 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
21648 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
21651 2010-05-17 Jakub Jelinek <jakub@redhat.com>
21654 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
21655 to have no fallthru edge.
21657 PR middle-end/44102
21658 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
21659 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
21660 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
21661 add BARRIER after previous bb if needed.
21663 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
21665 * tree.c (build_function_type_list_1): Remove bogus assert condition.
21667 2010-05-17 Alan Modra <amodra@gmail.com>
21669 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
21670 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
21671 with copy_reg rtx param.
21672 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
21673 Correct cases where code for ABI_V4 did not initialise the reg
21674 used to access frame. Also leave frame_reg_rtx as sp for large
21675 frames that save no regs.
21677 2010-05-17 Martin Jambor <mjambor@suse.cz>
21679 PR middle-end/44133
21680 * tree-sra.c (create_access_replacement): New parameter rename, mark
21681 the replaement for renaming only when it is true.
21682 (get_access_replacement): Pass true in the rename parameter of
21683 create_access_replacement.
21684 (get_unrenamed_access_replacement): New function.
21685 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
21686 replacement declaration from it.
21688 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
21690 * function.c (try_fit_stack_local, add_frame_space): New static
21692 (assign_stack_local_1): Use them. Look for opportunities to use
21693 space previously wasted on alignment.
21694 * function.h (struct frame_space): New.
21695 (struct rtl_data): Add FRAME_SPACE_LIST member.
21696 * reload1.c (something_was_spilled): New static variable.
21697 (alter_reg): Set it.
21698 (reload): Test it in addition to testing if the frame size changed.
21700 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
21702 * config/s390/s390.c: Define sane prefetch settings and activate
21703 flag_prefetch_loop_arrays on -O3.
21704 * config/s390/s390.h: Declare that read can use write prefetch.
21706 2010-05-17 Jakub Jelinek <jakub@redhat.com>
21708 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
21711 2010-05-16 Jan Hubicka <jh@suse.cz>
21713 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
21714 function body; do not check stdarg field of struct function.
21716 2010-05-16 Jan Hubicka <jh@suse.cz>
21718 * cgraph.c (dump_cgraph_node): Dump versionable flag.
21719 * cgraph.h (cgraph_local_info): Add versionable flag.
21720 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
21721 (ipcp_versionable_function_p): Use it.
21722 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
21725 2010-05-16 Jan Hubicka <jh@suse.cz>
21727 * cgraph.c (cgraph_clone_node): Take decl argument and insert
21728 clone into hash when it is different from orig.
21729 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
21730 * cgraph.h (cgraph_clone_node): Update prototype.
21731 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
21732 (lto_cgraph_encoder_delete): Delete body map.
21733 (lto_cgraph_encoder_size): Move to header.
21734 (lto_cgraph_encoder_encode_body_p,
21735 lto_set_cgraph_encoder_encode_body): New.
21736 (lto_output_node): Do not take written_decls argument; output clone_of
21738 (add_node_to): Add include_body_argument; call
21739 lto_set_cgraph_encoder_encode_body on master of the clone.
21740 (add_references): Update use of add_node_to.
21741 (compute_ltrans_boundary): Likewise.
21742 (output_cgraph): Do not create written_decls bitmap.
21743 (input_node): Take nodes argument; stream in clone_of correctly.
21744 (input_cgraph_1): Update use of input_node.
21745 * lto-streamer-out.c (lto_output): Use encoder info to decide
21746 what bodies to output.
21747 * ipa-inline.c (cgraph_clone_inlined_nodes,
21748 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
21749 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
21750 (lto_cgraph_encoder_size): Define here.
21751 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
21754 2010-05-16 Richard Guenther <rguenther@suse.de>
21756 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
21758 * ipa-type-escape.c (gate_type_escape_vars): Run when
21759 -fipa-struct-reorg runs.
21760 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
21761 * common.opt (fipa-type-escape): Remove.
21763 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
21765 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
21766 (decode_options): Likewise.
21767 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
21769 2010-05-16 Jan Hubicka <jh@suse.cz>
21771 * ipa.c (function_and_variable_visibility): Also bring local all
21774 2010-05-16 Richard Guenther <rguenther@suse.de>
21776 * alias.c (nonoverlapping_memrefs_p): Remove use of
21777 IPA type-escape information.
21779 2010-05-16 Joseph Myers <joseph@codesourcery.com>
21781 * c-common.c (c_common_reswords): Add _Static_assert for C.
21782 * c-parser.c (c_token_starts_declaration,
21783 c_parser_next_token_starts_declaration,
21784 c_parser_static_assert_declaration_no_semi,
21785 c_parser_static_assert_declaration): New.
21786 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
21787 Handle static assertions if static_assert_ok.
21788 (c_parser_external_declaration, c_parser_declaration_or_fndef,
21789 c_parser_compound_statement_nostart, c_parser_label,
21790 c_parser_for_statement, c_parser_objc_methodprotolist,
21791 c_parser_omp_for_loop): All callers of
21792 c_parser_declaration_or_fndef changed.
21793 (c_parser_struct_declaration): Handle static assertions.
21794 (c_parser_compound_statement_nostart): Use
21795 c_parser_next_token_starts_declaration and
21796 c_token_starts_declaration to detect start of declarations.
21797 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
21800 2010-05-16 Anatoly Sokolov <aesok@post.ru>
21802 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21803 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21804 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21805 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21806 (mmix_function_outgoing_value): Rename to...
21807 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
21808 (mmix_function_value_regno_p): Make static.
21809 (mmix_libcall_value): New function.
21810 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
21811 mmix_function_value_regno_p): Remove declaration.
21813 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
21815 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
21816 BUILT_IN_ALLOCA if stack checking is enabled.
21818 2010-05-16 Richard Guenther <rguenther@suse.de>
21820 * var-tracking.c (vars_copy_1): Inline ...
21821 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
21822 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
21823 (variable_merge_over_cur): Adjust. Merge asserts.
21824 (variable_merge_over_src): Likewise.
21825 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
21826 (variable_post_merge_new_vals): Merge asserts.
21827 (variable_post_merge_perm_vals): Likewise.
21828 (find_mem_expr_in_1pdv): Likewise.
21829 (dataflow_set_different_value): Remove.
21830 (onepart_variable_different_p): Merge asserts.
21831 (variable_different_p): Likewise.
21832 (dataflow_set_different_1): Inline ...
21833 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
21834 (emit_notes_for_differences_1): Merge asserts.
21836 2010-05-16 Richard Guenther <rguenther@suse.de>
21838 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
21839 * optabs.c (libfunc_decl_hash): Likewise.
21840 * varasm.c (emutls_decl): Likewise.
21842 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
21844 * c-decl.c: Don't include gimple.h.
21845 (merge_decls): Do not copy gimple_body.
21847 2010-05-15 Jason Merrill <jason@redhat.com>
21849 * c.opt: Add -fnothrow-opt.
21851 2010-05-15 Jan Hubicka <jh@suse.cz>
21853 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
21855 * passes.c (ipa_write_summaries): Write all analyzed nodes.
21857 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
21859 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
21860 * Makefile.in: Add it.
21861 Fix all other Makefile dependencies for changes below.
21862 * tree.h: Include it instead of defining VEC primitives here.
21863 * gimple.h: Likewise.
21865 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
21866 * except.h: Include vecir.h, break dependence on tree.h.
21868 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
21870 * tree-iterator.c: ...to here.
21871 * tree-iterator.h: Fix file introduction comment. Add extern markers.
21873 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
21875 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
21876 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
21877 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
21878 tree-mudflap.h, and target.h.
21879 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
21880 predict.h, tree-inline.h, gimple.h, and langhooks.h.
21881 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
21882 Add FIXME for why gimple.h is still included (should be unnecessary
21883 since GCC 4.5 gimplification unit-at-a-time).
21884 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
21885 * c-pragma.c: Add FIXME for why function.h needs to be included just
21886 for cfun, at front-end level.
21887 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
21888 Do not include ggc.h, but include vecprim.h for VEC(char).
21889 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
21890 Explain why target.h is included.
21891 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
21892 Explain why gimple.h is included.
21893 * c-ppoutput.c: Do not include tm.h.
21894 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
21895 * c-parses.c: Explain why rtl.h is included, and that this (and only
21896 this) is also why tm.h must be included.
21897 Do not include except.h.
21898 * c-lang.c: Do not include ggc.h.
21900 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
21902 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
21904 2010-05-15 Joseph Myers <joseph@codesourcery.com>
21906 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
21907 unions by default if those structs and unions have no tags. Do
21908 not condition anonymous struct and unions handling on flag_iso.
21909 Allow anonymous structs and unions for C1X.
21910 (finish_struct): Do not diagnose lack of named fields when
21911 anonymous structs and unions present for C1X. Accept flexible
21912 array members in structure with anonymous structs or unions but no
21913 directly named fields.
21914 * doc/extend.texi (Unnamed Fields): Update.
21916 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
21918 * gimple.h (compare_field_offset): Rename into...
21919 (gimple_compare_field_offset): ...this.
21920 * gimple.c (compare_field_offset): Rename into...
21921 (gimple_compare_field_offset): ...this. Compare the full access if
21922 the offset is self-referential.
21923 (gimple_types_compatible_p): Adjust for above renaming.
21924 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
21925 DECL_NONADDRESSABLE_P flag of fields before merging them.
21927 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
21929 * tree.h (ctor_to_list): Delete.
21930 * tree.c (ctor_to_list): Delete.
21932 2010-05-15 Jan Hubicka <jh@suse.cz>
21934 * ipa-reference.c: Include toplev.h
21935 (is_proper_for_analysis): Only add to all_module_statics
21936 if it is allocated.
21937 (write_node_summary_p, stream_out_bitmap,
21938 ipa_reference_write_optimization_summary,
21939 ipa_reference_read_optimization_summary): New.
21940 (struct ipa_opt_pass_d pass_ipa_reference): Add
21941 optimization summary streaming.
21942 * lto-cgraph.c (referenced_from_this_partition_p,
21943 reachable_from_this_partition_p): New functions.
21944 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
21945 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
21946 * opts.c (decode_options): Enable ipa_reference.
21947 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
21948 * lto-streamer.h (referenced_from_this_partition_p,
21949 reachable_from_this_partition_p): Declare.
21951 2010-05-15 Richard Guenther <rguenther@suse.de>
21953 PR tree-optimization/44038
21954 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
21955 taking the address of a V_C_E of a constant.
21957 2010-05-14 Jan Hubicka <jh@suse.cz>
21959 * tree.h (memory_identifier_string): Remove.
21960 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
21961 (ipa_reference_global_vars_info_d): Remove statics_not_read and
21962 statics_not_written.
21963 (ipa_reference_optimization_summary_d): New structure.
21964 (ipa_reference_optimization_summary_t): New type and vector.
21965 (ipa_reference_vars_info_d): Embedd structures instead of using
21967 (reference_vars_to_consider): Remove out of GGC space.
21968 (module_statics_escape): Remove.
21969 (global_info_obstack): Rename to ...
21970 (optimization_summary_obstack): ... this one.
21971 (initialization_status_t): Remove.
21972 (memory_identifier_string): Remove.
21973 (get_reference_vars_info): Fix indenting.
21974 (set_reference_vars_info): Likewise.
21975 (get_reference_optimization_summary): New.
21976 (set_reference_optimization_summary): New.
21977 (get_global_reference_vars_info): Remove.
21978 (ipa_reference_get_read_global): Remove.
21979 (ipa_reference_get_written_global): Remove.
21980 (ipa_reference_get_not_read_global): Update.
21981 (ipa_reference_get_not_written_global): Update.
21982 (is_proper_for_analysis): Outlaw addressable.
21983 (propagate_bits): Update for new datastructures.
21984 (analyze_variable): Remove.
21985 (init_function_info): Update for new datastructures.
21986 (clean_function_local_data): Remove.
21987 (clean_function): Remove.
21988 (copy_global_bitmap): Use optimizations_summary_obstack.
21989 (duplicate_node_data): Duplicate optimization summary only.
21990 (remove_node_data): Remove optimization summary only.
21991 (generate_summary): Do not analyze variables; do not compute
21992 module_statics_escape; do not prune solutions by it.
21993 (read_write_all_from_decl): Fix typos in comments.
21994 (propagate): Doscover readonly and nonaddressable first;
21995 update for new datastructures; share global bitmaps.
21996 * ipa-reference.h (ipa_reference_get_read_global,
21997 ipa_reference_get_written_global): Remove.
21998 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
21999 * Makefile.in: Remove ipa-refereference from GT files.
22001 2010-05-14 Jakub Jelinek <jakub@redhat.com>
22004 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
22005 for all SYMBOL_REF_DECLs.
22007 2010-05-14 Jan Hubicka <jh@suse.cz>
22009 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
22010 (varpool_all_refs_explicit_p): New inline function.
22011 * ipa-reference.c: Update comment.
22012 (module_statics_written): Remove.
22013 (get_static_decl): Remove.
22014 (ipa_init): Do not initialize module_statics_written.
22015 (analyze_function): Likewise.
22016 (generate_summary): Likewise; do not compute module_statics_readonly
22017 and do not update variable flags.
22018 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
22019 * ipa.c: Inlucde flags.h
22020 (cgraph_local_node_p): New.
22021 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
22022 promote functions to local.
22023 (ipa_discover_readonly_nonaddressable_vars): New function.
22024 (function_and_variable_visibility): Use cgraph_local_node_p.
22025 * varpool.c (varpool_finalize_decl): Set force_output for
22026 DECL_PRESERVE_P vars.
22028 2010-05-14 Jan Hubicka <jh@suse.cz>
22030 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
22032 2010-05-14 Richard Guenther <rguenther@suse.de>
22034 PR tree-optimization/44119
22035 * tree-ssa-pre.c (eliminate): Properly mark replacement of
22036 a PHI node necessary.
22038 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
22040 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
22042 2010-05-14 Jason Merrill <jason@redhat.com>
22045 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
22046 (gimple_call_set_nothrow): New.
22047 * gimple.c (gimple_build_call_from_tree): Call it.
22048 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
22051 * gimplify.c (gimplify_seq_add_stmt): No longer static.
22052 * gimple.h: Declare it.
22053 * gimple.c (gimple_build_eh_filter): No ops.
22055 2010-05-14 Jan Hubicka <jh@suse.cz>
22057 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
22058 nodes already in queue.
22059 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
22060 re-enqueueing node.
22062 2010-05-14 Jakub Jelinek <jakub@redhat.com>
22065 * cfgexpand.c (expand_debug_expr): If non-memory op0
22066 has BLKmode, return NULL.
22068 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
22070 * config.gcc: Add support for --with-cpu option for bdver1.
22071 * config/i386/i386.h (TARGET_BDVER1): New macro.
22072 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
22073 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
22074 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
22075 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
22076 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
22077 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
22078 (processor_type): Add PROCESSOR_BDVER1.
22079 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
22080 processor_type in config/i386/i386.h.
22081 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
22082 movaps <reg, reg> instead of movapd <reg, reg> when replacing
22083 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
22084 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
22085 to emit packed xor instead of packed double/packed integer
22086 xor for SSE and AVX when moving a zero value.
22087 * config/i386/sse.md: Add check for
22088 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
22089 movapd/movdqa for SSE and AVX.
22090 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
22091 single logical operations i.e and, or and xor instead of packed double
22092 logical operations for SSE and AVX.
22093 * config/i386/i386-c.c (ix86_target_macros_internal):
22094 Add PROCESSOR_BDVER1.
22095 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
22096 (has_fma4, has_xop): New.
22097 * config/i386/i386.c (bdver1_cost): New variable.
22098 (m_BDVER1): New macro.
22099 (m_AMD_MULTIPLE): Add m_BDVER1.
22100 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
22101 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
22102 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
22103 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
22104 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
22105 x86_tune_sse_partial_reg_dependency,
22106 x86_tune_sse_unaligned_load_optimal,
22107 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
22108 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
22109 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
22110 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
22111 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
22112 Enable/disable for bdver1.
22113 (processor_target_table): Add bdver1_cost.
22114 (cpu_names): Add bdver1.
22115 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
22116 processor_alias_table.
22117 (ix86_expand_vector_move_misalign): Change.
22118 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
22119 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
22120 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
22121 of movupd/movdqu for SSE and AVX.
22122 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
22123 (ix86_tune_adjust_cost): Add code for bdver1.
22124 (standard_sse_constant_opcode): Add check for
22125 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
22126 of packed double xor for SSE and AVX.
22128 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
22130 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
22131 result to unsigned.
22133 2010-05-14 Tristan Gingold <gingold@adacore.com>
22135 * toplev.c (default_debug_hooks): Remove this variable.
22136 (process_options): Remove assignments to default_debug_hooks.
22138 2010-05-14 Martin Jambor <mjambor@suse.cz>
22140 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
22141 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
22142 * langhooks.h (struct lang_hooks_for_decls): Removed field
22144 * tree.c (free_lang_data): Remove assignment to
22145 lang_hooks.fold_obj_type_ref.
22146 * tree.def (OBJ_TYPE_REF): Update comment.
22148 2010-05-14 Richard Guenther <rguenther@suse.de>
22150 PR tree-optimization/44124
22151 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
22153 2010-05-14 Alan Modra <amodra@gmail.com>
22156 * config/rs6000/rs6000.c (struct machine_function): Reorder
22157 fields for better packing. Add lr_save_state.
22158 (rs6000_ra_ever_killed): Return lr_save_state if set.
22159 (rs6000_emit_eh_reg_restore): Set lr_save_state.
22161 2010-05-13 Jan Hubicka <jh@suse.cz>
22163 * varpool.c (decide_is_variable_needed): Drop code checking
22164 TREE_SYMBOL_REFERENCED.
22166 2010-05-13 Jan Hubicka <jh@suse.cz>
22168 * final.c (output_addr_const): Do not call mark_decl_referenced.
22169 * cgraphunit.c (process_function_and_variable_attributes): Use
22170 mark_needed_node dirrectly.
22171 (assemble_thunk): Do not call mark_decl_referenced.
22173 2010-05-13 Anatoly Sokolov <aesok@post.ru>
22175 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
22177 2010-05-13 Jeff Law <law@redhat.com>
22179 * ira-conflicts.c (print_allocno_conflicts): New function broken out
22181 (print_conflicts): Call print_allocno_conflicts.
22183 2010-05-13 Jakub Jelinek <jakub@redhat.com>
22186 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
22189 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
22191 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
22192 t-mingw-w64 or t-mingw-w32 for multilib configuration.
22193 * config/i386/t-mingw-w32: New.
22194 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
22196 2010-05-13 Martin Jambor <mjambor@suse.cz>
22198 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
22200 * gimple-fold.c (get_base_binfo_for_type): New function.
22201 (gimple_get_relevant_ref_binfo): Likewise.
22202 (gimple_fold_obj_type_ref_known_binfo): Likewise.
22203 (gimple_fold_obj_type_ref): Likewise.
22204 (fold_gimple_call): Simplify condition for folding virtual calls
22205 and call gimple_fold_obj_type_ref.
22206 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
22207 (gimple_fold_obj_type_ref_known_binfo): Likewise.
22209 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
22211 * config/rs6000/rs6000-protos.h
22212 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
22213 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
22214 (rs6000_debug_mode_dependent_address)
22215 (rs6000_mode_dependent_address_ptr): Likewise.
22217 2010-05-13 Jakub Jelinek <jakub@redhat.com>
22220 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
22222 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
22223 * tree-sra.c (create_access_replacement): Call unshare_expr before
22224 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
22225 * dwarf2out.c: Include tree-flow.h.
22226 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
22227 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
22228 Handle DW_OP_bit_piece.
22229 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
22230 construct_piece_list, adjust_piece_list): New functions.
22231 (add_var_loc_to_decl): Handle SRA optimized variables.
22232 Adjust for var_loc_note to loc field renaming.
22233 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
22234 in VAR_LOCATION note.
22235 (new_loc_descr_op_bit_piece): New function.
22236 (dw_sra_loc_expr): New function.
22237 (dw_loc_list): Use it. Don't handle the last range after the
22238 loop, handle it inside of the loop. Adjust for var_loc_note
22239 to loc field renaming.
22240 (add_location_or_const_value_attribute): Only special case
22241 single entry loc lists if loc is NOTE_P. Adjust for
22242 var_loc_note to loc field renaming.
22243 (dwarf2out_var_location): Don't set newloc->var_loc_note
22244 and newloc->next here.
22246 2010-05-12 Jan Hubicka <jh@suse.cz>
22248 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
22250 * cgraph.h (cgraph_only_called_directly_p,
22251 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
22252 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
22253 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
22255 * ipa.c (cgraph_remove_unreachable_nodes): Use
22256 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
22258 * tree-inline.c (copy_bb): Check address_taken flag.
22259 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
22260 externally_visible flag.
22262 2010-05-12 Jason Merrill <jason@redhat.com>
22266 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
22267 * sdbout.c (plain_type_1): Likewise.
22268 * dwarf2out.c (is_base_type): Likewise.
22269 (gen_type_die_with_usage): Likewise. Generate
22270 DW_TAG_unspecified_type for any LANG_TYPE.
22272 2010-05-12 Jan Hubicka <jh@suse.cz>
22274 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
22276 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
22277 (cgraph_clone_edge): Update.
22278 (cgraph_node_remove_callees): Remove indirect calls too.
22279 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
22280 (cgraph_create_indirect_edge): Update prototype.
22281 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
22282 is_proper_for_analysis.
22283 (add_new_function, visited_nodes, function_insertion_hook_holder,
22284 get_local_reference_vars_info, mark_address_taken, mark_address,
22285 mark_load, mark_store, check_asm_memory_clobber, check_call,
22286 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
22287 (ipa_init): Do not initialize visited_nodes;
22288 function_insertion_hook_holder.
22289 (analyze_variable): Rewrite.
22290 (analyze_function): Rewrite.
22291 (copy_local_bitmap): Remove.
22292 (duplicate_node_dat): Do not duplicate local info.
22293 (generate_summary): Simplify to only walk cgraph.
22294 (write_node_summary_p, ipa_reference_write_summary,
22295 ipa_reference_read_summary): Remove.
22296 (propagate): Do not remove function insertion;
22298 (pass_ipa_reference): NULLify summary handling fields.
22299 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
22300 (input_edge): Input ecf_flags.
22301 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
22302 (update_indirect_edges_after_inlining): Ignore edges with unknown
22305 2010-05-12 Sriraman Tallam <tmsriram@google.com>
22307 * implicit-zee.c: New file.
22308 * tree-pass.h (pass_implicit_zee): Declare.
22309 * passes.c (init_optimization_passes): Add zee pass.
22310 * common.opt (fzee): New flag.
22311 * timevar.def (TV_ZEE): Define.
22312 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
22314 * Makefile.in (implicit-zee.o): Add new build file.
22316 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
22317 Nathan Froyd <froydnj@codesourcery.com>
22319 * c-common.c (sync_resolve_params): Remove write-only variable.
22321 2010-05-12 Anatoly Sokolov <aesok@post.ru>
22323 * target.h (struct gcc_target): Add mode_dependent_address_p field.
22324 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
22325 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
22326 * targhooks.c (default_mode_dependent_address_p): New function.
22327 * targhooks.h (default_mode_dependent_address_p): Declare function.
22328 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
22329 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
22330 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
22331 target hook. Change return type to bool.
22332 * recog.h (mode_dependent_address_p): Change return type to bool.
22334 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
22335 Nathan Froyd <froydnj@codesourcery.com>
22337 * tree-mudflap.c (build_function_type_0, build_function_type_1,
22338 build_function_type_2, build_function_type_3): Remove.
22339 (mudflap_init): Use build_function_type_list.
22341 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
22342 Nathan Froyd <froydnj@codesourcery.com>
22344 * coverage.c (build_fn_info_value): Call build_constructor instead of
22345 build_constructor_from_list.
22346 (build_ctr_info_value): Likewise.
22347 (build_gcov_info): Likewise.
22349 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
22351 * tree.c (build_constructor): Compute TREE_CONSTANT for the
22352 resultant constructor.
22353 (build_constructor_single): Don't set TREE_CONSTANT.
22354 (build_constructor_from_list): Don't compute TREE_CONSTANT.
22356 2010-05-12 Jan Hubicka <jh@suse.cz>
22358 * cgraph.h (struct varpool_node): Add aux.
22359 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
22360 * varpool.c (varpool_remove_node): Do not remove initializer.
22361 (varpool_reset_queue): Export.
22362 (varpool_finalize_decl): Volatile vars are forced to be output.
22363 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
22365 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
22366 process_references, varpool_can_remove_if_no_refs): New functions.
22367 (cgraph_remove_unreachable_nodes): Handle variables too.
22369 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
22372 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
22374 2010-05-12 Jakub Jelinek <jakub@redhat.com>
22376 PR middle-end/44085
22377 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
22378 change value of ORT_TASK.
22379 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
22380 (omp_notice_threadprivate_variable): New function.
22381 (omp_notice_variable): Call it for threadprivate variables.
22382 If enclosing ctx is a task, print enclosing task rather than
22383 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
22384 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
22385 if task has untied clause.
22388 * dwarf2out.c (base_type_die): Don't add name attribute here.
22389 (modified_type_die): Instead of sizetype use
22390 its underlying original type. If a DW_TAG_base_type doesn't
22391 have name added, add __unknown__.
22392 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
22393 always call force_type_die instead.
22395 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
22397 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
22398 for __stack_chk_guard.
22400 2010-05-11 Jakub Jelinek <jakub@redhat.com>
22402 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
22403 don't call start_source_file debug hook here...
22404 (finish_options): ... but here, after outputting predefined and
22405 command line defines and undefs.
22407 PR middle-end/44071
22408 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
22410 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
22411 optimizing away empty bb with no successors, move over its
22412 footer chain to fallthru predecessor.
22413 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
22414 (rtl_split_edge): For asm goto call patch_jump_insn even if
22415 splitting fallthru edge.
22418 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
22419 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
22420 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
22421 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
22425 * c-parser.c (c_parser_expression): Mark LHS of a comma
22426 expression as read if it is a decl, handled component or
22427 COMPOUND_EXPR with that on the RHS.
22428 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
22429 if it is a decl or handled component.
22431 2010-05-11 Jan Hubicka <jh@suse.cz>
22433 * lto-symtab.c (lto_symtab_free): New function.
22434 * lto-streamer.h (lto_symtab_free): Declare.
22436 2010-05-11 Jan Hubicka <jh@suse.cz>
22438 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
22439 that if function is needed it is reachable.
22440 (lto_output_node): See if it the function is reachable or referenced.
22441 (output_cgraph): Update call of lto_output_node.
22442 * lto-streamer.h (reachable_from_other_partition_p): Declare.
22444 2010-05-11 Jan Hubicka <jh@suse.cz>
22446 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
22449 2010-05-11 Jan Hubicka <jh@suse.cz>
22451 PR tree-optimize/44063
22452 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
22454 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
22456 (estimate_function_body_sizes): Compute sizes even when disregarding.
22458 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
22460 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
22462 2010-05-11 Jan Hubicka <jh@suse.cz>
22464 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
22465 into every boundary.
22467 2010-05-11 Jan Hubicka <jh@suse.cz>
22469 * matrix-reorg.c (matrix_reorg): Rebuild edges.
22471 2010-05-11 Jan Hubicka <jh@suse.cz>
22473 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
22474 lto_streamer_cache_delete): Put nodes into heap.
22475 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
22478 2010-05-11 Jan Hubicka <jh@suse.cz>
22480 * cgraphbuild.c (cgraph_rebuild_references): New.
22481 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
22482 out extern inlines.
22483 * cgraph.h (cgraph_rebuild_references): Declare.
22484 * tree-inline.c (tree_function_versioning): Use it.
22485 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
22487 2010-05-11 Jan Hubicka <jh@suse.cz>
22489 * cgraph.c: Include ipa-utils.h
22490 (cgraph_create_virtual_clone): Update references.
22491 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
22493 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
22495 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
22496 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
22499 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
22501 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
22503 2010-05-11 Jakub Jelinek <jakub@redhat.com>
22505 * gcc.c (execute): For -### don't quote arguments that
22506 contain just alphanumerics and _/-. characters.
22507 * doc/invoke.texi: Document that change for -###.
22510 * df-problems.c (struct dead_debug): Add to_rescan field.
22511 (dead_debug_init): Clear to_rescan field.
22512 (dead_debug_finish): Rescan all debug insns in to_rescan
22513 bitmap and free the bitmap.
22514 (dead_debug_insert_before): Instead of rescanning debug insns
22515 immediately queue their rescanning until dead_debug_finish.
22516 (df_note_bb_compute): After dead_debug_add do continue instead
22519 2010-05-10 Jakub Jelinek <jakub@redhat.com>
22522 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
22523 clear also INSN_REG_USE_LIST.
22525 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22527 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
22529 2010-05-10 Jan Hubicka <jh@suse.cz>
22531 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
22534 2010-05-10 Jan Hubicka <jh@suse.cz>
22536 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
22538 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
22539 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
22540 (lto_streamer_cache_create): Init alloc pool.
22541 (lto_streamer_cache_delete): Free alloc pool.
22542 * lto-streamer.h: Include alloc pool.
22543 (lto_streamer_cache_d): Use alloc pool.
22544 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
22546 2010-05-10 Jan Hubicka <jh@suse.cz>
22548 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
22549 * cgraphbuild.c: Include except.h
22550 (record_type_list, record_eh_tables): New function.
22551 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
22553 2010-05-10 Jan Hubicka <jh@suse.cz>
22555 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
22556 __frame_dummy_init_array_entry, force_to_data): Attribute as used
22557 rather than unused.
22559 2010-05-10 Michael Matz <matz@suse.de>
22561 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
22562 (can_reassociate_p): Use FLOAT_TYPE_P.
22563 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
22564 (vect_force_simple_reduction): ... this.
22565 * tree-parloops.c (gather_scalar_reductions): Use
22566 vect_force_simple_reduction.
22567 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
22568 vect_is_simple_reduction, add modify argument, if true rewrite
22569 "a-b" into "a+(-b)".
22570 (vect_is_simple_reduction, vect_force_simple_reduction): New
22572 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
22574 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
22575 Vladimir Makarov <vmakarov@redhat.com>
22577 PR rtl-optimization/44012
22578 * ira-build.c (remove_unnecessary_allocnos): Nullify
22579 regno_allocno_map of the removed allocno.
22581 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22583 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
22585 * configure: Regenerate.
22587 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22589 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
22591 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
22592 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
22594 * configure: Regenerate.
22596 2010-05-10 Richard Guenther <rguenther@suse.de>
22598 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
22599 marked if the entry identifier is marked.
22601 2010-05-10 Richard Guenther <rguenther@suse.de>
22603 * c-common.c (struct c_common_attributes): Add fnspec attribute.
22604 (handle_fnspec_attribute): New function.
22605 * gimple.h (gimple_call_return_flags): Declare.
22606 (gimple_call_arg_flags): Likewise.
22607 * gimple.c (gimple_call_arg_flags): New function.
22608 (gimple_call_return_flags): Likewise.
22609 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
22610 New argument flags.
22611 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
22612 return value flags.
22613 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
22614 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
22616 (make_heapvar_for): ... this new function.
22617 (handle_rhs_call): Handle fnspec attribute argument specifiers.
22618 (handle_lhs_call): Likewise.
22619 (find_func_aliases): Adjust.
22621 2010-05-10 Richard Guenther <rguenther@suse.de>
22623 PR tree-optimization/44050
22624 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
22626 2010-05-10 Wei Guozhi <carrot@google.com>
22629 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
22631 2010-05-09 Joseph Myers <joseph@codesourcery.com>
22634 * c-typeck.c (lookup_field): Take a type directly. Update
22636 (build_component_ref): Update call to lookup_field.
22637 (set_init_label): Use lookup_field to find initialized field.
22638 Handle returned list of fields like a sequence of designators.
22640 2010-05-09 Richard Guenther <rguenther@suse.de>
22642 PR middle-end/44024
22643 * fold-const.c (tree_single_nonzero_warnv_p): Properly
22644 handle &FUNCTION_DECL.
22646 2010-05-09 Joseph Myers <joseph@codesourcery.com>
22649 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
22650 structures and unions recursively.
22651 (detect_field_duplicates): Move duplicate detection with a hash to
22652 detect_field_duplicates_hash. Always use a hash if anonymous
22653 structures or unions are present.
22654 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
22657 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
22660 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
22661 detect Atom, Core 2 and Core i7.
22663 2010-05-09 Richard Guenther <rguenther@suse.de>
22665 * gcc.c (store_arg): Handle temporary file deletion for
22668 2010-05-09 Richard Guenther <rguenther@suse.de>
22670 PR middle-end/44043
22671 * ipa-inline.c (estimate_function_body_sizes): Return after
22672 disregarding inline limits.
22674 2010-05-09 Richard Guenther <rguenther@suse.de>
22676 * gcc.c (store_arg): Revert last change.
22678 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
22680 PR middle-end/28685
22681 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
22682 (optimize_ops_list): Call it.
22684 2010-05-08 Richard Guenther <rguenther@suse.de>
22686 PR tree-optimization/44030
22687 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
22688 NECESSARY flag if we propagate from a inserted expression.
22690 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
22692 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
22693 domain types as equal if they are both PLACEHOLDER_EXPRs.
22695 2010-05-08 Richard Guenther <rguenther@suse.de>
22697 * lto-wrapper.c (run_gcc): Remove linker output from
22698 command line for LTRANS invocation.
22700 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
22702 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
22703 lto-macho as lto_binary_reader.
22704 * target.h (struct gcc_target): New hooks lto_start and lto_end.
22705 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
22706 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
22707 in lto_start and lto_end calls.
22708 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
22710 (scan_prog_file): Update is_elf_or_coff call.
22711 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
22713 * collect2.c (main): Fix enum comparison.
22715 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
22717 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
22718 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
22719 and TARGET_ASM_LTO_END.
22720 * darwin.c: Include obstack.h and lto-streamer.h.
22721 (lto_section_names_offset, lto_section_names_obstack,
22722 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
22724 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
22725 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
22726 to a temporary file.
22727 (darwin_asm_lto_end): New function. Restore asm_out_file.
22728 (darwin_asm_named_section): For LTO sections, replace the name with
22729 the offset of the section name in a string table, and build this
22731 (darwin_file_start): Initialize global vars for LTO support.
22732 (darwin_file_end): If output to asm_out_file was redirected, append it
22733 to the proper asm_out_file here. Add the section names section.
22735 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
22737 * c-pragma.c (pending_weak_d, pending_weak): New.
22738 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
22739 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
22740 handle_pragma_weak): Update the uses of pending_weaks.
22742 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22744 PR documentation/44016
22745 * doc/standards.texi (Standards): Link to unversioned
22746 cxx0x_status.html page.
22748 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
22751 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
22752 in addition to TREE_USED, to avoid "set but unused" warnings.
22754 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
22756 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
22757 (is_loop_prefetching_profitable): Do not insert prefetches
22758 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
22759 times the prefetch ahead distance.
22761 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
22763 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
22764 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
22765 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
22768 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
22770 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
22771 a diagnostic info when the insn-to-mem ratio is too small.
22773 2010-05-07 Richard Guenther <rguenther@suse.de>
22775 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
22777 (store_arg): Queue temp_filename for deletion instead of
22778 the whole argument.
22780 2010-05-07 Richard Guenther <rguenther@suse.de>
22782 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
22783 (run_gcc): Handle LTRANS phase invocation.
22784 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
22786 2010-05-07 Jakub Jelinek <jakub@redhat.com>
22788 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
22789 this is also meaningful on PARM_DECLs and RESULT_DECLs.
22791 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22793 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
22795 2010-05-07 Richard Guenther <rguenther@suse.de>
22797 PR tree-optimization/44020
22798 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
22799 code when PRE is not yet initialized.
22801 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22803 * config/mips/dbxmdebug.h: Remove.
22804 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
22806 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
22808 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
22809 with null pointer and also warn about ordered comparison of zero with
22810 pointer if -Wextra.
22812 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
22814 * graphite-blocking.c
22815 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
22816 * graphite-clast-to-gimple.c
22817 (clast_to_gcc_expression): Same.
22818 (precision_for_value): Same.
22819 (precision_for_interval): Same.
22820 (gcc_type_for_interval): Same.
22821 (graphite_create_new_guard): Same.
22822 (compute_bounds_for_level): Same.
22823 (graphite_create_new_loop_guard): Same.
22824 * graphite-interchange.c
22825 (build_linearized_memory_access): Same.
22826 (pdr_stride_in_loop): Same.
22827 (memory_strides_in_loop_1): Same.
22828 (memory_strides_in_loop): Same.
22829 (extend_scattering): Same.
22830 (psct_scattering_dim_for_loop_depth): Same.
22831 (pbb_number_of_iterations): Same.
22833 (debug_iteration_domains): Same.
22835 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
22836 (ppl_set_inhomogeneous_gmp): Same.
22837 (ppl_strip_loop): Same.
22838 (ppl_lexico_compare_linear_expressions): Same.
22839 (ppl_read_polyhedron_matrix): Same.
22840 (ppl_max_for_le_pointset): Same.
22842 (ppl_read_polyhedron_matrix): Same.
22843 (tree_int_to_gmp): Same.
22844 (gmp_cst_to_tree): Same.
22845 (ppl_set_inhomogeneous): Same.
22846 (ppl_set_inhomogeneous_tree): Same.
22847 (ppl_set_coef): Same.
22848 (ppl_set_coef_tree): Same.
22849 * graphite-sese-to-poly.c
22850 (build_pbb_scattering_polyhedrons): Same.
22851 (build_scop_scattering): Same.
22852 (scan_tree_for_params_right_scev): Same.
22853 (scan_tree_for_params): Same.
22854 (find_params_in_bb): Same.
22855 (find_scop_parameters): Same.
22856 (add_upper_bounds_from_estimated_nit): Same.
22857 (build_loop_iteration_domains): Same.
22858 (add_condition_to_domain): Same.
22859 (pdr_add_memory_accesses): Same.
22861 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
22863 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
22864 CLooG's value_* macros to their respective mpz_* counterparts.
22865 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
22866 (graphite_create_new_loop_guard): Same.
22867 * graphite-interchange.c (build_linearized_memory_access): Same.
22868 (pdr_stride_in_loop): Same.
22869 (memory_strides_in_loop_1): Same.
22870 (1st_interchange_profitable_p): Same.
22871 * graphite-poly.c (extend_scattering): Same.
22872 (psct_scattering_dim_for_loop_depth): Same.
22873 (pbb_number_of_iterations): Same.
22874 (pbb_number_of_iterations_at_time): Same.
22875 * graphite-poly.h (new_1st_loop): Same.
22876 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
22877 (oppose_constraint): Same.
22878 (insert_constraint_into_matrix): Same.
22879 (ppl_set_inhomogeneous_gmp): Same.
22880 (ppl_set_coef_gmp): Same.
22881 (ppl_strip_loop): Same.
22882 (ppl_lexico_compare_linear_expressions): Same.
22883 (ppl_max_for_le_pointset): Same.
22884 (ppl_min_for_le_pointset): Same.
22885 (ppl_build_realtion): Same.
22886 * graphite-ppl.h (gmp_cst_to_tree): Same.
22887 (ppl_set_inhomogeneous): Same.
22888 (ppl_set_inhomogeneous_tree): Same.
22889 (ppl_set_coef): Same.
22890 (ppl_set_coef_tree): Same.
22891 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
22892 (build_scop_scattering): Same.
22893 (add_value_to_dim): Same.
22894 (scan_tree_for_params_right_scev): Same.
22895 (scan_tree_for_params_int): Same.
22896 (scan_tree_for_params): Same.
22897 (find_params_in_bb): Same.
22898 (find_scop_parameters): Same.
22899 (add_upper_bounds_from_estimated_nit): Same.
22900 (build_loop_iteration_domains): Same.
22901 (create_linear_expr_from_tree): Same.
22902 (add_condition_to_domain): Same.
22903 (pdr_add_memory_accesses): Same.
22905 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
22906 Jason Merrill <jason@redhat.com>
22908 * c-common.c (c_common_reswords): Add nullptr.
22909 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
22910 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
22911 (gen_type_die_with_usage): Likewise.
22912 * dbxout.c (dbxout_type): Likewise.
22913 * sdbout.c (plain_type_1): Likewise.
22915 2010-05-06 Jason Merrill <jason@redhat.com>
22917 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
22918 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
22920 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
22922 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
22923 stripping WITH_SIZE_EXPR.
22924 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
22927 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22929 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
22930 list of obsolete configurations.
22931 Disabled check for obsolete configurations.
22932 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
22933 Removed support for previous versions.
22934 * config/mips/iris.h: Removed.
22935 * config/mips/iris5.h: Removed.
22936 * config/mips/iris6.h: Merged old iris.h contents.
22937 (TARGET_IRIX): Removed.
22938 (DRIVER_SELF_SPECS): Removed mabi=32.
22939 (IDENT_ASM_OP): Removed undef.
22940 (STARTFILE_SPEC): Removed mabi=32.
22941 (ENDFILE_SPEC): Likewise.
22942 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
22943 (MACHINE_TYPE): Update for IRIX 6.5.
22944 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
22945 TARGET_IRIX by TARGET_IRIX6.
22946 (mips_file_start): Likewise.
22947 (mips_output_external): Remove IRIX 5/6 O32 support.
22948 (mips_output_function_prologue): Likewise.
22949 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
22951 (TARGET_CPU_CPP_BUILTINS): Likewise.
22952 (TARGET_IRIX): Removed.
22953 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
22954 (MULTILIB_DIRNAMES): Removed 32.
22955 (MULTILIB_OSDIRNAMES): Removed ../lib.
22956 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
22957 (Specific, mips-sgi-irix5): Document removal.
22958 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
22959 Remove references to older IRIX 6 releases and the O32 ABI.
22961 2010-05-06 Jakub Jelinek <jakub@redhat.com>
22964 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
22965 instead of DF_REF_REAL_REG.
22967 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
22970 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
22971 handling to still return true for x64 targets.
22973 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
22975 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
22977 2010-05-06 Jan Hubicka <jh@suse.cz>
22979 PR tree-optimization/43791
22980 * ipa-inline.c (update_caller_keys): Remove bogus
22981 disregard_inline_limits check.
22983 2010-05-06 Michael Matz <matz@suse.de>
22985 PR tree-optimization/43984
22986 * tree-ssa-pre.c (inserted_phi_names): Remove.
22987 (inserted_exprs): Change to bitmap.
22988 (create_expression_by_pieces): Set bits, don't append to vector.
22989 (insert_into_preds_of_block): Don't handle inserted_phi_names.
22990 (eliminate): Don't look at inserted_phi_names, remove deleted
22991 insns from inserted_exprs.
22992 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
22993 (init_pre, fini_pre): Allocate and free bitmaps.
22994 (execute_pre): Insert insns on edges before elimination.
22996 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
22998 * tree.c (initializer_zerop): Handle STRING_CST.
23000 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
23003 * doc/invoke.texi (Wimplicit): Document as C only.
23004 * opts.c (common_handle_option): Add argument kind.
23005 (handle_option): Rename as read_cmdline_option. Factor out code to...
23006 (handle_option): ... here. New.
23007 (handle_options): Rename as read_cmdline_options.
23008 (decode_options): Update call.
23009 (set_option): Use option index instead of option pointer. Classify
23010 diagnostics correctly.
23011 (enable_warning_as_error): Call handle_option.
23012 * opts.h (set_option): Update declaration.
23013 (handle_option): Declare.
23014 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
23015 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
23016 * c-opts.c (set_Wimplicit): Delete.
23017 (c_family_lang_mask): New static constant.
23018 (c_common_handle_option): Add argument kind. Use handle_option
23019 instead of set_Wimplicit.
23020 (c_common_post_options): warn_implicit and warn_implicit_int
23021 are disabled by default.
23022 * c-common.c (warn_implicit): Do not define here.
23023 * c-common.h (warn_implicit): Do not declare here.
23024 (c_common_handle_option): Update declaration.
23025 * lto-opts.c (lto_reissue_options): Update call to set_option.
23027 2010-05-06 Richard Guenther <rguenther@suse.de>
23029 PR tree-optimization/43571
23030 * domwalk.c (walk_dominator_tree): Walk the dominator
23031 sons in more optimal order.
23033 2010-05-06 Richard Guenther <rguenther@suse.de>
23035 PR tree-optimization/43934
23036 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
23037 (stmt_cost): Likewise.
23038 (extract_true_false_args_from_phi): New helper.
23039 (determine_max_movement): For PHI nodes verify we can hoist them
23040 and compute their cost.
23041 (determine_invariantness_stmt): Handle PHI nodes.
23042 (move_computations_stmt): Likewise. Hoist PHI nodes in
23043 if-converted form using COND_EXPRs.
23044 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
23045 (tree_ssa_lim): Likewise.
23046 * tree-flow.h (tree_ssa_lim): Adjust prototype.
23047 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
23049 2010-05-06 Richard Guenther <rguenther@suse.de>
23051 PR tree-optimization/43987
23052 * tree-ssa-structalias.c (could_have_pointers): For possibly
23053 address-taken variables force pointers to be recorded.
23054 (create_variable_info_for_1): Likewise.
23055 (push_fields_onto_fieldstack): Pass in wheter all fields
23056 must have pointers.
23057 (find_func_aliases): Query types instead of vars whether
23058 they contain pointers where appropriate.
23060 2010-05-06 Jan Hubicka <jh@suse.cz>
23062 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
23063 (record_reference, mark_address, mark_load, mark_store): Record
23065 (record_references_in_initializer): Update call of record_references.
23066 (rebuild_cgraph_edges): Remove all references before rebuiding.
23067 * cgraph.c (cgraph_create_node): Clear ref list.
23068 (cgraph_remove_node): Remove references.
23069 (dump_cgraph_node): Dump references.
23070 (cgraph_clone_node): Clone references.
23071 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
23072 (struct cgraph_node, varpool_node): Add ref_lst.
23073 * ipa-ref.c: New file.
23074 * ipa-ref.h: New file.
23075 * ipa-ref-inline.h: New file.
23076 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
23077 (referenced_from_other_partition_p): New function.
23078 (lto_output_varpool_node): Take set arugment; call
23079 referenced_from_other_partition.
23080 (lto_output_ref): New.
23081 (add_references): New.
23082 (output_refs): New.
23083 (output_cgraph): Compute boundary based on references; output refs.
23084 (output_varpool): Accept cgraph_node_set argument.
23087 (input_cgraph): Call input_refs.
23088 * lto-section-in.c (lto_section_name): Add refs.
23089 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
23090 (ipa-ref.o): New file.
23091 * varpool.c (varpool_node): Clear ipa ref list.
23092 (varpool_remove_node): Remove references.
23093 (dump_varpool_node): Dump references.
23094 (varpool_assemble_decl): Only compile finalized ones.
23095 (varpool_extra_name_alias): Initialize ref list.
23096 * lto-streamer.c (lto-get_section_name): Add .refs section.
23097 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
23098 (referenced_from_other_partition_p): Declared.
23100 2010-05-06 Ira Rosen <irar@il.ibm.com>
23102 PR tree-optimization/43901
23103 * tree-vect-stmts.c (vectorizable_call): Assert that vector
23104 type is not NULL if it's transformation phase, and return
23105 FALSE if it's analysis.
23106 (vectorizable_conversion, vectorizable_operation,
23107 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
23109 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
23111 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
23113 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
23115 * config/mips/mips-protos.h
23116 (mips_small_register_classes_for_mode_p): Delete prototype.
23118 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
23120 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
23121 * config/arm/arm.c (multiple_operation_profitable_p,
23122 compute_offset_order): New static functions.
23123 (load_multiple_sequence, store_multiple_sequence): Use them.
23124 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
23125 memory offsets, not register numbers.
23126 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
23128 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
23130 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
23131 (get_pending_sizes, put_pending_size, put_pending_sizes):
23132 Update the uses of pending_sizes.
23133 * c-decl.c (store_parm_decls): Likewise.
23134 * c-tree.h (struct c_arg_info): Likewise.
23135 * tree.h: Update the prototype for get_pending_sizes and
23138 2010-05-05 Jason Merrill <jason@redhat.com>
23141 * c-common.c (handle_aligned_attribute): Respect
23142 ATTR_FLAG_TYPE_IN_PLACE.
23145 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
23146 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
23147 (TARGET_INITIALIZER): Use it.
23148 * c-common.c (attribute_takes_identifier_p): Call it.
23149 * c-common.h: Update prototype.
23150 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
23151 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
23153 2010-05-05 Jakub Jelinek <jakub@redhat.com>
23156 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
23157 DW_ID_down_case for Fortran compilation units.
23159 2010-05-05 Jan Hubicka <jh@suse.cz>
23161 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
23164 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
23166 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
23167 a variable-sized RESULT_DECL.
23169 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
23171 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
23173 2010-05-05 Jason Merrill <jason@redhat.com>
23176 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
23178 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
23180 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
23181 Jakub Jelinek <jakub@redhat.com>
23184 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
23185 (dead_debug_init, dead_debug_finish): New functions.
23186 (dead_debug_add, dead_debug_insert_before): Likewise.
23187 (df_note_bb_compute): Initialize a dead_debug object, add dead
23188 debug uses to it, insert debug bind insns before death insns,
23189 reset debug insns that refer to pending uses at the end.
23190 * rtl.h (make_debug_expr_from_rtl): New prototype.
23191 * varasm.c (make_debug_expr_from_rtl): New function.
23193 2010-05-05 Jan Hubicka <jh@suse.cz>
23195 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
23196 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
23197 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
23198 lto_varpool_encoder_deref, lto_varpool_encoder_size,
23199 lto_varpool_encoder_encode_initializer_p,
23200 lto_set_varpool_encoder_encode_initializer): New functions.
23201 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
23202 call output_varpool.
23203 (input_varpool_node): Do not always set analyzed.
23204 (input_cgraph_1): Return vector of cgraph nodes.
23205 (input_varpool_1): Return vector of varpools.
23206 (input_cgraph): Free the vectors.
23207 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23208 output only initializers needed.
23209 (lto_output): Only call output_cgraph.
23210 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
23211 * lto-section-out.c (lto_new_out_decl_state): Initialize
23212 state->varpool_node_encoder.
23213 * lto-streamer.h (lto_varpool_encoder_d): New.
23214 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
23215 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
23216 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
23217 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
23218 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
23220 (output_varpool, input_varpool): Remove declarations.
23222 2010-05-05 Jan Hubicka <jh@suse.cz>
23224 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
23225 with body can prevail.
23227 2010-05-05 Jan Hubicka <jh@suse.cz>
23229 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
23232 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23234 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
23236 * gengtype.h (erro_at_line): Constify pos argument.
23238 * gengtype.c: Include hashtab.h.
23239 (enum gc_used): Document GC_MAYBE_POINTED_TO.
23240 (error_at_line): Constify pos argument.
23241 (do_typedef): Initialize p->opt field.
23242 (get_file_gtfilename): Fix comment typo.
23243 (struct walk_type_data): Constify line field.
23244 (get_output_file_for_structure): New function.
23245 (write_local_func_for_structure): Constify orig_s argument.
23246 Use get_output_file_for_structure.
23247 (write_func_for_structure): Use get_output_file_for_structure.
23248 (INDENT): New define.
23249 (dump_pair, dump_type, dump_type_list, dump_typekind)
23250 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
23251 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
23253 (seen_types): New variable.
23254 (main): New variable do_dump. Process "-d" command line option.
23255 Call dump_everything if dump requested.
23257 2010-05-05 Jakub Jelinek <jakub@redhat.com>
23259 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
23260 in a temporary instead of invoking the macro multiple times.
23261 (track_expr_p): Likewise.
23263 2010-05-04 Neil Vachharajani <nvachhar@google.com>
23265 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
23267 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
23268 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
23269 conditions for printing notes.
23270 * common.opt (-Wcoverage-mismatch): Allow negative, default to
23271 true, update documentation.
23272 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
23274 2010-05-04 Jakub Jelinek <jakub@redhat.com>
23277 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
23280 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
23283 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
23284 (*sse_prologue_save_insn1): Likewise.
23285 (SSE prologue save splitter): Likewise.
23287 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
23289 * tree.c (free_lang_data_in_one_sizepos): New inline function.
23290 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
23291 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
23292 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
23293 all decls. Call it on DECL_FIELD_OFFSET of fields.
23294 (find_decls_types_r): Follow DECL_VALUE_EXPR.
23295 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
23297 2010-05-04 Martin Jambor <mjambor@suse.cz>
23299 * tree-sra.c (build_access_from_expr_1): The first parameter type
23300 changed to simple tree.
23301 (build_access_from_expr): Likewise, gsi parameter was eliminated.
23302 (scan_assign_result): Renamed to assignment_mod_result, enum elements
23304 (build_accesses_from_assign): Removed all parameters except for a
23305 simple gimple statement. Now returns a simple bool.
23306 (scan_function): All non-analysis parts moved to separate functions
23307 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
23308 parameters and updated both callers.
23309 (sra_modify_expr): Removed parameter data.
23310 (sra_modify_function_body): New function.
23311 (perform_intra_sra): Call sra_modify_function_body to modify the
23313 (replace_removed_params_ssa_names): Parameter data changed into
23314 adjustments vector.
23315 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
23316 changed the parameter dont_convert to convert with the opposite
23318 (sra_ipa_modify_assign): Parameter data changed into adjustments
23319 vector, return value changed to bool.
23320 (ipa_sra_modify_function_body): New function.
23321 (sra_ipa_reset_debug_stmts): Updated a comment.
23322 (modify_function): Use ipa_sra_modify_function_body to modify function
23325 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
23327 PR middle-end/43671
23328 * alias.c (true_dependence): Handle the same VALUE in x and mem.
23329 (canon_true_dependence): Likewise.
23330 (write_dependence_p): Likewise.
23332 2010-05-04 Jan Hubicka <jh@suse.cz>
23334 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
23335 * cgraphbuild.c: Include ipa-utils.h
23336 (record_reference_ctx): New struct.
23337 (record_reference): Simplify to work on initializers; not statements.
23338 (mark_address, mark_load, mark_store): New.
23339 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
23340 walk PHI nodes too.
23341 (record_references_in_initializer): Update use of record_reference.
23342 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
23343 walk PHI nodes too.
23345 2010-05-04 Jan Hubicka <jh@suse.cz>
23347 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
23348 node will be removed anyway.
23349 (lto_varpool_replace_node): Allow also unanalyzed nodes;
23350 relink aliases of node into prevailing node.
23351 * varpool.c (varpool_remove_node): Remove aliases properly;
23352 when removing node, remove all its aliases too; remove DECL_INITIAL
23353 of removed node; ggc_free the varpool node.
23355 2010-05-04 Richard Guenther <rguenther@suse.de>
23357 PR tree-optimization/43879
23358 * tree-ssa-structalias.c (alias_get_name): Use
23359 DECL_ASSEMBLER_NAME if available.
23360 (create_function_info_for): Return the varinfo node.
23361 (ipa_pta_execute): Associate same-body aliases and extra names
23362 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
23364 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
23366 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
23368 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
23371 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
23372 only if HONOR_REG_ALLOC_ORDER is not defined.
23374 2010-05-04 Richard Guenther <rguenther@suse.de>
23376 PR tree-optimization/43949
23377 * tree-vrp.c (extract_range_from_binary_expr): Only handle
23380 2010-04-26 Jason Merrill <jason@redhat.com>
23382 * c.opt (-fstrict-enums): New.
23383 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
23385 2010-05-03 David Ung <davidu@mips.com>
23386 James E. Wilson <wilson@codesourcery.com>
23388 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
23389 emit the trap instruction before the divide for TUNE_74K.
23391 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
23393 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
23394 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
23395 based on the above, for new target hook.
23397 * hooks.c (hook_bool_mode_true): New generic hook.
23398 * hooks.h (hook_bool_mode_true): Add prototype.
23400 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
23402 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
23403 target hook, set to hook_bool_mode_false.
23404 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
23405 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
23406 with targetm.small_register_classes_for_mode_p.
23407 (find_reusable_reload): Likewise.
23408 (combine_reloads): Likewise.
23409 * reload1.c (reload_as_needed): Likewise.
23410 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
23411 * ifcvt.c (noce_process_if_block, check_cond_move_block,
23412 dead_or_predicable): Likewise.
23413 * regmove.c (optimize_reg_copy_1): Likewise.
23414 * calls.c (prepare_call_address): Likewise.
23415 (precompute_register_parameters): Likewise.
23417 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
23419 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
23420 implementation of the hook that considers all register classes
23421 small except for SH64.
23422 (sh_override_options): Use the new hook.
23423 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
23426 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
23428 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
23429 implementation of the hook that considers all register classes
23431 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
23434 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
23436 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
23437 implementation of the hook that considers all register classes
23439 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
23442 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
23444 * config/m32c/m32c.h: Likewise.
23445 * config/pdp11/pdp11.h: Likewise.
23446 * config/avr/avr.h: Likewise.
23447 * config/xtensa/xtensa.h: Likewise.
23448 * config/m68hc11/m68hc11.h: Likewise.
23449 * config/mn10300/mn10300.h: Likewise.
23450 * config/mcore/mcore.h: Likewise.
23451 * config/h8300/h8300.h: Likewise.
23452 * config/bfin/bfin.h: Likewise.
23454 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
23455 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
23457 2010-05-03 Anatoly Sokolov <aesok@post.ru>
23459 * double-int.h (tree_to_double_int): Remove macro.
23460 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
23461 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
23462 (tree_to_double_int): New function.
23463 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
23465 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
23467 2010-05-03 Richard Guenther <rguenther@suse.de>
23469 PR tree-optimization/43971
23470 * tree-ssa-structalias.c (get_constraint_for_1): Fix
23471 constraints in the !flag_delete_null_pointer_checks case.
23473 2010-05-03 Jakub Jelinek <jakub@redhat.com>
23476 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
23477 result mode matches original rtl mode.
23479 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
23482 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
23484 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23486 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
23487 when processing flag options.
23489 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23491 * gcov-iov.c (main): Change format string placeholder
23492 from %#08x to 0x%08x.
23493 * genchecksum.c (dosum): Change format string placeholder
23494 from %#02x to 0x%02x.
23496 2010-05-02 Richard Guenther <rguenther@suse.de>
23498 PR tree-optimization/43879
23499 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
23501 2010-05-02 Bruno Haible <bruno@clisp.org>
23503 * doc/extend.texi (Function Attributes): Fix a typo.
23505 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23508 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
23509 placeholder from 0x%x to %#x.
23510 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
23511 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
23512 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
23513 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
23514 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
23515 * config/i386/i386.c (ix86_target_string): Ditto.
23516 * config/i386/i386.c (output_pic_addr_const): Ditto.
23517 (print_operand): Ditto.
23519 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
23521 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
23522 placeholder from 0x%x to %#x.
23523 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
23524 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
23525 (ASM_OUTPUT_DEBUG_DATA): Ditto.
23526 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
23527 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
23528 * optc-gen.awk: Ditto.
23529 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
23530 (HOST_WIDE_INT_PRINT_HEX): Ditto.
23531 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
23532 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
23534 2010-05-01 Anatoly Sokolov <aesok@post.ru>
23536 * target.h (struct calls): Add function_value_regno_p field.
23537 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
23538 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
23539 * targhooks.c (default_function_value_regno_p): New function.
23540 * targhooks.h (default_function_value_regno_p): Declare function.
23541 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
23542 * builtins.c. (apply_result_size): (Ditto.).
23543 * combine.c. (likely_spilled_retval_p): (Ditto.).
23544 * mode-switching.c. Include 'target.h'.
23545 (create_pre_exit): Use function_value_regno_p hook.
23546 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
23547 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
23548 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
23550 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
23551 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
23552 (ix86_function_value_regno_p): Declare as static, change argument
23553 type to const unsigned int.
23554 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
23556 2010-05-01 Richard Guenther <rguenther@suse.de>
23558 PR tree-optimization/43949
23559 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
23561 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
23563 2010-05-01 Anatoly Sokolov <aesok@post.ru>
23565 * rtl.h (CONST_DOUBLE_P): Define.
23566 (rtx_to_double_int): Declare.
23567 * emit-rtl.c (rtx_to_double_int): New function.
23568 * dwarf2out.c (insert_double): New function.
23569 (loc_descriptor, add_const_value_attribute): Clean up, use
23570 rtx_to_double_int and insert_double functions.
23572 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
23574 * doc/extend.texi (Inline): Add missing return keyword to examples.
23575 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
23578 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
23580 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
23581 the variable part of the offset as well. Use highest_pow2_factor for
23582 all alignment checks.
23584 2010-04-30 Richard Guenther <rguenther@suse.de>
23586 PR tree-optimization/43879
23587 * tree-ssa-structalias.c (type_could_have_pointers): Functions
23590 2010-04-30 Jan Hubicka <jh@suse.cz>
23592 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
23594 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
23596 2010-04-30 Jan Hubicka <jh@suse.cz>
23598 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
23600 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
23601 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
23602 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
23603 cgraph_node_set_needs_ltrans_p): Remove.
23605 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
23607 * sdbout.c: Include vec.h, do not include varray.h.
23608 (deferred_global_decls, sdbout_global_decl,
23609 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
23610 * toplev.c: Do not include varray.h.
23611 (dump_memory_report): Do not dump VARRAY statistics.
23612 * gengtype.c (open_base_file): Ignore varray.h.
23613 * Makefile.in: Update for abovementioned changes.
23614 Remove all traces of varray.c and varray.h.
23615 * varray.c: Remove file.
23616 * varray.h: Remove file.
23618 2010-04-30 Jan Hubicka <jh@suse.cz>
23620 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
23623 2010-04-30 Jan Hubicka <jh@suse.cz>
23625 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
23628 2010-04-30 Richard Guenther <rguenther@suse.de>
23630 * tree-ssa-structalias.c (get_constraint_for_1): Generate
23631 constraints for CONSTRUCTOR.
23633 2010-04-30 Richard Guenther <rguenther@suse.de>
23636 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
23637 first after all lowering passes.
23639 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
23641 * toplev.c: Include varray.h for statistics dumping.
23642 * tree.h: Do not declare varray_head_tag.
23643 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
23644 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
23645 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
23646 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
23647 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
23648 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
23649 c-common.c, c-common.h, reg-stack.c, basic-block.h,
23650 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
23652 * Makefile.in: Update for abovementioned changes.
23654 2010-04-30 Jakub Jelinek <jakub@redhat.com>
23657 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
23659 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
23661 * config/picochip/picochip.c (picochip_legitimize_address): Define.
23662 Use this function to do machine-specific conversion.
23663 (picochip_legitimize_reload_address): Likewise.
23664 (picochip_legitimate_address_p): Check valid base register only if
23666 (picochip_check_conditional_copy): Check for modw only if opnd is
23668 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
23669 to call the function in c.
23670 * config/picochip/picochip-protos.h
23671 (picochip_legitimize_reload_address): Define.
23672 * config/picochip/picochip.md (supported_compare1): Define.
23674 2010-04-30 Jan Hubicka <jh@suse.cz>
23676 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
23677 (cgraph_global_info): Remove inlined.
23678 (LTO_cgraph_tag_names): Remove.
23679 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
23680 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
23681 simplify cgraph tags and document.
23682 (lto_output_node): Use only LTO_cgraph_unavail_node and
23683 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
23684 for_functions_valid, global info, process and output flags.
23685 (input_overwrite_node): Initialize estimated stack size and
23686 estimated growth. Do not read flags we no longer store.
23687 (input_node): Likewise do not read info no longer stored.
23688 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
23691 2010-04-30 Richard Guenther <rguenther@suse.de>
23693 PR tree-optimization/43879
23694 * tree-ssa-structalias.c (get_constraint_for_1): Properly
23695 handle non-zero initializers.
23697 2010-04-30 Richard Guenther <rguenther@suse.de>
23699 * builtins.c (fold_builtin_1): Delete free (0).
23701 2010-04-29 Jan Hubicka <jh@suse.cz>
23703 * gengtype.c (open_base_files): Add lto-streamer.h
23704 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
23705 (pass_ipa_cp): GGC collect.
23706 * toplev. (compile_file): Do not output symbols.
23707 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
23708 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
23709 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
23710 * lto-section-in.c: Include ggc.h
23711 (lto_new_in_decl_state): Alloc in GGC.
23712 (lto_delete_in_decl_state): Likewise.
23713 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
23716 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
23719 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
23720 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
23721 (HONOR_REG_ALLOC_ORDER): Describe new macro.
23722 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
23723 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
23724 account only if HONOR_REG_ALLOC_ORDER is not defined.
23725 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
23726 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
23728 2010-04-29 Jon Grant <04@jguk.org>
23730 * collect2.c (vflag): Change type from int to bool.
23732 (helpflag): New global bool.
23733 (main): Set vflag and debug with boolean, not integer truth values.
23734 Accept new "--help" option and output usage text if found.
23735 * collect2.h (vflag): Update prototype.
23738 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
23741 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
23743 2010-04-29 Richard Guenther <rguenther@suse.de>
23746 * plugin.h (invoke_plugin_callbacks): Annotate arguments
23747 with ATTRIBUTE_UNUSED.
23749 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
23752 * config/i386/i386.c (get_some_local_dynamic_name): Replace
23753 INSN_P with NONDEBUG_INSN_P.
23754 (distance_non_agu_define): Likewise.
23755 (distance_agu_use): Likewise.
23757 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
23759 From Dominique d'Humieres <dominiq@lps.ens.fr>
23761 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
23764 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
23766 * plugin.h (invoke_plugin_callbacks): New inline function.
23767 * plugin.c (flag_plugin_added): New global flag.
23768 (add_new_plugin): Initialize above flag.
23769 (invoke_plugin_callbacks): Rename to ...
23770 (invoke_plugin_callbacks_full): ... this.
23772 2010-04-28 Jan Hubicka <jh@suse.cz>
23774 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
23775 (lto_varpool_replace_node): New.
23776 (lto_symtab_resolve_symbols): Resolve varpool nodes.
23777 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
23778 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
23779 * cgraph.h (varpool_node_ptr): New type.
23780 (varpool_node_ptr): New vector.
23781 (varpool_node_set_def): New structure.
23782 (varpool_node_set): New type.
23783 (varpool_node_set): New vector.
23784 (varpool_node_set_element_def): New structure.
23785 (varpool_node_set_element, const_varpool_node_set_element): New types.
23786 (varpool_node_set_iterator): New type.
23787 (varpool_node): Add prev pointers, add used_from_other_partition,
23788 in_other_partition.
23789 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
23790 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
23791 varpool_get_node, varpool_remove_node): Declare.
23792 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
23793 varpool_node_set_size): New inlines.
23794 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
23795 * tree-pass.h (varpool_node_set_def): Forward declare.
23796 (ipa_opt_pass_d): Summary writting takes vnode sets too.
23797 (ipa_write_optimization_summaries): Update prototype.
23798 * ipa-cp.c (ipcp_write_summary): Update.
23799 * ipa-reference.c (ipa_reference_write_summary): Update.
23800 * lto-cgraph.c (lto_output_varpool_node): New static function.
23801 (output_varpool): New function.
23802 (input_varpool_node): New static function.
23803 (input_varpool_1): New function.
23804 (input_cgraph): Input varpool.
23805 * ipa-pure-const.c (pure_const_write_summary): Update.
23806 * lto-streamer-out.c (lto_output): Update, output varpool too.
23807 (write_global_stream): Kill WPA hack.
23808 (produce_asm_for_decls): Update.
23809 (output_alias_pair_p): Handle variables.
23810 (output_unreferenced_globals): Output only needed partition of varpool.
23811 * ipa-inline.c (inline_write_summary): Update.
23812 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
23814 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
23815 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
23816 varpool_node_set_new, varpool_node_set_add,
23817 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
23818 debug_varpool_node_set): New functions.
23819 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
23820 (execute_one_pass): Process new decls too.
23821 (ipa_write_summaries_2): Pass around vsets.
23822 (ipa_write_summaries_1): Likewise.
23823 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
23825 (ipa_write_optimization_summaries_1): Pass around vsets.
23826 (ipa_write_optimization_summaries): Likewise.
23827 * varpool.c (varpool_get_node): New.
23828 (varpool_node): Update doubly linked lists.
23829 (varpool_remove_node): New.
23830 (dump_varpool_node): More dumping.
23831 (varpool_enqueue_needed_node): Update doubly linked lists.
23832 (decide_is_variable_needed): Kill ltrans hack.
23833 (varpool_finalize_decl): Kill lto hack.
23834 (varpool_assemble_decl): Skip decls in other partitions.
23835 (varpool_assemble_pending_decls): Update doubly linkes lists.
23836 (varpool_empty_needed_queue): Likewise.
23837 (varpool_extra_name_alias): Likewise.
23838 * lto-streamer.c (lto_get_section_name): Add vars section.
23839 * lto-streamer.h (lto_section_type): Update.
23840 (output_varpool, input_varpool): Declare.
23842 2010-04-28 Mike Stump <mikestump@comcast.net>
23844 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
23846 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
23848 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
23849 record or union type with RECORD_OR_UNION_TYPE_P predicate.
23850 (lto_input_ts_type_tree_pointers): Likewise.
23851 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
23852 (lto_output_ts_type_tree_pointers): Likewise.
23854 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
23856 Uniquization of constants at the Tree level
23857 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
23858 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
23860 (tree_output_constant_def): Declare.
23861 * gimplify.c (gimplify_init_constructor): When using block copy, first
23862 uniquize the constant constructor on the RHS.
23863 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
23864 DECL_IN_CONSTANT_POOL flag.
23865 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
23866 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
23868 (assemble_variable): Deal with symbols belonging to the tree constant
23870 (get_constant_section): Add ALIGN parameter and simplify.
23871 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
23872 (assemble_constant_contents): Use the expression of the VAR_DECL.
23873 (output_constant_def_contents): Use the alignment of the VAR_DECL.
23874 (tree_output_constant_def): New global function.
23875 (mark_constant): Use the expression of the VAR_DECL.
23876 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
23878 (output_object_block): Likewise and assemble the expression.
23880 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
23882 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
23883 hash_tree, eq_tree): New tree hash table.
23884 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
23885 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
23886 lto_orig_address_remove): Reimplement.
23888 2010-04-28 Xinliang David Li <davidxl@google.com>
23891 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
23892 (compute_uninit_opnds_pos): New function.
23893 (is_non_loop_exit_postdominating): New function.
23894 (compute_control_dep_chain): New function.
23895 (find_pdom): New function.
23896 (convert_control_dep_chain_into_preds): New function.
23897 (find_predicates): New function.
23898 (find_control_equiv_block): New function.
23899 (collect_phi_def_edges): New function.
23900 (find_def_preds): New function.
23901 (find_dom): New function.
23902 (dump_predicates): New function.
23903 (get_cmp_code): New function.
23904 (is_value_included_in): New function.
23905 (find_matching_predicate_in_rest_chains): New function.
23906 (use_pred_not_overlap_with_undef_path_pred): New function.
23907 (is_use_properly_guarded): New function.
23908 (normalize_cond_1): New function.
23909 (is_and_or_or): New function.
23910 (normalize_cond): New function.
23911 (is_gcond_subset_of): New function.
23912 (is_subset_of_any): New function.
23913 (is_or_set_subset_of): New function.
23914 (is_and_set_subset_of): New function.
23915 (is_norm_cond_subset_of): New function.
23916 (is_pred_expr_subset_of): New function.
23917 (is_pred_chain_subset_of): New function.
23918 (is_included_in): New function.
23919 (is_superset_of): New function.
23920 (find_uninit_use): New function.
23921 (warn_uninitialized_phi): New function.
23922 (compute_possibly_undefined_names): New function.
23923 (ssa_undefined_value_p): New function.
23924 (execute_late_warn_uninitialized): New function.
23925 * tree-ssa.c (ssa_undefined_value_p): Removed.
23926 (warn_uninit): Changed to extern.
23927 (warn_uninitialized_phi): Removed.
23928 (warn_uninitialized_vars): Changed to extern.
23929 (execute_late_warn_uninitialized): Removed
23930 * tree-flow.h: Add new prototypes.
23931 * timevar.def: Add new time variable.
23932 * Makefile.in: Add new build file.
23934 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
23936 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
23939 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23942 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
23944 2010-04-28 Martin Jambor <mjambor@suse.cz>
23946 * cgraph.h (struct cgraph_node): New field indirect_calls.
23947 (struct cgraph_indirect_call_info): New type.
23948 (struct cgraph_edge): Removed field indirect_call. New fields
23949 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
23950 (cgraph_create_indirect_edge): Declare.
23951 (cgraph_make_edge_direct): Likewise.
23952 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
23953 * ipa-prop.h (struct ipa_param_call_note): Removed.
23954 (struct ipa_node_params): Removed field param_calls.
23955 (ipa_create_all_structures_for_iinln): Declare.
23956 * cgraph.c: Described indirect edges and uids in initial comment.
23957 (cgraph_add_edge_to_call_site_hash): New function.
23958 (cgraph_edge): Search also among the indirect edges, use
23959 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
23960 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
23961 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
23963 (initialize_inline_failed): Assign a reason to indirect edges.
23964 (cgraph_create_edge_1): New function.
23965 (cgraph_create_edge): Moved some functionality to
23966 cgraph_create_edge_1.
23967 (cgraph_create_indirect_edge): New function.
23968 (cgraph_edge_remove_callee): Add an assert checking for
23970 (cgraph_edge_remove_caller): Special-case indirect edges.
23971 (cgraph_remove_edge): Likewise.
23972 (cgraph_set_edge_callee): New function.
23973 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
23974 (cgraph_make_edge_direct): New function.
23975 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
23976 the declaration of the call statement matches.
23977 (cgraph_node_remove_callees): Special-case indirect edges.
23978 (cgraph_clone_edge): Likewise.
23979 (cgraph_clone_node): Clone also the indirect edges.
23980 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
23981 indirect_call, dump count of indirect_calls edges.
23982 * ipa-prop.c (iinlining_processed_edges): New variable.
23983 (ipa_note_param_call): Create indirect edges instead of
23984 creating notes. New parameter node.
23985 (ipa_analyze_call_uses): New parameter node, pass it on to
23986 ipa_note_param_call.
23987 (ipa_analyze_stmt_uses): Likewise.
23988 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
23989 (print_edge_addition_message): Work on edges rather than on notes.
23990 (update_call_notes_after_inlining): Likewise, renamed to
23991 update_indirect_edges_after_inlining.
23992 (ipa_create_all_structures_for_iinln): New function.
23993 (ipa_free_node_params_substructures): Do not free notes.
23994 (ipa_edge_duplication_hook): Propagate bits within
23995 iinlining_processed_edges bitmap.
23996 (ipa_node_duplication_hook): Do not duplicate notes.
23997 (free_all_ipa_structures_after_ipa_cp): Renamed to
23998 ipa_free_all_structures_after_ipa_cp.
23999 (free_all_ipa_structures_after_iinln): Renamed to
24000 ipa_free_all_structures_after_iinln.
24001 (ipa_write_param_call_note): Removed.
24002 (ipa_read_param_call_note): Removed.
24003 (ipa_write_indirect_edge_info): New function.
24004 (ipa_read_indirect_edge_info): Likewise.
24005 (ipa_write_node_info): Do not stream notes, do stream information
24007 (ipa_read_node_info): Likewise.
24008 (lto_ipa_fixup_call_notes): Removed.
24009 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
24010 * ipa-inline.c (pass_ipa_inline): Likewise.
24011 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
24012 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
24013 * tree-inline.c (copy_bb): Removed an unnecessary double check for
24015 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
24017 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
24018 (output_cgraph): Stream also indirect edges.
24019 (lto_output_edge): Added capability to stream indirect edges.
24020 (input_edge): Likewise.
24021 (input_cgraph_1): Likewise.
24022 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
24025 2010-04-28 Richard Guenther <rguenther@suse.de>
24027 PR tree-optimization/43879
24028 PR tree-optimization/43909
24029 * tree-ssa-structalias.c (struct variable_info): Add
24030 only_restrict_pointers flag.
24031 (new_var_info): Initialize it. Increment stats.total_vars here.
24032 (create_function_info_for): Do not increment stats.total_vars here.
24033 (get_function_part_constraint): Fix build with C++.
24034 (insert_into_field_list): Remove.
24035 (push_fields_onto_fieldstack): Properly merge fields.
24036 (create_variable_info_for): Split and simplify.
24037 (create_variable_info_for_1): New piece.
24038 (intra_create_variable_infos): Properly make restrict constraints
24041 2010-04-28 Richard Guenther <rguenther@suse.de>
24044 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
24046 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
24047 Jan Hubicka <hubicka@ucw.cz>
24049 * doc/invoke.texi (-Wsuggest-attribute=const,
24050 -Wsuggest-attribute=pure): Document.
24051 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
24052 (function_always_visible_to_compiler_p,
24053 suggest_attribute, warn_function_pure, warn_function_const):
24055 (check_call): Improve debug info.
24056 (analyze_function): Do not check availability.
24057 (add_new_function): Check availability.
24058 (propagate): Output warnings.
24059 (skip_function_for_local_pure_const): New function.
24060 (local_pure_const): Use it; output warnings.
24061 * common.opt (Wsuggest-attribute=const,
24062 Wsuggest-attribute=pure): New.
24064 2010-04-27 Jakub Jelinek <jakub@redhat.com>
24066 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
24067 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
24068 or DW_CFA_def_cfa_offset{,_sf}.
24070 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
24072 * tree.h: Fix truncated long macros.
24074 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
24076 * collect2.c (TARGET_64BIT): Redefine to target's default.
24077 * tlink.c: Likewise.
24078 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
24079 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
24080 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
24081 for underscoring __USER_LABEL_PREFIX__.
24082 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
24083 (SUB_LINK_ENTRY32): New.
24084 (SUB_LINK_ENTRY64): New.
24085 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
24086 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
24087 (SUB_LINK_ENTRY64): New.
24088 (SUB_LINK_ENTRY): New.
24089 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
24090 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
24091 x64 target is choosen.
24092 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
24093 * configure: Regenerated.
24094 * configure.ac (leading-mingw64-underscores): Option added.
24096 2010-04-27 Jan Hubicka <jh@suse.cz>
24098 * doc/invoke.texi (-fipa-profile): Document.
24099 * opts.c (decode_options): Enable ipa-profile at -O1.
24100 * timevar.def (TV_IPA_PROFILE): Define.
24101 * common.opt (fipa-profile): Add.
24102 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
24104 (cgraph_propagate_frequency): Handle only local ones.
24105 * tree-pass.h (pass_ipa_profile): Declare.
24106 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
24107 (pass_ipa_profile): Use TV_IPA_PROFILE.
24108 * ipa.c (ipa_profile): New function.
24109 (gate_ipa_profile): Likewise.
24110 (pass_ipa_profile): New global variable.
24111 * passes.c (pass_ipa_profile): New.
24113 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
24115 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
24117 2010-04-27 Martin Jambor <mjambor@suse.cz>
24119 PR middle-end/43812
24120 * ipa.c (dissolve_same_comdat_group_list): New function.
24121 (function_and_variable_visibility): Call
24122 dissolve_same_comdat_group_list when comdat group contains external or
24124 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
24125 lists are circular and that they contain only DECL_ONE_ONLY nodes.
24127 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
24129 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
24130 (const_hash_1) <VECTOR_CST>: New case.
24131 (compare_constant) <VECTOR_CST>: Likewise.
24132 <ADDR_EXPR>: Deal with LABEL_REFs.
24133 (copy_constant) <VECTOR_CST>: New case.
24135 2010-04-27 Jan Hubicka <jh@suse.cz>
24137 * cgraph.c (cgraph_propagate_frequency): New function.
24138 * cgraph.h (cgraph_propagate_frequency): Declare.
24139 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
24140 cgraph_propagate_frequency.
24142 2010-04-27 Jakub Jelinek <jakub@redhat.com>
24144 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
24146 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
24149 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
24150 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
24151 here to determine which regs to push and how much stack to reserve.
24153 2010-04-27 Jie Zhang <jie@codesourcery.com>
24155 * doc/gimple.texi (gimple_statement_with_ops): Remove
24156 addresses_taken field.
24157 (gimple_statement_with_memory_ops): Likewise.
24159 2010-04-27 Jan Hubicka <jh@suse.cz>
24161 * tree-inline.c (eni_inlining_weights): Remove.
24162 (estimate_num_insns): Special case more builtins.
24164 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
24167 * c-typeck.c (build_binary_op): Move forward check for comparison
24168 pointer with null pointer constant and adjust the diagnostic message.
24170 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
24173 * configure.ac (gcc_cv_as_section_has_align): Set if installed
24174 binutils supports extended .section directive needed by LTO, or
24175 warn if older binutils found.
24176 (LTO_BINARY_READER): New AC_SUBST'd variable.
24177 (LTO_USE_LIBELF): Likewise.
24178 * config.gcc (lto_binary_reader): New target-specific configure
24180 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
24181 (LTO_USE_LIBELF): Likewise.
24182 * configure: Regenerate.
24184 * collect2.c (is_elf): Rename from this ...
24185 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
24186 object files in addition to ELF-formatted ones.
24187 (scan_prog_file): Caller updated. Also allow for LTO info marker
24188 symbol to be prefixed or not by an extra underscore.
24190 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
24191 * config/i386/winnt.c: Also #include lto-streamer.h
24192 (i386_pe_asm_named_section): Specify 1-byte section alignment for
24193 LTO named sections.
24194 (i386_pe_asm_output_aligned_decl_common): Add comment.
24195 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
24197 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
24200 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
24201 Add missing earlyclobber for second alternative.
24203 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
24205 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
24206 bits for artificial defs at the top of the block.
24207 * fwprop.c (single_def_use_enter_block): Don't call it.
24209 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
24212 * configure.ac: Use "$gcc_cv_nm -g" on darwin
24213 instead of "$gcc_cv_objdump -T".
24214 Use "-undefined dynamic_lookup" on darwin.
24215 * configure: Regenerate.
24217 2010-04-26 Jakub Jelinek <jakub@redhat.com>
24220 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
24222 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
24224 * c-parser.c (struct c_token): Move location field up.
24225 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
24226 (struct c_declspecs): Convert typespec_word, storage_class, and
24227 default_int_p into bitfields.
24228 (struct c_declarator): Move loc field up.
24230 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
24232 * cfgloop.h (struct loop): Move can_be_parallel field up.
24233 * ipa-prop.h (struct ip_node_params): Move bitfields up.
24234 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
24236 (struct iv_cand): Convert pos field into a bitfield.
24237 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
24239 (struct _stmt_vec_info): Shuffle fields for better packing.
24241 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
24243 * varasm.c (IN_NAMED_SECTION): Remove guard.
24244 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
24245 (IN_NAMED_SECTION_P): ...this.
24246 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
24247 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
24249 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
24251 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
24252 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
24253 of shadowing it. Fix comments.
24255 2010-04-26 Jan Hubicka <jh@suse.cz>
24257 * cgraph.c (cgraph_create_node): Set node frequency to normal.
24258 (cgraph_clone_node): Copy function frequency.
24259 * cgraph.h (node_frequency): New enum
24260 (struct cgraph_node): Add.
24261 * final.c (rest_of_clean_state): Update.
24262 * lto-cgraph.c (lto_output_node): Output node frequency.
24263 (input_overwrite_node): Input node frequency.
24264 * tre-ssa-loop-ivopts (computation_cost): Update.
24265 * lto-streamer-out.c (output_function): Do not output function
24267 * predict.c (maybe_hot_frequency_p): Update and handle functions
24269 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
24271 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
24272 (compute_function_frequency): Set noreturn functions to be executed
24274 (choose_function_section): Update.
24275 * lto-streamer-in.c (input_function): Do not input function frequency.
24276 * function.c (allocate_struct_function): Do not initialize function
24278 * function.h (function_frequency): Remove.
24279 (struct function): Remove function frequency.
24280 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
24281 (try_update): Update.
24282 * tree-inline.c (initialize_cfun): Do not update function frequency.
24283 * passes.c (pass_init_dump_file): Update.
24284 * i386.c (ix86_compute_frame_layout): Update.
24285 (ix86_pad_returns): Update.
24287 2010-04-26 Jie Zhang <jie@codesourcery.com>
24289 PR tree-optimization/43833
24290 * tree-vrp.c (range_int_cst_p): New.
24291 (range_int_cst_singleton_p): New.
24292 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
24293 when both operands are constants. Use range_int_cst_p in
24296 2010-04-26 Jan Hubicka <jh@suse.cz>
24298 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
24300 2010-04-26 Richard Guenther <rguenther@suse.de>
24303 * gimple.c (gimple_decl_printable_name): Deal gracefully
24304 with a NULL DECL_NAME.
24306 2010-04-26 Richard Guenther <rguenther@suse.de>
24309 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
24310 if emitting debug information and it is either a function
24311 or a namespace decl.
24313 2010-04-26 Ira Rosen <irar@il.ibm.com>
24315 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
24316 determine if the statement is vectorizable, and a macro to access it.
24317 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
24318 Skip statements that can't be vectorized. If the analysis fails,
24319 mark the statement as unvectorizable if vectorizing basic block.
24320 (vect_compute_data_refs_alignment): Likewise.
24321 (vect_verify_datarefs_alignment): Skip statements marked as
24322 unvectorizable. Add print.
24323 (vect_analyze_group_access): Skip statements that can't be
24324 vectorized. If the analysis fails, mark the statement as
24325 unvectorizable if vectorizing basic block.
24326 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
24327 * tree-vect-stmts.c (vectorizable_store): Fix the number of
24328 generated stmts for SLP.
24329 (new_stmt_vec_info): Initialize the new field.
24330 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
24331 statements marked as unvectorizable.
24333 2010-04-25 Joseph Myers <joseph@codesourcery.com>
24335 * c-common.c (flag_isoc1x): New.
24336 (flag_isoc99): Update comment.
24337 * c-common.h (flag_isoc1x): New.
24338 (flag_isoc99): Update comment.
24339 * c-cppbuiltin.c (builtin_define_float_constants): Also define
24340 __<type>_DECIMAL_DIG__.
24341 * c-opts.c (set_std_c1x): New.
24342 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
24343 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
24344 * c.opt (-std=c1x, -std=gnu1x): New options.
24345 * doc/cpp.texi: Mention -std=c1x.
24346 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
24347 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
24348 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
24349 * doc/standards.texi: Mention C1X.
24350 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
24351 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
24352 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
24355 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
24357 * config/i386/gmon-sol2.c (_mcleanup): Change format string
24358 placeholder from 0x%x to %#x.
24359 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
24360 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
24361 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
24362 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
24363 * config/i386/i386.c (ix86_target_string): Ditto.
24364 (output_pic_addr_const): Ditto.
24365 (print_operand): Ditto.
24367 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
24369 * combine.c (find_split_point): Add third argument. Use it
24370 to find nested multiply-accumulate instructions. Adjust calls.
24371 (try_combine): Adjust call to find_split_point.
24373 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
24375 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
24377 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
24379 PR tree-optimization/41442
24380 * fold-const.c (merge_truthop_with_opposite_arm): New function.
24381 (fold_binary_loc): Call it.
24383 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
24385 * toplev.c (general_init): Set default for fdiagnostics-show-option.
24386 * opts.c (common_handle_option): Allow disabling it.
24387 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
24389 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
24391 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
24392 between modes if both types are integral.
24394 2010-04-23 Richard Guenther <rguenther@suse.de>
24396 PR tree-optimization/43572
24397 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
24399 2010-04-23 Richard Guenther <rguenther@suse.de>
24402 * tree-inline.c (tree_can_inline_p): Also check compatibility
24405 2010-04-23 Martin Jambor <mjambor@suse.cz>
24407 PR tree-optimization/43846
24408 * tree-sra.c (struct access): New flag grp_assignment_read.
24409 (build_accesses_from_assign): Set grp_assignment_read.
24410 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
24411 (enum mark_read_status): New type.
24412 (analyze_access_subtree): Propagate grp_assignment_read, create
24413 accesses also if both direct_read and root->grp_assignment_read.
24415 2010-04-23 Martin Jambor <mjambor@suse.cz>
24417 PR middle-end/43835
24418 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
24419 function does not have type attributes.
24421 2010-04-23 Richard Guenther <rguenther@suse.de>
24424 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
24427 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24429 * sese.h (create_if_region_on_edge): Remove.
24431 * sese.c (create_if_region_on_edge): Make static.
24433 * tree-inline.c: Do not include ggc.h.
24435 * expr.c: Do not include ggc.h.
24437 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
24440 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
24443 * config/sh/sh.c (find_barrier): Don't emit a constant pool
24444 in the middle of insns for casesi_worker_2.
24446 2010-04-22 David Edelsohn <edelsohn@gnu.org>
24448 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
24450 2010-04-22 Ira Rosen <irar@il.ibm.com>
24452 PR tree-optimization/43842
24453 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
24454 loop unrolling in update of exit phis. Fix comment.
24455 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
24456 least two reduction statements in the loop before starting SLP
24459 2010-04-22 Nick Clifton <nickc@redhat.com>
24461 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
24463 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
24465 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
24466 to simplify a + ~a.
24468 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24470 * tree-parloops.c (loop_parallel_p): New argument
24471 parloop_obstack. Pass it down.
24472 (parallelize_loops): New variable parloop_obstack. Initialize it,
24473 pass it down, free it.
24475 * tree-loop-linear.c (linear_transform_loops): Pass down
24478 * tree-data-ref.h (lambda_compute_access_matrices): New argument
24479 of type struct obstack *.
24481 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
24482 scratch_obstack. Initialize it, pass down, free it.
24484 * lambda.h (lambda_loop_new): Remove.
24485 (lambda_matrix_new, lambda_matrix_inverse)
24486 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
24487 argument of type struct obstack *.
24489 * lambda-trans.c (lambda_trans_matrix_new): New argument
24490 lambda_obstack. Pass it down, use obstack allocation for ret.
24491 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
24494 * lambda-mat.c (lambda_matrix_get_column)
24495 (lambda_matrix_project_to_null): Remove.
24496 (lambda_matrix_new): New argument lambda_obstack. Use obstack
24497 allocation for mat.
24498 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
24501 * lambda-code.c (lambda_loop_new): New function.
24502 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
24503 (lambda_compute_auxillary_space, lambda_compute_target_space)
24504 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
24505 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
24506 (build_access_matrix): New argument lambda_obstack. Use obstack
24508 (lambda_compute_step_signs, lambda_compute_access_matrices): New
24509 argument lambda_obstack. Pass it down.
24511 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
24513 * optabs.h (expand_widening_mult): Declare.
24515 2010-04-22 Richard Guenther <rguenther@suse.de>
24517 PR tree-optimization/43845
24518 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
24519 lookup the CALL_EXPR function and arguments.
24521 2010-04-22 Nick Clifton <nickc@redhat.com>
24523 * config/stormy16/stormy16.c
24524 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
24525 * config/stormy16/stormy16.h: Tidy up formatting.
24526 (DONT_USE_BUILTIN_SETJMP): Remove definition.
24527 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
24528 (ineqbranchsi): Delete pattern.
24529 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
24530 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
24531 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
24532 stormy16-lib2-ucmpsi2.c.
24534 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
24536 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
24537 df_simulate_find_noclobber_defs as appropriate. Keep track of an
24538 extra set merge_set_noclobber, and use it to relax the final test
24540 * df.h (df_simulate_find_noclobber_defs): Declare.
24541 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
24543 (df_simulate_find_noclobber_defs): New function.
24545 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
24547 * config/i386/i386.md: Use {} around multi-line preparation statements.
24549 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24551 * c-tree.h (push_init_level, pop_init_level, set_init_index)
24552 (process_init_element): New argument of type struct obstack *.
24554 * c-typeck.c (push_init_level, pop_init_level, set_designator)
24555 (set_init_index, set_init_label, set_nonincremental_init)
24556 (set_nonincremental_init_from_string, find_init_member)
24557 (output_init_element, output_pending_init_elements)
24558 (process_init_element): New argument braced_init_obstack. Pass it
24560 (push_range_stack, add_pending_init): New argument
24561 braced_init_obstack. Use obstack allocation.
24563 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
24564 braced_init_obstack. Pass it down.
24565 (c_parser_braced_init): New variables ret, braced_init_obstack.
24566 Initialize obstack, pass it down and finally free it.
24568 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
24570 PR middle-end/29274
24571 * tree-pass.h (pass_optimize_widening_mul): Declare.
24572 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
24573 gate_optimize_widening_mul): New static functions.
24574 (pass_optimize_widening_mul): New.
24575 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
24576 <case MULT_EXPR>: Remove support for widening multiplies.
24577 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
24578 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
24579 simplify_gen_unary rather than directly building extensions.
24580 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
24582 * expmed.c (expand_widening_mult): New function.
24583 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
24585 2010-04-21 Jan Hubicka <jh@suse.cz>
24587 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
24588 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
24589 * lto-wpa-fixup.c: Remove.
24590 * Makefile.in (lto-wpa-fixup.o): Remove.
24591 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
24592 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
24593 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
24595 2010-04-21 Jan Hubicka <jh@suse.cz>
24597 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
24598 add write_optimization_summary, read_optimization_summary.
24599 (ipa_write_summaries_of_cgraph_node_set): Remove.
24600 (ipa_write_optimization_summaries): Declare.
24601 (ipa_read_optimization_summaries): Declare.
24602 * ipa-cp.c (pass_ipa_cp): Update.
24603 * ipa-reference.c (pass_ipa_reference): Update.
24604 * ipa-pure-const.c (pass_ipa_pure_const): Update.
24605 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
24607 * ipa-inline.c (pass_ipa_inline): Update.
24608 * ipa.c (pass_ipa_whole_program): Update.
24609 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
24610 * passes.c (ipa_write_summaries_1): Do not test wpa.
24611 (ipa_write_optimization_summaries_1): New.
24612 (ipa_write_optimization_summaries): New.
24613 (ipa_read_summaries): Do not test ltrans.
24614 (ipa_read_optimization_summaries_1): New.
24615 (ipa_read_optimization_summaries): New.
24617 2010-04-21 Jan Hubicka <jh@suse.cz>
24619 * lto-cgraph.c (lto_output_node): Do not output comdat groups
24620 for boundary nodes.
24621 (output_cgraph): Do not arrange comdat groups for boundary nodes.
24623 2010-04-21 Jakub Jelinek <jakub@redhat.com>
24626 * dwarf2out.c (add_name_and_src_coords_attributes): Add
24627 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
24629 2010-04-21 Jan Hubicka <jh@suse.cz>
24631 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
24633 2010-04-21 Jan Hubicka <jh@suse.cz>
24635 * varpool.c (decide_is_variable_needed): Variable is always needed
24638 2010-04-21 Jan Hubicka <jh@suse.cz>
24640 * opts.c (decode_options): Enable pure-const pass for whopr.
24642 2010-04-21 Jan Hubicka <jh@suse.cz>
24644 * cgraph.c (dump_cgraph_node): Dump also assembler name.
24645 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
24647 (cgraph_decide_inlining): Do not expect callee to be removed in all
24650 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
24652 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
24654 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
24656 * config/i386/i386.md (x86_shrd): Add athlon_decode and
24657 amdfam10_decode attributes.
24659 2010-04-21 Jakub Jelinek <jakub@redhat.com>
24661 PR middle-end/43570
24662 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
24663 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
24664 (lower_copyprivate_clauses): Use private var in outer
24665 context instead of original var. Make sure the types
24666 are correct for VLAs.
24668 2010-04-21 Richard Guenther <rguenther@suse.de>
24670 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
24671 to non-pointer objects.
24673 2010-04-21 Jakub Jelinek <jakub@redhat.com>
24675 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
24676 last chain entry if it starts with the still current label.
24677 (add_location_or_const_value_attribute): Check that
24678 loc_list->first->next is NULL instead of comparing ->first with ->last.
24679 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
24680 to add_var_loc_to_decl.
24682 * dwarf2out.c (output_call_frame_info): For dw_cie_version
24683 >= 4 add also address size and segment size fields into CIE header.
24685 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
24686 long as address size is the same as sizeof (void *) and
24688 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
24689 address size or segment size is unexpected, return DW_EH_PE_omit.
24690 (classify_object_over_fdes): If get_cie_encoding returned
24691 DW_EH_PE_omit, return -1.
24692 (init_object): If classify_object_over_fdes returned -1,
24693 pretend there were no FDEs at all.
24695 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
24697 * config/i386/i386.md (bswap<mode>2): Macroize expander from
24698 bswap{si,di}2 using SWI48 mode iterator.
24699 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
24700 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
24701 set modrm attribute of bswap insn to 0 and remove length attribute.
24702 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
24703 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
24704 set mode attribute to <MODE> and remove length attribute.
24706 2010-04-20 James E. Wilson <wilson@codesourcery.com>
24708 PR rtl-optimization/43520
24709 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
24710 zero available registers.
24712 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24714 * builtins.c (fold_builtin_cproj): Fold more cases.
24716 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24718 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
24719 (fold_builtin_1): Fold builtin cproj.
24720 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
24721 Use ATTR_CONST_NOTHROW_LIST.
24723 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
24725 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
24726 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
24727 ffsi2_no_cmove for !TARGET_CMOVE.
24728 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
24729 (ffssi2): Remove expander.
24730 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
24732 (ctz<mode>2): Ditto from ctz{si,di}2.
24733 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
24735 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
24738 2010-04-20 Jakub Jelinek <jakub@redhat.com>
24740 * dwarf2out.c (AT_linkage_name): Define.
24741 (clone_as_declaration): Handle DW_AT_linkage_name.
24742 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
24743 of DW_AT_MIPS_linkage_name.
24744 (move_linkage_attr): Likewise.
24745 (dwarf2out_finish): Likewise.
24747 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
24749 PR middle-end/41952
24750 * fold-const.c (fold_comparison): New folding rule.
24752 2010-04-20 Anatoly Sokolov <aesok@post.ru>
24754 * double-int.h (double_int_setbit): Declare.
24755 * double-int.c (double_int_setbit): New function.
24756 * rtl.h (immed_double_int_const): Declare.
24757 * emit-rtl.c (immed_double_int_const): New function.
24758 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
24759 and immed_double_int_const functions.
24760 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
24761 expand_copysign_bit): (Ditto.).
24762 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
24763 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
24764 * dojump.c (prefer_and_bit_test): (Ditto.).
24765 * expr.c (convert_modes, reduce_to_bit_field_precision,
24766 const_vector_from_tree): (Ditto.).
24767 * expmed.c (mask_rtx, lshift_value): (Ditto.).
24769 2010-04-20 Jan Hubicka <jh@suse.cz>
24771 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
24772 (dump_cgraph_node): Dump new flags.
24773 * cgraph.h (struct cgraph_node): Add flags
24774 reachable_from_other_partition and in_other_partition.
24775 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
24776 other partition can not be removed.
24777 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
24778 the other partition must be output; silence sanity checking on
24779 leaking functions bodies from other paritition.
24780 * lto-cgraph.c (reachable_from_other_partition_p): New function.
24781 (lto_output_node): Output new flags; do not sanity check that inline
24782 clones are output; drop lto_forced_extern_inline_p code; do not mock
24783 visibility flags at partition boundaries.
24784 (add_node_to): New function.
24785 (output_cgraph): Use it to sort functions so masters appear before
24787 (input_overwrite_node): Input new flags.
24788 * passes.c (ipa_write_summaries): Do not call
24789 lto_new_extern_inline_states.
24790 * lto-section-out.c (forced_extern_inline,
24791 lto_new_extern_inline_states lto_delete_extern_inline_states,
24792 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
24793 * lto-streamer.h (lto_new_extern_inline_states,
24794 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
24795 lto_forced_extern_inline_p): Kill.
24797 2010-04-20 Richard Guenther <rguenther@suse.de>
24799 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
24800 from vars that can have pointers.
24801 (process_constraint): Dump useless constraints.
24803 2010-04-20 Richard Guenther <rguenther@suse.de>
24805 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
24806 (dump_sa_points_to_info): Remove asserts.
24807 (init_base_vars): nothing_id isn't an escape point nor does it
24810 2010-04-20 Jakub Jelinek <jakub@redhat.com>
24812 * tree.h (TYPE_REF_IS_RVALUE): Define.
24813 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
24814 should_move_die_to_comdat, prune_unused_types_walk): Handle
24815 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
24816 (modified_type_die, gen_reference_type_die): Emit
24817 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
24818 if TYPE_REF_IS_RVALUE and -gdwarf-4.
24820 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24823 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
24824 calls for -fpic -m31 if they have been sibcall optimized.
24826 2010-04-19 James E. Wilson <wilson@codesourcery.com>
24828 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
24829 ar.lc fixed and call-used.
24831 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
24833 2010-04-19 Jan Hubicka <jh@suse.cz>
24835 * opts.c (decode_options): Disable whpr incompatible passes.
24836 * lto/lto.c (lto_1_to_1_map): Skip clones.
24837 (read_cgraph_and_symbols): Do not mark everything as needed.
24838 (do_whole_program_analysis): Do map only after optimizing;
24839 set proper cgraph_state; use passmanager.
24841 2010-04-19 DJ Delorie <dj@redhat.com>
24843 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
24844 POINTER_PLUS_EXPR and fix them.
24846 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
24848 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
24849 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
24850 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
24851 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
24852 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
24853 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
24854 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
24855 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
24856 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
24857 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
24858 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
24860 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
24862 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
24863 (check_cond_move_block): Likewise.
24864 (cond_move_process_if_block): Likewise.
24865 (noce_find_if_block): Improve formatting.
24866 (find_if_header): Pass 0 to memset and tweak conditions.
24867 (cond_exec_find_if_block): Fix long lines and tweak conditions.
24869 2010-04-19 Jakub Jelinek <jakub@redhat.com>
24871 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
24874 PR middle-end/43337
24875 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
24876 with non-local decl doesn't need chain.
24878 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
24880 * ira-color.c (allocno_reload_assign): Avoid accumulating
24881 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
24883 2010-04-19 Martin Jambor <mjambor@suse.cz>
24885 * gimple.h (create_tmp_reg): Declare.
24886 * gimplify.c (create_tmp_reg): New function.
24887 (gimplify_return_expr): Use create_tmp_reg.
24888 (gimplify_omp_atomic): Likewise.
24889 (gimple_regimplify_operands): Likewise.
24890 * tree-dfa.c (make_rename_temp): Likewise.
24891 * tree-predcom.c (predcom_tmp_var): Likewise.
24892 (reassociate_to_the_same_stmt): Likewise.
24893 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
24894 (get_replaced_param_substitute): Likewise.
24895 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
24896 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
24897 * tree-ssa-pre.c (get_representative_for): Likewise.
24898 (create_expression_by_pieces): Likewise.
24899 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
24900 (create_tailcall_accumulator): Likewise.
24902 2010-04-19 Martin Jambor <mjambor@suse.cz>
24904 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
24906 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
24908 2010-04-19 Richard Guenther <rguenther@suse.de>
24910 PR tree-optimization/43796
24911 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
24912 from SCEV in the lattice.
24913 (vrp_visit_phi_node): Dump change.
24915 2010-04-19 Richard Guenther <rguenther@suse.de>
24917 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
24918 * configure: Re-generated.
24920 2010-04-19 Richard Guenther <rguenther@suse.de>
24922 PR tree-optimization/43783
24923 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
24924 constant ARRAY_REF operands two and three if possible.
24926 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
24929 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
24931 2010-04-19 Jie Zhang <jie@codesourcery.com>
24934 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
24936 2010-04-19 Ira Rosen <irar@il.ibm.com>
24938 PR tree-optimization/37027
24939 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
24940 and macro to access it.
24941 (vectorizable_reduction): Add argument.
24942 (vect_get_slp_defs): Likewise.
24943 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
24944 statements for possible use in SLP.
24945 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
24946 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
24947 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
24949 (vectorizable_reduction): Likewise.
24950 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
24952 (vectorizable_type_demotion, vectorizable_type_promotion,
24953 vectorizable_store): Likewise.
24954 (vect_analyze_stmt): Update call to vectorizable_reduction.
24955 (vect_transform_stmt): Likewise.
24956 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
24957 (vect_build_slp_tree): Fix indentation. Check that there are no loads
24958 from different interleaving chains in same node.
24959 (vect_slp_rearrange_stmts): New function.
24960 (vect_supported_load_permutation_p): Allow load permutations for
24961 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
24962 inside SLP nodes if necessary.
24963 (vect_analyze_slp_instance): Handle reductions.
24964 (vect_analyze_slp): Try to build SLP instances originating from groups
24966 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
24967 (vect_get_constant_vectors): Create initial vectors for reductions
24968 according to reduction code. Add new argument.
24969 (vect_get_slp_defs): Add new argument, pass it to
24970 vect_get_constant_vectors.
24971 (vect_schedule_slp_instance): Remove SLP tree root statements.
24973 2010-04-19 Jakub Jelinek <jakub@redhat.com>
24975 * tree.h (ENUM_IS_SCOPED): Define.
24976 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
24977 for ENUM_IS_SCOPED enums.
24979 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
24981 * fold-const.c (fold_comparison): Use ssizetype.
24982 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
24983 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
24984 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
24985 * tree-object-size.c (compute_object_sizes): Use size_type_node.
24987 * tree.h (initialize_sizetypes): Remove parameter.
24988 (build_common_tree_nodes): Remove second parameter.
24989 * stor-layout.c (initialize_sizetypes): Remove parameter.
24990 Always create an unsigned type.
24991 (set_sizetype): Assert that the passed type is unsigned and simplify.
24992 * tree.c (build_common_tree_nodes): Remove second parameter.
24993 Adjust call to initialize_sizetypes.
24994 * c-decl.c (c_init_decl_processing): Remove second argument in call to
24995 build_common_tree_nodes.
24997 2010-04-18 Matthias Klose <doko@ubuntu.com>
24999 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
25001 2010-04-18 Ira Rosen <irar@il.ibm.com>
25003 PR tree-optimization/43771
25004 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
25005 load permutation doesn't have gaps.
25007 2010-04-18 Jan Hubicka <jh@suse.cz>
25009 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
25010 (sse_prologue_save_insn expander): Use new pattern.
25011 (sse_prologue_save_insn1): New pattern and splitter.
25012 (sse_prologue_save_insn): Update to deal also with 64bit aligned
25014 * i386.c (setup_incoming_varargs_64): Do not compute jump
25016 (ix86_gimplify_va_arg): Update alignment needed.
25017 (ix86_local_alignment): Do not align all local arrays to 128bit.
25019 2010-04-17 Jan Hubicka <jh@suse.cz>
25021 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
25023 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
25025 * arm.md (negdi2): Remove redundant code to force values into a
25028 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
25030 * arm/bpabi.S: Add EABI alignment attributes to objects.
25031 * arm/bpabi-v6m.S: Likewise.
25032 * arm/crti.asm: Likewise.
25033 * arm/crtn.asm: Likewise.
25034 * arm/lib1funcs.asm: Likewise.
25035 * arm/libunwind.S: Likewise.
25037 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
25039 * arm-protos.h (tune_params): New structure.
25040 * arm.c (current_tune): New variable.
25041 (arm_constant_limit): Delete.
25042 (struct processors): Add pointer to the tune parameters.
25043 (arm_slowmul_tune): New tuning option.
25044 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
25045 (all_cores): Adjust to pick up the tuning model.
25046 (arm_constant_limit): New function.
25047 (arm_override_options): Select the appropriate tuning model. Delete
25048 initialization of arm_const_limit.
25049 (arm_split_constant): Use the new constant-limit model.
25050 (arm_rtx_costs): Pick up the current tuning model.
25051 * arm.md (is_strongarm, is_xscale): Delete.
25052 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
25053 for Xscale variant architectures.
25054 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
25056 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25058 * config/arm/arm.c (arm_gen_constant): Remove unused variable
25060 (arm_rtx_costs_1): Remove unused variable extra_cost.
25061 (arm_unwind_emit_set): Use variable offset.
25062 (thumb1_output_casesi): Remove unused variable flags.
25064 2010-04-16 Jeff Law <law@redhat.com>
25066 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
25067 needing assignment rather than doing a two-phase assignment. Remove
25068 unused variable 'm'.
25070 2010-04-16 Jakub Jelinek <jakub@redhat.com>
25073 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
25075 2010-04-16 Doug Kwan <dougkwan@google.com>
25077 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
25078 (next_operand_entry_id): New static variable.
25079 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
25080 (add_to_ops_vec): Assigned unique ID to operand entry.
25081 (struct oecount_s): New field ID.
25082 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
25083 (undistribute_ops_list): Assign unique IDs to oecounts.
25084 (init_reassoc): reset next_operand_entry_id.
25086 2010-04-16 Doug Kwan <dougkwan@google.com>
25088 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
25089 missing left parenthesis.
25091 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
25093 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
25094 *btdi_rex64 using SWI48 mode iterator.
25095 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
25096 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
25097 *jcc_btdi_mask_rex64.
25099 2010-04-16 Anatoly Sokolov <aesok@post.ru>
25101 * double-int.h (tree_to_double_int): Convert to macro.
25102 * double-int.c (tree_to_double_int): Remove.
25104 2010-04-16 Jakub Jelinek <jakub@redhat.com>
25107 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
25108 with want_address 2 and in case a single element list might be
25109 possible, call it again with want_address 0.
25111 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25113 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
25114 case 'W' print operands for HI mode.
25115 * config/h8300/h8300.h (Y0, Y2) : New constraints.
25116 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
25117 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
25118 * config/h8300/predicate.md (bit_register_indirect_operand): New.
25120 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
25122 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
25123 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
25124 #xx:3 and #xx:4 mode.
25126 * config/h8300/h8300.md (inverted load with HImode dest): Add
25127 support for H8300SX.
25129 * config/h8300/predicate.md (bit_operand): Allow immediate values that
25130 satisfy 'U' constraint.
25132 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25134 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
25135 * configure: Regenerate.
25136 * config.in: Regenerate.
25137 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
25140 2010-04-16 Richard Guenther <rguenther@suse.de>
25142 * tree.h (struct tree_decl_minimal): Move pt_uid ...
25143 (struct tree_decl_common): ... here.
25144 (DECL_PT_UID): Adjust.
25145 (SET_DECL_PT_UID): Likewise.
25146 (DECL_PT_UID_SET_P): Likewise.
25148 2010-04-16 Richard Guenther <rguenther@suse.de>
25150 PR tree-optimization/43572
25151 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
25152 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
25153 * tree-flow.h (is_call_clobbered): Remove.
25154 * tree-flow-inline.h (is_call_clobbered): Likewise.
25155 * tree-dfa.c (dump_variable): Do not dump call clobber state.
25156 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
25157 (execute_return_slot_opt): Adjust.
25158 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
25159 check for call clobbered vars here.
25160 (find_tail_calls): Move tailcall verification to the
25163 2010-04-16 Diego Novillo <dnovillo@google.com>
25165 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
25167 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
25170 * config/arm/arm.md (cbranchqi4): New pattern.
25171 * config/arm/predicates.md (const0_operand,
25172 cbranchqi4_comparison_operator): New predicates.
25174 2010-04-16 Richard Guenther <rguenther@suse.de>
25176 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
25177 (dump_gimple_stmt): Likewise.
25179 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
25181 * recog.h (struct recog_data): New field is_operator.
25182 (struct insn_operand_data): New field is_operator.
25183 * recog.c (extract_insn): Set recog_data.is_operator.
25184 * genoutput.c (output_operand_data): Emit code to set the
25186 * reload.c (find_reloads): Use it rather than testing for an
25187 empty constraint string.
25190 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
25191 If the previous insn is a cbranchsi4_insn with the same arguments,
25192 omit the compare instruction.
25194 * config/arm/arm.md (addsi3_cbranch): If destination is a high
25195 register, inputs must be low registers and we need a low register
25196 scratch. Handle alternative 2 like alternative 3.
25198 2010-04-16 Jakub Jelinek <jakub@redhat.com>
25200 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
25201 don't call get_addr on both. If one expression is a VALUE and
25202 the other a REG, check VALUE's locs if the REG isn't among them.
25204 2010-04-16 Christian Bruel <christian.bruel@st.com>
25206 * config/sh/sh.h (sh_frame_pointer_required): New function.
25207 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
25208 (flag_omit_frame_pointer) Set.
25209 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
25210 (rounded_frame_size): Adjust size with outgoing_args_size.
25211 (sh_set_return_address): Must return from stack pointer.
25212 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
25213 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
25214 (ACCUMULATE_OUTGOING_ARGS): Define.
25215 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
25216 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
25218 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
25221 * config/sh/sh.c (sh_legitimize_reload_address): Use
25222 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
25223 Remove a unneeded check for offset_base.
25225 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
25227 * configure: Regenerated.
25229 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25231 * config/s390/s390.c (s390_call_save_register_used): Switch back
25232 to HARD_REGNO_NREGS.
25234 2010-04-15 Richard Guenther <rguenther@suse.de>
25236 * alias.c (alias_set_subset_of): Handle alias-set zero
25239 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
25240 Julian Brown <julian@codesourcery.com>
25242 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
25243 alternatives according to use of high and low regs.
25244 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
25245 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
25246 optimizing for size on Thumb-2.
25248 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
25250 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
25252 2010-04-15 Richard Guenther <rguenther@suse.de>
25254 * tree-ssa-structalias.c (struct variable_info): Add
25256 (new_var_info): Initialize it.
25257 (dump_constraints): Support printing last added constraints.
25258 (debug_constraints): Adjust.
25259 (dump_constraint_graph): Likewise.
25260 (make_heapvar_for): Check for NULL cfun.
25261 (get_function_part_constraint): New function.
25262 (get_fi_for_callee): Likewise.
25263 (find_func_aliases): Properly implement IPA PTA constraints.
25264 (process_ipa_clobber): New function.
25265 (find_func_clobbers): Likewise.
25266 (insert_into_field_list_sorted): Remove.
25267 (create_function_info_for): Properly allocate vars for IPA mode.
25268 Do not use insert_into_field_list_sorted.
25269 (create_variable_info_for): Properly generate constraints for
25270 global vars in IPA mode.
25271 (dump_solution_for_var): Always dump the solution.
25272 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
25273 (find_what_var_points_to): Adjust.
25274 (pt_solution_set): Change.
25275 (pt_solution_ior_into): New function.
25276 (pt_solution_empty_p): Export.
25277 (pt_solution_includes_global): Adjust.
25278 (pt_solution_includes_1): Likewise.
25279 (pt_solutions_intersect_1): Likewise.
25280 (dump_sa_points_to_info): Check some invariants.
25281 (solve_constraints): Move constraint dumping ...
25282 (compute_points_to_sets): ... here.
25283 (ipa_pta_execute): ... and here.
25284 (compute_may_aliases): Do not re-compute points-to info
25285 locally if IPA info is available.
25286 (ipa_escaped_pt): New global var.
25287 (ipa_pta_execute): Properly implement IPA PTA.
25288 * tree-into-ssa.c (dump_decl_set): Support dumping
25289 decls not in referenced-vars.
25290 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
25291 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
25292 (dump_points_to_solution): Likewise.
25293 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
25294 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
25295 (remap_gimple_stmt): Reset call clobber/use information if necessary.
25296 (copy_decl_to_var): Copy DECL_PT_UID.
25297 (copy_result_decl_to_var): Likewise.
25298 * tree.c (make_node_stat): Initialize DECL_PT_UID.
25299 (copy_node_stat): Copy it.
25300 * tree.h (DECL_PT_UID): New macro.
25301 (SET_DECL_PT_UID): Likewise.
25302 (DECL_PT_UID_SET_P): Likewise.
25303 (struct tree_decl_minimal): Add pt_uid member.
25304 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
25305 (pt_solution_empty_p): Declare.
25306 (pt_solution_set): Adjust.
25307 (ipa_escaped_pt): Declare.
25308 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
25309 * gimple-pretty-print.c (pp_points_to_solution): New function.
25310 (dump_gimple_call): Dump call clobber/use information.
25311 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
25312 * tree-pass.h (TDF_ALIAS): New dump option.
25313 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
25314 * doc/invoke.texi (-fipa-pta): Update documentation.
25316 2010-04-15 Richard Guenther <rguenther@suse.de>
25318 * Makefile.in (OBJS-common): Add gimple-fold.o.
25319 (gimple-fold.o): New rule.
25320 * tree.h (maybe_fold_offset_to_reference,
25321 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
25323 * gimple.h: ... here.
25324 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
25325 may_propagate_address_into_dereference): Move prototypes ...
25326 * gimple.h: ... here.
25327 * tree-ssa-ccp.c (get_symbol_constant_value,
25328 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
25329 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
25330 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
25331 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
25332 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
25333 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
25334 gimplify_and_update_call_from_tree): Move ...
25335 * gimple-fold.c: ... here. New file.
25336 (ccp_fold_builtin): Rename to ...
25337 (gimple_fold_builtin): ... this.
25338 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
25340 2010-04-15 Richard Guenther <rguenther@suse.de>
25342 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
25343 fit_double_type, force_fit_type_double, add_double_with_sign,
25344 neg_double, mul_double_with_sign, lshift_double, rshift_double,
25345 lrotate_double, rrotate_double, div_and_round_double): Move ...
25346 * double-int.c: ... here.
25347 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
25348 add_double, neg_double, mul_double_with_sign, mul_double,
25349 lshift_double, rshift_double, lrotate_double, rrotate_double,
25350 div_and_round_double): Move prototypes ...
25351 * double-int.h: ... here.
25353 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
25356 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
25357 matching constraints to ensure inputs match the output.
25359 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
25362 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
25363 in an input-only operand.
25365 2010-04-15 Anatoly Sokolov <aesok@post.ru>
25367 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
25368 (double_int_not, double_int_lshift, double_int_rshift): Declare.
25369 (double_int_negative_p): Convert to static inline function.
25370 * double-int.c (double_int_lshift, double_int_lshift): New functions.
25371 (double_int_negative_p): Remove.
25372 * tree.h (lshift_double, rshift_double):
25373 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
25374 * fold-const.c (fold_convert_const_int_from_real,
25375 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
25376 (lshift_double): Change type of arith argument to bool.
25377 (rshift_double): Change type of arith argument to bool. Correct
25379 * expmed.c (mask_rtx, lshift_value): (Ditto.).
25381 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
25384 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
25385 at the start and end of the then/else blocks, and omit them from the
25387 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
25388 argument; all callers changed. Pass zero to old_insns_match_p instead.
25389 (flow_find_head_matching_sequence): New function.
25390 (old_insns_match_p): Check REG_EH_REGION notes for calls.
25391 * basic-block.h (flow_find_cross_jump,
25392 flow_find_head_matching_sequence): Declare functions.
25394 2010-04-14 Jason Merrill <jason@redhat.com>
25397 * c-common.c (attribute_takes_identifier_p): New fn.
25398 * c-common.h: Declare it.
25400 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25402 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
25403 splitter condition.
25404 (*udivmod<mode>4): Ditto.
25406 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25408 * config/i386/i386.md (maxmin_int): Rename code attribute from
25409 maxminiprefix and update all users.
25410 (maxmin_float): Ditto from maxminfprefix.
25411 (logic): Ditto from logicprefix.
25412 (absneg_mnemonic): Ditto from absnegprefix.
25413 * config/i386/mmx.md: Update all users of maxminiprefix,
25414 maxminfprefix and logicprefix for rename.
25415 * config/i386/sse.md: Ditto.
25416 * config/i386/sync.md (sync_<code><mode>): Update for
25417 logicprefix rename.
25419 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
25422 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
25423 warnings converted to errors.
25425 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25427 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
25428 used insn_type variable.
25429 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
25430 to avoid set-but-not-used warning.
25432 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25434 * df-core.c (df_ref_debug): Change format string placeholder
25436 * dwarf2asm.c (dw2_asm_output_data_raw,
25437 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
25438 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
25439 * dwarf2out.c (output_cfi, output_cfi_directive,
25440 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
25441 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
25443 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
25444 * print-rtl.c (print_rtx): Ditto.
25446 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25448 PR middle-end/42694
25449 * builtins.c (expand_builtin_pow_root): New function to expand pow
25450 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
25451 series of sqrt and cbrt calls under -ffast-math.
25452 (expand_builtin_pow): Call it.
25454 2010-04-14 Michael Matz <matz@suse.de>
25456 PR tree-optimization/42963
25457 * tree-cfg.c (touched_switch_bbs): New static variable.
25458 (group_case_labels_stmt): New function broken out from ...
25459 (group_case_labels): ... here, use the above.
25460 (start_recording_case_labels): Allocate touched_switch_bbs.
25461 (end_recording_case_labels): Deallocate it, call
25462 group_case_labels_stmt.
25463 (gimple_redirect_edge_and_branch): Remember index of affected BB.
25465 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25467 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
25468 from insn template.
25470 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
25472 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
25474 2010-04-13 Jan Hubicka <jh@suse.cz>
25476 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
25477 of optimized out static functions.
25478 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
25479 cost computation. Also sanity check for overflows.
25480 (update_caller_keys): Update cgraph_edge_badness call; properly
25481 update fibheap and sanity check that it is up to date.
25482 (add_new_edges_to_heap): Update cgraph_edge_badness.
25483 (cgraph_decide_inlining_of_small_function): Likewise;
25484 add sanity checking that badness in heap is up to date;
25485 improve dumping of reason; Update badness of calls to the
25486 offline copy of function currently inlined; dump badness
25487 of functions not inlined because of unit growth limits.
25489 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
25491 PR middle-end/32628
25492 * c-common.c (pointer_int_sum): Disregard overflow that occured only
25493 because of sign-extension change when converting to sizetype here...
25494 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
25496 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
25497 the folding to constants. Remove redundant final conversion.
25498 (fold_binary) <associate>: Do not associate if the re-association of
25499 constants alone overflows.
25500 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
25501 to the end of the list.
25502 (multiple_of_p) <COND_EXPR>: New case.
25504 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
25506 * opt-functions.awk (opt_sanitized_name): New.
25508 * optc-gen.awk: Use it
25509 * opth-gen.awk: Use it.
25511 2010-04-13 Martin Jambor <mjambor@suse.cz>
25513 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
25514 (sra_modify_assign): Delete stmts loading dead data even if racc has no
25515 children. Call replace_uses_with_default_def_ssa_name to handle
25518 2010-04-13 Michael Matz <matz@suse.de>
25520 PR middle-end/43730
25521 * builtins.c (expand_builtin_interclass_mathfn): Also create
25522 a register if the predicate doesn't match.
25524 2010-04-13 Diego Novillo <dnovillo@google.com>
25526 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
25527 * c-pch.c: Include timevar.h.
25528 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
25529 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
25530 * ggc-common.c: Include timevar.h.
25531 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
25532 * timevar.def (TV_PCH_SAVE): Define.
25533 (TV_PCH_CPP_SAVE): Define.
25534 (TV_PCH_PTR_REALLOC): Define.
25535 (TV_PCH_PTR_SORT): Define.
25536 (TV_PCH_RESTORE): Define.
25537 (TV_PCH_CPP_RESTORE): Define.
25539 2010-04-13 Michael Matz <matz@suse.de>
25541 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
25543 (can_reassociate_p): New function.
25544 (break_up_subtract_bb, reassociate_bb): Use it.
25546 2010-04-13 Richard Guenther <rguenther@suse.de>
25549 * builtins.c (c_readstr): Fix assert.
25551 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
25553 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
25554 when generating cltd insn.
25556 (*ashl<mode>3_1): Remove special handling for register operand 2.
25557 (*ashlsi3_1_zext): Ditto.
25558 (*ashlhi3_1): Ditto.
25559 (*ashlhi3_1_lea): Ditto.
25560 (*ashlqi3_1): Ditto.
25561 (*ashlqi3_1_lea): Ditto.
25562 (*<shiftrt_insn><mode>3_1): Ditto.
25563 (*<shiftrt_insn>si3_1_zext): Ditto.
25564 (*<shiftrt_insn>qi3_1_slp): Ditto.
25565 (*<rotate_insn><mode>3_1): Ditto.
25566 (*<rotate_insn>si3_1_zext): Ditto.
25567 (*<rotate_insn>qi3_1_slp): Ditto.
25569 2010-04-13 Richard Guenther <rguenther@suse.de>
25571 * tree-ssa-structalias.c (callused_id): Remove.
25572 (call_stmt_vars): New.
25573 (get_call_vi): Likewise.
25574 (lookup_call_use_vi): Likewise.
25575 (lookup_call_clobber_vi): Likewise.
25576 (get_call_use_vi): Likewise.
25577 (get_call_clobber_vi): Likewise.
25578 (make_transitive_closure_constraints): Likewise.
25579 (handle_const_call): Adjust to do per-call call-used handling.
25580 (handle_pure_call): Likewise.
25581 (find_what_var_points_to): Remove general callused handling.
25582 (init_base_vars): Likewise.
25583 (init_alias_vars): Initialize call_stmt_vars.
25584 (compute_points_to_sets): Process call-used and call-clobbered
25585 vars for call statements.
25586 (delete_points_to_sets): Free call_stmt_vars.
25588 2010-04-13 Richard Guenther <rguenther@suse.de>
25590 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
25591 Only add RW dependence for dependence distance zero.
25592 Adjust maximal vectorization factor according to dependences.
25593 Move alignment handling ...
25594 (vect_find_same_alignment_drs): ... here. New function.
25595 (vect_analyze_data_ref_dependences): Adjust.
25596 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
25597 (vect_analyze_data_refs): Adjust minimal vectorization factor
25598 according to data references.
25599 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
25600 dependences before determining the vectorization factor.
25601 Analyze alignment after determining the vectorization factor.
25602 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
25603 dependences before alignment.
25604 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
25606 (vect_analyze_data_refs): Likewise.
25607 (MAX_VECTORIZATION_FACTOR): New define.
25609 2010-04-13 Duncan Sands <baldrick@free.fr>
25611 * except.h (lang_eh_type_covers): Remove.
25612 * except.c (lang_eh_type_covers): Likewise.
25614 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25615 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25617 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
25618 * config/s390/s390.c: Replace UNTIS_PER_WORD with
25619 UNITS_PER_LONG where it is ABI relevant.
25620 (s390_return_addr_rtx): Likewise.
25621 (s390_back_chain_rtx): Likewise.
25622 (s390_frame_area): Likewise.
25623 (s390_frame_info): Likewise.
25624 (s390_initial_elimination_offset): Likewise.
25625 (save_gprs): Likewise.
25626 (s390_emit_prologue): Likewise.
25627 (s390_emit_epilogue): Likewise.
25628 (s390_function_arg_advance): Likewise.
25629 (s390_function_arg): Likewise.
25630 (s390_va_start): Likewise.
25631 (s390_gimplify_va_arg): Likewise.
25632 (s390_function_profiler): Likewise.
25633 (s390_optimize_prologue): Likewise.
25634 (s390_rtx_costs): Likewise.
25635 (s390_secondary_reload): Likewise.
25636 (s390_promote_function_mode): Likewise.
25637 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
25638 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
25639 registers available.
25640 (s390_unwind_word_mode): New function.
25641 (s390_function_value): Split 64 bit values into register pair if
25642 used as return value.
25643 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
25644 function call parameters. Handle parallels.
25645 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
25646 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
25647 (DWARF_CIE_DATA_ALIGNMENT): New macro.
25648 (s390_expand_setmem): Remove unused variable src_addr.
25649 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
25650 deal with 64 bit registers.
25651 * config/s390/s390.h: Define __zarch__ predefined macro.
25652 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
25653 (UNITS_PER_LONG): New macro.
25654 * libjava/include/s390-signal.h: Define extended ucontext
25655 structure containing the upper halfs of the 64 bit registers.
25657 2010-04-13 Simon Baldwin <simonb@google.com>
25659 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
25661 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
25663 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
25664 rvalue on the RHS if the LHS is of a non-renamable type.
25665 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
25667 2010-04-13 Matthias Klose <doko@ubuntu.com>
25669 * gcc.c (cc1_options): Handle -iplugindir before processing
25670 the cc1 spec. Only add -iplugindir once.
25671 (cpp_unique_options): Add -iplugindir option if -fplugin* options
25673 * common.opt (iplugindir): Remove `Separate' property, initialize.
25674 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
25676 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
25677 (distclean): Remove plugin dir.
25678 * doc/invoke.texi: Document -iplugindir.
25680 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
25682 * doc/plugins.texi (Loading Plugins): Document short
25683 -fplugin=foo option.
25684 (Plugin API): Mention default_plugin_dir_name function.
25686 * gcc.c (find_file_spec_function): Add new declaration.
25687 (static_spec_func): Use it for "find-file".
25688 (find_file_spec_function): Add new function.
25689 (cc1_options): Add -iplugindir option if -fplugin* options found.
25691 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
25693 * plugin.c (add_new_plugin): Updated comment, and handle short
25695 (default_plugin_dir_name): Added new function.
25697 * common.opt (iplugindir): New option to set the plugin directory.
25699 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
25701 * config/i386/i386.md (any_rotate): New code iterator.
25702 (rotate_insn): New code attribute.
25704 (SWIM124): New mode iterator.
25705 (<rotate_insn>ti3): New expander.
25706 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
25707 any_rotate code iterator.
25708 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
25709 using any_rotate code iterator and SWIM124 mode iterator.
25710 (ix86_rotlti3): New insn_and_split pattern.
25711 (ix86_rotrti3): Ditto.
25712 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
25713 ix86_rotl{di,ti}3 patterns.
25714 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
25715 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
25716 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
25717 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
25718 code iterator and SWI mode iterator.
25719 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
25720 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
25722 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
25723 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
25724 (bswap rotatert splitter): Add splitter.
25725 (bswap splitter): Macroize splitter using any_rotate code iterator.
25726 Add insn predicate to split only for TARGET_USE_XCHGB or when
25727 optimizing function for size.
25729 2010-04-12 Steve Ellcey <sje@cup.hp.com>
25731 * config/pa/pa.c (emit_move_sequence): Remove use of
25732 deleted variable flag_argument_noalias.
25734 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25736 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
25738 Add to unsupported targets list.
25739 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
25740 sparc*-sun-solaris2.[567]* from target lists.
25741 * configure: Regenerate.
25742 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
25744 Remove Solaris 7 patch references.
25745 (Specific, sparc-sun-solaris2.7): Removed.
25746 (sparc-sun-solaris2*): Update Solaris 7 example.
25747 (sparc64-*-solaris2*): Likewise.
25749 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25751 * config.build (alpha*-dec-osf4*): Remove.
25752 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
25753 of obsolete configurations.
25754 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
25756 * config/alpha/t-osf4: Renamed to ...
25757 * config/alpha/t-osf5: ... this.
25758 * config/alpha/osf.h: Renamed to ...
25759 * config/alpha/osf5.h: ... this.
25760 Merged old osf5.h contents.
25762 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
25763 (EXTRA_SPECS): Removed.
25764 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
25765 reflect removal of Tru64 UNIX V4.0/V5.0 support.
25768 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25770 * doc/contrib.texi (Contributors, Rainer Orth): Update.
25772 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
25775 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
25776 __thiscall convention.
25778 2010-04-12 Steve Ellcey <sje@cup.hp.com>
25780 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
25782 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
25784 2010-04-12 Steve Ellcey <sje@cup.hp.com>
25786 * function.c (assign_parms_initialize_all): Add unused attribute
25789 2010-04-12 Richard Guenther <rguenther@suse.de>
25791 * gsstruct.def (GSS_CALL): New.
25792 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
25793 * gimple.h: Include tree-ssa-alias.h.
25794 (struct gimple_statement_call): New.
25795 (union gimple_statement_struct_d): Add gimple_call member.
25796 (gimple_call_reset_alias_info): Declare.
25797 (gimple_call_use_set): New function.
25798 (gimple_call_clobber_set): Likewise.
25799 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
25800 * gimple.c (gimple_call_reset_alias_info): New function.
25801 (gimple_build_call_1): Call it.
25802 * lto-streamer-in.c (input_gimple_stmt): Likewise.
25803 * tree-inline.c (remap_gimple_stmt): Likewise.
25804 (expand_call_inline): Remove callused handling.
25805 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
25806 * tree-dfa.c (dump_variable): Likewise.
25807 * tree-parloops.c (parallelize_loops): Likewise.
25808 * tree-ssa.c (init_tree_ssa): Likewise.
25809 (delete_tree_ssa): Likewise.
25810 * tree-flow-inline.h (is_call_used): Remove.
25811 * tree-flow.h (struct gimple_df): Remove callused member.
25812 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
25813 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
25814 (ref_maybe_used_by_call_p_1): Simplify.
25815 (call_may_clobber_ref_p_1): Likewise.
25816 * tree-ssa-structalias.c (compute_points_to_sets): Set
25817 the call stmt used and clobbered sets.
25818 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
25819 (find_tail_calls): Verify the tail call.
25821 2010-04-12 Richard Guenther <rguenther@suse.de>
25823 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
25824 single-iteration always-inline inlining.
25825 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
25826 (cgraph_decide_inlining): Do not handle always-inline specially.
25827 (try_inline): Remove always-inline cycle detection special case.
25828 Do not recurse on always-inlines.
25829 (cgraph_early_inlining): Do not iterate if not optimizing.
25830 (cgraph_gate_early_inlining): remove.
25831 (pass_early_inline): Run unconditionally.
25832 (gate_cgraph_decide_inlining): New function.
25833 (pass_ipa_inline): Use it. Do not run the IPA inliner if
25834 not inlining or optimizing.
25835 (cgraph_decide_inlining_of_small_functions): Also consider
25836 always-inline functions.
25837 (cgraph_default_inline_p): Return true for nodes which should
25838 disregard inline limits.
25839 (estimate_function_body_sizes): Assume zero size and time for
25840 nodes which are marked as disregarding inline limits.
25841 (cgraph_decide_recursive_inlining): Do not perform recursive
25842 inlining on always-inline nodes.
25844 2010-04-12 Jakub Jelinek <jakub@redhat.com>
25847 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
25848 for exprs satisfying handled_component_p.
25850 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
25852 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
25853 non-constant aggregate elements.
25855 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
25856 is a real initialization.
25858 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
25861 * c-decl.c (start_function): Move forward check for nested function.
25863 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
25865 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
25866 * config/sh/sh.c: Include reload.h.
25867 (sh_legitimize_reload_address): New.
25868 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
25869 sh_legitimize_reload_address.
25871 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25873 * config/sh/sh.md (*movqi_pop): New insn pattern.
25874 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
25876 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
25878 * config/i386/i386.md (any_shiftrt): New code iterator.
25879 (shiftrt_insn): New code attribute.
25881 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
25882 using any_shiftrt code iterator.
25883 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
25884 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
25885 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
25886 pattern from corresponding peephole2 patterns.
25887 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
25888 using any_shiftrt code iterator.
25889 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
25890 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
25891 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
25892 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
25893 *{ashr,lshr}<mode>3_cmp_zext.
25894 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
25896 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
25898 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
25900 (*lshr<mode>3_cconly): Ditto.
25902 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
25904 * config/i386/i386.md (lshr<mode>3): Macroize expander from
25905 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
25906 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
25907 pattern from *lshr{di,ti}3_1 and corresponding splitters using
25909 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
25910 from corresponding peephole2 patterns.
25911 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
25912 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
25913 and *lshrdi3_1_rex64 using SWI mode iterator.
25914 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
25915 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
25916 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
25917 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
25918 and *lshrdi3_cmp_rex64 using SWI mode iterator.
25919 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
25920 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
25921 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
25922 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
25925 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
25927 * config/i386/i386.md (ashr<mode>3): Macroize expander from
25928 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
25929 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
25930 pattern from *ashr{di,ti}3_1 and corresponding splitters using
25932 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
25933 from corresponding peephole2 patterns.
25934 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
25935 (ashrsi3_cvt): Rename from ashrsi3_31.
25936 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
25937 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
25938 and x86_64_shift_adj_3 using SWI48 mode iterator.
25939 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
25940 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
25941 and *ashrdi3_1_rex64 using SWI mode iterator.
25942 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
25943 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
25944 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
25945 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
25946 and *ashrdi3_cmp_rex64 using SWI mode iterator.
25947 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
25948 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
25949 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
25950 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
25952 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
25953 * config/i386/i386.c (ix86_split_ashr): Update for renamed
25954 x86_shift<mode>_adj_3 expanders.
25956 2010-04-10 Wei Guozhi <carrot@google.com>
25959 * config/arm/arm.c (arm_pic_static_addr): New function.
25960 (legitimize_pic_address): Call arm_pic_static_addr when it detects
25962 (arm_output_addr_const_extra): Output expression for new pattern.
25963 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
25965 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
25967 * ira-costs.c (record_reg_classes): Ignore alternatives that are
25970 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
25971 * web.c: Include "insn-config.h" and "recog.h".
25972 (union_match_dups): New function.
25973 (web_main): Call it.
25974 (union_defs): Don't try to recognize match_dups.
25976 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
25977 if doing so would replace the entire pattern.
25979 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
25983 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
25984 and splitter pattern. Change splitter operand 1 predicate to
25987 2010-04-09 Martin Jambor <mjambor@suse.cz>
25989 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
25990 lattices are addresses of CONST_DECLs with the same initial value.
25991 (ipcp_print_all_lattices): Print values of CONST_DECLs.
25992 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
25994 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
25995 Bernd Schmidt <bernds@codesourcery.com>
25997 * loop-invariant.c (replace_uses): New static function.
25998 (move_invariant_reg): Use it to ensure we can replace the uses.
26000 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
26002 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
26004 (picochip_override_options): Enable section anchors only above -O1.
26005 (picochip_reorg): Fixed a couple of build warnings.
26007 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26009 * configure.ac (plugin -rdynamic test): Log result.
26010 * configure: Regenerate.
26011 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
26012 (RDYNAMIC_SPEC): Define.
26013 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
26015 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26017 * configure.ac: Determine Sun ld version numbers.
26018 (comdat_group): Restrict GNU ld version checks to gld.
26019 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
26020 (enable_comdat): Support --enable-comdat.
26021 * configure: Regenerate.
26022 * doc/install.texi (Configuration): Document --enable-comdat.
26024 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26026 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
26027 * config/sol2-gld.h: ... here.
26028 * config.gcc (sparc*-*-solaris2*): Reflect this.
26029 (i[34567]86-*-solaris2*): Use it.
26031 2010-04-09 Steve Ellcey <sje@cup.hp.com>
26033 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
26035 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
26037 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
26040 * diagnostic.c (diagnostic_initialize): Initialize
26041 some_warnings_are_errors.
26042 (diagnostic_finish): New.
26043 (diagnostic_action_after_output): Call it before exiting.
26044 (diagnostic_report_diagnostic): Do not print message here. Set
26045 some_warnings_are_errors.
26046 * diagnostic.h (diagnostic_context): Delete
26047 issue_warnings_are_errors_message. Add some_warnings_are_errors.
26048 (diagnostic_finish): Declare.
26049 * toplev.c (toplev_main): Call it before exit.
26051 2010-04-09 Jason Merrill <jason@redhat.com>
26054 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
26055 for incomplete type.
26058 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
26059 based on a warning flag.
26061 2010-04-09 Richard Guenther <rguenther@suse.de>
26063 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
26065 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
26068 * varasm.c (default_assemble_visibility): Wrap vars that are
26069 set, but unused, by targets without GAS.
26070 * config/rs6000/rs6000.c (paired_emit_vector_compare):
26071 Remove set, but unused, vars.
26072 (rs6000_legitimize_tls_address): Likewise.
26073 (altivec_expand_dst_builtin): Likewise.
26074 * config/darwin.c (machopic_classify_symbol): Likewise.
26075 (machopic_indirection_name): Likewise.
26077 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
26079 * config/i386/i386.md (DWI): New mode iterator.
26080 (S): New mode attribute.
26081 (shift_operand): Ditto.
26082 (shift_immediate_operand): Ditto.
26083 (ashl_input_operand): Ditto.
26084 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
26085 using SDWIM mode iterator.
26086 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
26087 pattern from *ashl{di,ti}3_1 and corresponding splitters using
26089 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
26090 from corresponding peephole2 patterns.
26091 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
26092 and x86_64_shift_adj_1 using SWI48 mode iterator.
26093 (x86_shift<mode>_adj_2): Ditto.
26094 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
26095 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
26096 using SWI48 mode iterator.
26097 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
26098 *ashldi3_cmp_rex64 using SWI mode iterator.
26099 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
26100 *ashldi3_cconly_rex64 using SWI mode iterator.
26101 * config/i386/i386.c (ix86_split_ashl): Update for renamed
26102 x86_shift<mode>_adj_{1,2}.
26103 (ix86_split_ashr): Ditto.
26104 (ix86_split_lshr): Ditto.
26106 2010-04-09 Richard Guenther <rguenther@suse.de>
26108 * target.h (builtin_conversion): Pass in input and output types.
26109 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
26110 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
26111 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
26112 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
26114 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
26116 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
26118 2010-04-09 Richard Guenther <rguenther@suse.de>
26121 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
26123 2010-04-09 Richard Guenther <rguenther@suse.de>
26125 * tree-vectorizer.h (struct _stmt_vec_info): Document
26126 that vectype is the type of the LHS.
26127 (supportable_widening_operation, supportable_narrowing_operation):
26128 Get both input and output vector types as arguments.
26129 (vect_is_simple_use_1): Declare.
26130 (get_same_sized_vectype): Likewise.
26131 * tree-vect-loop.c (vect_determine_vectorization_factor):
26132 Set STMT_VINFO_VECTYPE to the vector type of the def.
26133 (vectorizable_reduction): Adjust.
26134 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
26135 Adjust. Specify the output vector type.
26136 (vect_pattern_recog_1): Adjust.
26137 * tree-vect-stmts.c (get_same_sized_vectype): New function.
26138 (vectorizable_call): Adjust.
26139 (vectorizable_conversion): Likewise.
26140 (vectorizable_operation): Likewise.
26141 (vectorizable_type_demotion): Likewise.
26142 (vectorizable_type_promotion): Likewise.
26143 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
26145 (vect_is_simple_use_1): New function.
26146 (supportable_widening_operation): Get both input and output
26148 (supportable_narrowing_operation): Likewise.
26149 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
26151 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
26153 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
26154 __thiscall and _thiscall as predefined macros.
26155 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
26156 thiscall attribute handling.
26157 (ix86_comp_type_attributes): Likewise.
26158 (ix86_function_regparm): Likewise.
26159 (ix86_return_pops_args): Likewise.
26160 (init_cumulative_args): Likewise.
26161 (find_drap_reg): Likewise.
26162 (ix86_static_chain): Likewise.
26163 (x86_this_parameter): Likewise.
26164 (x86_output_mi_thunk): Likewise.
26165 (ix86_attribute_table): Add description for thiscall attribute.
26166 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
26167 * doc/extend.texi: Add documentation for thiscall.
26169 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
26172 * c.opt (Wint-to-pointer-cast): Available in C++.
26173 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
26175 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
26177 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
26178 * calls.c (expand_call): Pass the function type to aggregate_value_p.
26179 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
26180 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
26181 function type instead. Reorder and simplify checks.
26183 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
26185 2010-04-08 Jing Yu <jingyu@google.com>
26186 Zdenek Dvorak <ook@ucw.cz>
26188 PR tree-optimization/42720
26189 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
26190 loop unswitch conditions here from ...
26191 (tree_unswitch_single_loop): ... here.
26193 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
26195 * tree-if-conv.c: Fix comments and simplify logic.
26197 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
26199 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
26200 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
26201 (main_tree_if_conversion): Update call to tree_if_conversion.
26203 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
26206 * doc/invoke.texi (-b,-V): Delete.
26207 * doc/tm.texi: Do not mention -b.
26208 * gcc.c (display_help): Delete -b and -V.
26209 (process_command): Delete -b and -V.
26210 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
26212 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
26213 Wolfgang Gellerich <gellerich@de.ibm.com>
26215 Implement target hook for loop unrolling
26216 * target.h (loop_unroll_adjust): Add a new target hook function.
26217 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
26218 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
26219 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
26220 (s390_loop_unroll_adjust): Implement the new target hook for s390.
26221 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
26223 (decide_unroll_stupid): Likewise.
26225 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26228 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
26230 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26232 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
26233 (Specific, *-*-solaris2*): Likewise.
26234 Don't prefer Sun as over GNU as.
26236 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
26238 * config/s390/s390.c (override_options): Adjust the z10 defaults
26239 for max-unroll-times, max-completely-peeled-insns
26240 and max-completely-peel-times.
26242 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26244 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
26245 instructions for z10.
26246 (s390_expand_setmem): Likewise.
26247 (s390_expand_cmpmem): Likewise.
26249 2010-04-08 Richard Guenther <rguenther@suse.de>
26251 PR tree-optimization/43679
26252 * tree-ssa-pre.c (eliminate): Only propagate copies.
26254 2010-04-08 Jakub Jelinek <jakub@redhat.com>
26257 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
26258 set but not used variable warning.
26260 2010-04-08 Wei Guozhi <carrot@google.com>
26263 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
26264 (arm_size_rtx_costs): Call the new function when optimized for size.
26266 2010-04-08 Jakub Jelinek <jakub@redhat.com>
26269 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
26270 op0 is not a MEM, just return NULL instead of assertion
26272 (discover_nonconstant_array_refs): Don't walk debug stmts.
26274 2010-04-08 Doug Kwan <dougkwan@google.com>
26276 * configure.ac: Recognize gold and do not use its version number
26277 to test ld features.
26278 * configure: Regenerate.
26280 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
26282 PR middle-end/40815
26283 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
26284 (negate_value): Move code to push elements to broken_up_substracts ...
26285 (eliminate_plus_minus_pair): ... here. Push operands that have no
26286 negative pair to plus_negates.
26287 (repropagate_negates, init_reassoc, fini_reassoc): Update.
26289 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26291 * doc/install.texi (Configuration): Move description of
26292 --enable-lto, --with-libelf*, --enable-gold from Java section to
26295 * doc/generic.texi (Working with declarations)
26296 (Function Properties, C and C++ Trees): Fix typos.
26297 * doc/sourcebuild.texi (Top Level): Likewise.
26299 2010-04-07 Jakub Jelinek <jakub@redhat.com>
26302 * tree.h (DECL_READ_P): Define.
26303 (struct tree_decl_common): Add decl_read_flag.
26304 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
26305 a set but not used warning.
26306 (merge_decls): Merge DECL_READ_P flag.
26307 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
26308 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
26309 * c-common.c (handle_used_attribute, handle_unused_attribute):
26311 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
26313 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
26315 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
26316 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
26317 c_parser_binary_expression, c_parser_cast_expression,
26318 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
26319 Call default_function_array_read_conversion instead of
26320 default_function_array_conversion where needed.
26321 (c_parser_unary_expression, c_parser_conditional_expression,
26322 c_parser_postfix_expression_after_primary, c_parser_initelt):
26323 Likewise. Call mark_exp_read where needed.
26324 (c_parser_statement_after_labels, c_parser_asm_operands,
26325 c_parser_typeof_specifier, c_parser_sizeof_expression,
26326 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
26328 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
26330 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
26331 (warn_unused_but_set_parameter): Default to warn_unused
26333 * doc/invoke.texi: Document -Wunused-but-set-variable and
26334 -Wunused-but-set-parameter.
26336 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
26337 used count variable.
26338 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
26339 when operandN variables aren't used in the body of the expander
26341 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
26342 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
26343 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
26344 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
26345 FOR_EACH_IMM_USE_ON_STMT): Likewise.
26346 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
26347 * tree.c (PROCESS_ARG): Likewise.
26349 2010-04-07 Simon Baldwin <simonb@google.com>
26351 * diagnostic.h (diagnostic_override_option_index): New macro to
26352 set a diagnostic's option_index.
26353 * c-tree.h (c_cpp_error): Add warning reason argument.
26354 * opts.c (_warning_as_error_callback): New.
26355 (register_warning_as_error_callback): Store callback for
26356 warnings enabled via enable_warning_as_error.
26357 (enable_warning_as_error): Call callback, minor code tidy.
26358 * opts.h (register_warning_as_error_callback): Declare.
26359 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
26360 response to -Werror=.
26361 (c_common_init_options): Register warning_as_error_callback in opts.c.
26362 * common.opt: Add -Wno-cpp option.
26363 * c-common.c (struct reason_option_codes_t): Map cpp warning
26364 reason codes to gcc option indexes.
26365 * (c_option_controlling_cpp_error): New function, lookup the gcc
26366 option index for a cpp warning reason code.
26367 * (c_cpp_error): Add warning reason argument, call
26368 c_option_controlling_cpp_error for diagnostic_override_option_index.
26369 * doc/invoke.texi: Document -Wno-cpp.
26371 2010-04-07 Richard Guenther <rguenther@suse.de>
26373 * ipa-reference.c (mark_load): Use get_base_address.
26374 (mark_store): Likewise.
26376 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
26377 inserting GIMPLE_NOPs into the IL.
26378 * tree-ssa-structalias.c (get_constraint_for_component_ref):
26379 Explicitly strip handled components and indirect references.
26381 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
26382 folding address expressions.
26383 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
26384 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
26385 operand_equal_p to compare decls.
26386 (ptr_deref_may_alias_decl_p): Likewise.
26387 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
26388 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
26389 Handle reversed comparison ops.
26390 * tree-sra.c (asm_visit_addr): Use get_base_address.
26391 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
26392 * ipa-reference.c (mark_address): Use get_base_address.
26394 2010-04-07 Richard Guenther <rguenther@suse.de>
26396 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
26397 Propagate constants everywhere.
26399 2010-04-07 Jakub Jelinek <jakub@redhat.com>
26402 * tree.c (MAX_INT_CACHED_PREC): Define.
26403 (nonstandard_integer_type_cache): New array.
26404 (build_nonstandard_integer_type): Cache results for precision
26405 <= MAX_INT_CACHED_PREC.
26407 2010-04-07 Richard Guenther <rguenther@suse.de>
26409 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
26410 -fargument-noalias-global, -fargument-noalias-anything): Remove.
26411 * common.opt: Likewise.
26412 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
26413 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
26414 (nonoverlapping_memrefs_p): Likewise.
26415 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
26416 * opts.c (common_handle_option): Handle OPT_fargument_alias,
26417 OPT_fargument_noalias, OPT_fargument_noalias_anything and
26418 OPT_fargument_noalias_global for backward compatibility.
26420 2010-04-07 Richard Guenther <rguenther@suse.de>
26422 PR tree-optimization/43270
26423 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
26424 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
26425 * tree-ssa-pre.c (phi_translate_1): Adjust.
26426 (fully_constant_expression): Split out vn_reference handling to ...
26427 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
26428 Fold reads from constant strings.
26429 (vn_reference_lookup): Handle fully constant references.
26430 (vn_reference_lookup_pieces): Likewise.
26431 * Makefile.in (expmed.o-warn): Add -Wno-error.
26433 2010-04-07 Martin Jambor <mjambor@suse.cz>
26435 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
26437 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
26440 * gcc.c: Add -static-libstdc++ to list of recognized options.
26442 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26444 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
26446 2010-04-07 Richard Guenther <rguenther@suse.de>
26448 PR middle-end/42617
26449 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
26450 bases build simple mem attributes to retain points-to information.
26452 2010-04-07 Richard Guenther <rguenther@suse.de>
26454 PR middle-end/42617
26455 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
26456 preserve points-to related information.
26458 2010-04-07 Richard Guenther <rguenther@suse.de>
26460 PR middle-end/42617
26461 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
26462 discard plain indirect references.
26463 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
26464 * tree.c (tree_nop_conversion): Likewise.
26466 2010-04-07 Dodji Seketeli <dodji@redhat.com>
26469 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
26471 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
26473 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
26474 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
26476 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
26478 * tree-if-conv.c: Fix indentation and comments.
26480 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
26482 * tree-if-conv.c: Sort static functions in topological order.
26484 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
26486 * tree-if-conv.c: Fix indentation and comments.
26488 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26490 PR middle-end/43519
26491 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
26492 lang_hooks.types.type_for_size instead of
26493 build_nonstandard_integer_type.
26494 When converting an unsigned type to signed, double its precision.
26495 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
26496 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
26497 (graphite_create_new_loop_guard): When ub + 1 wraps around,
26500 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26502 PR middle-end/43519
26503 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
26504 POINTER_PLUS_EXPR for pointer types.
26506 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26508 PR middle-end/43519
26509 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
26510 * graphite-clast-to-gimple.c: Include langhooks.h.
26511 (max_signed_precision_type): New.
26512 (max_precision_type): Takes two types as arguments.
26513 (precision_for_value): New.
26514 (precision_for_interval): New.
26515 (gcc_type_for_interval): New.
26516 (gcc_type_for_value): New.
26517 (gcc_type_for_clast_term): New.
26518 (gcc_type_for_clast_red): New.
26519 (gcc_type_for_clast_bin): New.
26520 (gcc_type_for_clast_expr): Split up into several functions.
26521 (gcc_type_for_clast_eq): Rewritten.
26522 (compute_bounds_for_level): New.
26523 (compute_type_for_level_1): New.
26524 (compute_type_for_level): New.
26525 (gcc_type_for_cloog_iv): Removed.
26526 (gcc_type_for_iv_of_clast_loop): Rewritten.
26527 (graphite_create_new_loop): Compute the lower and upper bound types
26528 with gcc_type_for_clast_expr.
26529 (graphite_create_new_loop_guard): Same.
26530 (find_cloog_iv_in_expr): Removed.
26531 (compute_cloog_iv_types_1): Removed.
26532 (compute_cloog_iv_types): Removed.
26533 (gloog): Do not call compute_cloog_iv_types.
26534 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
26535 GBB_CLOOG_IV_TYPES.
26536 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
26537 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
26538 (GBB_CLOOG_IV_TYPES): Removed.
26540 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26542 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
26543 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
26544 (detect_commutative_reduction): Same.
26546 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26548 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
26549 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
26551 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
26552 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
26553 (rewrite_commutative_reductions_out_of_ssa): Same.
26554 * passes.c (execute_function_todo): Call verify_ssa for every pass
26555 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
26556 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
26557 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
26558 with an extra argument.
26559 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
26560 verify_ssa only when the extra argument is true.
26561 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
26562 with an extra argument.
26563 (tree_transform_and_unroll_loop): Same.
26565 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
26567 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
26568 for all the passes of the LNO having LOOP_CLOSED_SSA.
26569 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
26570 * tree-loop-distribution.c (pass_loop_distribution): Same.
26571 * tree-pass.h (TODO_verify_loops): Removed.
26572 * tree-ssa-loop.c (pass_tree_loop_init): Same.
26574 (pass_tree_unswitch): Same.
26575 (pass_predcom): Same.
26576 (pass_vectorize): Same.
26577 (pass_linear_transform): Same.
26578 (pass_graphite_transforms): Same.
26579 (pass_iv_canon): Same.
26580 (pass_complete_unroll): Same.
26581 (pass_complete_unrolli): Same.
26582 (pass_parallelize_loops): Same.
26583 (pass_loop_prefetch): Same.
26584 (pass_iv_optimize): Same.
26586 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
26588 PR middle-end/32824
26589 * passes.c (init_optimization_passes): Move pass_lim before
26590 pass_copy_prop and pass_dce_loop.
26592 2010-04-06 Jakub Jelinek <jakub@redhat.com>
26595 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
26596 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
26597 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
26598 MULTI_* defines for 4 argument vpermil2p* builtins.
26600 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
26602 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
26603 * config/i386/i386.c (x86_maybe_negate_const_int): New.
26604 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
26605 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
26606 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
26607 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
26608 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
26609 Use x86_maybe_negate_const_int to output insn mnemonic.
26610 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
26611 check from instruction predicate. Update comments.
26612 * config/i386/sync.md (sync_add<mode>): Use
26613 x86_maybe_negate_const_int to output insn mnemonic.
26615 2010-04-06 Jan Hubicka <jh@suse.cz>
26617 PR tree-optimization/42906
26618 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
26619 IGNORE_SELF argument. Set visited_control_parents for fully
26621 (find_obviously_necessary_stmts): Update call of
26622 mark_control_dependent_edges_necessary.
26623 (propagate_necessity): Likewise. Handle PHI edges more curefully.
26625 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
26627 * config/i386/i386.md: Remove comment about 'e' and 'E'
26630 2010-04-06 Richard Guenther <rguenther@suse.de>
26632 PR tree-optimization/43627
26633 * tree-vrp.c (extract_range_from_unary_expr): Widenings
26634 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
26637 2010-04-06 Jakub Jelinek <jakub@redhat.com>
26639 * BASE-VER: Change to 4.6.0.
26642 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
26645 2010-04-06 Richard Guenther <rguenther@suse.de>
26647 PR middle-end/43661
26648 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
26650 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26652 * doc/invoke.texi (Optimize Options): Document that LTO
26653 won't remove object access purely due to incompatible
26656 2010-04-04 Matthias Klose <doko@ubuntu.com>
26658 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
26659 Initialize variable.
26661 2010-04-03 Richard Guenther <rguenther@suse.de>
26663 PR middle-end/42509
26664 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
26665 require a non-NULL MEM_OFFSET.
26667 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
26669 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
26670 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
26671 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
26672 config/alpha/predicates.md, config/arm/arm.md,
26673 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
26674 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
26675 config/darwin9.h, config/darwin.c, config/darwin.h,
26676 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
26677 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
26678 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
26679 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
26680 config/mips/mips.md, config/mn10300/mn10300.c,
26681 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
26682 config/rs6000/aix.h, config/rs6000/dfp.md,
26683 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
26684 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
26685 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
26686 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
26687 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
26688 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
26689 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
26690 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
26691 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
26692 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
26693 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
26694 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
26695 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
26696 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
26697 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
26698 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
26699 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
26700 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
26701 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
26702 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
26703 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
26704 opt-functions.awk, opth-gen.awk, params.def, passes.c,
26705 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
26706 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
26707 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
26708 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
26709 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
26710 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
26711 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
26712 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
26713 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
26714 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
26715 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
26716 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
26717 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
26718 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
26720 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26723 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
26724 * aclocal.m4: Regenerate.
26726 2010-04-02 Richard Guenther <rguenther@suse.de>
26728 PR tree-optimization/43629
26729 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
26730 if we have seen a constant value.
26732 2010-04-02 Joseph Myers <joseph@codesourcery.com>
26734 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
26736 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
26739 * arm.c (legitimize_tls_address): Adjust call to
26740 gen_tls_load_dot_plus_four.
26741 (arm_note_pic_base): New function.
26742 (arm_cannot_copy_insn_p): Use it.
26743 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
26746 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26751 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26753 * Makefile.in ($(out_object_file)): Depend on
26754 gt-$(basename $(notdir $(out_file))).h.
26756 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
26758 * config.gcc (lm32-*-rtems*): Add t-lm32.
26760 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
26762 * config.gcc: Add lm32-*-rtems*.
26763 * config/lm32/rtems.h: New file.
26765 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
26768 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
26770 2010-04-01 Jakub Jelinek <jakub@redhat.com>
26772 * dwarf2out.c (output_compilation_unit_header): For
26773 -gdwarf-4 use version 4 instead of version 3.
26774 (output_line_info): For version 4 and above emit additional
26775 maximum ops per insn header field.
26776 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
26778 * dwarf2out.c (is_c_family, is_java): Remove.
26779 (lower_bound_default): New function.
26780 (add_bound_info, gen_descr_array_type_die): Use it.
26782 2010-04-01 Dodji Seketeli <dodji@redhat.com>
26785 * dwarf2out.c (gen_variable_die): Allow debug info for variable
26786 re-declaration when it happens in a function.
26788 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
26790 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
26791 (cgraph_remove_function_insertion_hook): Same.
26792 (cgraph_call_function_insertion_hooks): Same.
26794 2010-04-01 Richard Guenther <rguenther@suse.de>
26796 PR middle-end/43614
26797 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
26798 and TREE_THIS_VOLATILE.
26799 (copy_ref_info): Likewise.
26800 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
26801 * tree.c (build6_stat): Ignore side-effects of all but arg5
26802 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
26805 2010-04-01 Richard Guenther <rguenther@suse.de>
26807 PR tree-optimization/43607
26808 * ipa-type-escape.c (check_call): Do not access non-existing
26811 2010-04-01 Richard Guenther <rguenther@suse.de>
26813 PR middle-end/43602
26815 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
26816 Jack Howarth <howarth@bromo.med.uc.edu>
26818 * tree-profile.c (tree_init_ic_make_global_vars): Make static
26821 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26823 * doc/install.texi (Prerequisites): Document libelf usability on
26824 IRIX 5/6 and Solaris 2.
26825 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
26826 Update GNU as, GNU ld requirements.
26827 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
26828 Document Sun Studio compiler download.
26829 Update and simplify as, ld recommendations.
26830 (Specific, *-*-solaris2.7): Note obsoletion, removal.
26832 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26834 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
26835 with_tune_32 to pentium4.
26837 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
26839 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
26841 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26843 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
26844 obsoletion, removal.
26846 Document GNU as requirement.
26847 Update configure requirements.
26848 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
26849 Recomment IRIX 6.5.18+.
26850 Document IDF/IDL requirement.
26851 Document GNU as requirement.
26852 Document GNU ld bootstrap failure.
26853 Remove freeware.sgi.com reference.
26855 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26857 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
26858 UNIX V4.0, V5.0 obsoletion, removal.
26859 Remove --with-gc=simple reference.
26860 Update VM requirements during bootstrap.
26861 Remove -oldas bootstrap description.
26862 Update binutils reference.
26863 Remove comparison failure note.
26865 2010-03-31 Richard Guenther <rguenther@suse.de>
26866 Zdenek Dvorak <ook@ucw.cz>
26867 Sebastian Pop <sebastian.pop@amd.com>
26869 PR middle-end/43464
26870 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
26871 with multiple arguments.
26872 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
26874 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
26876 * graphite-dependences.c (print_pddr): Call print_pdr with an
26878 * graphite-poly.c (debug_pdr): Add an extra argument for the
26881 (print_pbb_domain): Same.
26883 (print_scop_context): Same.
26884 (print_scop): Same.
26885 (print_cloog): Same.
26886 (debug_pbb_domain): Same.
26888 (print_pdrs): Same.
26889 (debug_pdrs): Same.
26890 (debug_scop_context): Same.
26891 (debug_scop): Same.
26892 (debug_cloog): Same.
26893 (print_scop_params): Same.
26894 (debug_scop_params): Same.
26895 (print_iteration_domain): Same.
26896 (print_iteration_domains): Same.
26897 (debug_iteration_domain): Same.
26898 (debug_iteration_domains): Same.
26899 (print_scattering_function): Same.
26900 (print_scattering_functions): Same.
26901 (debug_scattering_function): Same.
26902 (debug_scattering_functions): Same.
26903 * graphite-poly.h (debug_pdr): Update declaration.
26905 (print_pbb_domain): Same.
26907 (print_scop_context): Same.
26908 (print_scop): Same.
26909 (print_cloog): Same.
26910 (debug_pbb_domain): Same.
26912 (print_pdrs): Same.
26913 (debug_pdrs): Same.
26914 (debug_scop_context): Same.
26915 (debug_scop): Same.
26916 (debug_cloog): Same.
26917 (print_scop_params): Same.
26918 (debug_scop_params): Same.
26919 (print_iteration_domain): Same.
26920 (print_iteration_domains): Same.
26921 (debug_iteration_domain): Same.
26922 (debug_iteration_domains): Same.
26923 (print_scattering_function): Same.
26924 (print_scattering_functions): Same.
26925 (debug_scattering_function): Same.
26926 (debug_scattering_functions): Same.
26928 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
26930 * graphite-poly.c (print_scattering_function_1): New.
26931 (print_scattering_function): Call it.
26932 (print_scop_params): Remove spaces at the end of lines.
26933 (print_cloog): New.
26934 (debug_cloog): New.
26935 * graphite-poly.h (print_cloog): Declared.
26936 (debug_cloog): Declared.
26938 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
26940 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
26942 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
26943 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
26944 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
26945 to switch between adding the IV bump in loop->latch or in loop->header.
26947 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
26949 * graphite-poly.c (print_scattering_function): Pretty print following
26950 the scoplib format.
26952 (print_pbb_domain): Same.
26953 (dump_gbb_cases): Same.
26954 (dump_gbb_conditions): Same.
26955 (print_pdrs): Same.
26957 (print_scop_params): Same.
26958 (print_scop_context): Same.
26959 (print_scop): Same.
26960 (print_pbb_body): New.
26961 (lst_indent_to): New.
26962 (print_lst): Start new lines with a #.
26963 * graphite-poly.h (pbb_bb): New.
26964 (pbb_index): Use pbb_bb.
26965 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
26967 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
26969 2010-03-31 Jakub Jelinek <jakub@redhat.com>
26971 * dwarf2out.c (size_of_die): For -gdwarf-4 use
26972 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
26973 and 0 instead of 1 for dw_val_class_flag.
26974 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
26975 dw_val_class_range_list, dw_val_class_loc_list,
26976 dw_val_class_lineptr and dw_val_class_macptr, use
26977 DW_FORM_flag_present for dw_val_class_flag and
26978 DW_FORM_exprloc for dw_val_class_loc.
26979 (output_die): For -gdwarf-4 print dw_val_class_loc
26980 size as uleb128 instead of 1 or 2 bytes and don't print
26981 anything for dw_val_class_flag.
26983 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
26984 instead of cselib_lookup following by tweaking locs->setting_insn.
26987 * cselib.c (cselib_process_insn): Clear cselib_current_insn
26988 even before returning from label, setjmp call or volatile asm
26991 2010-03-31 Richard Guenther <rguenther@suse.de>
26993 PR middle-end/43600
26994 * cgraphunit.c (cgraph_output_in_order): Do not allocate
26995 temporary data on stack.
26997 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26999 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
27000 (PUSHSECTION_ASM_OP): Remove.
27001 (POPSECTION_ASM_OP): Remove.
27002 (PUSHSECTION_FORMAT): Remove.
27003 * config/sol2.h (PUSHSECTION_FORMAT): Define.
27004 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
27005 * config/sol2.c (solaris_output_init_fini): Use it.
27007 2010-03-31 Jie Zhang <jie@codesourcery.com>
27010 * opt-functions.awk (var_type_struct): Use signed char type
27011 for simple variables.
27013 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27015 * config/sol2.c: Include output.h.
27016 (solaris_assemble_visibility): New function.
27017 * config/t-sol2 (sol2.o): Add output.h dependency.
27018 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
27019 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
27022 2010-03-31 Jakub Jelinek <jakub@redhat.com>
27025 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
27026 V2SImode or XFmode on PRE_DEC.
27029 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
27032 2010-03-31 Jie Zhang <jie@codesourcery.com>
27035 * reload.h (caller_save_initialized_p): Declare.
27036 * toplev.c (backend_init_target): Don't call
27037 init_caller_save but set caller_save_initialized_p to false.
27038 * caller-save.c (caller_save_initialized_p): Define.
27039 (init_caller_save): Check caller_save_initialized_p.
27040 * ira.c (ira): Call init_caller_save if flag_caller_saves.
27042 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27045 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
27046 and soft-fp/t-softfp to tmake_file.
27047 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
27048 (LIBGCC2_TF_CEXT): Define.
27051 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
27054 * cselib.c (n_useless_values): Document handling of debug locs.
27055 (n_useless_debug_values, n_debug_values): New variables.
27056 (new_elt_loc_list): Don't add to debug values, keep count.
27057 (promote_debug_loc): New.
27058 (cselib_reset_table): Zero new variables.
27059 (entry_and_rtx_equal_p): Promote debug locs.
27060 (discard_useless_locs): Increment n_useless_debug_values for
27062 (remove_useless_values): Adjust n_useless_values and n_debug_values
27063 with n_useless_debug_values.
27064 (add_mem_for_addr): Promote debug locs.
27065 (cselib_lookup_mem): Likewise.
27066 (cselib_lookup_addr): Renamed to...
27067 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
27068 (cselib_log_lookup): ... this. Turn into...
27069 (cselib_lookup_addr): ... new wrapper.
27070 (cselib_lookup_from_insn): New.
27071 (cselib_invalidate_regno): Increment n_useless_debug_values for
27073 (cselib_invalidate_mem): Likewise.
27074 (cselib_process_insn): Take n_deleted and n_debug_values into
27075 account to guard remove_useless_value call.
27076 (cselib_finish): Zero n_useless_debug_values.
27077 * cselib.h (cselib_lookup_from_insn): Declare.
27078 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
27079 (sched_analyze_2): Likewise.
27081 2010-03-30 Jakub Jelinek <jakub@redhat.com>
27083 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
27085 (adjust_mems): Replace narrowing SUBREG of expression containing
27086 just PLUS, MINUS, MULT and ASHIFT of registers and constants
27087 with operations in the narrower mode.
27090 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
27091 regs_invalidated_by_call instead all call_used_reg_set registers.
27093 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
27095 PR middle-end/43430
27096 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
27097 pointer comparisons with types_compatible_p.
27098 * tree-vect-stmts.c (vectorizable_call): Same.
27099 (vectorizable_condition): Same.
27101 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27103 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
27104 stack check if the mask would be zero.
27106 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
27107 Jack Howarth <howarth@bromo.med.uc.edu>
27109 * tree-profile.c (tree_init_ic_make_global_vars): Make static
27112 2010-03-30 Joseph Myers <joseph@codesourcery.com>
27115 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
27117 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
27118 Include ___unordxf2 and ___unordtf2.
27119 * config/i386/libgcc-glibc.ver: Do not define inheritance from
27122 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
27124 * config/lm32/t-lm32: New file.
27125 * config.gcc: Use the above file when targetting lm32.
27127 2010-03-28 Duncan Sands <baldrick@free.fr>
27129 * Makefile.in (PLUGIN_HEADERS): Add except.h.
27131 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
27133 PR middle-end/43431
27134 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
27135 Improve vectorization cost model diagnostic.
27137 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
27139 PR middle-end/43436
27140 * tree-vect-data-refs.c (vect_analyze_data_refs): When
27141 compute_data_dependences_for_loop returns false, early exit
27142 and output an extra diagnostic for the failed data reference
27145 2010-03-29 Richard Guenther <rguenther@suse.de>
27147 PR tree-optimization/43560
27148 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
27149 (can_sm_ref_p): Treat stores to readonly locations as trapping.
27151 2010-03-29 Jie Zhang <jie@codesourcery.com>
27154 * toplev.c (process_options): Set optimization_default_node
27155 and optimization_current_node.
27156 * opts.c (decode_options): Don't set optimization_default_node
27157 and optimization_current_node.
27159 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
27161 * config/rtems.h: Abandon -qrtems_debug.
27163 2010-03-28 Jan Hubicka <jh@suse.cz>
27165 PR tree-optimization/43505
27166 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
27167 map should not be copied.
27169 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27171 PR middle-end/41674
27172 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
27173 cdtors, set DECL_PRESERVE_P.
27174 * ipa.c (cgraph_externally_visible_p): Return true if declaration
27175 should be preseved.
27177 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
27179 PR tree-optimization/43528
27180 * stor-layout.c (place_field): Check that constant fits into
27181 unsigned HWI when skipping calculation of MS bitfield layout.
27183 2010-03-27 Jan Hubicka <jh@suse.cz>
27185 PR middle-end/43391
27186 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
27187 notice_global_symbol work.
27189 2010-03-27 Jakub Jelinek <jakub@redhat.com>
27191 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
27192 instead of dwarf2out_decl.
27193 (struct var_loc_node): Remove section_label field.
27194 (dwarf2out_function_decl): New function.
27195 (dwarf2out_var_location): Don't set section_label field.
27196 (dwarf2out_begin_function): Don't empty decl_loc_table here.
27198 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
27200 PR tree-optimization/43544
27201 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
27202 First argument for builtin vectorized function hook is now a
27203 tree to be able to distinguish between machine specific and
27205 * targhooks.c (default_builtin_vectorized_function): Ditto.
27206 * targhooks.h (default_builtin_vectorized_function): Ditto.
27207 * target.h (struct gcc_target): Ditto.
27208 * tree-vect-stmts.c (vectorizable_function): Ditto.
27209 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
27210 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
27213 2010-03-26 Joseph Myers <joseph@codesourcery.com>
27216 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
27217 nested binding iff it is a FUNCTION_DECL.
27218 (store_parm_decls_newstyle): Pass nested=true to bind for
27219 FUNCTION_DECLs amongst parameters.
27221 2010-03-26 Jakub Jelinek <jakub@redhat.com>
27223 * var-tracking.c (vt_expand_loc_callback): Don't run
27224 cselib_expand_value_rtx_cb in dummy mode if
27225 cselib_dummy_expand_value_rtx_cb returned false.
27227 * var-tracking.c (emit_note_insn_var_location): For one part
27228 notes with offset 0, don't add EXPR_LIST around the location.
27229 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
27230 add_location_or_const_value_attribute): Adjust for that change.
27233 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
27234 into first operand and location into second.
27235 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
27236 dw_cfi_oprnd_loc for DW_CFA_expression.
27237 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
27238 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
27239 assume first argument is regnum and second argument is location.
27241 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
27244 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
27245 of scratch register to DImode. Split to DImode comparison operator.
27246 Use SImode subreg of scratch register in the multiplication.
27247 (*cmp_sadd_sidi): Ditto.
27248 (*cmp_ssub_si): Ditto.
27249 (*cmp_ssub_sidi): Ditto.
27251 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
27254 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
27255 Remove invalid assert and wrong comment.
27257 2010-03-26 Jakub Jelinek <jakub@redhat.com>
27260 * flags.h (final_insns_dump_p): New extern.
27261 * final.c (final_insns_dump_p): New variable.
27262 (rest_of_clean_state): Set it before -fdump-final-insns=
27263 dumping, clear afterwards.
27264 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
27265 MEM_ALIAS_SET on MEMs.
27267 2010-03-26 David S. Miller <davem@davemloft.net>
27269 * configure.ac: Fix sparc GOTDATA_OP bug check.
27270 * configure: Rebuild.
27272 2010-03-26 Alan Modra <amodra@gmail.com>
27274 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
27276 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27278 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
27279 TLS_SECTION_ASM_FLAG.
27281 2010-03-25 Jakub Jelinek <jakub@redhat.com>
27284 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
27285 Clear first_function_block_is_cold.
27288 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
27289 argument if the argument is truth_value_p.
27291 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27293 * config/rs6000/constraints.md: Update copyright year for my changes.
27296 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
27297 used in reg+reg addressing, swap registers.
27299 2010-03-24 Jakub Jelinek <jakub@redhat.com>
27302 * target.h (struct gcc_target): Add code_end hook.
27303 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
27304 if not yet defined.
27305 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
27306 * toplev.c (compile_file): Call targetm.asm_out.code_end
27307 hook before unwind info/debug info output.
27308 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
27309 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
27310 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
27311 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
27312 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
27313 * config/i386/i386.c (ix86_file_end): Renamed to...
27314 (ix86_code_end): ... this. Make static. Don't call
27315 file_end_indicate_exec_stack. Emit unwind info using
27316 final_start_function/final_end_function.
27317 (darwin_x86_file_end): Remove.
27318 (TARGET_ASM_CODE_END): Define.
27319 * config/i386/i386.h (TARGET_ASM_FILE_END,
27320 NEED_INDICATE_EXEC_STACK): Don't define.
27321 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
27322 (TARGET_ASM_FILE_END): Define to darwin_file_end.
27323 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
27324 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
27327 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
27328 at the beginning and final_end_function at the end.
27329 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27331 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27333 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
27334 and Sun as TLS syntax.
27335 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
27336 * configure: Regenerate.
27337 * config.in: Regenerate.
27338 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
27339 (default_elf_asm_named_section): Use it.
27340 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
27341 (i386_output_dwarf_dtprel): Likewise.
27342 (output_addr_const_extra): Likewise.
27343 (output_pic_addr_const): Lowercase @GOTTPOFF.
27344 (output_addr_const_extra): Likewise.
27345 (output_pic_addr_const): Lowercase @GOTNTPOFF.
27346 (output_addr_const_extra): Likewise.
27347 (output_pic_addr_const): Lowercase @INDNTPOFF.
27348 (output_addr_const_extra): Likewise.
27349 (output_pic_addr_const): Lowercase @NTPOFF.
27350 (output_addr_const_extra): Likewise.
27351 (output_pic_addr_const): Lowercase @TPOFF.
27352 (output_addr_const_extra): Likewise.
27353 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
27354 (*tls_global_dynamic_64): Likewise.
27355 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
27356 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
27358 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
27359 (ASM_OUTPUT_TLS_COMMON): Use it.
27360 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
27363 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
27364 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27365 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
27366 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
27367 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
27368 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
27370 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27372 * config/i386/i386.c (override_options): Don't accept
27373 -mtls-dialect=sun any longer.
27374 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
27375 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
27376 (*tls_local_dynamic_base_32_sun): Likewise.
27377 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
27379 2010-03-24 Jakub Jelinek <jakub@redhat.com>
27382 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
27383 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
27386 * ira.c (adjust_cleared_regs): New function.
27387 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
27391 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
27393 * expr.c (expand_expr_real): Restore previous
27394 curr_insn_source_location and curr_insn_block after
27395 expand_expr_real_1 call.
27396 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
27397 instead of expand_expr_real_1.
27399 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
27401 PR rtl-optimization/43413
27402 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
27405 2010-03-22 James E. Wilson <wilson@codesourcery.com>
27408 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
27409 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
27411 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
27413 * config/i386/i386.c (ix86_target_string): Add -mfma.
27414 Fix a typo in comment.
27416 2010-03-22 Mike Stump <mikestump@comcast.net>
27419 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
27420 Don't overly align based upon packed packed fields.
27422 2010-03-22 Jason Merrill <jason@redhat.com>
27424 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
27425 Use () rather than [], and move before the element type.
27427 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27429 * doc/configfiles.texi (Configuration Files): Removed
27430 fixinc/Makefile*, intl/Makefile.*.
27431 * doc/makefile.texi: Fixed markup. Abstract from version
27432 control system used.
27433 (Makefile): Removed obsolete java/parse.y example.
27434 * doc/sourcebuild.texi: Likewise.
27435 (Top Level): Added config, gnattools, libdecnumber, libgcc,
27436 libgomp, libssp. Removed fastjar.
27437 (Miscellaneous Docs): Clarify location.
27438 Added COPYING3, COPYING3.LIB.
27439 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
27441 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27444 * config/i386/i386.c (x86_function_profiler)
27445 [!NO_PROFILE_COUNTERS]: Fix typo.
27446 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
27449 2010-03-22 Janis Johnson <janis187@us.ibm.com>
27450 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27452 * doc/sourcebuild.texi (Test Directives): Split into six
27453 subsections, with most of the current text in new subsections
27454 Directives, Selectors, and Final Actions.
27455 (Directives): Split list of test directives into multiple
27457 (Selectors): Describe use and syntax of selectors.
27458 (Effective-Target Keywords): Describe all existing keywords.
27459 (Add Options): Describe features for dg-add-options.
27460 (Require Support): Describe variants of dg-require-support.
27461 (Final Actions): Describe commands to use in dg-final.
27463 2010-03-22 Michael Matz <matz@suse.de>
27465 PR middle-end/43475
27466 * recog.c (validate_replace_rtx_group): Replace also in
27467 REG_EQUAL and REG_EQUIV notes.
27469 2010-03-22 Richard Guenther <rguenther@suse.de>
27471 PR tree-optimization/43390
27472 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
27473 sure vector extracts are type correct.
27475 2010-03-22 Richard Guenther <rguenther@suse.de>
27477 PR middle-end/40106
27478 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
27479 x * sqrt (x) even when optimizing for size if the target
27480 has native support for sqrt.
27482 2010-03-22 Jakub Jelinek <jakub@redhat.com>
27484 * varasm.c (make_decl_rtl_for_debug): Also clear
27485 flag_mudflap for the duration of make_decl_rtl call.
27488 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
27489 locs from preserved VALUEs.
27491 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27493 PR middle-end/42718
27494 * pa.md (movmemsi): Set align to one if zero.
27495 (movmemdi): Likewise.
27497 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
27500 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
27501 with their corresponding prologue pushes.
27503 2010-03-20 Andrew Pinski <pinskia@gmail.com>
27506 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
27507 at the begining or end.
27508 (spu_expand_epilogue): Likewise.
27510 2010-03-20 Richard Guenther <rguenther@suse.de>
27512 PR rtl-optimization/43438
27513 * combine.c (make_extraction): Properly zero-/sign-extend an
27514 extraction of the low part of a CONST_INT. Also handle
27517 2010-03-19 Mike Stump <mikestump@comcast.net>
27519 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
27520 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
27521 (override_options): Use SUBTARGET32_DEFAULT_CPU.
27523 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
27526 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
27529 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
27531 PR rtl-optimization/42258
27532 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
27533 use that may match DEF.
27536 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
27537 the cost of loading the constant rather than assuming
27539 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
27540 outer code is AND, do the same tests as the andsi3 expander and
27541 return COSTS_N_INSNS (1) if and is cheap.
27543 * optabs.c (avoid_expensive_constant): Fix formatting.
27545 2010-03-19 Michael Matz <matz@suse.de>
27548 * attribs.c (decl_attributes): When rebuilding a function pointer
27549 type use the same qualifiers as the original pointer type.
27551 2010-03-19 Martin Jambor <mjambor@suse.cz>
27553 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
27554 and is_gimple_ip_invariant_address.
27556 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27559 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27561 * config/arm/arm.c (arm_override_options): Turn off
27562 flag_dwarf2_cfi_asm for AAPCS variants.
27564 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27567 * config/arm/arm.c (emit_multi_reg_push): Update comments.
27568 Use PRE_MODIFY instead of PRE_DEC.
27569 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
27570 (vfp_emit_fstmd): Likewise.
27572 2010-03-19 Michael Matz <matz@suse.de>
27575 * builtins.c (expand_builtin_interclass_mathfn,
27576 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
27579 2010-03-19 Richard Guenther <rguenther@suse.de>
27581 PR tree-optimization/43415
27582 * tree-ssa-pre.c (phi_translate): Split out worker to ...
27583 (phi_translate_1): ... this.
27584 (phi_translate): Move all caching here. Cache all NARY
27585 and REFERENCE translations.
27587 2010-03-19 David S. Miller <davem@davemloft.net>
27589 With help from Eric Botcazou.
27590 * config/sparc/sparc.c: Include dwarf2out.h.
27591 (emit_pic_helper): Delete.
27592 (pic_helper_symbol_name): Delete.
27593 (pic_helper_emitted_p): Delete.
27594 (pic_helper_needed): New.
27595 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
27596 (get_pc_thunk_name): New.
27597 (load_pic_register): Remove 'delay_pic_helper' arg. Use
27598 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
27599 Set pic_helper_needed to true. Don't call emit_pic_helper.
27600 (sparc_expand_prologue): Update load_pic_register call.
27601 (sparc_output_mi_thunk): Likewise.
27602 (sparc_file_end): Emit a hidden comdat symbol for the PIC
27603 thunk if possible. Output CFI information as needed.
27605 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
27606 Jack Howarth <howarth@bromo.med.uc.edu>
27609 * config/i386/i386.h: Fix ABI on darwin x86-32.
27611 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
27613 * tree.h: Declare make_decl_rtl_for_debug.
27614 * varasm.c (make_decl_rtl_for_debug): New.
27615 * dwarf2out.c (rtl_for_decl_location): Call it.
27616 * cfgexpand.c (expand_debug_expr): Call it.
27618 2010-03-18 Jakub Jelinek <jakub@redhat.com>
27621 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
27625 * var-tracking.c (vt_init_cfa_base): Do nothing if
27626 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
27628 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
27631 * var-tracking.c (canonicalize_vars_star): New.
27632 (dataflow_post_merge_adjust): Use it.
27634 2010-03-18 Jakub Jelinek <jakub@redhat.com>
27637 * var-tracking.c (non_suitable_const): New function.
27638 (add_uses): For DEBUG_INSNs with constants, don't record any
27639 value, instead just the constant value itself.
27640 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
27641 is not VAR_LOC_UNKNOWN_P, set var to the constant.
27642 (emit_notes_in_bb): Likewise.
27643 (emit_note_insn_var_location): For onepart variables if
27644 cur_loc is a VOIDmode constant, use DECL_MODE.
27646 2010-03-18 Martin Jambor <mjambor@suse.cz>
27648 PR middle-end/42450
27649 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
27650 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
27651 all non-clones. Moved call redirection...
27652 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
27653 (cgraph_materialize_all_clones): Dispose of all
27654 combined_args_to_skip bitmaps.
27655 (verify_cgraph_node): Do not check for edges pointing to wrong
27656 nodes in inline clones.
27657 * tree-inline.c (copy_bb): Call
27658 cgraph_redirect_edge_call_stmt_to_callee.
27659 * ipa.c (cgraph_remove_unreachable_nodes): Call
27660 cgraph_node_remove_callees even when there are used clones.
27662 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
27664 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
27666 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
27669 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
27672 2010-03-18 Michael Matz <matz@suse.de>
27674 PR middle-end/43419
27675 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
27676 into sqrt(x) if we need to preserve signed zeros.
27678 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
27679 Eric Botcazou <ebotcazou@adacore.com>
27681 PR rtl-optimization/43360
27682 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
27683 note if we don't know its invariant status.
27685 2010-03-18 Michael Matz <matz@suse.de>
27687 PR tree-optimization/43402
27688 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
27689 PHI chains of ssa names registered for update.
27691 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
27694 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
27695 non-offsettable and pre_modify update addressing.
27696 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
27697 and "2" alternatives "#".
27698 (*movdd_softfloat32): Make all alternatives "#";
27699 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
27700 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
27701 (*movdf_softfloat32): Make all alternatives "#";
27702 (movdi): Use the new DIFD mode iterator to create a common splitter
27703 for movdi, movdf and movdd patterns.
27705 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
27707 * common.opt (dumpdir): Remove redundant tab.
27709 2010-03-17 Martin Jambor <mjambor@suse.cz>
27711 PR tree-optimization/43347
27712 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
27713 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
27715 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
27717 PR rtl-optimization/42216
27718 * regrename.c (create_new_chain): New function, broken out from...
27719 (scan_rtx_reg): ... here. Call it. Handle the case where we are
27720 appending a use to an empty chain.
27721 (build_def_use): Remove previous changes that convert OP_INOUT to
27722 OP_OUT operands; instead detect the case where an OP_INOUT operand
27723 uses a previously untracked register and create an empty chain for it.
27725 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27727 * doc/extend.texi (Function Attributes): Rewrite unfinished
27728 sentence in ms_abi documentation.
27730 2010-03-17 Alan Modra <amodra@gmail.com>
27732 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
27733 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
27734 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
27735 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
27737 2010-03-16 Richard Henderson <rth@redhat.com>
27739 PR middle-end/43365
27740 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
27741 (lower_try_finally): Save and restore eh_seq around the expansion
27742 of the try-finally.
27744 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
27746 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
27747 statements before splitting block.
27749 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27751 * doc/sourcebuild.texi (Testsuites): Fix markup.
27752 Use pathnames relative to gcc/testsuite.
27753 (Test Directives): Move description of how timeout is determined.
27754 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
27755 (C Tests): Correct gcc.misc-tests directory.
27756 Framework tests now live in gcc.test-framework.
27758 2010-03-16 Richard Guenther <rguenther@suse.de>
27760 PR middle-end/43379
27761 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
27762 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
27764 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
27765 Alexandre Oliva <aoliva@redhat.com>
27767 PR tree-optimization/42917
27768 * lambda-code.c (remove_iv): Skip debug statements.
27769 (lambda_loopnest_to_gcc_loopnest): Likewise.
27770 (not_interesting_stmt): Debug statements are not interesting.
27772 2010-03-16 Jakub Jelinek <jakub@redhat.com>
27776 * cselib.c (cselib_preserve_constants,
27777 cfa_base_preserved_val): New static variables.
27778 (preserve_only_constants): New function.
27779 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
27780 clear its REG_VALUES. If cselib_preserve_constants, don't
27781 empty the whole hash table, but preserve there VALUEs with constants,
27782 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
27783 (cselib_preserve_cfa_base_value): New function.
27784 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
27785 (cselib_init): Change argument to int bitfield. Set
27786 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
27788 (cselib_finish): Clear cselib_preserve_constants and
27789 cfa_base_preserved_val.
27790 * cselib.h (enum cselib_record_what): New enum.
27791 (cselib_init): Change argument to int.
27792 (cselib_preserve_cfa_base_value): New prototype.
27793 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
27794 * dse.c (dse_step1): Likewise.
27795 * cfgcleanup.c (thread_jump): Likewise.
27796 * sched-deps.c (sched_analyze): Likewise.
27797 * gcse.c (local_cprop_pass): Likewise.
27798 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
27799 If FN is non-NULL, call the callback always and whenever it returns
27800 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
27801 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
27802 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
27803 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
27804 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
27805 * var-tracking.c: Include recog.h.
27806 (bb_stack_adjust_offset): Remove.
27807 (vt_stack_adjustments): Don't call it, instead just gather the
27808 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
27809 (adjust_stack_reference): Remove.
27810 (compute_cfa_pointer): New function.
27811 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
27812 (struct adjust_mem_data): New type.
27813 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
27815 (get_address_mode): New function.
27816 (replace_expr_with_values): Use it.
27817 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
27818 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
27819 (adjust_sets): Remove.
27820 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
27821 Use get_address_mode.
27822 (get_adjusted_src): Remove.
27823 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
27824 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
27825 (add_with_sets): Don't call adjust_sets.
27826 (fp_setter, vt_init_cfa_base): New functions.
27827 (vt_initialize): Change return type to bool. Move most of pool etc.
27828 initialization to the beginning of the function from end. Pass
27829 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
27830 If !frame_pointer_needed, call vt_stack_adjustment before mos
27831 vector is filled, call vt_init_cfa_base if argp/framep has been
27832 eliminated to sp. If frame_pointer_needed and argp/framep has
27833 been eliminated to hard frame pointer, set
27834 hard_frame_pointer_adjustment and call vt_init_cfa_base after
27835 encountering fp setter in the prologue. For MO_ADJUST, call
27836 log_op_type before pusing the op into mos vector, not afterwards.
27837 Call adjust_insn before cselib_process_insn/add_with_sets,
27838 call cancel_changes (0) afterwards.
27839 (variable_tracking_main_1): Adjust for vt_initialize calling
27840 vt_stack_adjustments and returning whether it succeeded or not.
27842 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
27844 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
27847 2010-03-15 Jakub Jelinek <jakub@redhat.com>
27849 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
27851 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
27852 drap_reg has not been set.
27854 2010-03-15 Michael Matz <matz@suse.de>
27856 PR middle-end/43300
27857 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
27858 use it to expand block copies.
27859 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
27860 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
27861 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
27863 2010-03-15 Richard Guenther <rguenther@suse.de>
27865 PR tree-optimization/43367
27866 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
27869 2010-03-15 Richard Guenther <rguenther@suse.de>
27871 PR tree-optimization/43317
27872 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
27874 2010-03-15 Martin Jambor <mjambor@suse.cz>
27876 PR tree-optimization/43141
27877 * tree-sra.c (create_abstract_origin): New function.
27878 (modify_function): Call create_abstract_origin.
27880 2010-03-15 Chris Demetriou <cgd@google.com>
27882 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
27885 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27887 PR middle-end/43354
27888 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
27889 call insert_out_of_ssa_copy for default definitions.
27891 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27893 * graphite-clast-to-gimple.c (my_long_long): Defined.
27894 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
27895 * graphite-sese-to-poly.c (my_long_long): Defined.
27896 (scop_ivs_can_be_represented): Use it.
27898 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27900 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
27901 graphite-max-bbs-per-function, and loop-block-tile-size.
27902 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
27904 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
27906 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27908 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
27909 forward declaration.
27910 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
27911 (add_upper_bounds_from_estimated_nit): New.
27912 (build_loop_iteration_domains): Use it.
27914 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27916 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
27918 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27920 PR middle-end/43306
27921 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
27922 should be an INTEGER_CST. Also handle CASE_CONVERT.
27924 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27926 * graphite.c (graphite_initialize): To bound the number of bbs per
27927 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
27928 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
27929 * doc/invoke.texi: Document it.
27931 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27933 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
27934 * graphite-sese-to-poly.h (build_poly_scop): Same.
27936 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
27938 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
27939 the number of parameters in the scop. Use as an upper bound
27940 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
27941 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
27942 * doc/invoke.texi: Document it.
27944 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
27946 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
27947 * doc/c-tree.texi: Remove.
27948 * doc/generic.texi: Merge c-tree.texi here.
27949 * doc/gccint.texi (Trees): Remove menu entry.
27950 (c-tree.texi): Remove @include.
27951 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
27952 * doc/languages.texi (Reading RTL): Ditto.
27954 2010-03-12 Steve Ellcey <sje@cup.hp.com>
27957 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
27959 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27961 PR middle-end/42431
27962 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
27963 code added to work around reload clobbering CONST insns.
27965 2010-03-12 Jakub Jelinek <jakub@redhat.com>
27967 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
27968 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
27969 (cselib_preserve_only_values): Remove retain argument, don't
27970 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
27971 * cselib.h (cselib_preserve_only_values): Remove retain argument.
27972 * var-tracking.c (micro_operation): Move insn field before union.
27973 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
27974 (struct variable_tracking_info_def): Remove n_mos field, change
27975 mos into a vector of micro_operations.
27976 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
27977 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
27978 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
27979 changing into a vector.
27980 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
27981 come before all other uops generated by add_stores.
27982 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
27984 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
27985 a vector. Run just one pass over the bbs instead of separate counting
27986 and computation phase.
27987 (vt_finalize): Free VTI (bb)->mos vector instead of array.
27990 * tree-inline.c (remap_decls): Put old_var rather than origin_var
27991 into *nonlocalized_list vector.
27992 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
27993 even if origin is non-NULL.
27994 (gen_variable_die): Likewise.
27995 (process_scope_var): Don't change origin.
27996 (gen_decl_die): Likewise.
27997 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
27998 before adding new edges instead of after it, fix moving over
28001 2010-03-11 David S. Miller <davem@davemloft.net>
28003 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
28005 * configure: Rebuild.
28007 2010-03-11 Martin Jambor <mjambor@suse.cz>
28009 PR tree-optimization/43257
28010 * tree.c (assign_assembler_name_if_neeeded): New function.
28011 (free_lang_data_in_cgraph): Assembler name assignment moved to the
28012 above new function.
28013 * tree.h (assign_assembler_name_if_neeeded): Declare.
28014 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
28015 the function if needed.
28017 2010-03-11 Chris Demetriou <cgd@google.com>
28019 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
28020 include/stdint-gcc.h, and include/stdint.h world-readable.
28022 2010-03-11 Richard Guenther <rguenther@suse.de>
28024 PR tree-optimization/43255
28025 * tree-vrp.c (process_assert_insertions_for): Do not insert
28026 asserts for trivial conditions.
28028 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28030 PR tree-optimization/43280
28031 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
28032 generation. Move calculation of size out of the if branch.
28033 (find_bswap): Modify compare number generation.
28035 2010-03-11 Richard Guenther <rguenther@suse.de>
28038 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
28039 (input_gimple_stmt): Fixup handled component types during
28040 operand read. Also fix up decls in ADDR_EXPRs.
28042 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
28044 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
28045 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
28047 2010-03-10 Jan Hubicka <jh@suse.cz>
28050 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
28051 * varasm.c (get_variable_section): Don't do that here...
28052 (make_decl_rtl): ... and here.
28053 (do_assemble_alias): Produce decl RTL.
28054 (assemble_alias): Likewise.
28056 2010-03-10 Jakub Jelinek <jakub@redhat.com>
28059 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
28060 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
28062 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
28063 (based_loc_descr): Only express drap or vdrap regno based expressions
28064 using DW_OP_fbreg when not optimizing.
28065 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
28066 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
28067 REG_CFA_SET_VDRAP note.
28069 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
28071 PR tree-optimization/43236
28072 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
28073 error in calculation of base address in reverse iteration case.
28074 (generate_builtin): Take number of latch executions if the statement
28077 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
28079 PR middle-end/42859
28080 * tree-eh.c: Include pointer-set.h.
28081 (lower_eh_dispatch): Filter out duplicate case labels and
28082 remove the unneeded edge when the label is unused. Return
28083 true when some edges are removed.
28084 (execute_lower_eh_dispatch): When any lowering resulted in
28085 removing an edge, also delete unreachable blocks.
28087 2010-03-10 Jakub Jelinek <jakub@redhat.com>
28090 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
28091 UNSPEC_MACHOPIC_OFFSET.
28093 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
28096 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
28097 (m68k_delegitimize_address): New function.
28099 2010-03-09 Jakub Jelinek <jakub@redhat.com>
28102 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
28105 * var-tracking.c (adjust_sets): New function.
28106 (count_with_sets, add_with_sets): Use it.
28107 (get_adjusted_src): New inline function.
28108 (add_stores): Use it.
28111 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
28112 call cselib_dummy_expand_value_rtx_cb instead of
28113 cselib_expand_value_rtx_cb.
28116 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
28117 * config/i386/i386.c: Include debug.h and dwarf2out.h.
28118 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
28119 and .cfi_endproc around the pic thunks.
28120 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
28121 all queued unwind info register saves are saved before the call.
28122 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
28123 considered as sp-=4 for unwind info and the pop as sp+=4 which
28124 also clobbers dest, but doesn't actually restore it.
28127 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
28128 RTX_FRAME_RELATED_P.
28130 2010-03-09 Jie Zhang <jie@codesourcery.com>
28132 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
28133 whitespaces in output template.
28135 2010-03-09 Jie Zhang <jie@codesourcery.com>
28137 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
28138 out array boundary.
28140 2010-03-08 Jakub Jelinek <jakub@redhat.com>
28142 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
28143 builtins.exp in a separate job.
28145 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28147 * graphite-sese-to-poly.c (add_param_constraints): Use
28148 lower_bound_in_type and upper_bound_in_type.
28150 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28152 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
28153 instead of unsigned_type_node.
28155 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28156 Reza Yazdani <reza.yazdani@amd.com>
28158 PR middle-end/43065
28159 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
28160 on pointer type parameters.
28162 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
28164 PR middle-end/42644
28165 PR middle-end/42130
28166 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
28167 handle conversions from pointer to integers.
28168 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
28169 induction variable, to be able to work with code generated by CLooG.
28170 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
28171 (build_poly_scop): Bail out if we cannot codegen a loop.
28173 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
28175 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
28176 code generation with gloog_error.
28178 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28180 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
28181 Call fold_convert on all the returned values.
28182 (expand_scalar_variables_expr): Pass to
28183 expand_scalar_variables_ssa_name the type of the resulting expression.
28185 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28187 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
28188 ppl_min_for_le_pointset.
28189 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
28190 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
28192 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28194 * graphite-dependences.c (map_into_dep_poly): Removed.
28195 (dependence_polyhedron_1): Use combine_context_id_scat.
28197 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28199 * graphite-poly.h (struct poly_scattering): Add layout documentation.
28200 (struct poly_bb): Same.
28201 (combine_context_id_scat): New.
28203 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28205 PR middle-end/42326
28206 * sese.c (name_defined_in_loop_p): Return false for default
28209 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28211 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
28212 and clean up the logic.
28214 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
28216 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
28219 2010-03-08 Jakub Jelinek <jakub@redhat.com>
28221 * var-tracking.c (remove_cselib_value_chains): Define only for
28223 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
28224 delete_slot_part, emit_notes_for_differences_1): Don't call
28225 remove_cselib_value_chains here.
28226 (set_slot_part, emit_notes_for_differences_2): Don't call
28227 add_cselib_value_chains here.
28228 (preserved_values): New vector.
28229 (preserve_value): New function.
28230 (add_uses, add_stores, vt_add_function_parameters): Use it
28231 instead of cselib_preserve_value.
28232 (changed_values_stack): New vector.
28233 (check_changed_vars_0): New function.
28234 (check_changed_vars_1, check_changed_vars_2): Use it.
28235 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
28236 changed_values_stack VALUEs.
28237 (vt_emit_notes): For all preserved_values call
28238 add_cselib_value_chains. If ENABLE_CHECKING call
28239 remove_cselib_value_chains before verifying value_chains is empty.
28240 Initialize and free changed_values_stack.
28241 (vt_initialize): Initialize preserved_values.
28242 (vt_finalize): Free preserved_values.
28244 2010-03-08 Richard Guenther <rguenther@suse.de>
28246 PR tree-optimization/43269
28247 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
28250 2010-03-08 Martin Jambor <mjambor@suse.cz>
28252 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
28253 (ipa_is_param_called): Removed.
28254 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
28255 (ipa_print_node_params): Do not print the called flag.
28256 (ipa_write_node_info): Do not stream the called flag.
28257 (ipa_read_node_info): Likewise.
28259 2010-03-07 Jakub Jelinek <jakub@redhat.com>
28262 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
28263 * cselib.c (struct expand_value_data): Add dummy field.
28264 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
28266 (cselib_dummy_expand_value_rtx_cb): New function.
28267 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
28269 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
28270 * var-tracking.c: Include pointer-set.h.
28271 (variable): Change n_var_parts to char from int. Add
28272 cur_loc_changed and in_changed_variables fields.
28273 (variable_canonicalize): Remove.
28274 (shared_var_p): New inline function.
28275 (unshare_variable): Maintain cur_loc_changed and
28276 in_changed_variables fields. If var was in changed_variables,
28277 replace it there with new_var. Just copy cur_loc instead of
28278 resetting it to something else.
28279 (variable_union): Don't recompute cur_loc. Use shared_var_p.
28280 (dataflow_set_union): Don't call variable_canonicalize.
28281 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
28282 of their DEBUG_EXPR_TREE_DECLs.
28283 (canonicalize_loc_order_check): Verify that cur_loc is NULL
28284 and in_changed_variables and cur_loc_changed is false.
28285 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
28286 and cur_loc_changed. Don't update cur_loc here.
28287 (variable_merge_over_src): Don't call variable_canonicalize.
28288 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
28289 removing loc that is equal to cur_loc, clear cur_loc,
28290 set cur_loc_changed and ensure variable_was_changed is called.
28291 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
28292 compare pointers in cur_loc check, if it is equal to loc,
28293 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
28294 (variable_different_p): Remove compare_current_location argument,
28295 don't compare cur_loc.
28296 (dataflow_set_different_1): Adjust variable_different_p caller.
28297 (variable_was_changed): If dv had some var in changed_variables
28298 already, reset in_changed_variables flag for it and propagate
28299 cur_loc_changed over to the new variable. On empty var
28300 always set cur_loc_changed. Set in_changed_variables on whatever
28301 var is added to changed_variables.
28302 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
28303 Use shared_var_p. When removing loc that is equal to cur_loc,
28304 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
28305 end, don't set it to something else, just call variable_was_changed.
28306 (delete_slot_part): Use shared_var_p. When cur_loc equals to
28307 loc being removed, clear cur_loc and set cur_loc_changed.
28308 Set cur_loc_changed if all locations have been removed.
28309 (struct expand_loc_callback_data): New type.
28310 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
28311 allocated. Always create SUBREGs if simplify_subreg failed.
28312 Prefer to use cur_loc, when that fails and still in
28313 changed_variables (and seen first time) recompute it. Set
28314 cur_loc_changed of variables which had to change cur_loc and
28315 compute elcd->cur_loc_changed if any of the subexpressions used
28316 had to change cur_loc.
28317 (vt_expand_loc): Adjust to pass arguments in
28318 expand_loc_callback_data structure.
28319 (vt_expand_loc_dummy): New function.
28320 (emitted_notes): New variable.
28321 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
28322 that weren't used for any other decl in current
28323 emit_notes_for_changes call call vt_expand_loc_dummy to update
28324 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
28325 first loc_chain location if NULL before. Always use just
28326 cur_loc instead of first loc_chain location. When cur_loc_changed
28327 is false, when not --enable-checking=rtl just don't emit any note.
28328 When rtl checking, compute the note and assert it is the same
28329 as previous note. Clear cur_loc_changed and in_changed_variables
28330 at the end before removing from changed_variables.
28331 (check_changed_vars_3): New function.
28332 (emit_notes_for_changes): Traverse changed_vars to call
28333 check_changed_vars_3 on each changed var.
28334 (emit_notes_for_differences_1): Clear cur_loc_changed and
28335 in_changed_variables. Recompute cur_loc of new_var.
28336 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
28337 (vt_emit_notes): Initialize and destroy emitted_notes.
28339 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
28341 PR rtl-optimization/42220
28342 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
28343 Use verify_reg_tracked to determine if we should use OP_OUT rather
28345 (build_def_use): If we see an in-out operand for a register that we
28346 know nothing about, treat is an output if possible, fail the block if
28349 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
28352 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
28355 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
28358 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
28359 uses of relevant DEFs that are dead outside the loop too.
28361 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
28363 * var-tracking.c (dataflow_set_merge): Swap src and src2.
28365 2010-01-13 Jakub Jelinek <jakub@redhat.com>
28367 * var-tracking.c (values_to_unmark): New variable.
28368 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28369 values_to_unmark vector. Moved body to...
28370 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
28371 instead queue it into values_to_unmark vector.
28372 (vt_find_locations): Free values_to_unmark vector.
28374 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
28376 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
28377 (site.exp): Export them when plugins are enabled.
28379 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
28381 PR middle-end/42326
28382 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
28383 that contain scevs.
28384 (chrec_fold_multiply): Same.
28386 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
28389 * c-decl.c (build_compound_literal): Return early if init is
28390 an error_mark_node.
28392 2010-03-04 Martin Jambor <mjambor@suse.cz>
28394 PR tree-optimization/43164
28395 PR tree-optimization/43191
28396 * tree-sra.c (type_consists_of_records_p): Reject records with
28397 zero-size bit-fields at the end.
28399 2010-03-04 Mike Stump <mikestump@comcast.net>
28401 * Makefile.in (TAGS): Remove *.y.
28403 2010-03-04 Richard Guenther <rguenther@suse.de>
28405 PR tree-optimization/40761
28406 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
28408 (my_rev_post_order_compute): New function.
28409 (init_pre): Call it.
28411 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
28413 PR middle-end/43209
28414 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
28415 decrease the cost of an IV candidate when the cost is infinite.
28417 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28419 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
28420 Use '3DNow!' for the extension of that name, ensure normal space
28422 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
28424 2010-03-03 Jeff Law <law@redhat.com>
28426 * PR middle-end/32693
28427 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
28428 than gen_rtx_SUBREG.
28429 (extract_bit_field_1): Likewise.
28431 2010-03-03 Janis Johnson <janis187@us.ibm.com>
28433 * doc/sourcebuild.texi (Test directives): Document that arguments
28434 include-opts and exclude-opts are now optional for dg-skip-if,
28435 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
28437 2010-03-03 Jason Merrill <jason@redhat.com>
28440 * cgraph.h (varpool_node): Add extra_name field.
28441 * varpool.c (varpool_extra_name_alias): New.
28442 (varpool_assemble_decl): Emit extra name aliases.
28443 (varpool_mark_needed_node): Look past an extra name alias.
28444 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
28445 * lto-streamer-in.c (lto_input_tree): Read it.
28446 * lto-streamer-out.c (output_unreferenced_globals): Write it.
28448 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
28450 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
28451 (sparc*-*-solaris2*): ...this.
28453 2010-03-03 Jakub Jelinek <jakub@redhat.com>
28456 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
28457 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
28458 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
28459 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
28462 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
28463 fallthrough to default handling, just with want_address 0 instead of 2.
28464 For single element lists, add_AT_loc directly, otherwise create an
28465 artificial variable DIE and stick location list to it.
28468 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
28469 (VAL_EXPR_HAS_REVERSE): Define.
28470 (reverse_op): New function.
28471 (add_stores): For reversible operations add an extra MO_VAL_USE.
28473 2010-03-02 Jason Merrill <jason@redhat.com>
28475 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
28477 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
28479 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
28480 (sparc64-*-linux*): Likewise.
28481 (sparc64-*-solaris2*): Include assembler files before linker ones.
28482 (sparc-*-solaris2*): Simplify and reorder to match previous case.
28483 * config/sparc/gas.h: Delete.
28484 * config/sparc/sol2-64.h: Add copyright notice.
28485 * config/sparc/sol2-gas-bi.h: Likewise.
28486 * config/sparc/sol2-gld.h: Likewise.
28487 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
28488 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
28489 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
28490 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
28491 (sparc_elf_asm_named_section): Rename into...
28492 (sparc_solaris_elf_asm_named_section): ...this. Always define.
28494 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
28496 * config/alpha/alpha.c (override_options): Fix -mtune error message.
28498 2010-03-02 Jeff Law <law@redhat.com>
28500 PR middle-end/42431
28501 * reload1.c (rtx_p, substitute_stack): Declare.
28502 (substitute): Record addresses of changed rtxs.
28503 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
28504 Restore the original rtx when complete.
28505 (reload): Free subsitute_stack when complete.
28507 2010-03-02 Janis Johnson <janis187@us.ibm.com>
28509 * doc/gccint.texi (menu): Add Testsuites as a chapter.
28510 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
28512 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
28513 LTO Testing, gcov Testing, profopt Testing, compat Testing,
28514 Torture Tests): Change from subsection to section.
28516 2010-03-02 Jakub Jelinek <jakub@redhat.com>
28517 Steven Bosscher <steven@gcc.gnu.org>
28519 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
28522 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
28524 PR middle-end/42640
28525 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
28526 the assignment from the new induction variable to the assignment
28527 of the value from the original loop PHI function.
28529 2010-03-01 Janis Johnson <janis187@us.ibm.com>
28530 Daniel Jacobowitz <dan@codesourcery.com>
28532 * doc/sourcebuild.texi (Test directives): Clarify options to
28535 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28537 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
28538 Disable cfi directives unless GCC and gas agree on using read-only
28539 .eh_frame sections for 64-bit.
28540 * configure: Regenerate.
28542 2010-03-01 Richard Guenther <rguenther@suse.de>
28544 PR tree-optimization/43220
28545 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
28546 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
28548 2010-03-01 Richard Guenther <rguenther@suse.de>
28549 Martin Jambor <mjambor@suse.cz>
28551 PR middle-end/41250
28552 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
28553 gimplified parameters.
28555 2010-03-01 Christian Bruel <christian.bruel@st.com>
28557 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
28559 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
28561 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
28563 2010-03-01 Richard Guenther <rguenther@suse.de>
28565 PR middle-end/43213
28566 * expr.c (expand_assignment): Use the alias-oracle to tell
28567 if the rhs aliases the result decl.
28569 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28572 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
28573 to sol_gt_pch_get_address.
28574 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
28575 64-bit, SPARC and x86.
28576 (sol_gt_pch_get_address): New function.
28578 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
28580 * toplev.h (inform_n, error_n): Declare.
28581 * diagnostic.c (inform_n, error_n): New function.
28583 2010-03-01 Jakub Jelinek <jakub@redhat.com>
28585 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
28586 has no rtl yet when processing local_decls, queue it and recheck
28587 if deferred stack allocation hasn't assigned it rtl.
28589 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
28591 * config/sh/sh.c (unspec_bbr_uid): New.
28592 (gen_block_redirect): Use it instead of INSN_UID.
28593 (gen_far_branch): Likewise.
28595 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
28597 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
28598 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
28600 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28602 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
28603 (Warning Options): -Wno-conversion-null is valid for
28604 Objective-C++ as well.
28605 * doc/tm.texi (Named Address Spaces): Likewise.
28606 * doc/plugins.texi (Plugins): Replace TABs with spaces.
28607 * doc/tree-ssa.texi (Tree SSA): Likewise.
28609 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
28612 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
28613 by default. Don't set the default arch for
28614 i[34567]86-*-darwin*|x86_64-*-darwin*.
28616 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
28619 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
28620 default. Set the default 32bit/64bit archs with $with_arch
28621 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
28623 2010-02-27 Richard Guenther <rguenther@suse.de>
28625 PR tree-optimization/43186
28626 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
28627 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
28628 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
28629 unroller iterations.
28631 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
28633 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
28634 required and i[34567]86-*-* targets don't support 64bit ISA.
28636 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
28639 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
28640 the same alias set.
28642 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
28644 * config.gcc: Set the default arch at least to Prescott for
28645 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
28646 if SSE math is enabled.
28648 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
28650 * diagnostic.c (diagnostic_initialize): Update.
28651 (diagnostic_report_diagnostic): Test inhibit_notes_p for
28653 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
28654 (diagnostic_inhibit_notes): New.
28655 * toplev.c (process_options): inhibit notes with -fcompare-debug.
28657 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
28660 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
28661 * doc/standards.texi: Likewise.
28662 * doc/extend.texi: Likewise.
28663 * doc/trouble.texi: Likewise.
28664 * doc/cppopts.texi: Likewise.
28665 * doc/install.texi: Likewise.
28666 * c.opt (std=c90,std=gnu90): New options.
28667 * c-opts.c (c_common_handle_option): Handle them.
28669 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
28672 * c-decl.c (undeclared_variable): Use an informative note.
28674 2010-02-26 Richard Guenther <rguenther@suse.de>
28676 PR tree-optimization/43186
28677 * gimple.h (gimple_fold): Remove.
28678 * gimple.c (gimple_fold): Remove. Inline into single user ...
28679 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
28680 Try harder for conditions.
28682 2010-02-26 Jakub Jelinek <jakub@redhat.com>
28685 * function.c (used_types_insert): Don't skip through named pointer
28686 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
28687 and it is different from the main variant's type.
28689 2010-02-26 Nick Clifton <nickc@redhat.com>
28691 * config/rx/rx.md (sminsi3): Remove bogus alternative.
28693 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
28695 * config.gcc: Support --with-fpmath=sse for x86.
28697 * config/i386/ssemath.h: New.
28699 * doc/install.texi (--with-fpmath=sse): Documented.
28701 2010-02-26 Richard Guenther <rguenther@suse.de>
28703 PR tree-optimization/43188
28704 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
28705 vector types of over-aligned element type.
28707 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
28710 * config/i386/i386.c (expand_vec_perm_blend): Use correct
28711 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
28713 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
28715 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
28717 2010-02-26 Jakub Jelinek <jakub@redhat.com>
28719 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
28720 * var-tracking.c: Include diagnostic.h.
28721 (debug_dv): New function.
28722 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
28725 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
28726 (add_value_chain, add_value_chains, remove_value_chain,
28727 remove_value_chains): Handle DEBUG_EXPRs.
28728 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
28731 * regcprop.c (struct queued_debug_insn_change): New type.
28732 (struct value_data_entry): Add debug_insn_changes field.
28733 (struct value_data): Add n_debug_insn_changes field.
28734 (debug_insn_changes_pool): New variable.
28735 (free_debug_insn_changes, apply_debug_insn_changes,
28736 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
28737 (kill_value_one_regno): Call free_debug_insn_changes if needed.
28738 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
28740 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
28742 (copyprop_hardreg_forward_1): Don't call apply_change_group for
28743 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
28744 changes, call cprop_find_used_regs via note_stores.
28745 (copyprop_hardreg_forward): When copying vd from predecessor
28746 which has any queued DEBUG_INSN changes, make sure the pointers are
28747 cleared. At the end call df_analyze and then if there are any
28748 DEBUG_INSN changes queued at the end of some basic block for still
28749 live registers, apply them.
28750 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
28752 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
28754 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
28757 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
28759 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
28760 targets. Set the default with_cpu/with_arch from arch/cpu.
28761 Allow x86-64 and native for with_cpu/with_arch.
28763 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
28765 * ebitmap.c: Change calls to verify_popcount with calls to
28766 sbitmap_verify_popcount.
28767 (ebitmap_clear_bit): Fixed map->cacheindex test and
28768 map>cache update when bit clearing results in an empty
28771 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
28774 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
28775 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
28776 and support both V2DF and V2DI modes.
28777 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
28778 support both V2DF and V2DI modes.
28779 (general): Delete trailing whitespace from a few patterns.
28781 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28782 V2DF/V2DI interleave high/low builtins.
28784 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
28787 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
28788 interleave high/low functions.
28790 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
28792 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
28793 #pragma extern_prefix.
28795 2010-02-25 Jakub Jelinek <jakub@redhat.com>
28798 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
28799 BLKmode, assert op0 is a MEM and just adjust its mode.
28802 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
28803 if bitpos isn't multiple of mode's bitsize.
28805 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
28807 * c.opt (-ftemplate-depth=): New.
28808 (-ftemplate-depth-): Deprecate.
28809 * optc-gen.awk: Handle -ftemplate-depth=.
28810 * opth-gen.awk: Likewise.
28811 * c-opts.c (c_common_handle_option): Likewise.
28812 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
28814 2010-02-24 Jason Merrill <jason@redhat.com>
28816 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
28818 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28820 * cfg.c (alloc_aux_for_block): Remove inline.
28821 (alloc_aux_for_edge): Likewise.
28823 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28825 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
28827 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28829 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
28830 * config/i386/sol2-gas.h: New file.
28831 * config.gcc (i[34567]86-*-solaris2*): Use it.
28833 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
28836 * c-typeck.c (ep_convert_and_check): New.
28837 (build_conditional_expr): Use it.
28838 (build_binary_op): Likewise.
28840 2010-02-24 Jakub Jelinek <jakub@redhat.com>
28842 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
28845 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
28846 bounds even for -O+.
28847 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
28848 expr needs to have DECL_NAME set.
28850 2010-02-24 Nick Clifton <nickc@redhat.com>
28852 * config/mep/mep.c: Include gimple.h.
28853 (mep_function_uses_sp): Delete unused function.
28854 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
28855 parameters. Use unsigned integers to count args. Return a
28856 NULL_RTX instead of an error_mark_node. Toidy up formatting.
28858 2010-02-23 Jakub Jelinek <jakub@redhat.com>
28861 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
28862 greater or equal to nelt instead of 2 * nelt.
28863 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
28866 2010-02-23 Jason Merrill <jason@redhat.com>
28869 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
28870 in cfun->local_decls even if they have register types.
28873 * stor-layout.c (place_field): Don't warn about unnecessary
28874 DECL_PACKED if the type is packed.
28876 2010-02-23 Jakub Jelinek <jakub@redhat.com>
28879 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
28880 GOTOFF relocs, even when the base reg isn't pic pointer.
28882 2010-02-23 Michael Matz <matz@suse.de>
28885 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
28886 (expand_gimple_basic_block): Generate and use debug temps if there
28887 are debug uses left after the last real use of TERed ssa names.
28888 Unlink debug immediate uses when they are expanded.
28890 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
28893 * config/i386/i386.c (override_options): Reorganise to provide
28894 better error messages.
28896 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
28898 PR middle-end/43083
28899 * graphite-scop-detection.c (create_single_exit_edge): Move
28900 the call to find_single_exit_edge to....
28901 (create_sese_edges): ...here. Don't handle multiple edges
28902 exiting the function.
28903 (build_graphite_scops): Don't handle multiple edges
28904 exiting the function.
28906 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
28908 PR middle-end/43097
28909 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
28910 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
28912 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
28914 PR middle-end/43026
28915 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
28917 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
28920 * c-typeck.c (convert_arguments): Print declaration location.
28921 * c-common.c (validate_nargs): Rename as
28922 builtin_function_validate_nargs.
28923 (check_builtin_function_arguments): Update.
28925 2010-02-22 Richard Guenther <rguenther@suse.de>
28928 * tree-inline.c (declare_return_variable): Use the type of
28929 the call stmt lhs if available.
28931 2010-02-22 Duncan Sands <baldrick@free.fr>
28933 * passes.c (register_pass): Always consider all pass lists when
28934 ref_pass_instance_number is zero.
28936 2010-02-22 Richard Guenther <rguenther@suse.de>
28938 PR tree-optimization/42749
28939 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
28940 parameter. Do arithmetic in the original type.
28941 (update_accumulator_with_ops): Likewise.
28942 (adjust_accumulator_values): Adjust.
28944 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28946 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
28947 (QI to BLKmode splitter): New splitter.
28949 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
28951 * config/i386/i386.c (initial_ix86_tune_features): Turn on
28952 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
28954 2010-02-22 Richard Guenther <rguenther@suse.de>
28956 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
28958 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
28960 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
28961 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
28962 ($(T)crti.o, $(T)crtn.o): Remove rules.
28964 2010-02-21 Tobias Burnus <burnus@net-b.de>
28967 * doc/invoke.texi (-fassociative-math): Document that this
28968 option is automatically enabled for Fortran.
28970 2010-02-20 David S. Miller <davem@davemloft.net>
28972 * configure.ac: Test if linker and assembler properly support
28973 GOTDATA_OP relocations.
28974 * configure: Rebuild.
28975 * config.in: Likewise.
28976 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
28977 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
28978 (movsi_high_pic): Likewise.
28979 (movdi_lo_sum_pic): Likewise.
28980 (movdi_high_pic): Likewise.
28981 (movsi_pic_gotdata_op): New pattern.
28982 (movdi_pic_gotdata_op): Likewise.
28983 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
28984 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
28986 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
28989 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
28990 attribute to ssemul.
28991 (xop_mulv2div2di3_high): Ditto.
28993 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28996 * c.opt (Wconversion-null): New option.
28997 * doc/invoke.texi (Wconversion-null): Document.
28999 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29001 * common.opt (Wlarger-than-): Add Undocumented.
29003 2010-02-19 Mike Stump <mikestump@comcast.net>
29005 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
29007 2010-02-19 Jason Merrill <jason@redhat.com>
29010 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
29011 * configure: Likewise.
29013 2010-02-20 Alan Modra <amodra@gmail.com>
29015 PR middle-end/42344
29016 * cgraph.h (cgraph_make_decl_local): Declare.
29017 * cgraph.c (cgraph_make_decl_local): New function.
29018 (cgraph_make_node_local): Use it.
29019 * cgraphunit.c (cgraph_function_versioning): Likewise.
29020 * ipa.c (function_and_variable_visibility): Likewise.
29022 2010-02-19 Jakub Jelinek <jakub@redhat.com>
29025 * except.c (sjlj_emit_function_enter): Don't call
29026 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
29028 * rtl.h (add_reg_br_prob_note): Remove prototype.
29030 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
29033 * c-common.c (conversion_warning): Remove widening conversions
29034 before checking the conversion of integers to reals.
29036 2010-02-19 Mike Stump <mikestump@comcast.net>
29038 PR middle-end/43125
29039 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
29042 * cgraphunit.c (process_function_and_variable_attributes): Check
29043 DECL_PRESERVE_P instead of looking up attribute "used".
29044 * ipa-pure-const.c (check_decl): Likewise.
29045 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
29046 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
29047 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
29048 instead of attribute "used".
29049 * config/sol2-c.c (solaris_pragma_init): Likewise.
29050 (solaris_pragma_fini): Likewise.
29052 2010-02-19 Jakub Jelinek <jakub@redhat.com>
29054 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
29055 Use XCNEW instead of xcalloc.
29056 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
29057 XNEW instead of xmalloc.
29058 (get_fields): Use XNEWVEC instead of xmalloc.
29061 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
29062 populate vars array.
29063 (create_new_general_access): For debug stmts just reset value.
29064 (get_stmt_accesses): For accesses within debug stmts just record them
29065 using add_access_to_acc_sites instead of preventing the peeling or
29066 counting them as accesses.
29068 PR middle-end/42233
29069 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
29071 2010-02-19 Richard Guenther <rguenther@suse.de>
29073 PR tree-optimization/42916
29074 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
29077 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
29079 * configure.ac: Replace all uses of changequote in macro arguments
29080 with proper quoting.
29082 2010-02-19 Jakub Jelinek <jakub@redhat.com>
29084 PR middle-end/42233
29085 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
29087 2010-02-19 Richard Guenther <rguenther@suse.de>
29089 PR tree-optimization/42944
29090 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
29091 test for aliasing with errno.
29093 2010-02-19 Jakub Jelinek <jakub@redhat.com>
29095 PR middle-end/42233
29096 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
29097 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
29098 * dojump.c: Include output.h.
29099 (inv): New inline function.
29100 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
29101 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
29102 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
29103 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
29104 argument, pass it down to other calls.
29105 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
29106 add REG_BR_PROB note to the conditional jump.
29107 * cfgexpand.c (add_reg_br_prob_note): Removed.
29108 (expand_gimple_cond): Don't call it, add the probability
29109 as last argument to jumpif_1/jumpifnot_1.
29110 * Makefile.in (dojump.o): Depend on output.h.
29111 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
29113 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
29114 * stmt.c (do_jump_if_equal): Likewise.
29115 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
29116 * loop-unswitch.c (compare_and_jump_seq): Likewise.
29117 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
29119 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
29120 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
29121 jumpifnot_1 callers.
29122 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
29124 (store_expr): Adjust jumpifnot caller.
29125 (store_constructor): Adjust jumpif caller.
29127 PR middle-end/42233
29128 * gimplify.c (gimple_boolify): For __builtin_expect call
29129 gimple_boolify also on its first argument.
29131 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
29133 * configure.ac (gnu-unique-object): Wrap regexps using [] in
29135 (__stack_chk_fail): Ditto. Remove quadrigraphs.
29136 * configure: Regenerated.
29138 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29140 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
29141 lang_hooks.types_compatible_p instead of comptypes.
29143 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
29145 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
29146 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
29147 if __prefer_thumb__ is defined.
29149 2010-02-18 Martin Jambor <mjambor@suse.cz>
29151 PR tree-optimization/43066
29152 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
29153 array with zero-sized element type.
29155 2010-02-18 Jakub Jelinek <jakub@redhat.com>
29157 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
29158 rtx, allocate struct var_loc_node here and return it to the
29159 caller, and only if it is actually needed.
29160 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
29161 move it earlier and return immediately if it returns NULL.
29163 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
29165 * config/sparc/gas.h: New file. Restore
29166 TARGET_ASM_NAMED_SECTION to its ELF default.
29167 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
29168 check !HAVE_GNU_AS.
29169 * config/sparc/sparc.c (sparc_elf_asm_named_section):
29170 Likewise. Add ATTRIBUTE_UNUSED to prototype.
29171 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
29172 after sparc/sysv4.h.
29174 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
29176 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
29178 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
29180 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
29181 patterns from predicated pattern.
29183 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
29186 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
29187 for insn mnemonic suffix.
29189 2010-02-17 Richard Guenther <rguenther@suse.de>
29191 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
29194 2010-02-17 Jakub Jelinek <jakub@redhat.com>
29197 * caller-save.c (save_call_clobbered_regs): If BB ends with
29198 a DEBUG_INSN, move any notes in between last real insn and the last
29199 DEBUG_INSN after the last DEBUG_INSN.
29201 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
29203 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
29204 Fix return type. Fix argument type. Explain meaning of return value.
29206 2010-02-16 Richard Guenther <rguenther@suse.de>
29208 PR tree-optimization/41043
29209 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
29210 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
29212 (vrp_visit_phi_node): ... but only for loop PHI nodes.
29214 2010-02-16 Ira Rosen <irar@il.ibm.com>
29216 PR tree-optimization/43074
29217 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
29218 * tree-vect-loop.c (vect_analyze_loop_operations): Add
29219 vectorizable cycles in hybrid SLP check.
29220 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
29222 2010-02-16 Richard Guenther <rguenther@suse.de>
29224 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
29225 (true_dependence): If memrefs_conflict_p computes must-alias
29226 trust it. Move TBAA check after offset-based disambiguation.
29227 (canon_true_dependence): Likewise.
29229 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
29231 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
29232 * doc/invoke.texi: Document it.
29233 * var-tracking.c: Include toplev.h and params.h.
29234 (vt_find_locations): Return bool indicating success. Compute
29235 hash sizes unconditionally. Check new parameter, report.
29236 (variable_tracking_main_1): Check vt_find_locations results and
29237 retry. Renamed from...
29238 (variable_tracking_main): ... this. New wrapper to preserve
29239 flag_var_tracking_assignments.
29240 * Makefile.in (var-tracking.o): Adjust dependencies.
29242 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
29243 Jakub Jelinek <jakub@redhat.com>
29246 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
29247 if weak_import attribute is present.
29248 * config/darwin.c (machopic_select_section): Likewise.
29250 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
29252 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
29253 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
29254 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
29255 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
29257 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
29260 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29261 Fix argument types.
29263 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
29264 Rewrite text to refer to the names.
29266 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
29268 * config/i386/i386-builtin-types.def
29269 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
29270 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
29271 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
29272 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
29273 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
29274 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
29275 IX86_BUILTIN_VPERMIL2PS256.
29276 (MULTI_ARG_4_DF2_DI_I): Defined.
29277 (MULTI_ARG_4_DF2_DI_I1): Defined.
29278 (MULTI_ARG_4_SF2_SI_I): Defined.
29279 (MULTI_ARG_4_SF2_SI_I1): Defined.
29280 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
29281 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
29282 __builtin_ia32_vpermil2ps256.
29283 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
29284 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
29285 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
29286 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
29287 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
29288 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
29289 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
29290 CODE_FOR_xop_vpermil2v8sf3.
29291 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
29292 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
29293 * config/i386/xopintrin.h (_mm_permute2_pd): New.
29294 (_mm256_permute2_pd): New.
29295 (_mm_permute2_ps): New.
29296 (_mm256_permute2_ps): New.
29298 2010-02-15 Nick Clifton <nickc@redhat.com>
29300 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
29301 boolean parameters. Use emit_jump_insn when emitting a pop
29302 instruction containing a return insn.
29303 (push): Use 'true' rather than '1' as second parameter to F.
29304 (h8300_expand_prologue): Likewise.
29305 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
29306 (h8300_expand_epilogue): Likewise.
29308 2010-02-15 Richard Guenther <rguenther@suse.de>
29310 PR middle-end/43068
29311 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
29314 2010-02-15 Nick Clifton <nickc@redhat.com>
29316 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
29319 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
29321 * intl.c (fake_ngettext): New function.
29322 * intl.h (fake_ngettext): Declare.
29323 (ngettext): Define macro.
29324 * collect2.c (notice_translated): New function.
29325 (main): Use notice_translated and ngettext.
29326 * collect2.h (notice_translated): Declare.
29328 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
29330 * reorg.c (delete_computation): Comment fixes.
29331 * caller-save.c (setup_save_areas): Idem.
29332 * sel-sched-dump.c (dump_lv_set): Idem.
29335 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29337 * config/s390/s390.c (s390_sched_init): New function.
29338 (TARGET_SCHED_INIT): Target hook defined.
29340 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
29341 Jack Howarth <howarth@bromo.med.uc.edu>
29342 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
29345 Partial revert of unintended change in fix for PR41605.
29346 * config/darwin.h: Fix typo.
29347 * config/darwin9.h: Same.
29349 2010-02-11 Jakub Jelinek <jakub@redhat.com>
29351 * c-pch.c (pch_init): Clear v.
29353 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29355 PR middle-end/42930
29356 * graphite-scop-detection.c (graphite_can_represent_scev): Call
29357 graphite_can_represent_init for MULT_EXPR.
29359 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29361 PR middle-end/42914
29362 PR middle-end/42530
29363 * graphite-sese-to-poly.c (remove_phi): New.
29364 (translate_scalar_reduction_to_array): Call remove_phi.
29366 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29368 PR middle-end/42771
29369 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
29370 * graphite-clast-to-gimple.h (gloog): Update declaration.
29371 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
29372 * graphite-poly.h (struct poly_bb): Add missing comments.
29373 (struct scop): Add poly_scop_p field.
29374 (POLY_SCOP_P): New.
29375 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
29376 * graphite.c (graphite_transform_loops): Build the polyhedral
29377 representation for each scop before code generation.
29378 * sese.c (rename_variables_in_operand): Removed.
29379 (rename_variables_in_expr): Return the renamed expression.
29380 (rename_sese_parameters): New.
29381 * sese.h (rename_sese_parameters): Declared.
29383 2010-02-11 Richard Guenther <rguenther@suse.de>
29385 PR tree-optimization/42998
29386 * tree-ssa-pre.c (create_expression_by_pieces): Treat
29387 POINTER_PLUS_EXPR properly.
29389 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
29390 Changpeng Fang <changpeng.fang@amd.com>
29392 PR middle-end/40886
29393 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
29394 the cost of an IV candidate when the IV is used in a test against zero.
29396 * gcc.dg/tree-ssa/ivopts-3.c: New.
29398 2010-02-11 Richard Guenther <rguenther@suse.de>
29401 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
29402 pointer-vs-decl case by swapping refs. Handle some cases
29403 of pointer-vs-decl disambiguations more conservatively.
29404 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
29405 to false after expanding.
29407 2010-02-11 Richard Guenther <rguenther@suse.de>
29410 * gcc.c (process_command): Handle LTO file@offset case more
29413 2010-02-11 Jakub Jelinek <jakub@redhat.com>
29415 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
29416 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
29418 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
29420 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
29421 if MEM's mode size isn't DWARF2_ADDR_SIZE.
29422 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
29423 Optimize eq/ne comparisons when both arguments are known to be
29425 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
29426 Don't mask operands unnecessarily if they are known to be already
29429 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
29431 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
29434 2010-02-10 Richard Guenther <rguenther@suse.de>
29436 PR tree-optimization/43017
29437 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
29438 for wrapping signed arithmetic.
29440 2010-02-10 Jakub Jelinek <jakub@redhat.com>
29443 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
29444 if no debug info should be emitted for it.
29446 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
29448 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
29449 note when flag_exceptions is set.
29451 2010-02-10 Duncan Sands <baldrick@free.fr>
29453 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
29455 2010-02-10 Richard Guenther <rguenther@suse.de>
29458 * tree.c (get_unwidened): Handle constants.
29459 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
29461 2010-02-10 Martin Jambor <mjambor@suse.cz>
29464 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
29465 check for variable argument counts independently.
29467 2010-02-10 Christian Bruel <christian.bruel@st.com>
29470 * config/sh/sh.c (find_barrier): Increase length for non delayed
29471 conditional branches.
29473 2010-02-10 Christian Bruel <christian.bruel@st.com>
29475 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
29477 2010-02-10 Jakub Jelinek <jakub@redhat.com>
29479 * builtins.c (set_builtin_user_assembler_name): Also handle
29480 ffs if int is smaller than word.
29482 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
29484 PR middle-end/42973
29485 * ira-conflicts.c (get_dup): Remove.
29486 (process_reg_shuffles): Add new parameter. Use it as an
29487 additional guard for copy generation.
29488 (add_insn_allocno_copies): Rewrite.
29490 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
29492 * common.opt (fsched2-use-traces): Preserved for backward
29494 * doc/invoke.texi: Remove the documentation about option
29495 -fsched2-use-traces.
29496 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
29497 flag_sched2_use_traces.
29498 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
29499 the backward compatibility flag section.
29501 2010-02-09 Richard Guenther <rguenther@suse.de>
29503 PR tree-optimization/43008
29504 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
29505 make HEAP variables initialized from global memory if they
29506 are not known builtin functions.
29507 (find_func_aliases): Adjust.
29509 2010-02-09 Richard Guenther <rguenther@suse.de>
29511 PR tree-optimization/43000
29512 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
29513 arithmetic manually.
29515 2010-02-08 Jakub Jelinek <jakub@redhat.com>
29517 PR tree-optimization/42931
29518 * tree-loop-linear.c (try_interchange_loops): Don't call
29519 double_int_mul if estimated_loop_iterations failed.
29521 2010-02-08 Martin Jambor <mjambor@suse.cz>
29523 PR middle-end/42898
29524 * tree-sra.c (build_accesses_from_assign): Do not mark in
29525 should_scalarize_away_bitmap if stmt has volatile ops.
29526 (sra_modify_assign): Do not process assigns piecemeal if if stmt
29529 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
29531 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
29533 2010-02-07 Adam Nemet <adambnmet@gmail.com>
29535 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
29536 before the pattern.
29538 2010-02-07 Andrew Pinski <pinskia@gmail.com>
29540 PR middle-end/42946
29541 * df-core.c (df_finish_pass): Change type of saved_flags to int.
29543 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
29545 PR middle-end/42988
29546 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
29547 to unknown_dependence.
29548 (graphite_legal_transform_dr): Handle the unknown_dependence.
29549 (graphite_carried_dependence_level_k): Same.
29551 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
29553 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
29555 2010-02-07 Richard Guenther <rguenther@suse.de>
29557 PR middle-end/42991
29558 * expr.c (get_inner_reference): Always initialize *pbitsize.
29560 2010-02-07 Richard Guenther <rguenther@suse.de>
29562 PR middle-end/42956
29563 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
29564 new ARRAY_REFs on variable size element or minimal index arrays.
29566 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
29567 gimple_fold_indirect_ref.
29569 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
29572 * arm.c (arm_override_options): Just return if the user has specified
29573 an invalid fpu name.
29575 2010-02-03 Jason Merrill <jason@redhat.com>
29578 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
29579 i386_pe_maybe_record_exported_symbol.
29581 2010-02-05 Steve Ellcey <sje@cup.hp.com>
29584 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
29585 (pa_delegitimize_address): New function.
29587 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
29589 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
29590 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
29592 2010-02-05 Richard Guenther <rguenther@suse.de>
29595 * lto-streamer-in.c (get_resolution): Deal with references
29596 to undefined functions.
29598 2010-02-05 Richard Guenther <rguenther@suse.de>
29600 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
29601 (fold_const_aggregate_ref): Likewise.
29602 (ccp_fold_stmt): Substitute loads.
29603 (maybe_fold_reference): Verify types before substituting.
29605 (fold_gimple_assign): Unshare properly.
29606 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
29608 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
29610 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
29611 for rs6000_gen_cell_microcode.
29613 2010-02-04 Richard Guenther <rguenther@suse.de>
29615 PR rtl-optimization/42952
29616 * dse.c (const_or_frame_p): Remove MEM handling.
29618 2010-02-04 Nick Clifton <nickc@redhat.com>
29620 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
29621 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
29622 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
29623 (mn10300_asm_output_mi_thunk): New function.
29624 (mn10300_can_output_mu_thunk): New function.
29625 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
29626 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
29627 (FUNCTION_ARG): Delete incorrect comment.
29629 2010-02-03 Jason Merrill <jason@redhat.com>
29632 * fold-const.c (operand_equal_p): Handle erroneous types.
29634 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29636 * config/h8300/h8300.md (can_delay): Fix attibute condition.
29638 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
29640 PR rtl-optimization/42941
29641 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
29644 2010-02-03 Jason Merrill <jason@redhat.com>
29647 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
29649 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
29652 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
29653 (cselib_reset_table): Renamed from...
29654 (cselib_reset_table_with_next_value): ... this.
29655 (cselib_get_next_uid): Renamed from...
29656 (cselib_get_next_unknown_value): ... this.
29657 * cselib.c (next_uid): Renamed from...
29658 (next_unknown_value): ... this.
29659 (cselib_clear_table): Adjust.
29660 (cselib_reset_table): Adjust. Renamed from...
29661 (cselib_reset_table_with_next_value): ... this.
29662 (cselib_get_next_uid): Adjust. Renamed from...
29663 (cselib_get_next_unknown_value): ... this.
29664 (get_value_hash): Use hash.
29665 (cselib_hash_rtx): Likewise.
29666 (new_cselib_val): Adjust. Set and dump uid.
29667 (cselib_lookup_mem): Pass next_uid as hash.
29668 (cselib_subst_to_values): Likewise.
29669 (cselib_log_lookup): Dump uid.
29670 (cselib_lookup): Pass next_uid as hash. Adjust.
29671 (cselib_process_insn): Adjust.
29672 (cselib_init): Initialize next_uid.
29673 (cselib_finish): Adjust.
29674 (dump_cselib_table): Likewise.
29675 * dse.c (canon_address): Dump value uid.
29676 * print-rtl.c (print_rtx): Print value uid.
29677 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
29679 (dv_uid): New function, sort of renamed from...
29680 (dv_htab_hash): ... this, reimplemented in terms of it and...
29681 (dv_uid2hash): ... this. New.
29682 (variable_htab_eq): Drop excess assertions.
29683 (tie_break_pointers): Removed.
29684 (canon_value_cmp): Compare uids.
29685 (variable_post_merge_New_vals): Print uids.
29686 (vt_add_function_parameters): Adjust.
29687 (vt_initialize): Reset table. Adjust.
29689 2010-02-03 Richard Guenther <rguenther@suse.de>
29691 PR tree-optimization/42944
29692 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
29693 (call_may_clobber_ref_p_1): Likewise. Properly handle
29694 malloc and calloc clobbering errno.
29696 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
29698 * doc/invoke.texi: Fix name of sched1 dump.
29700 * opts.c (decode_options): Set flag_tree_switch_conversion
29701 only conditionally on optimize >= 2.
29703 * gcse.c: Assorted comment fixes in pass description.
29705 2010-02-03 Anthony Green <green@moxielogic.com>
29707 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
29708 nop padding in order to maintain alignment of storage location of
29709 target function address.
29710 (moxie_trampoline_init): Store target function address at newly
29712 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
29714 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
29716 2010-02-03 Richard Guenther <rguenther@suse.de>
29718 PR middle-end/42927
29719 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
29721 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29723 * config.gcc: Reenable check for obsolete targets.
29724 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
29725 mips-sgi-irix6.[0-4]*.
29727 2010-02-02 Nick Clifton <nickc@redhat.com>
29729 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
29730 constant size of 4 as being the same as 0.
29731 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
29732 can take values in the range 0..4.
29734 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
29737 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
29738 as _darwin10_Unwind_FindEnclosingFunction().
29739 * libgcc-libsystem.ver: New.
29741 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
29744 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
29745 implicitly set registers.
29747 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
29749 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
29750 (arm_override_options): Allow automatic selection of the thread
29751 pointer register if thumb2.
29752 (legitimize_pic_address): Improve code sequences for Thumb2.
29753 (arm_call_tls_get_addr): Likewise.
29754 (legitimize_tls_address): Likewise.
29755 * arm.md (pic_load_addr_arm): Delete. Replace with ...
29756 (pic_load_addr_32bit): ... this. New named pattern.
29757 * thumb2.md (pic_load_addr_thumb2): Delete.
29758 (pic_load_dot_plus_four): Delete.
29759 (tls_load_dot_plus_four): New named pattern.
29761 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29764 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
29765 Document fix for TLS bug.
29767 2010-01-31 Richard Guenther <rguenther@suse.de>
29769 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
29770 conservatively correct.
29772 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29776 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29778 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29780 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29782 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
29784 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
29786 * config.gcc: Adjust order of makefile fragments for mingw targets.
29788 2010-01-31 Richard Guenther <rguenther@suse.de>
29790 PR middle-end/42898
29791 * gimplify.c (gimplify_init_constructor): For volatile LHS
29792 initialize a temporary.
29794 2010-01-31 Matthias Klose <doko@ubuntu.com>
29796 * configure.ac: Fix __stack_chk_fail check for cross builds configured
29798 * configure: Regenerate.
29800 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
29802 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
29803 the same alias set and their sizes different constantness.
29804 (aliasing_component_refs_p): Revert 2009-10-24 change.
29806 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29808 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
29811 2010-01-29 Richard Guenther <rguenther@suse.de>
29813 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
29814 Assert we successfully updated the call.
29816 2010-01-29 Jakub Jelinek <jakub@redhat.com>
29818 PR rtl-optimization/42889
29819 * df.h (df_set_bb_dirty_nonlr): New prototype.
29820 * df-core.c (df_set_bb_dirty_nonlr): New function.
29821 * df-scan.c (df_insn_rescan): Call it instead of
29822 df_set_bb_dirty for DEBUG_INSNs.
29824 2010-01-29 Richard Guenther <rguenther@suse.de>
29826 PR middle-end/37448
29827 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
29828 quadratic behavior in most cases.
29830 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
29833 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
29834 in the call to gen_x86_movsicc_0_m1.
29836 2010-01-28 Richard Guenther <rguenther@suse.de>
29838 PR tree-optimization/42871
29839 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
29841 2010-01-28 Richard Guenther <rguenther@suse.de>
29843 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
29844 into call arguments.
29846 2010-01-28 Richard Guenther <rguenther@suse.de>
29848 PR middle-end/42883
29849 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
29850 the forwarder if the destination is an EH landing pad.
29852 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
29854 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
29855 block list passed to gimple_duplicate_sese_tail.
29856 (parallelize_loops): Avoid parallelization when the function
29857 has_nonlocal_label.
29858 Avoid parallelization when the preheader is IRREDUCIBLE.
29859 Try to optimize when estimated_loop_iterations_int is unresolved.
29860 Add the loop's location to the dump file.
29861 * tree-cfg.c (add_phi_args_after_redirect): Remove.
29862 (gimple_duplicate_sese_tail): Remove the check for the latch.
29863 Redirect nexits to the exit block.
29864 Remove handling of the incoming edges to the latch.
29865 Redirect the backedge from the copied latch to the exit bb.
29867 2010-01-28 Michael Matz <matz@suse.de>
29870 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
29871 Wrap force_reg into a sequence, emit it before user.
29873 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
29875 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
29877 (arm_legacy_rev): Likewise.
29878 (thumb_legacy_rev): Likewise.
29880 2010-01-27 Jakub Jelinek <jakub@redhat.com>
29882 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
29883 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
29884 on MEM's address failed, try avoid_constant_pool_reference and
29885 recurse if it returned something different.
29886 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
29887 address, try avoid_constant_pool_reference and recurse if it
29888 returned something different.
29889 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
29890 address and avoid_constant_pool_reference returned something
29891 different, don't set have_address.
29893 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
29896 * var-tracking.c (val_store): Add modified argument, obey it.
29898 (count_uses): Move down logging of main.
29899 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
29900 don't need resolution.
29901 (emit_notes_in_bb): Likewise.
29903 2010-01-27 Richard Guenther <rguenther@suse.de>
29905 PR middle-end/42878
29906 * tree-inline.c (remap_decl): Delay remapping of SSA name
29907 default definitions until we need them.
29909 2010-01-27 Jakub Jelinek <jakub@redhat.com>
29911 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
29912 (rs6000_delegitimize_address): New function.
29914 * config/s390/s390.c (s390_delegitimize_address): Call
29915 delegitimize_mem_from_attrs.
29917 PR middle-end/42874
29918 * tree-inline.c (cannot_copy_type_1): Removed.
29919 (copy_forbidden): Don't forbid copying of functions containing
29920 records/unions with variable length fields.
29922 2010-01-27 Christian Bruel <christian.bruel@st.com>
29926 * config/sh/sh.c (find_barrier): Increase length for non delayed
29927 conditional branches.
29929 2010-01-27 Matthias Klose <doko@ubuntu.com>
29931 * configure.ac (gnu-unique-object): Fix ldd version check.
29932 * configure: Regenerate.
29934 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29936 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
29938 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
29939 Test for HAVE_GNU_AS value.
29941 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29943 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
29944 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
29945 INT64_TYPE): Define.
29946 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
29947 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29948 INT_LEAST64_TYPE): Define.
29949 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
29950 UINT_LEAST64_TYPE): Define.
29951 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
29952 INT_FAST64_TYPE): Define.
29953 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29954 UINT_FAST64_TYPE): Define.
29955 (INTMAX_TYPE, UINTMAX_TYPE): Define.
29956 (INTPTR_TYPE, UINTPTR_TYPE): Define.
29957 (SIG_ATOMIC_TYPE): Define.
29959 2010-01-26 Richard Guenther <rguenther@suse.de>
29961 * df-scan.c (df_scan_set_bb_info): Remove assert.
29962 (df_insn_rescan_debug_internal): Merge asserts.
29963 (df_install_ref): Likewise.
29964 (df_mark_reg): Use bitmap_set_range.
29965 (df_hard_reg_used_p): Remove assert.
29966 (df_hard_reg_used_count): Likewise.
29968 2010-01-26 Richard Guenther <rguenther@suse.de>
29970 PR rtl-optimization/42685
29971 * web.c (web_main): Ignore DEBUG_INSNs.
29973 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
29975 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
29977 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
29978 Fix types of fndecl and arglist parameters.
29980 2010-01-26 Richard Guenther <rguenther@suse.de>
29982 PR middle-end/42806
29983 * tree-eh.c (unsplit_eh): Skip debug insns.
29985 2010-01-26 Richard Guenther <rguenther@suse.de>
29987 PR tree-optimization/42250
29988 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
29990 2010-01-26 Jakub Jelinek <jakub@redhat.com>
29993 * omp-low.c (expand_omp_sections): Only use single_pred if
29994 l2_bb is single_pred_p.
29996 2010-01-25 Christian Bruel <christian.bruel@st.com>
29999 * config/sh/sh.c (find_barrier): Increase length for non delayed
30000 conditional branches.
30001 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
30003 2010-01-24 David S. Miller <davem@davemloft.net>
30005 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
30006 define if not using GAS.
30007 * config/sparc/sparc.c (sparc_elf_asm_named_section):
30008 Likewise. Delete SECTION_MERGE code, which is only applicable
30011 2010-01-24 Mark Mitchell <mark@codesourcery.com>
30014 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
30015 mangling of va_list in system headers.
30017 2010-01-23 Toon Moene <toon@moene.org>
30019 * tree-predcom.c (combine_chains): Return NULL, not false.
30021 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
30023 * tree-loop-distribution.c (distribute_loop): Fix declaration and
30024 initialization of variable res to agree with return type.
30026 2010-01-22 Steve Ellcey <sje@cup.hp.com>
30028 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
30029 * tree-sra.c: Add include of expr.h.
30031 2010-01-22 Jakub Jelinek <jakub@redhat.com>
30033 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
30034 insert the debug stmt on the single non-EH edge from the stmt.
30036 2010-01-22 Richard Henderson <rth@redhat.com>
30039 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
30040 the RHS until after generate_subtree_copies has insertted its
30041 code before the current statement.
30043 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
30045 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
30047 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
30049 2010-01-21 Martin Jambor <mjambor@suse.cz>
30051 PR tree-optimization/42585
30052 * tree-sra.c (struct access): New field grp_total_scalarization.
30053 (dump_access): Dump the new field.
30054 (should_scalarize_away_bitmap): New variable.
30055 (cannot_scalarize_away_bitmap): Likewise.
30056 (sra_initialize): Allocate new bitmaps.
30057 (sra_deinitialize): Free new bitmaps.
30058 (create_access_1): New function.
30059 (create_access): Parts moved to create_access_1.
30060 (type_consists_of_records_p): New function.
30061 (completely_scalarize_record): Likewise.
30062 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
30063 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
30064 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
30066 (analyze_all_variable_accesses): Completely scalarize small eligible
30069 2010-01-21 Martin Jambor <mjambor@suse.cz>
30071 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
30073 2010-01-21 Andrew Haley <aph@redhat.com>
30075 * gcc.c (process_command): Move lang_specific_driver before
30076 setting cc_libexec_prefix.
30078 2010-01-21 Richard Guenther <rguenther@suse.de>
30080 PR middle-end/19988
30081 * fold-const.c (negate_expr_p): Pretend only negative
30082 real constants are easily negatable.
30084 2010-01-20 Janis Johnson <janis187@us.ibm.com>
30085 Jason Merrill <jason@redhat.com>
30087 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
30088 (TYPE_TRANSPARENT_AGGR): this, for union and record.
30089 * calls.c (initialize argument_information): Handle it.
30090 * c-common.c (handle_transparent_union_attribute): Use new name.
30091 * c-decl.c (finish_struct): Ditto.
30092 * c-typeck.c (type_lists_compatible_p): Ditto.
30093 (convert_for_assignment): Use new name and also handle record.
30094 * function.c (aggregate_value_p): Handle it.
30095 (pass_by_reference): Ditto.
30096 (assign_parm_data_types): Ditto.
30097 * print-tree.c (print_node): Ditto.
30098 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
30099 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
30100 * tree.c (first_field): New fn.
30102 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
30105 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
30106 even when linking statically, for now.
30108 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
30111 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
30112 without a cselib val.
30113 (count_uses): Accept MO_VAL_SET with no val on stores.
30114 (add_stores): Likewise.
30116 2010-01-20 Jakub Jelinek <jakub@redhat.com>
30118 * var-tracking.c (check_value_val): Add a compile time assertion.
30119 (dv_is_decl_p): Simplify.
30120 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
30121 gcc_assert if ENABLE_CHECKING.
30123 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
30126 * var-tracking.c: Include tree-flow.h.
30127 (mem_dies_at_call): New.
30128 (dataflow_set_preserve_mem_locs): Use it.
30129 (dataflow_set_remove_mem_locs): Likewise.
30130 (dump_var): Renamed from dump_variable. Adjust all callers.
30131 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
30132 * Makefile.in (var-tracking.o): Adjust deps.
30134 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
30136 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
30138 2010-01-20 Richard Guenther <rguenther@suse.de>
30140 PR tree-optimization/42717
30141 * tree-ssa-dce.c (get_live_post_dom): Remove.
30142 (forward_edge_to_pdom): Take an arbitrary edge to copy
30143 degenerate PHI args from.
30144 (remove_dead_stmt): Use the first post-dominator even if it
30145 does not contain live statements as redirection destination.
30147 2010-01-20 Richard Guenther <rguenther@suse.de>
30149 * tree-inline.c (estimate_num_insns): Handle EH builtins.
30151 2010-01-20 Jakub Jelinek <jakub@redhat.com>
30153 * sel-sched.c (create_speculation_check): Remove set but not used
30155 (try_transformation_cache): Remove set but not used variable ds.
30156 (calculate_privileged_insns): Remove set but not used variables
30157 cur_insn and min_spec_insn.
30158 (find_best_expr): Remove set but not used variable avail_n.
30159 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
30161 * cgraphunit.c (assemble_thunk): Remove set but not used variable
30163 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
30164 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
30165 new_scop_exit_edge.
30167 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
30170 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
30171 cpu types. Add support for *-sse3 cpu types.
30172 (x86_64-*-*): Ditto.
30174 2010-01-20 Jakub Jelinek <jakub@redhat.com>
30176 PR middle-end/42803
30177 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
30178 argument, call initializer_constant_valid_p_1 instead of
30179 initializer_constant_valid_p, pass CACHE to it, return NULL
30180 immediately if first call returns NULL.
30181 (initializer_constant_valid_p_1): New function.
30182 (initializer_constant_valid_p): Use it.
30184 2010-01-20 Thomas Quinot <quinot@adacore.com>
30186 * tree.def (PLACEHOLDER_EXPR): Fix comment.
30188 2010-01-20 Jakub Jelinek <jakub@redhat.com>
30190 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
30191 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
30192 (loc_list_from_tree): Don't handle unsigned division. Handle
30193 signed modulo using DW_OP_{over,over,div,mul,minus}.
30194 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
30195 modulo instead of signed.
30197 2010-01-20 DJ Delorie <dj@redhat.com>
30199 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
30201 (h8300_emit_stack_adjustment): Propogate it.
30203 (h8300_expand_prologue): Likewise.
30204 (h8300_expand_epilogue): Likewise.
30206 2010-01-19 Michael Matz <matz@suse.de>
30208 PR tree-optimization/41783
30209 * tree-data-ref.c (toplevel): Include flags.h.
30210 (dump_data_dependence_relation): Also dump the inputs if the
30211 result will be unknown.
30212 (split_constant_offset_1): Look through some conversions.
30213 * tree-predcom.c (determine_roots_comp): Restart a new chain if
30214 the offset from last element is too large.
30215 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
30216 (reassociate_to_the_same_stmt): Handle vector registers.
30217 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
30218 (e.g. conversions).
30219 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
30220 wide_prolog_niters argument, emit widening instructions.
30221 (vect_do_peeling_for_alignment): Adjust caller, use widened
30222 variant of the iteration cound.
30223 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
30225 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30228 * config/arm/neon-testgen.m (emit_automatics): New parameter
30229 features. Adjust for Fixed_return_reg feature.
30230 (test_intrinsic): Call emit_automatics with new feature.
30231 * config/arm/neon.ml: Update copyright years.
30232 (features): New Fixed_return_reg feature.
30233 (ops): Update feature for Vget_low.
30235 2010-01-19 Jakub Jelinek <jakub@redhat.com>
30237 PR tree-optimization/42719
30238 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
30242 * fwprop.c (all_uses_available_at): Return false if def_set dest
30243 is a REG that is used in def_insn.
30245 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
30247 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
30249 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
30250 Add argument names.
30252 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
30254 * target.h (struct gcc_target) <secondary_reload>: Change type
30255 of last argument to secondary_reload_info *.
30257 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
30260 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
30261 memory references with unaligned offsets. Remove CQImode handling.
30262 (unaligned_memory_operand): Return 1 for memory references with
30263 unaligned offsets. Remove CQImode handling.
30265 2010-01-18 Richard Guenther <rguenther@suse.de>
30267 PR middle-end/39954
30268 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
30271 2010-01-18 Richard Guenther <rguenther@suse.de>
30273 PR tree-optimization/42781
30274 * tree-ssa-structalias.c (find_what_var_points_to): Skip
30275 restrict processing only if the original variable was artificial.
30277 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
30279 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
30280 find number of popped argument bytes.
30282 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
30283 Fix the text that describes the return value for invalid insns.
30285 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
30287 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
30288 Clarify what 'cost of the -dependence' is. Fix quoting.
30290 * toplev.c (default_get_pch_validity): Rename argument to "sz".
30291 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
30293 2010-01-17 Jakub Jelinek <jakub@redhat.com>
30295 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30296 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
30298 2010-01-17 Richard Guenther <rguenther@suse.de>
30300 PR middle-end/42248
30301 * function.c (split_complex_args): Take a VEC to modify.
30302 (assign_parms_augmented_arg_list): Build a VEC instead of
30303 a chain of PARM_DECLs.
30304 (assign_parms_unsplit_complex): Take a VEC of arguments.
30305 Do not fixup unmodified parms.
30306 (assign_parms): Deal with the VEC.
30307 (gimplify_parameters): Likewise.
30309 2010-01-17 Richard Guenther <rguenther@suse.de>
30311 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
30312 node existence check.
30313 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
30314 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
30315 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
30316 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
30317 (gimple_execute_on_growing_pred): Likewise.
30319 2010-01-17 Richard Guenther <rguenther@suse.de>
30321 PR tree-optimization/42773
30322 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
30323 (compute_antic_aux): Likewise.
30324 (compute_partial_antic_aux): Likewise.
30326 2010-01-17 Jie Zhang <jie.zhang@analog.com>
30329 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
30332 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
30334 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
30337 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
30338 Fix markup for strict argument.
30340 (TARGET_SCHED_REORDER2): Fix argument types.
30342 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
30343 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
30345 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
30346 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
30348 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
30351 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
30352 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
30353 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
30354 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
30355 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
30357 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
30359 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
30361 (TARGET_ASM_RELOC_RW_MASK): Add return type.
30362 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
30364 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
30366 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
30369 (TARGET_ASM_NAMED_SECTION): Fix argument list.
30371 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
30372 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
30374 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
30376 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
30378 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
30379 referring to it. Fix language.
30381 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
30383 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
30385 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
30387 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
30389 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
30390 '@var{stream}. Remove stray 'and'.
30392 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
30394 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
30396 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
30398 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
30399 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
30401 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
30402 Fix description of return value.
30403 Rename argument "sz" to "len."
30405 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
30406 Clarify meaning of 'true' return value.
30408 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
30410 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
30411 rep_mode versus mode_rep.
30413 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
30415 (TARGET_BUILTIN_DECL): Fix name.
30417 (TARGET_COMMUTATIVE_P): Fix type of first argument.
30419 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
30421 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
30423 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
30425 (TARGET_RELAXED_ORDERING): Use @deftypevr.
30427 (TARGET_GET_DRAP_RTX): Note that this is a hook.
30430 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
30431 Rename argument tm_fn to md_fn.
30433 (TARGET_OPTION_PRINT): Fix argument list.
30435 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
30438 * config/i386/i386.c (ix86_fixup_binary_operands):
30439 Revert FMA4 fixup of operands.
30441 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30444 * Makefile.in (write_entries_to_file, install-plugin):
30445 Use \012 instead of \n with tr.
30447 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
30449 * configure.ac (HAVE_AS_REF): New C macro.
30450 * configure: Regenerate.
30451 * config.in: Likewise.
30452 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
30454 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
30457 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
30459 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
30461 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
30463 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
30465 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
30467 (TARGET_IN_SMALL_DATA_P): Fix argument type.
30469 (TARGET_BINDS_LOCAL_P): Fix argument type.
30471 (TARGET_ASM_FILE_END): Use prototype.
30473 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
30475 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
30477 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
30479 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
30481 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
30482 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
30484 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
30485 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
30487 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
30488 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
30489 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
30490 (TARGET_ADDR_SPACE_CONVERT): Likewise.
30492 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
30494 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
30496 (TARGET_INIT_BUILTINS): Use prototype.
30498 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
30499 Put 'const char *' in braces. Fix parameter types.
30500 (TARGET_INVALID_CONVERSION): Fix parameter types.
30501 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
30502 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
30504 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
30507 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
30509 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
30511 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
30513 * doc/tm.texi (TARGET_HELP): Fix return type.
30515 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
30516 in braces. Fix argument types.
30518 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
30520 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
30522 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
30524 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
30525 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
30527 (TARGET_MANGLE_TYPE): Fix argument types.
30529 (TARGET_IRA_COVER_CLASSES): Use prototype.
30531 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
30533 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
30535 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
30537 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
30539 (TARGET_CALLEE_COPIES): Fix argument types.
30541 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
30543 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
30545 (TARGET_FUNCTION_VALUE): Fix argument types.
30547 (TARGET_RETURN_IN_MSB): Fix argument type.
30549 (TARGET_RETURN_IN_MEMORY): Fix argument types.
30551 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
30553 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
30555 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
30556 agree with return type.
30558 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
30560 2010-01-15 Jing Yu <jingyu@google.com>
30562 PR rtl-optimization/42691
30563 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
30564 a pseudo to a constant and are merged, and adjust comments.
30566 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
30568 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
30570 2010-01-15 Richard Guenther <rguenther@suse.de>
30572 PR middle-end/42739
30573 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
30574 labels of computed or non-local gotos to the destination.
30575 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
30576 landing pad label is the first label.
30578 2010-01-15 Richard Guenther <rguenther@suse.de>
30580 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
30582 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
30585 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
30586 to allow generation of the xssqrtdp instruction on power7.
30587 (sqrtdf2_fpr): Ditto.
30589 2010-01-14 Jakub Jelinek <jakub@redhat.com>
30591 PR middle-end/42674
30592 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
30593 functions with noreturn attribute.
30596 * varasm.c (declare_weak): Add weak attribute to decl if it
30597 doesn't have one already.
30598 (assemble_external): Only add decls to weak_decls if they also
30599 have weak attribute.
30601 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
30603 * var-tracking.c (var_reg_delete): Don't delete the association
30604 between REGs and values or one-part variables if the register
30607 2010-01-14 Jakub Jelinek <jakub@redhat.com>
30610 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
30611 because its first operand is a non-localized variable.
30613 2010-01-14 Martin Jambor <mjambor@suse.cz>
30615 PR tree-optimization/42706
30616 * tree-sra.c (encountered_recursive_call): New variable.
30617 (encountered_unchangable_recursive_call): Likewise.
30618 (sra_initialize): Initialize both new variables.
30619 (callsite_has_enough_arguments_p): New function.
30620 (scan_function): Call decl and flags check only for IPA-SRA, check
30621 whether there is a recursive call and whether it has enough arguments.
30622 (all_callers_have_enough_arguments_p): New function.
30623 (convert_callers): Look for recursive calls only when
30624 encountered_recursive_call is set.
30625 (ipa_early_sra): Bail out either if
30626 !all_callers_have_enough_arguments_p or
30627 encountered_unchangable_recursive_call.
30629 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30631 * sel-sched.c: Add 2010 to copyright years.
30632 * sel-sched-ir.c: Likewise.
30633 * sel-sched-ir.h: Likewise.
30635 2010-01-14 Martin Jambor <mjambor@suse.cz>
30637 PR tree-optimization/42714
30638 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
30639 constructors specially.
30641 2010-01-14 Andi Kleen <ak@linux.intel.com>
30643 * config/i386/drivers-i386.c (detect_caches_intel):
30644 Add l2sizekb parameter and fill in.
30645 (host_detect_local_cpu): Add l2sizekb, fill in.
30646 Add Atom small cache heuristic.
30648 2010-01-14 Andi Kleen <ak@linux.intel.com>
30650 * config/i386/drivers-i386.c (detect_caches_cpuid4):
30651 Add level3 parameter and fill in.
30652 (detect_caches_intel): Handle level3 cache.
30654 2010-01-14 Andi Kleen <ak@linux.intel.com>
30656 * config/i386/drivers-i386.c (host_detect_local_cpu):
30657 Fix core duo detection.
30659 2010-01-14 Andi Kleen <ak@linux.intel.com>
30661 * config/i386/drivers-i386.c (host_detect_local_cpu):
30662 Fix Atom detection.
30664 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30666 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
30667 (rs6000_variable_issue_1): this. Use...
30668 (rs6000_variable_issue): here. Reimplement. Print debug info.
30670 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30672 * sel-sched-ir.c (sel_restore_other_notes): Rename to
30673 sel_restore_notes. Update all callers. Call reemit_notes
30676 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30678 PR rtl-optimization/42246
30679 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
30682 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30684 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
30685 all successors is the same as number of successors in current region.
30687 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30689 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
30690 to rename is not separable. Otherwise check that its LHS is not NULL.
30692 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30694 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
30696 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30698 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
30699 available registers when failed to discover LHS register class.
30700 Fix indentation. Update comment.
30702 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30703 Alexander Monakov <amonakov@ispras.ru>
30705 PR rtl-optimization/42389
30706 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
30708 (advance_state_on_fence): Likewise.
30709 (sel_target_adjust_priority): Print debug output only when
30710 sched_verbose >= 4, not 2.
30711 (get_expr_cost): Do not issue all unique insns on the next cycle.
30712 (fill_insns): Initialize can_issue_more from the value saved
30714 * sel-sched-ir.c (flist_add): New parameter issue_more.
30715 Init FENCE_ISSUE_MORE with it.
30716 (merge_fences): Likewise.
30717 (init_fences): Update call to flist_add.
30718 (add_to_fences, add_clean_fence_to_fences)
30719 (add_dirty_fence_to_fences): Likewise.
30720 (move_fence_to_fences): Update call to merge_fences.
30721 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
30723 * sel-sched-ir.h (struct _fence): New field issue_more.
30724 (FENCE_ISSUE_MORE): New accessor macro.
30726 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30728 PR rtl-optimization/42388
30729 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
30730 that have no predecessors nor successors. Do not call move_bb_info
30731 for empty blocks outside of current region.
30733 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30735 PR rtl-optimization/42294
30736 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
30737 * sel-sched.c (move_exprs_to_boundary): Transitively add all
30738 originators' originators.
30740 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
30742 PR rtl-optimization/39453
30743 PR rtl-optimization/42246
30744 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
30746 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
30748 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30749 Alexander Monakov <amonakov@ispras.ru>
30751 PR middle-end/42245
30752 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
30753 (maybe_tidy_empty_bb): ... here. Make static. Add new
30754 argument. Update all callers.
30755 (tidy_control_flow): ... and here. Recompute topological order
30756 of basic blocks in region if necessary.
30757 (sel_redirect_edge_and_branch): Change return type. Return true
30758 if topological order might have been invalidated.
30759 (purge_empty_blocks): Export and move from...
30760 * sel-sched.c (purge_empty_blocks): ... here.
30761 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
30762 (maybe_tidy_empty_bb): Delete prototype.
30763 (purge_empty_blocks): Declare.
30765 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
30767 PR rtl-optimization/42249
30768 * sel-sched.c (try_replace_dest_reg): When chosen register
30769 and original register is the same, do not bail out early, but
30770 still check all original insns for validity of replacing destination
30771 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
30774 2010-01-14 Jakub Jelinek <jakub@redhat.com>
30777 Port from no-undefined-overflow branch:
30778 2009-03-09 Richard Guenther <rguenther@suse.de>
30780 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
30782 2010-01-14 Richard Guenther <rguenther@suse.de>
30785 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
30787 2010-01-14 Ira Rosen <irar@il.ibm.com>
30789 PR tree-optimization/42709
30790 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
30791 as scalar type in creation of constant vector operand.
30793 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30796 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
30797 (check-parallel-%): Match `testsuite' directory component only
30800 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
30802 PR translation/39521
30803 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
30806 2010-01-13 Richard Guenther <rguenther@suse.de>
30808 PR tree-optimization/42730
30809 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
30812 2010-01-13 Steve Ellcey <sje@cup.hp.com>
30815 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
30816 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
30819 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
30821 * config/bfin/libgcc-bfin.ver: Regenerate based on current
30822 libgcc-std.ver. Add entries for ___smulsi3_highpart and
30823 ___umulsi3_highpart.
30825 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
30826 rather than schedule_insns if the pass is enabled.
30828 2010-01-13 Martin Jambor <mjambor@suse.cz>
30830 PR tree-optimization/42704
30831 * tree-sra.c (sra_modify_assign): Do not delete assignments to
30834 2010-01-13 Martin Jambor <mjambor@suse.cz>
30836 PR tree-optimization/42703
30837 * tree-sra.c (analyze_access_subtree): Check that we can build a
30838 reference to the original data within the aggregate.
30840 2010-01-13 Richard Guenther <rguenther@suse.de>
30842 PR tree-optimization/42705
30843 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
30845 2010-01-13 Richard Guenther <rguenther@suse.de>
30847 PR middle-end/42716
30848 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
30850 2010-01-13 Jakub Jelinek <jakub@redhat.com>
30853 * var-tracking.c (values_to_unmark): New variable.
30854 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
30855 values_to_unmark vector. Moved body to...
30856 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
30857 instead queue it into values_to_unmark vector.
30858 (vt_find_locations): Free values_to_unmark vector.
30860 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
30862 * config/s390/s390.c (override_options): Set
30863 default of max-pending-list-length to 256
30865 2010-01-13 Richard Guenther <rguenther@suse.de>
30868 * tree-pass.h (PROP_gimple_lcx): New.
30869 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
30870 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
30871 before the final cleanup_eh.
30872 (dump_properties): Dump PROP_gimple_lcx.
30873 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
30874 (tree_lower_complex_O0): Remove.
30875 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
30876 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
30877 tree_lower_complex, schedule TODO_update_ssa.
30878 * lto-streamer-out.c (output_function): Stream the functions
30880 * lto-streamer-in.c (input_function): Likewise.
30881 (lto_read_body): Do not override them here.
30883 2010-01-12 Joseph Myers <joseph@codesourcery.com>
30886 * c-typeck.c (build_c_cast): Fold value cast to union type before
30887 wrapping it in a CONSTRUCTOR.
30889 2010-01-12 Jakub Jelinek <jakub@redhat.com>
30891 PR rtl-optimization/42699
30892 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
30895 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30897 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
30898 SUBTARGET_WARN_UNUSED_SPEC): Move ...
30899 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
30900 SUBTARGET_WARN_UNUSED_SPEC): ... here
30901 * config/mips/iris5.h (LIBGCC_SPEC): Define.
30903 2010-01-12 Julian Brown <julian@codesourcery.com>
30905 * config/arm/neon-schedgen.ml (Utils): Don't try to
30906 open missing module.
30907 (find_with_result): New.
30909 2010-01-12 Jakub Jelinek <jakub@redhat.com>
30912 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
30913 sharing when canonicalizing ({lt,ge}u (plus a b) b).
30915 PR tree-optimization/42645
30916 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
30917 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
30918 decl_map, set processing_debug_stmt to -1 and return name without
30921 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
30923 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
30924 binutils version, and reword target configuration description.
30926 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
30928 * config/avr/avr.h (LINKER_NAME): Remove.
30930 2010-01-11 Janis Johnson <janis187@us.ibm.com>
30933 * config/rs6000/rs6000.c (rs6000_override_options): On targets
30934 that support VSX, warn for -mno-altivec if vsx is not disabled,
30937 2010-01-11 Joseph Myers <joseph@codesourcery.com>
30938 Shujing Zhao <pearly.zhao@oracle.com>
30940 PR translation/42469
30941 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
30942 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
30943 character between option name and help text.
30944 * c.opt (imultilib): Likewise.
30946 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
30948 * lto-streamer-out.c (output_unreferenced_globals): Output static
30951 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
30953 PR rtl-optimization/42621
30954 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
30955 optimizing for size.
30956 (duplicate_computed_gotos): Remove now-redundant check.
30958 2010-01-10 Steve Ellcey <sje@cup.hp.com>
30961 * configure.ac: Save and restore LDFLAGS and LIBS
30962 * configure: Regenerate.
30964 2010-01-10 Richard Guenther <rguenther@suse.de>
30966 PR middle-end/42667
30967 * builtins.c (fold_builtin_strlen): Add type argument and
30968 convert the resulting length to it.
30969 (fold_builtin_1): Adjust.
30971 2010-01-09 Jakub Jelinek <jakub@redhat.com>
30973 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
30974 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
30976 (num_insns_constant_wide): Adjust for that change.
30978 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
30981 * web.c (union_defs): Add used argument, to combine uses of
30982 uninitialized regs.
30983 (entry_register): Adjust type and tests of used argument.
30984 (web_main): Widen used for new use. Pass it to union_defs.
30985 * df.h (union_defs): Adjust prototype.
30987 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
30990 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
30991 uses in new incoming argument. Free body.
30992 (reset_debug_uses_in_loop): New.
30993 (analyze_insn_to_expand_var): Call the latter if the former found
30994 anything. Fix whitespace. Reject invalid dest overlaps before
30995 going through all insns in the loop.
30997 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31000 * haifa-sched.c (dying_use_p): Debug insns don't count.
31002 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31004 PR middle-end/42363
31005 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
31006 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
31007 (verify_gimple_call): Reject LHS in noreturn calls.
31009 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31013 * tree-vect-loop-manip.c (adjust_info): New type.
31014 (adjust_vec): New pointer to vector.
31015 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
31016 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
31017 (slpeel_update_phis_for_duplicate_loop): Use them.
31018 (slpeel_update_phi_nodes_for_guard1): Likewise.
31019 (slpeel_update_phi_nodes_for_guard2): Likewise.
31020 (slpeel_tree_peel_loop_to_edge): Likewise.
31021 (vect_update_ivs_after_vectorizer): Likewise.
31023 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31025 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
31026 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
31028 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
31030 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
31031 bogus uninitialized warning.
31033 2010-01-09 Richard Guenther <rguenther@suse.de>
31035 PR middle-end/42512
31036 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
31037 the evolution is compatible with the initial condition.
31039 2010-01-09 Jakub Jelinek <jakub@redhat.com>
31041 * gcc.c (process_command): Update copyright notice dates.
31042 * gcov.c (print_version): Likewise.
31043 * gcov-dump.c (print_version): Likewise.
31044 * mips-tfile.c (main): Likewise.
31045 * mips-tdump.c (main): Likewise.
31047 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
31050 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
31052 (rotlhi3_8): Delete.
31054 (rotlsi3_8): Delete.
31055 (rotlsi3_16): Delete.
31056 (rotlsi3_24): Delete.
31057 (rotl<mode>3): New.
31058 (*rotw<mode>3): New.
31059 (*rotb<mode>3): New.
31060 * config/avr/avr.c (avr_rotate_bytes): New function.
31061 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
31063 2010-01-08 Steve Ellcey <sje@cup.hp.com>
31066 * configure.ac: Modify -rdynamic check.
31067 * configure: Regenerate.
31069 2010-01-08 DJ Delorie <dj@redhat.com>
31071 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
31072 register popping order.
31074 2010-01-08 Richard Guenther <rguenther@suse.de>
31077 * c.opt (fsigned-char): Also let LTO handle this option.
31078 (funsigned-char): Likewise.
31080 2010-01-07 Richard Guenther <rguenther@suse.de>
31082 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
31083 (gimple_op): Likewise.
31084 (gimple_op_ptr): Likewise.
31085 (gimple_assign_set_lhs): Remove gcc_assert.
31086 (gimple_assign_set_rhs1): Likewise.
31087 (gimple_assign_set_rhs2): Likewise.
31088 (gimple_call_set_lhs): Likewise.
31089 (gimple_call_set_fn): Likewise.
31090 (gimple_call_set_fndecl): Likewise.
31091 (gimple_call_fndecl): Likewise.
31092 (gimple_call_return_type): Likewise.
31093 (gimple_call_set_chain): Likewise.
31094 (gimple_call_num_args): Likewise.
31095 (gimple_call_set_arg): Likewise.
31096 (gimple_cond_set_code): Likewise.
31097 (gimple_cond_set_lhs): Likewise.
31098 (gimple_cond_set_rhs): Likewise.
31099 (gimple_cond_set_true_label): Likewise.
31100 (gimple_cond_set_false_label): Likewise.
31101 (gimple_label_set_label): Likewise.
31102 (gimple_goto_set_dest): Likewise.
31103 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
31104 (gimple_debug_bind_get_value): Likewise.
31105 (gimple_debug_bind_get_value_ptr): Likewise.
31106 (gimple_debug_bind_set_var): Likewise.
31107 (gimple_debug_bind_set_value): Likewise.
31108 (gimple_debug_bind_reset_value): Likewise.
31109 (gimple_debug_bind_has_value_p): Likewise.
31110 (gimple_return_retval_ptr): Remove gcc_assert.
31111 (gimple_return_retval): Likewise.
31112 (gimple_return_set_retval): Likewise.
31113 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
31114 (safe_referenced_var_iterator): Remove.
31115 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
31116 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
31117 (fill_referenced_var_vec): Remove.
31118 (first_readonly_imm_use): Remove redundant gcc_assert.
31119 (phi_arg_index_from_use): Combine gcc_asserts.
31120 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
31121 (first_imm_use_stmt): Remove redundant gcc_assert.
31122 * tree-cfg.c (verify_gimple_call): Verify function and chain
31123 operands. Verify arguments.
31124 (verify_types_in_gimple_stmt): Verify condition code and labels.
31126 2010-01-07 Richard Guenther <rguenther@suse.de>
31128 PR tree-optimization/42641
31129 * sese.c (rename_map_elt_info): Use the SSA name version, do
31132 2010-01-07 Jakub Jelinek <jakub@redhat.com>
31134 PR tree-optimization/42625
31135 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
31136 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
31138 2010-01-07 Duncan Sands <baldrick@free.fr>
31140 * Makefile.in (PLUGIN_HEADERS): Add version.h.
31142 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
31145 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
31146 note itself is not function_invariant_p.
31148 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
31150 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
31151 Do not add the DF_NOTE problem.
31152 * store-motion.c (execute_rtl_store_motion): Likewise.
31154 2010-01-07 Martin Jambor <mjambor@suse.cz>
31156 PR tree-optimization/42157
31157 * tree-sra.c (compare_access_positions): Stabilize sort if both
31158 accesses have integer types, return zero immediately if they are the
31161 2010-01-06 Richard Henderson <rth@redhat.com>
31163 PR middle-end/41883
31164 * haifa-sched.c (add_to_note_list): Merge into ...
31165 (concat_note_lists): ... here, and ...
31166 (unlink_other_notes, rm_other_notes): Merge into...
31167 (remove_notes): ... here. Create REG_SAVE_NOTEs for
31168 NOTE_INSN_EPILOGUE_BEG.
31170 2010-01-06 Richard Guenther <rguenther@suse.de>
31172 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
31173 not inline regular functions into always-inline functions.
31175 2010-01-06 Nick Clifton <nickc@redhat.com>
31177 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
31178 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
31180 (OVERRIDE_OPTIONS): Delete.
31181 (OPTIMIZATION_OPTIONS): Define.
31182 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
31183 * config/rx/rx.c (rx_handle_option): Issue an error message if
31184 -mcpu=rx200 and -fpu are used together.
31185 (rx_set_optimization_options): New function. Issue an error
31186 message if an optimization attribute attempts to reset the FPU/
31187 math optimization pairing.
31188 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
31189 * config/rx/rx.opt: Set the default to 32-bit doubles.
31190 * config/rx/t-rx: Add multilibs for -nofpu option.
31191 * doc/invoke.texi: Update documentation of RX options.
31193 2010-01-06 Richard Guenther <rguenther@suse.de>
31195 * tree-ssa-pre.c (name_to_id): New global.
31196 (alloc_expression_id): Simplify SSA name handling.
31197 (lookup_expression_id): Likewise.
31198 (init_pre): Zero name_to_id.
31199 (fini_pre): Free it.
31201 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
31203 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
31205 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
31208 * config/i386/sse.md (smaxv2di3): New.
31209 (umaxv2di3): Likewise.
31210 (sminv2di3): Likewise.
31211 (uminv2di3): Likewise.
31213 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
31216 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
31217 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
31218 (legitimize_tls_address): Likewise.
31219 (sparc_tls_referenced_p): Likewise.
31220 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
31221 and adjust calls to legitimize_pic_address.
31222 (legitimate_constant_p) Use sparc_tls_referenced_p.
31223 (legitimate_pic_operand_p): Likewise.
31224 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
31225 (sparc_tls_symbol_ref_1): Delete.
31226 (sparc_tls_referenced_p): Make static, recognize specific patterns.
31227 (legitimize_tls_address): Make static, handle CONST patterns.
31228 (legitimize_pic_address): Make static, remove unused parameter and
31229 adjust recursive calls.
31230 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
31231 and adjust call to legitimize_pic_address.
31232 (sparc_output_mi_thunk): Likewise.
31234 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
31235 H.J. Lu <hongjiu.lu@intel.com>
31238 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
31239 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
31240 operands to make them signed.
31243 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
31246 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
31247 GTU to GT for V4SI and V2DI.
31249 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
31250 (umin<mode>3): Removed.
31252 (uminv4si3): Likewise.
31254 2010-01-05 Martin Jambor <mjambor@suse.cz>
31256 PR tree-optimization/42462
31257 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
31258 current_function_decl to helper functions and macros.
31260 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31263 * flags.h: Don't include real.h.
31264 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
31265 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
31266 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
31267 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
31268 * dominance.c: Update copyright.
31269 * gimple.c (walk_gimple_op): Remove inline.
31270 * tree-ssa-reassoc.c: Include real.h.
31271 * Makefile.in (FLAGS_H): Remove $(REAL_H).
31272 (tree-ssa-reassoc.o): Depend on $(REAL_H).
31274 2010-01-05 Nick Clifton <nickc@redhat.com>
31276 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
31277 register to push into the stack frame when the accumulator has to
31278 be saved during interrupts.
31280 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
31282 * doc/invoke.texi: Remove the documentation about option
31283 -Wunreachable-code.
31284 * common.opt (Wunreachable-code): Preserved for backward
31286 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
31287 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
31288 the backward compatibility flag section.
31290 2010-01-05 Richard Guenther <rguenther@suse.de>
31292 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
31294 2010-01-05 Jakub Jelinek <jakub@redhat.com>
31297 * cfgexpand.c (expand_one_var): Diagnose too large variables.
31299 PR tree-optimization/42508
31300 * tree-sra.c (convert_callers): Check for recursive call
31301 by comparing cgraph nodes instead of decls.
31302 (modify_function): Call ipa_modify_formal_parameters also
31303 on all same_body aliases.
31305 * cgraphunit.c (cgraph_materialize_all_clones): Compare
31306 cgraph nodes when checking for same_body aliases.
31308 2010-01-05 Richard Guenther <rguenther@suse.de>
31310 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
31311 allocation and lookup.
31312 (get_or_alloc_expr_for_constant): Likewise.
31313 (phi_translate): Sink allocation.
31315 2010-01-04 Richard Guenther <rguenther@suse.de>
31317 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
31318 a new entry only if needed.
31319 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
31320 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
31322 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
31324 (phi_translate): Handle CONSTANTs early.
31326 2010-01-04 Martin Jambor <mjambor@suse.cz>
31328 PR tree-optimization/42398
31329 * tree-sra.c (struct access): Removed flag grp_different_types.
31330 (dump_access): Do not dump the removed flag.
31331 (sort_and_splice_var_accesses): Do not set the removed flag.
31332 (sra_modify_expr): Check for type compatibility directly.
31334 2010-01-04 Martin Jambor <mjambor@suse.cz>
31336 PR tree-optimization/42366
31337 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
31338 edges with variable number of parameters.
31339 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
31340 flag instead of asserting it.
31341 (ipa_read_node_info): Read uses_analysis_done flag.
31343 2010-01-04 Richard Guenther <rguenther@suse.de>
31345 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
31346 iterative_hash_* as intended.
31347 (vn_reference_compute_hash): Likewise. Simplify hashing
31349 (vn_reference_lookup_2): Likewise.
31350 (vn_nary_op_compute_hash): Likewise.
31351 (vn_phi_compute_hash): Likewise.
31352 (expressions_equal_p): Remove strange code.
31353 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
31354 (pre_expr_hash): Likewise. Simplify hashing SSA names.
31355 (bitmap_insert_into_set_1): Take value-id as parameter.
31356 (add_to_value): Pass it.
31357 (bitmap_insert_into_set): Likewise.
31358 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
31360 2010-01-04 Jakub Jelinek <jakub@redhat.com>
31363 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
31364 (do_self_spec): For switches with SWITCH_IGNORE set set also
31365 SWITCH_IGNORE_PERMANENTLY.
31366 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
31369 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
31371 * lto-streamer-out.c (output_unreferenced_globals): Output the full
31372 tree of an unreferenced global var.
31374 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
31377 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
31378 GTU to GT for V4SI and V2DI.
31380 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
31381 (umin<mode>3): Removed.
31383 (uminv4si3): Likewise.
31385 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
31388 * collect2.c (main): Turn on trace in collect2 if -v is passed
31391 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
31393 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
31394 description of expression operand.
31396 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
31398 * configure.ac: Add install-html to target_list for Make-hooks.
31399 * configure: Regenerate.
31400 * fortran/Make-lang.in (F95_HTMLFILES): New.
31401 (fortran.html): Use it.
31402 (fortran.install-html): New.
31403 * Makefile.in (install-html): Add lang.install-html.
31404 * java/Make-lang.in (JAVA_HTMLFILES): New.
31405 (java.html): Use it.
31406 (java.install-html): New.
31407 * objc/Make-lang.in (objc.install-html): New.
31408 * objcp/Make-lang.in (obj-c++.install-html): New.
31409 * cp/Make-lang.in (c++.install-html): New.
31410 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
31411 * lto/Make-lang.in (lto.install-html): New.
31413 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
31416 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
31418 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
31420 PR rtl-optimization/41862
31421 * store-motion.c (store_killed_in_insn, compute_store_table,
31422 remove_reachable_equiv_notes, replace_store_insn,
31423 build_store_vectors): Ignore all DEBUG_INSNs.
31425 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
31428 * common.opt: Add dumpdir.
31430 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
31432 (option_map): Add --dumpdir.
31434 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
31436 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
31438 * opts.c (decode_options): Try dump_dir_name first if
31439 dump_base_name isn't an absolute path.
31440 (common_handle_option): Handle OPT_dumpdir.
31442 * toplev.c (dump_dir_name): New.
31443 (print_switch_values): Also ignore -dumpdir.
31445 * toplev.h (dump_dir_name): New.
31447 2010-01-03 Richard Guenther <rguenther@suse.de>
31449 PR tree-optimization/42589
31450 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
31451 double-word expansion of bswap32.
31453 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
31455 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
31456 with BLOCK_FOR_INSN.
31457 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
31458 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
31459 noce_process_if_block): Likewise.
31460 * gcse.c (compute_local_properties, insert_expr_in_table,
31461 insert_set_in_table, canon_list_insert, find_avail_set,
31462 pre_insert_copy_insn): Likewise.
31464 * basic-block.h (BLOCK_NUM): Move from here...
31465 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
31467 2010-01-03 Richard Guenther <rguenther@suse.de>
31469 PR tree-optimization/42438
31470 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
31471 contains_may_not_return_call flag.
31472 (BB_MAY_NOTRETURN): New.
31473 (valid_in_sets): Trapping nary operations are not valid
31474 in blocks that may not return.
31475 (insert_into_preds_of_block): Remove check for trapping expressions.
31476 (compute_avail): Compute also BB_MAY_NOTRETURN.
31478 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
31480 * doc/invoke.texi: Add 2010 to copyright years.
31482 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
31484 * config/sparc/sparc.c: Fix formatting nits.
31486 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
31487 Alexander Monakov <amonakov@ispras.ru>
31489 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
31491 2010-01-02 Richard Guenther <rguenther@suse.de>
31493 PR middle-end/42577
31494 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
31495 (simplify_switch_using_ranges): Mark to be removed edges
31498 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31500 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
31502 * collect2.c (scan_libraries): Add missing argument in call to
31505 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
31508 * config/alpha/predicates.md (aligned_memory_operand): Return false
31510 (unaligned_memory_operand): Return true for CQImode.
31511 * config/alpha/alpha.c (get_aligned_mem): Assert that location
31512 doesn not cross aligned SImode word boundary.
31514 2010-01-02 Anatoly Sokolov <aesok@post.ru>
31516 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
31518 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
31519 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
31521 2010-01-02 Richard Guenther <rguenther@suse.de>
31524 * toplev.c (compile_file): Emit LTO marker properly. Change
31525 it to __gnu_lto_v1.
31526 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
31528 2010-01-01 Richard Guenther <rguenther@suse.de>
31531 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
31533 2010-01-01 Richard Guenther <rguenther@suse.de>
31536 * c-decl.c (grokdeclarator): For zero-size arrays force
31537 structural equality checks as layout_type does.
31539 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
31541 * builtins.c: Update copyright to 2010.
31543 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
31546 * lto-streamer-out.c (produce_asm): Revert the last change.
31547 (copy_function): Likewise.
31549 * lto-streamer.c (lto_get_section_name): Skip any leading
31552 2010-01-01 Richard Guenther <rguenther@suse.de>
31554 PR middle-end/42559
31555 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
31559 Copyright (C) 2010 Free Software Foundation, Inc.
31561 Copying and distribution of this file, with or without modification,
31562 are permitted in any medium without royalty provided the copyright
31563 notice and this notice are preserved.