1. 07 Apr, 2009 14 commits
    • trans.c (Attribute_to_gnu): Do not convert the result. · c86f07f6
      2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
      	Do not convert the result.  Remove obsolete comment.
      
      From-SVN: r145662
      Eric Botcazou committed
    • trans.c (establish_gnat_vms_condition_handler): Clear DECL_CONTEXT. · 2d5be6c1
      	* gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
      	DECL_CONTEXT.
      	(Subprogram_Body_to_gnu): Fix pasto.
      
      From-SVN: r145661
      Eric Botcazou committed
    • gigi.h (standard_datatypes): Remove ADT_void_type_decl. · 10069d53
      	* gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
      	(void_type_decl_node): Remove.
      	(init_gigi_decls): Likewise.
      	(gnat_install_builtins): Declare.
      	(record_builtin_type): Likewise.
      	(create_type_stub_decl): Likewise.
      	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
      	(gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
      	artificial.
      	<E_Array_Subtype>: Use the index types, not only their name, in the
      	record giving the names of the bounds, if any.
      	For a packed array type, make it artificial only if the base type
      	was artificial as well.  Remove redundant statement.
      	(gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
      	dummy types.
      	Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
      	(rest_of_type_decl_compilation_no_defer): Likewise.
      	* gcc-interface/misc.c (gnat_printable_name): Add missing guard.
      	* gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
      	and use create_type_stub_decl to build it.
      	(gnat_pushdecl): Rewrite condition.
      	(gnat_install_builtins): Remove bogus declaration.
      	(record_builtin_type): New function.
      	(finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
      	of types.
      	(create_type_stub_decl): New function.
      	(create_type_decl): Assert that the type is not dummy.  If the type
      	hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
      	(build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
      	(build_vms_descriptor): Likewise.
      	(init_gigi_decls): Delete and move bulk of code to...
      	* gcc-interface/trans.c (gigi): ...here.  Use record_builtin_type.
      	(emit_range_check): Add gnat_node parameter.
      	(emit_index_check): Likewise.
      	(emit_check): Likewise.
      	(build_unary_op_trapv): Likewise.
      	(build_binary_op_trapv): Likewise.
      	(convert_with_check): Likewise.
      	(Attribute_to_gnu): Adjust calls for above changes.
      	(call_to_gnu): Likewise.
      	(gnat_to_gnu): Likewise.
      	(assoc_to_constructor): Likewise.
      	(pos_to_constructor): Likewise.
      	(Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
      	(process_type): Do not create TYPE_DECL for dummy types.
      
      From-SVN: r145660
      Eric Botcazou committed
    • decl.c (gnat_to_gnu_entity): Reorder local variables. · 1e17ef87
      	* gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
      	* gcc-interface/trans.c: Fix formatting throughout.  Fix comments.
      	* gcc-interface/utils.c: Fix comments.
      
      From-SVN: r145658
      Eric Botcazou committed
    • decl.c (compile_time_known_address_p): Rewrite and move around. · 229077b0
      	* decl.c (compile_time_known_address_p): Rewrite and move around.
      	(gnat_to_gnu_type): Move around.
      	(get_unpadded_type): Likewise.
      	* utils.c (update_pointer_to): Use synthetic macro.  Tidy comments.
      
      From-SVN: r145654
      Eric Botcazou committed
    • repairing ChangeLog for my last commit · c22ba5ff
      From-SVN: r145653
      Janus Weil committed
    • trans.c (check_for_eliminated_entity): New function. · aa1aa786
      	* gcc-interface/trans.c (check_for_eliminated_entity): New function.
      	(Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
      	(call_to_gnu): Invoke it instead of manually checking.
      
      From-SVN: r145652
      Eric Botcazou committed
    • re PR other/38920 (dw2 exceptions don't work.) · 3afadac3
      2009-04-07  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/38920
      	* expr.c (gfc_check_pointer_assign): Enable interface check for
      	procedure pointers.
      	* gfortran.h: Add copy_formal_args_intr.
      	* interface.c (gfc_compare_interfaces): Call gfc_compare_intr_interfaces
      	if second argument is an intrinsic.
      	(compare_intr_interfaces): Correctly set attr.function, attr.subroutine
      	and ts.
      	(compare_parameter): Call gfc_compare_interfaces also for intrinsics.
      	* resolve.c (resolve_specific_f0,resolve_specific_s0): Don't resolve
      	intrinsic interfaces here. Must happen earlier.
      	(resolve_symbol): Resolution of intrinsic interfaces moved here from
      	resolve_specific_..., and formal args are now copied from intrinsic
      	interfaces.
      	* symbol.c (copy_formal_args_intr): New function to copy the formal
      	arguments from an intinsic procedure.
      
      
      2009-04-07  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/38920
      	* gfortran.dg/proc_decl_1.f90: Modified.
      	* gfortran.dg/proc_ptr_11.f90: Extended.
      	* gfortran.dg/proc_ptr_13.f90: Modified.
      
      From-SVN: r145651
      Janus Weil committed
    • config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file. · 44509946
      2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
      
      	* config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
      	Add t-sysroot-suffix to tmake_file.
      	* config/print-sysroot-suffix.sh: New file.
      	* config/t-sysroot-suffix: New file.
      
      From-SVN: r145650
      Andrew Stubbs committed
    • libgcc2.c (INFINITY): Use __builtin_huge_val... · ca22d882
      	* libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
      	as the latter produces a warning when the target does not support
      	infinity.
      
      From-SVN: r145646
      Ben Elliston committed
    • Makefile.am (${pch1a_output}): Use gnu++0x flags instead of debug. · 04b70271
      2009-04-06  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/Makefile.am (${pch1a_output}): Use gnu++0x flags instead
      	of debug.
      	* include/Makefile.in: Regenerate.
      	* include/precompiled/stdc++.h: Add.
      
      	* doc/xml/api.xml: Add gcc-4.4 link.
      	* doc/html/api.html: Regenerate.
      
      2009-04-06  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/bits/random.h: Adjust doxygen markup.
      	* doc/doxygen/user.cfg.in: Prefer C++0x to tr1 includes.
      
      	* testsuite/26_numerics/random/piecewise_linear_distribution/
      	operators/serialize.cc: Use typedefs.
      
      From-SVN: r145645
      Benjamin Kosnik committed
    • dfp.c: Replace type punning assignments with memcpy throughout. · 95aac11b
      	* dfp.c: Replace type punning assignments with memcpy throughout.
      	* Makefile.in (dfp.o-warn): Remove.
      
      From-SVN: r145644
      Ben Elliston committed
    • re PR target/39634 (powerpc64 libgcc contains useless softfp functions) · 633dd061
      	PR target/39634
      	* config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
      	Include soft-fp/t-softfp after rs6000/t-linux64.
      	* config.host: Reorder and merge to match config.gcc change.
      
      From-SVN: r145641
      Alan Modra committed
    • Daily bump. · dacfd234
      From-SVN: r145640
      GCC Administrator committed
  2. 06 Apr, 2009 25 commits
  3. 05 Apr, 2009 1 commit
    • random.tcc (piecewise_linear_distribution<>::… · 9769c190
      random.tcc (piecewise_linear_distribution<>:: operator()(_UniformRandomNumberGenerator&, const param_type&)): Remove spurious closed parenthesis.
      
      2009-04-05  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/random.tcc (piecewise_linear_distribution<>::
      	operator()(_UniformRandomNumberGenerator&, const param_type&)):
      	Remove spurious closed parenthesis.
      
      From-SVN: r145575
      Paolo Carlini committed