Commit graph

88972 commits

Author SHA1 Message Date
Thomas Quinot
65aa315eea Makefile.in: Now generate s-oscons-$(THREAD_KIND).
2008-08-06  Thomas Quinot  <quinot@adacore.com>

	* Makefile.in: Now generate s-oscons-$(THREAD_KIND).

From-SVN: r138789
2008-08-06 11:43:33 +02:00
Thomas Quinot
e93d146b83 Makefile.in, [...]: Remove obsolete targets referencing gen-soccon When generating s-oscons.ads...
2008-08-06  Thomas Quinot  <quinot@adacore.com>
 
	* gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
	Remove obsolete targets referencing gen-soccon
	When generating s-oscons.ads, use a file name that includes the
	THREAD_KIND, to ensure that the (potentially different) version from a
	previous build with a different threads flavour does not get reused.

From-SVN: r138788
2008-08-06 11:43:10 +02:00
Thomas Quinot
46fbbc83a3 Makefile.in, [...]: Remove obsolete targets referencing gen-soccon When generating s-oscons.ads...
2008-08-06  Thomas Quinot  <quinot@adacore.com>

	* gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
	Remove obsolete targets referencing gen-soccon
	When generating s-oscons.ads, use a file name that includes the
	THREAD_KIND, to ensure that the (potentially different) version from a
	previous build with a different threads flavour does not get reused.

From-SVN: r138787
2008-08-06 11:42:31 +02:00
Arnaud Charlet
c6aecf3bee s-fileio.adb (Open): When file open operation fails...
2008-08-06  Thomas Quinot  <quinot@adacore.com>

	* s-fileio.adb (Open): When file open operation fails, raise Name_Error
	only when the operating system reports a non-existing file or directory
	(ENOENT), otherwise raise Name_Error.

From-SVN: r138786
2008-08-06 11:41:04 +02:00
Thomas Quinot
49f7fe608b exp_ch11.adb: Minor reformatting
2008-08-06  Thomas Quinot  <quinot@adacore.com>

	* exp_ch11.adb: Minor reformatting

From-SVN: r138785
2008-08-06 11:35:27 +02:00
Ed Schonberg
49d8b80281 sem_ch3.adb (Access_Subprogram_Declaration): If the return type is incomplete...
2008-08-06  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
	incomplete, add the access_to_subprogram type to the list of private
	dependents only if the incomplete type will be completed in the current
	scope.
	(Build_Discriminant_Constraints): If the type of the discriminant is
	access_to_variable, reject a constraint that is access_to_constant.

From-SVN: r138784
2008-08-06 11:35:17 +02:00
Thomas Quinot
66aa764336 sem_res.adb: Minor reformatting
2008-08-06  Thomas Quinot  <quinot@adacore.com>

	* sem_res.adb: Minor reformatting

From-SVN: r138783
2008-08-06 11:35:06 +02:00
Arnaud Charlet
0d3716f50c New tests.
From-SVN: r138782
2008-08-06 11:16:07 +02:00
Arnaud Charlet
6594c0f3e1 g-socket-dummy.adb, [...]: New files.
2008-08-06  Thomas Quinot  <quinot@adacore.com>

	* g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
	g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
	g-sttsne-dummy.ads: New files.

	* gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
	with pragma Unimplemented_Unit for sockets packages on Nucleus.

From-SVN: r138781
2008-08-06 10:57:21 +02:00
Jerome Lambourg
32b9901464 g-comlin.adb (Set_Command_Line): Now that aliases can contain parameters, always specify the expected separator.
2008-08-06  Jerome Lambourg  <lambourg@adacore.com>

	* g-comlin.adb (Set_Command_Line): Now that aliases can contain
	parameters, always specify the expected separator.

