Commit Graph

87678 Commits

Author SHA1 Message Date
Arnaud Charlet
0f99f391ed Resync
From-SVN: r136006
2008-05-27 12:44:34 +02:00
Robert Dewar
9a3c994027 makeutl.adb: Minor reformatting
2008-05-27  Robert Dewar  <dewar@adacore.com>

	* makeutl.adb: Minor reformatting
	* prj-nmsc.adb: Minor reformatting
	* s-stausa.adb: Minor reformatting
	* s-stausa.ads: Minor reformatting
	* sem_ch6.adb: Minor reformatting

From-SVN: r136005
2008-05-27 12:44:21 +02:00
Thomas Quinot
6ba6b1e333 sem_res.adb: Minor comment fixes
2008-05-27  Thomas Quinot  <quinot@adacore.com>

	* sem_res.adb: Minor comment fixes

From-SVN: r136004
2008-05-27 12:44:05 +02:00
Arnaud Charlet
d18af35f61 Resync.
From-SVN: r136003
2008-05-27 12:14:41 +02:00
Thomas Quinot
e2baae4e1c (System.File_IO.{Close, Delete, Reset}): Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
2008-05-27  Thomas Quinot  <quinot@adacore.com>

	(System.File_IO.{Close, Delete, Reset}):
	Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
	
	(Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
	Pass File parameter by reference.

From-SVN: r136002
2008-05-27 12:14:25 +02:00
Ed Schonberg
ab8bfb6497 2008-05-27 Ed Schonberg <schonberg@adacore.com>
* sem_ch3.adb:
	(Get_Discr_Value): Remove obsolete code that failed to find the value
	of a discriminant for an inherited task component appearing in a type
	extension.

From-SVN: r136001
2008-05-27 12:14:09 +02:00
Vincent Celier
66f3c0b0de 2008-05-27 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb:
	(Check_File): Make sure that a unit that replaces the same unit in a
	 project being extended is properly processed.

From-SVN: r136000
2008-05-27 12:14:01 +02:00
Quentin Ochem
a494036c8e s-stausa.adb (Initialize): Updated result initialization, and initialization of environment stack.
2008-05-27  Quentin Ochem  <ochem@adacore.com>

	* s-stausa.adb (Initialize): Updated result initialization, and
	initialization of environment stack.
	(Fill_Stack): Improved computation of the pattern zone, taking into
	account already filled at the calling point.
	(Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
	Measure and Overflow_Guard.
	(Report_Result): Fixed computation of the result using new fields of
	Stack_Analyzer.
	
	* s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
	params by more explicit Stack_Size / Max_Pattern_Size params.
	(Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
	Added Stack_Used_When_Filling field.
	(Task_Result): Replaced Measure / Overflow_Guard by more explicit
	Min_Measure and Max_Measure fields.
	
	* s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.

From-SVN: r135999
2008-05-27 12:13:53 +02:00
Arnaud Charlet
ce2798e855 * exp_ch6.adb: Minor reformatting
From-SVN: r135998
2008-05-27 12:13:45 +02:00
Thomas Quinot
641d3093f8 exp_aggr.adb: Add ??? comment Fix typo
2008-05-27  Thomas Quinot  <quinot@adacore.com>

	* exp_aggr.adb: Add ??? comment
	Fix typo

From-SVN: r135997
2008-05-27 12:13:35 +02:00
Thomas Quinot
a573518c6f makeutl.adb: Minor code reorganization
2008-05-27  Thomas Quinot  <quinot@adacore.com>

	* makeutl.adb: Minor code reorganization

From-SVN: r135996
2008-05-27 12:13:25 +02:00
Arnaud Charlet
f6879a7559 * gnat.dg/interface5.ad[sb]: New test.
From-SVN: r135995
2008-05-27 11:30:35 +02:00
Arnaud Charlet
aeff280b14 Resync.
From-SVN: r135994
2008-05-27 11:24:13 +02:00
Vincent Celier
1e8878861c 2008-05-27 Vincent Celier <celier@adacore.com>
* makeutl.ads, makeutl.adb:
	(Set_Location): New procedure
	(Get_Location): New function
	(Update_Main): New procedure

From-SVN: r135993
2008-05-27 11:20:48 +02:00
Ed Schonberg
fceeaab66b 2008-05-27 Ed Schonberg <schonberg@adacore.com>
* sem_ch6.adb:
	(Is_Interface_Conformant): Handle properly a primitive operation that
	overrides an interface function with a controlling access result.
	(Type_Conformance): If Skip_Controlling_Formals is true, when matching
	inherited and overriding operations, omit as well the conformance check
	on result types, to prevent spurious errors.

From-SVN: r135992
2008-05-27 11:20:38 +02:00
Arnaud Charlet
abed5dc6ff * sem_ch3.adb: Minor reformatting
From-SVN: r135991
2008-05-27 11:20:28 +02:00
Vincent Celier
c7867d82ac 2008-05-27 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb:
	(Process_Sources_In_Multi_Language_Mode): Check that there are not two
	sources of the same project that have the same object file name.
	(Find_Explicit_Sources): Always remove a source exception that was not
	found.

From-SVN: r135990
2008-05-27 11:20:12 +02:00
Arnaud Charlet
dd383eebef * gnat.dg/sync1.ad[sb]: New test.
From-SVN: r135989
2008-05-27 11:11:45 +02:00
Arnaud Charlet
7bf402c1bd Resync.
From-SVN: r135988
2008-05-27 11:11:02 +02:00
Eric Botcazou
81aa4e379b system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>

	* system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
	* system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
	* system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
	* system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
	* system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
	* system-linux-x86.ads (Always_Compatible_Rep): Likewise.
	* system-mingw.ads (Always_Compatible_Rep): Likewise.
	* system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
	* system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
	* system-solaris-x86.ads (Always_Compatible_Rep): Likewise.

From-SVN: r135987
2008-05-27 11:10:01 +02:00
Vincent Celier
32ffda3f89 2008-05-27 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb:
	(Check_Library): Allow standard project to be extended as a static
	library project.
	(Get_Mains): Do not inherit attribute Main in an extending library
	project.

From-SVN: r135986
2008-05-27 11:09:47 +02:00
Arnaud Charlet
52268145ef Resync
From-SVN: r135985
2008-05-27 10:55:46 +02:00
Thomas Quinot
8e4bea294b exp_dist.adb: Minor reformating
2008-05-27  Thomas Quinot  <quinot@adacore.com>

	* exp_dist.adb: Minor reformating

From-SVN: r135984
2008-05-27 10:50:54 +02:00
Doug Rupp
612c533690 2008-05-27 Doug Rupp <rupp@adacore.com>
* exp_ch6.adb:
	(Expand_N_Function_Call): Fix comments. Minor reformatting.

	* exp_vfpt.ads:
	(Expand_Vax_Foreign_Return): Fix comments.

From-SVN: r135983
2008-05-27 10:50:43 +02:00
Vincent Celier
f6e8d321dd xsnames.adb: Remove unused variable Oname
2008-05-27  Vincent Celier  <celier@adacore.com>

	* xsnames.adb: Remove unused variable Oname

From-SVN: r135982
2008-05-27 10:50:31 +02:00
Vincent Celier
b3af75af77 prj-attr.adb: Add new project level attribute Map_File_Option
2008-05-27  Vincent Celier  <celier@adacore.com>

	* prj-attr.adb: Add new project level attribute Map_File_Option
	
	* prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
	
	* prj.ads: Minor reformatting and comment update
	(Project_Configuration): New component Map_File_Option
	
	* snames.adb: New standard name Map_File_Option
	
	* snames.ads: New standard name Map_File_Option

From-SVN: r135981
2008-05-27 10:50:22 +02:00
Vincent Celier
eca5286b1c gnat_ugn.texi: Add succinct documentation for attribute Excluded_Source_List_File
2008-05-27  Vincent Celier  <celier@adacore.com>

	* gnat_ugn.texi:
	Add succinct documentation for attribute Excluded_Source_List_File

From-SVN: r135980
2008-05-27 10:50:13 +02:00
Gary Dismukes
491016e570 sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype to the known type entity E...
2008-05-27  Gary Dismukes  <dismukes@adacore.com>

	* sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
	to the known type entity E, rather than setting it to Any_Type. Fixes
	possible blowup in function Base_Init_Proc, as called from Freeze_Entity
	for objects whose type had an illegal constraint.

From-SVN: r135979
2008-05-27 10:50:04 +02:00
Ed Schonberg
393148620c exp_disp.adb (Build_Dispatch_Tables): For a private type completed by a synchronized tagged type...
2008-05-27  Ed Schonberg  <schonberg@adacore.com>

	* exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
	a synchronized tagged type, do not attempt to build dispatch table for
	full view. The table is built for the corresponding record type, which
	has its own declaration.

From-SVN: r135978
2008-05-27 10:49:55 +02:00
Ed Schonberg
4c4e9ad2b2 sem_attr.adb: add guard to previous patch.
2008-05-27  Ed Schonberg  <schonberg@adacore.com>

	* sem_attr.adb: add guard to previous patch.

From-SVN: r135977
2008-05-27 10:49:47 +02:00
Trevor Smigiel
986a8d9011 Add TImode libgcc functions for mul and div on SPU.
From-SVN: r135975
2008-05-27 08:30:09 +00:00
Trevor Smigiel
b38883e82d Add TImode libgcc functions for mul and div.
From-SVN: r135974
2008-05-27 08:22:20 +00:00
Trevor Smigiel
9bf850280c Add TImode libgcc functions for mul and div.
From-SVN: r135973
2008-05-27 08:19:45 +00:00
Kaveh R. Ghazi
ebe74ac50b pr11832.c: XFAIL on (x86 && ilp32 && pic).
* gcc.c-torture/compile/pr11832.c: XFAIL on (x86 && ilp32 && pic).
	* gcc.c-torture/compile/pr33009.c: Likewise.

From-SVN: r135972
2008-05-27 06:47:29 +00:00
Alexandre Oliva
bced830449 re PR c++/35909 (ICE with bit-field and const references)
gcc/cp/ChangeLog:
PR c++/35909
* call.c (convert_like_real): Convert bitfield to desired type
before creating temporary.
gcc/testsuite/ChangeLog:
PR c++/35909
* g++.dg/conversion/bitfield9.C: New.

From-SVN: r135969
2008-05-27 05:48:02 +00:00
GCC Administrator
48c655bb75 Daily bump.
From-SVN: r135965
2008-05-27 00:17:44 +00:00
Steven Bosscher
02135bc1b4 rs6000.c (rs6000_legitimize_tls_address): Generate new tls_gd_* and tls_ld_* insns instead of an insn sequence.
2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>

	* config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
	new tls_gd_* and tls_ld_* insns instead of an insn sequence.
	* config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
	tls_sysv_suffix): New mode and mode attribute iterators.
	(tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
	(lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
	(tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
	tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
	tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
	iterators.

From-SVN: r135961
2008-05-26 23:37:05 +00:00
Daniel Franke
273d8a65e2 cpp.c (cpp_define_builtins): Fixed warning about comment.
2008-05-26  Daniel Franke  <franke.daniel@gmail.com>

	* cpp.c (cpp_define_builtins): Fixed warning about comment.

From-SVN: r135958
2008-05-26 16:41:20 -04:00
Daniel Franke
3c2a68b3a3 cpp.c (cpp_define_builtins): Remove usage of TARGET_* macros, added FIXME instead.
2008-05-26  Daniel Franke  <franke.daniel@gmail.com>

        * fortran/cpp.c (cpp_define_builtins): Remove usage of TARGET_* macros,
        added FIXME instead.

From-SVN: r135956
2008-05-26 16:18:04 -04:00
Paolo Carlini
774c3d8647 cmath (pow(float, int), [...]): Do not define in C++0x mode, per DR 550.
2008-05-26  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/c_global/cmath (pow(float, int), pow(double, int),
	pow(long double, int)): Do not define in C++0x mode, per DR 550.
	* include/tr1_impl/cmath (pow): Do not bring in unconditionally
	from namespace std.
	* include/tr1/cmath (pow(double, double), pow(float, float),
	pow(long double, long double), pow(_Tp, _Up)): Define.
	* include/tr1/complex (pow): Do not bring in from namespace std.
	(pow(const std::complex<_Tp>&, int), pow(const std::complex<_Tp>&,
	const _Tp&), pow(const _Tp&, const std::complex<_Tp>&),
	pow(const std::complex<_Tp>&, const std::complex<_Tp>&)): Define.
	* include/tr1_impl/complex (pow(const std::complex<_Tp>&,
	const _Up&), pow(const _Tp&, const std::complex<_Up>&),
	pow(const std::complex<_Tp>&, const std::complex<_Up>&)): Always
	define.
	* doc/xml/manual/intro.xml: Add an entry for DR 550.
	* testsuite/26_numerics/headers/cmath/dr550.cc: New.
	* testsuite/tr1/8_c_compatibility/cmath/overloads.cc: Adjust.

From-SVN: r135955
2008-05-26 19:18:24 +00:00
Eric Botcazou
ba977e1ad9 re PR tree-optimization/36329 (latent problem with tree inlining)
PR tree-optimization/36329
	* tree.h (CALL_CANNOT_INLINE_P): Add access check.
	* tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
	* cgraphbuild.c (initialize_inline_failed): Use the latter
	macro in lieu of the former.
	* ipa-inline.c (cgraph_mark_inline): Likewise.
	(cgraph_decide_inlining_of_small_function): Likewise.
	(cgraph_decide_inlining): Likewise.
	(cgraph_decide_inlining_incrementally): Likewise.

From-SVN: r135954
2008-05-26 18:23:38 +00:00
Tristan Gingold
4d492420f6 avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs()) instead of pm_lo8/pm_hi8 to makes this call working on avr6.
* config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
	instead of pm_lo8/pm_hi8 to makes this call working on avr6.
	* config/avr/avr.c (expand_prologue): Tune "call_prologue" 
	optimization for 'avr6' architecture.

Co-Authored-By: Anatoly Sokolov <aesok@post.ru>

From-SVN: r135953
2008-05-26 21:44:50 +04:00
Andy Hutchinson
319a58c6c8 re PR target/34932 ([avr] ICE in reload)
PR target/34932
* config/avr/avr.md (*addhi3_zero_extend2): Remove.

From-SVN: r135952
2008-05-26 17:19:09 +00:00
Arnaud Charlet
094d7cfa2f Resync.
From-SVN: r135951
2008-05-26 17:53:31 +02:00
Sergey Rybin
912c0b9386 tree_io.ads (ASIS_Version_Number): Update because of the changes made in front-end
2008-05-26  Sergey Rybin  <rybin@adacore.com>

	* tree_io.ads (ASIS_Version_Number): Update because of the changes
	made in front-end

From-SVN: r135950
2008-05-26 17:52:24 +02:00
Arnaud Charlet
edde779b94 * sem_attr.adb: Add some ??? comments for previous change
From-SVN: r135949
2008-05-26 17:52:16 +02:00
Arnaud Charlet
45c87b72c7 * s-vaflop.ads: Add comments for previous change
From-SVN: r135948
2008-05-26 17:52:07 +02:00
Doug Rupp
3a5ab1fdfb s-vaflop-vms-alpha.adb: Remove System.IO use clause...
2008-05-26  Doug Rupp  <rupp@adacore.com>

	* s-vaflop-vms-alpha.adb:
	Remove System.IO use clause, to prevent spurious ambiguities when
	package is access through rtsfind.

From-SVN: r135947
2008-05-26 17:51:58 +02:00
Arnaud Charlet
6e96b5434d * exp_vfpt.ads: Add ??? comment for last change
From-SVN: r135946
2008-05-26 17:51:48 +02:00
Arnaud Charlet
fda528a811 * exp_vfpt.adb: Minor reformatting
From-SVN: r135945
2008-05-26 17:51:38 +02:00