1. 17 Jun, 2010 30 commits
    • [multiple changes] · 2383acbd
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* par.adb: Minor comment fix
      	* sem_aggr.adb, sem_ch3.adb: Minor reformatting
      
      2010-06-17  Doug Rupp  <rupp@adacore.com>
      
      	* s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
      	change Address to Short_Address in functions where both must be the
      	same size for intrinsics to work.
      
      2010-06-17  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch4.adb (Analyze_Selected_Component): A selected component may
      	not denote a (private) component of a protected object.
      
      2010-06-17  Bob Duff  <duff@adacore.com>
      
      	* par-labl.adb (Try_Loop): Test whether the label and the goto are in
      	the same list.
      
      2010-06-17  Joel Brobecker  <brobecker@adacore.com brobecker>
      
      	* gnat_ugn.texi: Update the documentation about GDB re: exception
      	catchpoints.
      
      From-SVN: r160919
      Arnaud Charlet committed
    • * gnatvsn.ads: Bump to 4.6 version. · 2f203433
      From-SVN: r160916
      Arnaud Charlet committed
    • [multiple changes] · b0b7b57d
      2010-06-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
      	designated type of the generated pointer is the type of the original
      	expression, not that of the function call itself, because the return
      	type may be an untagged  derived type and the function may be an
      	inherited operation.
      
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch4.adb: Minor reformatting
      
      From-SVN: r160915
      Arnaud Charlet committed
    • [multiple changes] · f104fca1
      2010-06-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
      	N_Component_Association nodes, to indicate that a component association
      	of an extension aggregate denotes the value of a discriminant of an
      	ancestor type that has been constrained by the derivation.
      	* sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
      	double expansion of the aggregate appearing in a context that delays
      	expansion, to prevent double insertion of discriminant values when the
      	aggregate is reanalyzed.
      
      2010-06-17  Arnaud Charlet  <charlet@adacore.com>
      
      	* exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
      	Allocator as the Related_Node of Return_Obj_Access in call to
      	Make_Temporary below as this would create a sort of infinite
      	"recursion".
      
      From-SVN: r160914
      Arnaud Charlet committed
    • [multiple changes] · b0760739
      2010-06-17  Ben Brosgol  <brosgol@adacore.com>
      
      	* gnat_ugn.texi: Update gnatcheck doc.
      
      2010-06-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
      	incomplete view of the type that is not tagged, and the full type is a
      	tagged extension, create class_wide type now, and warn that the
      	incomplete view should be tagged as well.
      
      From-SVN: r160913
      Arnaud Charlet committed
    • [multiple changes] · aa9ea6a1
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
      	Update the last line of the usage, indicating what commands do not
      	accept project file switches.
      	* vms_conv.adb: Do not issue usage line for GNAT SYNC
      	* vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
      	GNAT ELIM.
      	* gnat_ugn.texi: Document the relaxed rules for library directories in
      	externally built library projects.
      
      2010-06-17  Doug Rupp  <rupp@adacore.com>
      
      	* s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
      	where possible.
      	* s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
      	* gcc-interface/Makefile.in: Update VMS target pairs.
      
      2010-06-17  Vasiliy Fofanov  <fofanov@adacore.com>
      
      	* adaint.c: Reorganized in order to avoid use of GetProcessId to stay
      	compatible with Windows NT 4.0 which doesn't provide this function.
      
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
      	different timestamps but the checksum is the same, issue a short
      	message saying so.
      
      2010-06-17  Arnaud Charlet  <charlet@adacore.com>
      
      	* s-interr.adb (Finalize): If the Abort_Task signal is set to system,
      	it means that we cannot reset interrupt handlers since this would
      	require potentially sending the abort signal to the Server_Task.
      
      From-SVN: r160911
      Arnaud Charlet committed
    • tree-inline.c (declare_return_variable): Remove bogus code. · 498c378f
      2010-06-17  Richard Guenther  <rguenther@suse.de>
      
      	* tree-inline.c (declare_return_variable): Remove bogus code.
      
      From-SVN: r160910
      Richard Guenther committed
    • [multiple changes] · c77599d5
      2010-06-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch4.adb: expand NOT for VMS types.
      	* sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
      
      2010-06-17  Sergey Rybin  <rybin@adacore.com>
      
      	* vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
      	* gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
      	option.
      
      From-SVN: r160908
      Arnaud Charlet committed
    • [multiple changes] · 6f76a257
      2010-06-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch6.adb (Expand_Call): Do not expand a call to an internal
      	protected operation if the subprogram has been eliminated.
      
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* prj-nmsc.adb (Check_Library_Attributes): Allow the different
      	directories associated with a library to be any directory when the
      	library project is externally built.
      
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* make.adb (Check): If switch -m is used, deallocate the memory that
      	may be allocated when computing the checksum.
      
      From-SVN: r160907
      Arnaud Charlet committed
    • [multiple changes] · cfab0c49
      2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
      	(C_Sendmsg): Likewise.
      
      2010-06-17  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_res.adb: Update comments.
      
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* back_end.adb (Scan_Compiler_Arguments): Process last argument.
      
      From-SVN: r160906
      Arnaud Charlet committed
    • [multiple changes] · b29def53
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
      	* layout.adb, freeze.adb: Use Make_Temporary.
      
      2010-06-17  Jerome Lambourg  <lambourg@adacore.com>
      
      	* exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
      	.NET/JVM normally as this is now perfectly supported by the backend.
      
      2010-06-17  Pascal Obry  <obry@adacore.com>
      
      	* gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
      
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* make.adb (Collect_Arguments_And_Compile): Create include path file
      	only when -x is specified.
      	(Gnatmake): Ditto
      	* opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
      	False.
      	* prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
      	Objects_Path, defaulted to True. Only create include path file if
      	Include_Path is True, only create objects path file if Objects_Path is
      	True.
      	* prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
      	Objects_Path, defaulted to True.
      	* switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
      	when -x is used.
      
      2010-06-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
      	determine whether it has the controlling type, when the formal is an
      	access parameter.
      
      2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* s-crtl.ads (ssize_t): New type.
      	(read): Fix signature.
      	(write): Likewise.
      	* g-socthi.ads: Add 'with System.CRTL' clause.  Remove ssize_t and
      	'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
      	(C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
      	(C_Sendmsg): Likewise.
      	* g-socthi.adb (Syscall_Recvmsg): Likewise.
      	(Syscall_Sendmsg): Likewise.
      	(C_Recvmsg): Likewise.
      	(C_Sendmsg): Likewise.
      	* g-socthi-mingw.ads: Add 'with System.CRTL' clause.  Remove ssize_t
      	and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
      	(C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
      	(C_Sendmsg): Likewise.
      	* g-socthi-mingw.adb (C_Recvmsg): Likewise.
      	(C_Sendmsg): Likewise.
      	* g-socthi-vms.ads: Add 'with System.CRTL' clause.  Remove ssize_t and
      	'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
      	(C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
      	(C_Sendmsg): Likewise.
      	* g-socthi-vms.adb (C_Recvmsg): Likewise.
      	(C_Sendmsg): Likewise.
      	* g-socthi-vxworks.ads Add 'with System.CRTL' clause.  Remove ssize_t
      	and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
      	(C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
      	(C_Sendmsg): Likewise.
      	* g-socthi-vxworks.adb (C_Recvmsg): Likewise.
      	(C_Sendmsg): Likewise.
      	* g-sercom-linux.adb (Read): Use correct types to call 'read'.
      	(Write): Likewise to call 'write'.
      	* s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
      	(Write): Use correct type to call System.CRTL.write.
      	* s-tasdeb.adb (Write): Likewise.
      
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* prj-proc.adb (Copy_Package_Declarations): Change argument name
      	Naming_Restricted to Restricted. If Restricted is True, do not copy the
      	value of attribute Linker_Options.
      
      From-SVN: r160905
      Arnaud Charlet committed
    • gimplify.c (gimplify_bind_expr): Always promote complex and vector variables to… · bd2e63a1
      gimplify.c (gimplify_bind_expr): Always promote complex and vector variables to registers if possible.
      
      2010-06-17  Richard Guenther  <rguenther@suse.de>
      
      	* gimplify.c (gimplify_bind_expr): Always promote complex
      	and vector variables to registers if possible.
      
      From-SVN: r160903
      Richard Guenther committed
    • expr.c (get_inner_reference): Use double_int for bit_offset calculation. · 7fa5296e
      2010-06-17  Richard Guenther  <rguenther@suse.de>
      
      	* expr.c (get_inner_reference): Use double_int for bit_offset
      	calculation.
      
      From-SVN: r160902
      Richard Guenther committed
    • trans.c (push_stack, pop_stack): Delete. · b4f73deb
      	* gcc-interface/trans.c (push_stack, pop_stack): Delete.
      	(Case_Statement_to_gnu): Adjust.
      	(Loop_Statement_to_gnu): Likewise.
      	(Subprogram_Body_to_gnu): Likewise.
      	(Handled_Sequence_Of_Statements_to_gnu): Likewise.
      	(Compilation_Unit_to_gnu): Likewise.
      
      From-SVN: r160898
      Eric Botcazou committed
    • exp_fixd.adb, [...]: Use Make_Temporary · 092ef350
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
      	exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
      	sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
      	sem_dist.adb, sem_util.adb: Use Make_Temporary
      	* itypes.ads, tbuild.ads: Minor comment update
      	* exp_ch9.adb, exp_dist.adb: Minor reformatting
      
      From-SVN: r160897
      Robert Dewar committed
    • [multiple changes] · 2287a75d
      2010-06-17  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_imgv.adb, exp_ch7.ads: Minor reformatting.
      
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
      
      2010-06-17  Thomas Quinot  <quinot@adacore.com>
      
      	* sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
      
      From-SVN: r160895
      Arnaud Charlet committed
    • exp_ch6.adb, [...]: Use Make_Temporary · c12beea0
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
      	* tbuild.ads (Make_Temporary): More comment updates
      	* tbuild.adb: Minor reformatting
      
      From-SVN: r160894
      Robert Dewar committed
    • checks.adb, [...]: Minor code reorganization. · 191fcb3a
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
      	exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
      	Use Make_Temporary.
      	* tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
      	instead of Node_Id.
      	(Make_Temporary): Add more extensive documentation
      
      From-SVN: r160893
      Robert Dewar committed
    • sem_intr.adb, [...]: Minor reformatting. · 8a95f4e8
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
      	sem_warn.adb, sem_eval.adb: Minor reformatting.  Use Ekind_In.
      	(Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
      	where the slice's actions are inserted.
      	(Decompose_Expr): Account for possible rewriting of slice bounds
      	resulting from side effects suppression caused by the above freezing,
      	so that folding of bounds is preserved by such rewriting.
      
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
      	* freeze.adb (Freeze_Record_Type): Add call to
      	Check_Record_Representation_Clause.
      	* sem_ch13.adb (Check_Record_Representation_Clause): New function
      	(Analyze_Record_Representation_Clause): Split out overlap code into this
      	new function.
      	(Check_Component_Overlap): Moved inside
      	Check_Record_Representation_Clause.
      	* sem_ch13.ads (Check_Record_Representation_Clause): New function.
      
      From-SVN: r160892
      Robert Dewar committed
    • [multiple changes] · e1b871e9
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
      	reformatting.
      	* sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
      	sem_eval.adb: Use Ekind_In
      
      2010-06-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch8.adb: better error message for illegal inherited discriminant
      
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* bindusg.adb: Remove lines for -A and -C
      	* gnat_ugn.texi: Remove all documentation and examples of switches -A
      	and -C for gnatbind and gnatlink.
      	* gnatlink.adb (Usage): Remove lines for -A and -C
      	* switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
      	specified.
      	* gcc-interface/Make-lang.in: Update dependencies.
      
      From-SVN: r160891
      Arnaud Charlet committed
    • back_end.adb (Scan_Compiler_Arguments): Put all arguments in new local Argument_List variable Args. · 67e740fa
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
      	local Argument_List variable Args.
      	* switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
      	Args.
      	(Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
      	for subsequent switches in Args.
      	* switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
      	Args.
      	* gcc-interface/Make-lang.in: Update dependencies.
      
      From-SVN: r160890
      Vincent Celier committed
    • [multiple changes] · bce79204
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* einfo.adb: Minor code fix, allow E_Class_Wide_Type for
      	Equivalent_Type to match documentation.
      
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch6.adb, sem_ch7.adb: Minor reformatting.
      	* sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
      	sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
      
      2010-06-17  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
      
      2010-06-17  Thomas Quinot  <quinot@adacore.com>
      
      	* freeze.adb (Freeze_Expression): Short circuit operators are valid
      	freeze node insertion points.
      
      From-SVN: r160889
      Arnaud Charlet committed
    • [multiple changes] · 3428cb9f
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
      	* sem_ch12.adb: Add pragmas Assert and Check to previous change.
      
      2010-06-17  Gary Dismukes  <dismukes@adacore.com>
      
      	* layout.adb (Layout_Type): Broaden test for setting an array type's
      	Component_Size to include all scalar types, not just discrete types
      	(components of real types were missed).
      	* sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
      	on the itype created for an index (consistent with Make_Index and
      	avoids possible Assert_Failures).
      
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* atree.ads, atree.adb: Add 6-parameter version of Ekind_In
      	* einfo.adb: Minor code reformatting (use Ekind_In)
      
      From-SVN: r160887
      Arnaud Charlet committed
    • [multiple changes] · 547c5954
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
      	found.
      
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* back_end.adb: Minor comment updates
      	* switch-c.adb: Remove dependencies on gcc C sources
              * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
      	for the compiler.
      
      From-SVN: r160884
      Arnaud Charlet committed
    • stl_uninitialized.h (__uninitialized_default, [...]): Add. · cc86c05a
      2010-06-17  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/stl_uninitialized.h (__uninitialized_default,
      	__uninitialized_default_n, __uninitialized_default_a,
      	__uninitialized_default_n_a): Add.
      
      	* include/bits/stl_uninitialized.h (uninitialized_copy,
      	uninitialized_fill, uninitialized_fill_n): Use __is_trivial
      	instead of __is_pod.
      	* include/bits/valarray_array.h: Likewise.
      	* include/bits/stl_algobase.h (__copy_move_backward_a,
      	__copy_move_a): Likewise.
      
      From-SVN: r160882
      Paolo Carlini committed
    • [multiple changes] · b26be063
      2010-06-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb: propagate Pragma_Enabled flag to generic.
      	* get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
      	* par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
      	Remove use of Node field in SCOs table
      	(Output_Header): Set 'd' to initially disable pragma entry
      	* put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
      	* scos.ads, scos.adb: Remove Node field from internal SCOs table.
      	Use C2 field of pragma decision header to indicate enabled.
      	* sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
      	* gcc-interface/Make-lang.in: Update dependencies.
      
      2010-06-17  Vincent Celier  <celier@adacore.com>
      
      	* back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
      	(Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
      	(Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
      	* back_end.ads (Scan_Front_End_Switches): Function moved to the body of
      	Switch.C.
      	* switch-c.adb: Copied a number of global declarations from back_end.adb
      	(Len_Arg): New function copied from back_end.adb
      	(Switch_Subsequently_Cancelled): New function moved from back_end.adb
      	(Scan_Front_End_Switches): New parameter Arg_Rank used to call
      	Switch_Subsequently_Cancelled.
      	* switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
      	* gcc-interface/Makefile.in: Add line so that shared libgnat is linked
      	with -lexc on Tru64.
      
      From-SVN: r160878
      Arnaud Charlet committed
    • re PR c++/44486 (missing space in __PRETTY_FUNCTION__ expansion in anonymous namespace) · 038253e6
      2010-06-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR c++/44486
      cp/	
      	* error.c (dump_decl): Better wording for anonymous namespace.
      testsuite/	
      	* g++.dg/pr44486.C: New.
      
      From-SVN: r160877
      Manuel López-Ibáñez committed
    • prj.ads, prj.adb: Minor reformatting · 7c1ab287
      2010-06-17  Robert Dewar  <dewar@adacore.com>
      
      	* prj.ads, prj.adb: Minor reformatting
      
      From-SVN: r160876
      Robert Dewar committed
    • [multiple changes] · 82923c66
      2010-06-17  Thomas Quinot  <quinot@adacore.com>
      
      	* put_scos.adb: Do not generate a blank line in SCOs when omitting the
      	CP line for a disabled pragma.
      
      2010-06-17  Emmanuel Briot  <briot@adacore.com>
      
      	* prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
      	subprogram.
      	(Process_Declarative_Item): An invalid value in an typed variable
      	declaration is no longer always fatal.
      
      From-SVN: r160875
      Arnaud Charlet committed
    • Daily bump. · cfc3e933
      From-SVN: r160869
      GCC Administrator committed
  2. 16 Jun, 2010 10 commits
    • common.opt (-fstrict-volatile-bitfields): new. · 6a78b724
      * common.opt (-fstrict-volatile-bitfields): new.
      * doc/invoke.texi: Document it.
      * fold-const.c (optimize_bit_field_compare): For volatile
      bitfields, use the field's type to determine the mode, not the
      field's size.
      * expr.c (expand_assignment): Likewise.
      (get_inner_reference): Likewise.
      (expand_expr_real_1): Likewise.
      * expmed.c (store_fixed_bit_field): Likewise.
      (extract_bit_field_1): Likewise.
      (extract_fixed_bit_field): Likewise.
      
      * gcc.target/i386/volatile-bitfields-1.c: New.
      * gcc.target/i386/volatile-bitfields-2.c: New.
      
      From-SVN: r160865
      DJ Delorie committed
    • tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r. · f1071b12
      2010-06-16  Richard Guenther  <rguenther@suse.de>
      
      	* tree-inline.c (remap_gimple_op_r): Recurse using
      	remap_gimple_op_r.
      
      From-SVN: r160860
      Richard Guenther committed
    • fix Wnoexcept typo · 3c820dcd
      From-SVN: r160859
      Jason Merrill committed
    • This patch adds the end prologue and begin epilogue markers in Dwarf2 · 67ad2ae7
      that are needed by the VMS debugger on I64.
      
      	* config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
      	(ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
      	* dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
      	* debug.c: Likewise.
      	* sdbout.c: Likewise.
      	* vmsdbgout.c: Likewise.
      	* debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
      	* doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
      	* dwarf2asm.c (dw2_asm_output_vms_delta): New function.
      	(ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
      	* dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
      	* dwarf2out.c (dw_fde_struct): New fields
      	dw_fde_vms_{end,begin}_prologue.
      	(PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
      	(dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
      	(dwarf2out_vms_end_prologue): New function.
      	(dwarf2out_vms_begin_epilogue): New function.
      	(dw_val_struct): New value dw_val_class_vms_delta.
      	(gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
      	begin_epilogue for VMS.
      	(AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
      	new static functions.
      	(dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
      	(AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New 
      	static functions.
      	(print_die): New case dw_val_class_vms_delta.
      	(attr_checksum): Likewise.
      	(same_dw_val_p: Likewise.
      	(size_of_die): Likewise.
      	(value_format): Likewise.
      	(output_die): Likewise.
      	(gen_subprogram_die): Call add_AT_vms_delta on VMS.
      	(dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
      	* dwarf2out.h (dwarf2out_begin_epilogue): Rename to
      	dwarf2out_cfi_begin_epilogue
      	* final.c (final_scan_insn): Likewise. Call begin_epilogue.
      
      From-SVN: r160858
      Douglas B Rupp committed
    • cris-protos.h (cris_print_operand): Delete. · ed5c4a10
      	* config/cris/cris-protos.h (cris_print_operand): Delete.
      	(cris_print_operand_address): Delete.
      	* config/cris/cris.h (PRINT_OPERAND): Delete.
      	(PRINT_OPERAND_PUNCT_VALID_P): Delete.
      	(PRINT_OPERAND_ADDRESS): Delete.
      	* config/cris/cris.c (cris_print_operand_address): Make static.
      	(cris_print_operand): Make static.
      	(cris_print_operand_punct_valid_p): New function.
      	(TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
      	(TARGET_PRINT_OPERAND_ADDRESS): Define.
      
      From-SVN: r160857
      Nathan Froyd committed
    • class.c (build_vtbl_initializer): Adjust computation of new_position and which… · 25d8a217
      class.c (build_vtbl_initializer): Adjust computation of new_position and which entry to add padding for.
      
      	* class.c (build_vtbl_initializer): Adjust computation of new_position
      	and which entry to add padding for.
      
      From-SVN: r160856
      Nathan Froyd committed
    • add missed ChangeLog for previous commit · 616c557d
      From-SVN: r160855
      Nathan Froyd committed
    • arm-protos.h (arm_print_operand): Delete. · 944442bb
      	* config/arm/arm-protos.h (arm_print_operand): Delete.
      	(arm_print_operand_address): Delete.
      	* config/arm/arm.h (PRINT_OPERAND): Delete.
      	(PRINT_OPERAND_PUNCT_VALID_P): Delete.
      	(PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
      	(THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
      	* config/arm/arm.c (arm_print_operand_address): ...here.  New
      	function.
      	(arm_print_operand): Make static.
      	(arm_print_operand_punct_valid_p): New function.
      	(TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
      	(TARGET_PRINT_OPERAND_ADDRESS): Define.
      
      From-SVN: r160854
      Nathan Froyd committed
    • Update dependencies. · c0932c7f
      From-SVN: r160850
      Arnaud Charlet committed
    • get_scos.adb, [...]: Code clean up, update documentation. · 25adc5fb
      	* get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
      	scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
      	documentation.
      
      From-SVN: r160849
      Arnaud Charlet committed