From-SVN: r138780
2008-08-06 10:52:44 +02:00
Ed Schonberg
c9b9957118 sem_res.adb (Resolve_Call): Use base type to determine whether a dereference is needed because a subtype of...
2008-08-06  Ed Schonberg  <schonberg@adacore.com>

	* sem_res.adb (Resolve_Call): Use base type to determine whether a
	dereference is needed because a subtype of an access_to_subprogram is
	simply an access-subtype

From-SVN: r138779
2008-08-06 10:52:36 +02:00
Javier Miranda
2a26a7ec2f exp_disp (Expand_Interface_Actuals): Adds missing support for expansion of calls to subprograms using selected...
2008-08-06  Javier Miranda  <miranda@adacore.com>

	* exp_disp (Expand_Interface_Actuals): Adds missing support for
	expansion of calls to subprograms using selected components.

From-SVN: r138778
2008-08-06 10:52:28 +02:00
Pascal Obry
3e1055a7e5 adaint.c: Another fix for ACL support on Windows.
2008-08-06  Pascal Obry  <obry@adacore.com>

	* adaint.c: Another fix for ACL support on Windows.

From-SVN: r138777
2008-08-06 10:52:19 +02:00
Thomas Quinot
7bd9875325 sem_ch3.adb: Minor reformatting
2008-08-06  Thomas Quinot  <quinot@adacore.com>

	* sem_ch3.adb: Minor reformatting

