1. 11 Jun, 2009 8 commits
    • random.tcc (negative_binomial_distribution<>::operator()… · f9b09dec
      random.tcc (negative_binomial_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&): Tweak to use a class member gamma_distribution.
      
      2009-06-11  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/random.tcc
      	(negative_binomial_distribution<>::operator()
      	(_UniformRandomNumberGenerator&, const param_type&): Tweak to use a
      	class member gamma_distribution.
      	(negative_binomial_distribution<>::operator()
      	(_UniformRandomNumberGenerator&)): Implement out of line here.
      	(operator<<(basic_ostream<>&, negative_binomial_distribution<>),
      	operator>>(basic_ostream<>&, negative_binomial_distribution<>): Adjust.
      	(student_t_distribution<>::operator()
      	(_UniformRandomNumberGenerator&, const param_type&): Move inline,
      	simplify.
      	(operator<<(basic_ostream<>&, student_t_distribution<>),
      	operator>>(basic_ostream<>&, student_t_distribution<>): Adjust.
      	(chi_squared_distribution<>::operator()
      	(_UniformRandomNumberGenerator&, const param_type&): Move inline,
      	tweak to use a class member gamma_distribution.
      	(operator<<(basic_ostream<>&, chi_squared_distribution<>),
      	operator>>(basic_ostream<>&, chi_squared_distribution<>): Adjust.
      	(fisher_f_distribution<>::operator() (_UniformRandomNumberGenerator&,
      	const param_type&): Move inline, tweak to use class member
      	gamma_distributions.
      	(operator<<(basic_ostream<>&, fisher_f_distribution<>),
      	operator>>(basic_ostream<>&, fisher_f_distribution<>): Adjust.
      	* include/bits/random.h: Adjust, minor tweaks.
      
      From-SVN: r148393
      Paolo Carlini committed
    • [multiple changes] · 2995ebee
      2009-06-11  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_attr.adb (Resolve_Attribute, case 'access): Add missing
      	accessibiliy check on access_to_subprogram in the context of an
      	anonymous access that is not an access parameter.
      
      2009-06-11  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
      	
      2009-06-11  Quentin Ochem  <ochem@adacore.com>
      
      	* sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
      	comments for message handled by GPS.
      
      2009-06-11  Matthew Gingell  <gingell@adacore.com>
      
      	* adaint.c: Use fopen64 instead of fopen on platforms where we know
      	it's supported.
      
      2009-06-11  Pascal Obry  <obry@adacore.com>
      
      	* g-cgi.ads: Fix comment typo.
      
      	* g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
      
      From-SVN: r148392
      Arnaud Charlet committed
    • Add PC-relative branch support to Moxie port. · 6be6462e
      From-SVN: r148390
      Anthony Green committed
    • re PR fortran/38718 (some simplifiers for elemental intrinsics missing; required… · 4ec80803
      re PR fortran/38718 (some simplifiers for elemental intrinsics missing; required for init expressions)
      
      	PR fortran/38718
      
      	* intrinsic.c (add_functions): Add simplifiers for ISNAN,
      	IS_IOSTAT_END and IS_IOSTAT_EOR.
      	* intrinsic.h (gfc_simplify_is_iostat_end,
      	* gfc_simplify_is_iostat_eor,
      	gfc_simplify_isnan): New prototypes.
      	* intrinsic.c (gfc_simplify_is_iostat_end,
      	* gfc_simplify_is_iostat_eor,
      	gfc_simplify_isnan): New functions.
      
      	* gfortran.dg/is_iostat_end_eor_2.f90: New test.
      	* gfortran.dg/nan_5.f90: New test.
      
      From-SVN: r148367
      Francois-Xavier Coudert committed
    • interface.c (fold_unary): Rename to... · e8d4f3fc
      	* interface.c (fold_unary): Rename to...
      	(fold_unary_intrinsic): ... this.
      	(gfc_extend_expr): Adjust caller.
      	(gfc_match_generic_spec): Likewise.  Initialize *op to INTRINSIC_NONE
      	to avoid warnings.
      	* expr.c (gfc_simplify_expr): Initialize start and end before calling
      	gfc_extract_int.
      
      From-SVN: r148366
      Jakub Jelinek committed
    • i386.c (min_insn_size): Use get_attr_length for normal insns other than TYPE_MULTI... · e5219642
      	* config/i386/i386.c (min_insn_size): Use get_attr_length
      	for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
      	For __asm return 0.
      
      From-SVN: r148365
      Jakub Jelinek committed
    • i386.c (ix86_pad_returns): Use emit_jump_insn_before instead of emit_insn_before. · caaabe0a
      	* config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
      	instead of emit_insn_before.
      
      From-SVN: r148364
      Jakub Jelinek committed
    • Daily bump. · eb2969d5
      From-SVN: r148361
      GCC Administrator committed
  2. 10 Jun, 2009 20 commits
    • printers.py (lookup_function): Remove extra ';'. · 3af62211
      	* python/libstdcxx/v6/printers.py (lookup_function): Remove extra
      	';'.
      	(build_libstdcxx_dictionary): Accept shortened form of
      	basic_string names.
      	(StdStringPrinter.to_string): Remove reference to WideEncoding.
      
      From-SVN: r148358
      Tom Tromey committed
    • re PR libstdc++/40289 (share/libstdc++/python/ pollutes common namespace) · 35204bbe
      	PR libstdc++/40289:
      	* python/Makefile.in: Rebuild.
      	* python/hook.in: Compute module path relative to objfile.
      	* python/Makefile.am (pythondir): Redefine.
      	(gdb.py): Subst toolexeclibdir.
      	(install-data-local): Rewrite.
      
      From-SVN: r148357
      Tom Tromey committed
    • re PR bootstrap/40408 (bootstrap boken again!) · a567fa6a
      	PR bootstrap/40408
      	* graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
      	GIMPLE_SWITCH.
      
      From-SVN: r148356
      Ian Lance Taylor committed
    • config.host (vax-*-linux*): New. · fea96e25
      libgcc/
      	* config.host (vax-*-linux*): New.
      
      From-SVN: r148355
      Maciej W. Rozycki committed
    • Reschedule predictive-commoning pass · 6a753d5f
      From-SVN: r148352
      Revital Eres committed
    • cgraph.c (cgraph_node_can_be_local_p): New function. · a550d677
      2009-06-10  Martin Jambor  <mjambor@suse.cz>
      
      	* cgraph.c (cgraph_node_can_be_local_p): New function.
      	(cgraph_make_node_local): New function.
      	* cgraph.h (cgraph_node_can_be_local_p): Declare.
      	(cgraph_make_node_local): Declare.
      
      From-SVN: r148349
      Martin Jambor committed
    • tree.h (tree_base): Add packed_flag and user_align fields. · d8259b07
      gcc/
      	* tree.h (tree_base): Add packed_flag and user_align fields.
      	Decrease size of spare field.
      	(TYPE_USER_ALIGN): Use user_align from tree_base.
      	(DECL_USER_ALIGN): Likewise.
      	(TYPE_PACKED): Use packed_flag from tree_base.
      	(DECL_PACKED): Likewise.
      	(tree_type): Delete packed_flag and user_align fields.  Widen
      	precision field.  Widen mode field and shuffle fields to align
      	mode on an 8-bit boundary.
      	(tree_decl_common): Delete decl_flag_1 and user_align fields.
      	Renumber decl_flag_* fields.  Fix comments.  Widen
      	decl_common_unused field.
      	(DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_*
      	fields.
      	(DECL_EXTERNAL): Likewise.
      	(DECL_BIT_FIELD): Likewise.
      	(DECL_NONADDRESSABLE_P): Likewise.
      	(TYPE_DECL_SUPRESS_DEBUG): Likewise.
      	* config/arm/arm-modes.def (XImode): Make it an INT_MODE.
      
      gcc/testsuite/
      	* gcc.target/arm/neon-modes-1.c: New test.
      
      From-SVN: r148348
      Nathan Froyd committed
    • vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I. · c2569604
      	* vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
      	(DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
      	(DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
      	(DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
      	(DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
      	DEF_VEC_ALLOC_FUNC_P.
      	(DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
      	(DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
      	DEF_VEC_ALLOC_FUNC_O.
      	(DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
      	(DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
      	DEF_VEC_ALLOC_FUNC_I.
      	(vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
      	(vec_stack_p_reserve_exact_1): Declare.
      	(vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
      	(vec_stack_free): Declare.
      	(VEC_stack_alloc): Define.
      	(DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
      	(DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
      	(DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
      	* vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
      	for void_p.
      	(stack_vecs): New static variable.
      	(vec_stack_p_reserve_exact_1): New function.
      	(vec_stack_o_reserve_1): New static function.
      	(vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
      	(vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
      	(vec_stack_free): New function.
      	* df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
      	(VEC_df_ref_stack_alloc): Define.
      	(df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
      	DEF_VEC_ALLOC_P_STACK.
      	(VEC_df_mw_hardreg_ptr_stack_alloc): Define.
      	(struct df_collection_rec): Change _vec fields to VEC.  Remove
      	_use fields.
      	(df_free_collection_rec): Adjust for new fields.
      	(df_insn_rescan): Use new df_collection_rec fields.
      	(df_notes_rescan, df_canonize_collection_rec): Likewise.
      	(df_ref_create_structure, df_ref_record): Likewise.
      	(df_get_conditional_uses, df_get_call_refs): Likewise.
      	(df_insn_refs_collect, df_bb_refs_collect): Likewise.
      	(df_bb_refs_record, df_record_entry_block_defs): Likewise.
      	(df_record_exit_block_uses, df_bb_verify): Likewise.
      	(df_swap_refs): Change ref_vec parameter to VEC.  Change all
      	callers.
      	(df_sort_and_compress_refs): Change ref_vec parameter to VEC.
      	Remove count parameter.  Change return type to void.  Change all
      	callers.
      	(df_sort_and_compress_mws): Change mw_vec parameter to VEC.
      	Remove count parameter.  Change return type to void.  Change all
      	callers.
      	(df_install_refs): Change old_vec parameter to VEC.  Remove count
      	parameter.  Change all callers.
      	(df_install_mws): Change old_vec parameter to VEC.  Remove count
      	parameter.  Change all callers.
      	(df_refs_verify): Change new_rec parameter to VEC.  Change call
      	callers.
      	(df_mws_verify): Likewise.
      
      From-SVN: r148347
      Ian Lance Taylor committed
    • * gcc.c (compare_files): Cast munmap argumento to caddr_t. · e7aae3e8
      From-SVN: r148346
      Alexandre Oliva committed
    • decl.c (gnat_to_gnu_entity): Use a reference to the original type for the type… · c244bf8f
      decl.c (gnat_to_gnu_entity): Use a reference to the original type for the type of the field of the XVS type.
      
      	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
      	a reference to the original type for the type of the field of the
      	XVS type.
      	(maybe_pad_type): Likewise.
      
      	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
      	common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
      	Pass correctly typed arguments to create_field_decl.
      	<E_Record_Subtype>: Set BLKmode for tagged and limited types in the
      	case of contrained discriminants as well.  Use the padded base type
      	in the other case as well.  Rename temporary variable.  Tweak test.
      	Factor common access pattern.  Set GNU_SIZE only once.
      
      From-SVN: r148345
      Eric Botcazou committed
    • trans-decl.c (create_main_function): Don't build main decl twice. · f788ca89
      2009-06-10  Dave Korn  <dave.korn.cygwin@gmail.com>
      
              * trans-decl.c (create_main_function):  Don't build main decl twice.
      
      From-SVN: r148344
      Dave Korn committed
    • * verify.h: Remove extern "C". · b0cde35b
      From-SVN: r148343
      Ian Lance Taylor committed
    • pr31579.C: Cast pointer via __SIZE_TYPE__ instead of 'unsigned long'. · c9edd8f4
      2009-06-10  Kai Tietz  <kai.tietz@onevision.com>
      
              * g++.dg/torture/pr31579.C: Cast pointer
              via __SIZE_TYPE__ instead of 'unsigned long'.
      
      From-SVN: r148342
      Kai Tietz committed
    • extend.texi: Add description for __builtin_ia32_crc32di. · 412ac8d5
      2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* doc/extend.texi: Add description for __builtin_ia32_crc32di.
      
      From-SVN: r148341
      H.J. Lu committed
    • Finish committing moxie port · 2cd04f4d
      From-SVN: r148340
      Anthony Green committed
    • Commit moxie port. · cceb575c
      From-SVN: r148339
      Anthony Green committed
    • move.h: Doxygen group fixes. · fd9380a6
      2009-06-09  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/bits/move.h: Doxygen group fixes.
      
      From-SVN: r148337
      Benjamin Kosnik committed
    • system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if compiling with C++. · bf406687
      	* system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
      	compiling with C++.
      	* optabs.c (optab_table): Only use designated initializers if
      	HAVE_DESIGNATED_INITIALIZERS is defined.
      	(convert_optab_table): Likewise.
      	(init_optabs): Always call init_insn_codes if
      	HAVE_DESIGNATED_INITIALIZERS is not defined.
      
      From-SVN: r148336
      Ian Lance Taylor committed
    • * ansidecl.h (ATTRIBUTE_UNUSED_LABEL): Define for C++. · 780ca5bf
      From-SVN: r148333
      Ian Lance Taylor committed
    • Daily bump. · f7bc95cd
      From-SVN: r148332
      GCC Administrator committed
  3. 09 Jun, 2009 12 commits
    • inclhack.def (darwin_stdint_1, [...]): New fixes. · fdfbd469
      	* inclhack.def (darwin_stdint_1, darwin_stdint_2,
      	darwin_stdint_3, darwin_stdint_4): New fixes.
      	* tests/base/stdint.h: Adjust test results for new fixes.
      	* fixincl.x: Regenerate.
      
      From-SVN: r148328
      Francois-Xavier Coudert committed
    • targhooks.c (default_builtin_vectorized_function): Change fn parameter to unsigned int. · 744aa42f
      ./:	* targhooks.c (default_builtin_vectorized_function): Change fn
      	parameter to unsigned int.
      	(default_builtin_vectorized_conversion): Change code parameter to
      	unsigned int.
      	(default_builtin_reciprocal): Change fn parameter to unsigned int.
      	* targhooks.h: Update declarations.
      	* config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
      	parameter to unsigned int.
      
      	* c-typeck.c (comptypes_check_enum_int): New static function.
      	(comptypes_internal): Add enum_and_int_p parameter.  Change all
      	callers.
      	(comp_target_types): Add location parameter.  Change all callers.
      	(tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
      	Change all callers.
      	(function_types_compatible_p, type_lists_compatible_p): Likewise.
      	(build_conditional_expr): Add colon_loc parameter.  Change all
      	callers.
      	(convert_for_assignment): Add location parameter.  Change all
      	callers.
      	* c-parser.c (c_parser_conditional_expression): Pass location of
      	colon to build_conditional_expr.
      	* c-tree.h (build_conditional_expr): Update declaration.
      objc/:
      	* objc-act.c (objc_gimplify_expr): Change return type to int.
      	* objc-act.h: Update declaration.
      testsuite/:
      	* gcc.dg/Wcxx-compat-12.c: New testcase.
      
      From-SVN: r148325
      Ian Lance Taylor committed
    • PR libfortran/40334 backspace regression · a3f2b833
      From-SVN: r148324
      Janne Blomqvist committed
    • MAINTAINERS: Added my name to the write-after-approval list · e5871e24
      2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
      
              * MAINTAINERS: Added my name to the write-after-approval list
      
      From-SVN: r148322
      Ghassan Shobaki committed
    • graphite.c: Revert previous patch. · bcbe3b25
      2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* graphite.c: Revert previous patch.
      
      From-SVN: r148321
      Sebastian Pop committed
    • re PR c++/40381 (Revision 142379 caused ICE with deleted functions) · 869fef88
      	PR c++/40381
      	* decl2.c (mark_used): Return after complaining about deleted fn.
      
      From-SVN: r148319
      Jason Merrill committed
    • re PR bootstrap/40103 (CLooG header files are not -Wc++-compat ready) · dc2a6925
      2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
      
      	PR bootstrap/40103
      	* graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
      
      From-SVN: r148318
      Sebastian Pop committed
    • trans-decl.c (gfc_generate_function_code): Use · ebcbc56d
      2009-06-09  Tobias Burnus  <burnus@net-b.de>
      
              * trans-decl.c (gfc_generate_function_code): Use
              * gfc_option.rtcheck
              instead of flag_bounds_check.
              * intrinsic.texi (ISO_FORTRAN_ENV): Document INT{8,16,32,64} and
              REAL{32,64,128}.
      
      From-SVN: r148317
      Tobias Burnus committed
    • 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com> · d81f5387
              * tree-ssa-loop-prefetch.c
              (loop_prefetch_arrays): Fixed a portability problem in printf format
              string.
      
      From-SVN: r148316
      Ghassan Shobaki committed
    • re PR tree-optimization/40351 (ice in generate_subtree_copies for Linux kernel build) · 8056eb4f
      2009-06-09  Martin Jambor  <mjambor@suse.cz>
      
      	PR tree-optimization/40351
      	* tree-sra.c (propagate_subacesses_accross_link): Check that a refrence
      	to a potential artifical subaccess can be constructed.
      
      	* testsuite/gcc.c-torture/compile/pr40351.c: New file.
      
      From-SVN: r148315
      Martin Jambor committed
    • utils2.c (build_call_alloc_dealloc_proc): New helper for… · ff346f70
      utils2.c (build_call_alloc_dealloc_proc): New helper for build_call_alloc_dealloc with arguments to be interpreted...
      
              ada/
              * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
              helper for build_call_alloc_dealloc with arguments to be interpreted
              identically.  Process the case where a GNAT_PROC to call is provided.
              (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
              and return an allocator for DATA_SIZE bytes aimed at containing a
              DATA_TYPE object, using the default __gnat_malloc allocator.  Honor
              DATA_TYPE alignments greater than what the latter offers.
              (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
              release a DATA_TYPE object designated by DATA_PTR using the
              __gnat_free entry point.
              (build_call_alloc_dealloc): Expect object data type instead of naked
              alignment constraint. Use the new helpers.
              (build_allocator): Remove special processing for the super-aligned
              case, now handled by build_call_alloc_dealloc.  Pass data type instead
              of the former alignment argument, as expected by the new interface.
              * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
              and comment.
              * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
              Remove special processing for the super-aligned case, now handled
              by build_call_alloc_dealloc.  Pass data type instead of the former
              alignment argument, as expected by the new interface.
      
              testsuite/
              * gnat.dg/align_max.adb: New test.
      
      From-SVN: r148314
      Olivier Hainque committed
    • freebsd.S: Add missing file. · 6aa0b218
      2009-06-09  Andrew Haley  <aph@redhat.com>
      
              * src/x86/freebsd.S: Add missing file.
      
      From-SVN: r148313
      Andrew Haley committed