From-SVN: r138776
2008-08-06 10:52:10 +02:00
Arnaud Charlet
f9325b0364 g-comlin.adb (Define_Switch, [...]): New.
2008-08-06  Jerome Lambourg  <lambourg@adacore.com>

	* g-comlin.adb (Define_Switch, Get_Switches): New.
	(Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
	ungrouping switches.
	(For_Each_Simple_Switch): Allow more control over parameters handling.
	This generic method now allows ungrouping of switches with parameters
	and switches with more than one letter after the prefix.
	(Set_Command_Line): Take care of switches that are prefixed with a
	switch handling parameters without delimiter (-gnatya and -gnaty3 for
	example).
	(Add_Switch, Remove_Switch): Handle parameters possibly present inside
	a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
	the operation.
	(Start, Alias_Switches, Group_Switches): Take care of parameters
	possibly present inside a group.

	* g-comlin.ads (Define_Switch): New method used to define a list of
	expected switches, that are necessary for correctly ungrouping switches
	with more that one character after the prefix.
	(Get_Switches): Method that builds a getopt string from the list of
	switches as set previously by Define_Switch.
	(Add_Switch, Remove_Switch): New versions of the methods, reporting the
	status of the operation. Also allow the removal of switches with
	parameters only.
	(Command_Line_Configuration_Record): Maintain a list of expected
	switches.

From-SVN: r138775
2008-08-06 10:33:21 +02:00
Thomas Quinot
1c5a12b418 sem.adb: Minor rewording (comment)
2008-08-06  Thomas Quinot  <quinot@adacore.com>

	* sem.adb: Minor rewording (comment)

From-SVN: r138774
2008-08-06 10:32:52 +02:00
Ed Schonberg
d4429d51ba sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete declaration for the same type.
2008-08-06  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
	declaration for the same type.

From-SVN: r138773
2008-08-06 10:32:42 +02:00
Ed Schonberg
dbe0163146 g-awk.adb (Finalize): Do not use directly objects of the type in the finalization routine to prevent...
2008-08-06  Ed Schonberg  <schonberg@adacore.com>

	* g-awk.adb (Finalize): Do not use directly objects of the type in the
	finalization routine to prevent elaboration order anomalies in new
	finalization scheme.

From-SVN: r138772
2008-08-06 10:32:32 +02:00
Quentin Ochem
4dd80bb73b s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark in the case of an empty pattern size.
2008-08-06  Quentin Ochem  <ochem@adacore.com>

	* s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
	in the case of an empty pattern size.
	(Compute_Result): Do not do any computation in the case of an empty
	pattern size.
	(Report_Result): Fixed computation of the overflow guard.

From-SVN: r138771
2008-08-06 10:32:09 +02:00
Vincent Celier
1a9a686e31 gnat_ugn.texi: Document compiler switch -gnateG
2008-08-06  Vincent Celier  <celier@adacore.com>

	* gnat_ugn.texi: Document compiler switch -gnateG

From-SVN: r138770
2008-08-06 10:32:00 +02:00
Thomas Quinot
3d7b4658c1 xnmake.adb: Use new XUtil package for platform independent text output.
2008-08-06  Thomas Quinot  <quinot@adacore.com>

	* xnmake.adb: Use new XUtil package for platform independent text
	output.

From-SVN: r138769
2008-08-06 10:31:51 +02:00
Doug Rupp
f0a631aae2 decl.c (gnat_to_gnu_param): Force 32bit descriptor if TARGET_MALLOC64 clear.
2008-08-06  Doug Rupp  <rupp@adacore.com>

	* gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
	TARGET_MALLOC64 clear.

	* gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
	if TARGET_MALLOC64 clear.

	* gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
	(TARGET_MALLC64): New macro. Default to clear.

From-SVN: r138768
2008-08-06 10:07:32 +02:00
Doug Rupp
31fcb30fe6 2008-08-06 Doug Rupp <rupp@adacore.com>
* gcc-interface/utils2.c (snames.h) Include
	(TARGET_ABI_OPEN_VMS): Initialize.
	(build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
	for Convention C.

From-SVN: r138767
2008-08-06 09:57:04 +02:00
Arnaud Charlet
ea08fcdc94 exp_disp (Expand_Interface_Conversion): Freeze the entity associated with the target interface before expanding the...
2008-08-06  Javier Miranda  <miranda@adacore.com>

	* exp_disp (Expand_Interface_Conversion): Freeze the entity associated
	with the target interface before expanding the code of the interface
	conversion.

From-SVN: r138766
2008-08-06 09:56:23 +02:00
Ed Schonberg
fa961f76ef sem_ch3.adb (Process_Discriminants): diagnose redundant or improper null exclusion in a discriminant declaration
2008-08-06  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
	null exclusion in a discriminant declaration

	* sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
	indicators when type is not an access type.

	* sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
	indicators when type is not an access type.

From-SVN: r138765
2008-08-06 09:56:04 +02:00
Jan Hubicka
c3702ff90a predict.c (maybe_hot_frequency_p): When profile is absent, all frequencies might be hot.
* predict.c (maybe_hot_frequency_p): When profile is absent, all
	frequencies might be hot.

From-SVN: r138764
2008-08-06 07:50:52 +00:00
Andreas Krebbel
e0a1795933 reload.c (find_reloads): Force constants into literal pool also if they are wrapped in a SUBREG.
2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>

	* reload.c (find_reloads): Force constants into literal pool
	also if they are wrapped in a SUBREG.

2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>

 	* gcc.c-torture/compile/20080806-1.c: New testcase.

From-SVN: r138763
2008-08-06 06:51:11 +00:00
Maxim Kuvyrkov
c275297bdd re PR target/35659 (Miscompiled code with -O2 (but not with -O2 -funroll-loops) on ia64)
PR target/35659
	* haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
	* sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
	Don't allow predicated instructions for data speculation.
	* sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
	declaration.

From-SVN: r138759
2008-08-06 06:23:47 +00:00
Maxim Kuvyrkov
a0d33ff828 haifa-sched.c (extend_global): Split to extend_global_data and extend_region_data.
* haifa-sched.c (extend_global): Split to extend_global_data and
	extend_region_data.  Update all uses.
	(extend_all): Rename to extend_block_data.

	* gcc.target/ia64/20080802-1.c: New test.

From-SVN: r138758
2008-08-06 06:22:33 +00:00
Maxim Kuvyrkov
07da1cfcf6 sched-rgn.c (new_ready): Check if instruction can be speculatively scheduled before attempting speculation.
* sched-rgn.c (new_ready): Check if instruction can be
	speculatively scheduled before attempting speculation.
	(debug_rgn_dependencies): Remove wrongful assert.

From-SVN: r138757
2008-08-06 06:20:02 +00:00
Jason Merrill
0f67bdf1cd re PR c++/37016 (member function pointer failure with optimization)
PR c++/37016
        * decl.c (build_ptrmemfunc_type): Don't require structural
        comparison of PMF types.
        * tree.c (cp_build_qualified_type_real): Don't clear
        a valid TYPE_PTRMEMFUNC_TYPE.
        * typeck.c (cp_build_unary_op): Still do build_ptrmemfunc in
        templates.

From-SVN: r138756
2008-08-05 22:25:20 -04:00
GCC Administrator
c5073fc6e6 Daily bump.
From-SVN: r138751
2008-08-06 00:16:51 +00:00
Bob Wilson
c71334251c * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
From-SVN: r138748
2008-08-05 23:16:51 +00:00
Bob Wilson
fa1615d7a0 xtensa.c (xtensa_va_start): Unshare valist.
* config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
	(xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
	va_size, and type_size.

From-SVN: r138747
2008-08-05 23:06:33 +00:00
Jason Merrill
8bd206211d re PR c++/37016 (member function pointer failure with optimization)
PR c++/37016
        * tree-ssa.c (useless_type_conversion_p_1): Call langhook
        if TYPE_STRUCTURAL_EQUALITY_P is true for both types.

From-SVN: r138740
2008-08-05 18:22:00 -04:00
Richard Henderson
8a24bf0486 configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
* configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
        * configure: Rebuild.

From-SVN: r138738
2008-08-05 14:25:48 -07:00
Paolo Carlini
6b3fb3441e testsuite_api.h (diamond_derivation<>::test): Expect ambiguity together with the standard exception classes.
2008-08-05  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/util/testsuite_api.h (diamond_derivation<>::test):
	Expect ambiguity together with the standard exception classes.
	* testsuite/27_io/ios_base/failure/cons_virtual_derivation.cc: Remove
	xfail.
	* testsuite/19_diagnostics/logic_error/cons_virtual_derivation.cc:
	Likewise.
	* testsuite/19_diagnostics/runtime_error/cons_virtual_derivation.cc:
	Likewise.
	* testsuite/19_diagnostics/system_error/cons_virtual_derivation.cc:
	Likewise.
	* testsuite/18_support/bad_alloc/cons_virtual_derivation.cc: Likewise.
	* testsuite/18_support/bad_cast/cons_virtual_derivation.cc: Likewise.
	* testsuite/18_support/bad_exception/cons_virtual_derivation.cc:
	Likewise.
	* testsuite/18_support/bad_typeid/cons_virtual_derivation.cc:
	Likewise.
	* testsuite/ext/concurrence_lock_error/cons_virtual_derivation.cc:
	Likewise.
	* testsuite/ext/forced_exception_error/cons_virtual_derivation.cc:
	Likewise.
	* testsuite/ext/concurrence_unlock_error/cons_virtual_derivation.cc:
	Likewise.
	* testsuite/20_util/bad_function_call/cons_virtual_derivation.cc:
	Likewise.

From-SVN: r138737
2008-08-05 20:39:48 +00:00
Andrew Pinski
7352e27c3c re PR tree-optimization/37024 (bad tail call from tuples merge)
2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR tree-opt/37024
        * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p 
        instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
        is a conversion.

2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR tree-opt/37024
        * gcc.dg/tree-ssa/tailcall-4.c: New testcase.

From-SVN: r138735
2008-08-05 11:23:07 -07:00
Richard Henderson
d4ea462245 Makefile.in (c-cppbuiltin.o): Depend on debug.h.
* Makefile.in (c-cppbuiltin.o): Depend on debug.h.
        * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
        * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
        * common.opt (fdwarf2-cfi-asm): New.
        * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
        * config.in, configure: Rebuild.
        * dwarf2asm.c (dw2_asm_output_data_raw): New.
        (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
        (dw2_force_const_mem): Externalize.
        * dwarf2asm.h: Update.
        * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
        generate a real label.
        (output_cfi_directive): New.
        (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
        (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
        (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
        and .cfi_lsda.
        (dwarf2out_end_epilogue): Emit .cfi_endproc.
        (output_loc_operands_raw, output_loc_sequence_raw): New.
        (output_cfa_loc_raw): New.

From-SVN: r138733
2008-08-05 10:24:37 -07:00
Matthias Klose
cdaf871beb HACKING: Update instructions how to build gcj/javaprims.h.
2008-08-05  Matthias Klose  <doko@ubuntu.com>

        * HACKING: Update instructions how to build gcj/javaprims.h.

From-SVN: r138732
2008-08-05 15:46:22 +00:00
Arnaud Charlet
aecf020303 sem_ch3.adb (Process_Subtype): An allocator is a valid construct that can carry a null exclusion indicator...
2008-08-05  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
	can carry a null exclusion indicator, and on which an error may be
	posted if the indicator is redundant.

	* sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
	does not apply to a subtype mark that already excludes null.

	* sem_ch12.adb (Formal_Object_Declaration): Verify that a null
	exclusion does not apply to a subtype mark that already excludes null.

From-SVN: r138728
2008-08-05 17:14:29 +02:00
Doug Rupp
1f1aa84f06 vms_data.ads: Translation for /POINTER_SIZE qualifier.
2008-08-05  Doug Rupp  <rupp@adacore.com>

	* vms_data.ads: Translation for /POINTER_SIZE qualifier.

From-SVN: r138727
2008-08-05 17:13:25 +02:00
Thomas Quinot
2e4495d6da Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
2008-08-05  Thomas Quinot  <quinot@adacore.com>

	* Makefile.rtl: Compile s-oscons.ads as part of the runtime library.

From-SVN: r138726
2008-08-05 17:13:05 +02:00
Ed Schonberg
4fec4e7aba 2008-08-05 Ed Schonberg <schonberg@adacore.com>
* freeze.adb:
	(Freeze_Entity): A deferred constant does not violate the restriction
	No_Default_Initialization,

From-SVN: r138725
2008-08-05 17:11:19 +02:00
Arnaud Charlet
dc0e0d6001 Remove test, premature.
From-SVN: r138724
2008-08-05 16:49:51 +02:00
Arnaud Charlet
434d3cf1fd sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to right-hand side when it is an anonymous access_to_subprogram...
2008-08-05  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
	right-hand side when it is an anonymous access_to_subprogram, to force
	static accessibility check when needed.

From-SVN: r138723
2008-08-05 16:37:44 +02:00
Ed Schonberg
8d9509fd72 sem_attr.adb: (Analyze_Attribute...
2008-08-05  Ed Schonberg  <schonberg@adacore.com>

	* sem_attr.adb:
	(Analyze_Attribute, case 'Result): handle properly the case where some
	operand of the expression in a post-condition generates a transient
	block.

From-SVN: r138722
2008-08-05 16:37:19 +02:00
Pascal Obry
c144ca8df7 adaint.c: Remove support for readable attribute on vxworks and nucleus
2008-08-05  Pascal Obry  <obry@adacore.com>

	* adaint.c: Remove support for readable attribute on vxworks and nucleus

From-SVN: r138721
2008-08-05 16:37:10 +02:00
Thomas Quinot
c80645abe5 gsocket.h: Make this file includable in a Nucleus environment, which does not support sockets.
2008-08-05  Thomas Quinot  <quinot@adacore.com>

	* gsocket.h: Make this file includable in a Nucleus environment, which
	does not support sockets.

	* socket.c: Remove Nucleus-specific hack.

From-SVN: r138720
2008-08-05 16:37:01 +02:00
Arnaud Charlet
1a6587c86f * gnat.dg/post_block.adb: New test.
From-SVN: r138719
2008-08-05 16:36:21 +02:00