Commit Graph

88861 Commits

Author SHA1 Message Date
Jose Ruiz
bd56b3fca7 adaint.c (__gnat_tmp_name): Refine the generation of temporary names for RTX.
2008-08-01  Jose Ruiz  <ruiz@adacore.com>

	* adaint.c (__gnat_tmp_name): Refine the generation of temporary names
	for RTX. Adding a suffix that is incremented at each iteration.

From-SVN: r138482
2008-08-01 10:34:50 +02:00
Jose Ruiz
7273484240 gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and rts-rtx-w32).
2008-08-01  Jose Ruiz  <ruiz@adacore.com>

	* gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
	rts-rtx-w32).

From-SVN: r138481
2008-08-01 10:19:29 +02:00
Arnaud Charlet
cfb02ad18b sem_ch12.ads (Need_Subprogram_Instance_Body): new function...
2008-08-01  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
	a pending instantiation for the body of a subprogram that is to be
	inlined.

	* sem_ch12.adb:
	(Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.

	* sem_prag.adb (Make_Inline): If the pragma applies to an instance,
	create a pending instance for its body, so that calls to the subprogram
	can be inlined by the back-end.

From-SVN: r138480
2008-08-01 10:19:04 +02:00
Paolo Bonzini
47ad7893fb configure.ac: Do not generate libada-mk.
gcc:
2008-08-01  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Do not generate libada-mk.  Do not subst
	host_cc_for_libada.
	* libada-mk.in: Remove.
	* Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
	* configure: Regenerate.

libada:
2008-08-01  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac (warn_cflags): Substitute.
	* configure: Regenerate.
	* Makefile.in (libdir, WARN_CFLAGS): Substitute.
	(GCC_WARN_CFLAGS): Remove NOCOMMON_FLAG.
	(ADA_CFLAGS, T_ADA_CFLAGS, X_ADA_CFLAGS, ALL_ADA_CFLAGS): Remove,
	they were unused.
	(libada-mk): Do not include.  Include libgcc.mvars instead.
	(tmake_file): Remove, do not include.
	(FLAGS_TO_PASS): Pass dummy values for exeext and CC.
	* configure: Regenerate.

gnattools:
2008-08-01  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac (warn_cflags): Substitute.
	* configure: Regenerate.
	* Makefile.in (libdir, exeext, WARN_CFLAGS): Substitute.
	(GCC_WARN_CFLAGS): Remove NOCOMMON_FLAG.
	(ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Remove as they were unused.
	(libsubdir): Remove.
	(libada-mk): Do not include.  Include libgcc.mvars instead.
	(xmake_file): Remove, do not include.

From-SVN: r138479
2008-08-01 08:18:13 +00:00
Arnaud Charlet
e1bb4e7129 Resync.
From-SVN: r138475
2008-08-01 09:56:48 +02:00
Jose Ruiz
e6d44fcae2 adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam nor tmpnam...
2008-08-01  Jose Ruiz  <ruiz@adacore.com>

	* adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
	nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
	name.

From-SVN: r138474
2008-08-01 09:56:32 +02:00
Doug Rupp
d628c01538 gnat_rm.texi: Document new mechanism Short_Descriptor.
2008-08-01  Doug Rupp  <rupp@adacore.com>

	* gnat_rm.texi: Document new mechanism Short_Descriptor.
	
	* types.ads (Mechanism_Type): Modify range for new Short_Descriptor
	mechanism values.

	* sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
	mechanism and Short_Descriptor mechanism values.

	* snames.adb (preset_names): Add short_descriptor entry.

	* snames.ads: Add Name_Short_Descriptor.

	* types.h: Add new By_Short_Descriptor mechanism values.

	* sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
	mechanism and Short_Descriptor mechanism values.

	* sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
	values.
	(Descriptor_Codes): Modify range for new mechanism values.

	* treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
	mechanism values.

	* gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
	(gnat_to_gnu_param): Handle By_Short_Descriptor.

	* gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
	(build_vms_descriptor32): New prototype.
	(fill_vms_descriptor): Remove unneeded gnat_actual parameter.

	* gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
	argument in call fill_vms_descriptor.

	* gcc-interface/utils.c (build_vms_descriptor32): Renamed from
	build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
	(build_vms_descriptor): Renamed from build_vms_descriptor64. 
	(convert_vms_descriptor32): New function.
	(convert_vms_descriptor64): New function.
	(convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
	descriptors.

	* gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
	no longer needed.

From-SVN: r138473
2008-08-01 09:56:20 +02:00
Robert Dewar
73f0dc7a66 scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* scng.adb (Error_Illegal_Wide_Character): Bump scan pointer

From-SVN: r138472
2008-08-01 09:56:07 +02:00
Arnaud Charlet
bca3ab79f4 Resync.
From-SVN: r138470
2008-08-01 09:43:16 +02:00
Arnaud Charlet
be658959d8 Update comments.
From-SVN: r138469
2008-08-01 09:41:55 +02:00
Robert Dewar
3fd68ccb7e scng.adb: Minor reformatting
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* scng.adb: Minor reformatting

From-SVN: r138468
2008-08-01 09:39:30 +02:00
Doug Rupp
ea062149e2 vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2008-08-01  Doug Rupp  <rupp@adacore.com>

	* vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING

From-SVN: r138467
2008-08-01 09:39:22 +02:00
Robert Dewar
2933820e04 opt.ads: Minor documentation fix
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* opt.ads: Minor documentation fix

From-SVN: r138466
2008-08-01 09:39:11 +02:00
Robert Dewar
2e43faea07 sem_util.ads: Minor reformatting.
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* sem_util.ads: Minor reformatting.

From-SVN: r138465
2008-08-01 09:39:03 +02:00
Doug Rupp
ad316add2f mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a dummy transfer address for debugging.
2008-08-01  Doug Rupp  <rupp@adacore.com>

	* mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
	dummy transfer address for debugging.
	
	* mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.

From-SVN: r138464
2008-08-01 09:38:54 +02:00
Ed Schonberg
0f300ef506 exp_disp.adb (Expand_Interface_Conversion): If the target type is a tagged synchronized type, use corresponding record type.
2008-08-01  Ed Schonberg  <schonberg@adacore.com>

	* exp_disp.adb (Expand_Interface_Conversion): If the target type is a
	tagged synchronized type, use corresponding record type.

From-SVN: r138463
2008-08-01 09:38:45 +02:00
Robert Dewar
3d2e1f1213 gnatchop.adb: Minor reformatting
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* gnatchop.adb: Minor reformatting

From-SVN: r138462
2008-08-01 09:38:36 +02:00
Robert Dewar
e3a6d7372b sinput.adb: Minor reformatting
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* sinput.adb: Minor reformatting

From-SVN: r138461
2008-08-01 09:38:26 +02:00
Jose Ruiz
1884210a86 cstreams.c (__gnat_full_name): RTSS applications cannot ask for the current directory so only fully qualified...
2008-08-01  Jose Ruiz  <ruiz@adacore.com>

	* cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
	current directory so only fully qualified names are allowed.

From-SVN: r138460
2008-08-01 09:38:17 +02:00
Robert Dewar
d8a9c35eb9 xref_lib.adb: Minor reformatting
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* xref_lib.adb: Minor reformatting

From-SVN: r138459
2008-08-01 09:38:08 +02:00
Robert Dewar
d9ed79938a snames.ads: Minor comment fixes...
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* snames.ads:
	Minor comment fixes, some pragmas were not properly
	categorized in the comments, documentation change only

From-SVN: r138458
2008-08-01 09:37:59 +02:00
Robert Dewar
a6f80cc486 sem_ch10.adb: Minor reformatting
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* sem_ch10.adb: Minor reformatting

From-SVN: r138457
2008-08-01 09:37:50 +02:00
Robert Dewar
a49b649fb8 s-ststop.adb: Add some ??? comments
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* s-ststop.adb: Add some ??? comments

From-SVN: r138456
2008-08-01 09:37:40 +02:00
Robert Dewar
a4d4806ff3 gnat_ugn.texi: Minor editing, remove uncomfortable use of semicolon
2008-08-01  Robert Dewar  <dewar@adacore.com>

	* gnat_ugn.texi:
	Minor editing, remove uncomfortable use of semicolon

From-SVN: r138455
2008-08-01 09:37:28 +02:00
Basile Starynkevitch
8e352cd32c tree-pass.h: Added comment about not dumping passes with name starting with star in struct...
2008-08-01  Basile Starynkevitch  <basile@starynkevitch>
	* gcc/tree-pass.h: Added comment about not dumping passes with name
	starting with star in struct opt_pass.
	* gcc/passes.c (register_dump_files_1): Don't do dump for a pass with
	name starting with star.
	* gcc/doc/passes.texi (Pass manager): Mention pass names and special
	meaning of star prefix to avoid dump.

From-SVN: r138450
2008-08-01 05:19:40 +00:00
Adam Nemet
f2d6ca5081 config.gcc (mipsisa64*-*-linux*): New configuration.
* config.gcc (mipsisa64*-*-linux*): New configuration.  Set ISA
	to MIPS64r2 for mipsisa64r2*.
	* config/mips/mips.h (GENERATE_MIPS16E): Update comment.
	(ISA_MIPS64R2): New macro.
	(TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
	(ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
	ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
	ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
	ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
	ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
	ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
	(MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
	(TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
	Move up to keep list alphabetically sorted.
	(TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
	* config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
	processor.
	* doc/invoke.texi (MIPS Options): Add -mips64r2.
	(-march=@var{arch}): Add mips64r2.

testsuite/

	* gcc.target/mips/ext-1.c: New test.

From-SVN: r138448
2008-08-01 01:18:16 +00:00
H.J. Lu
24f9c41876 darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.

From-SVN: r138446
2008-07-31 17:31:46 -07:00
GCC Administrator
ff0402543b Daily bump.
From-SVN: r138444
2008-08-01 00:16:31 +00:00
Eric Botcazou
4c5a06150c decl.c (gnat_to_gnu_entity): Fix formatting.
* gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
	* gcc-interface/utils.c (create_field_decl): Avoid superfluous work.

From-SVN: r138440
2008-07-31 22:04:03 +00:00
Steve Ellcey
90d245c562 * expr.c (expand_assignment): Check for complete type.
From-SVN: r138439
2008-07-31 21:42:16 +00:00
H.J. Lu
d2d93c32dc re PR debug/36977 (Incorrect debug info for stack variables with stack alignment)
2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>

	PR debug/36977
	* cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.

	* dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
	for stack alignment.

	* function.h (rtl_data): Add stack_realign_tried.  Update
	comments.

From-SVN: r138438
2008-07-31 14:28:54 -07:00
Kaz Kojima
c983efcec6 sh.c (sh_canonical_va_list_type): Remove.
* config/sh/sh.c (sh_canonical_va_list_type): Remove.
	(TARGET_CANONICAL_VA_LIST_TYPE): Remove.

From-SVN: r138437
2008-07-31 21:23:04 +00:00
Jakub Jelinek
60ecfb1bd0 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
From-SVN: r138436
2008-07-31 23:22:09 +02:00
Jakub Jelinek
1ea5e949d7 re PR target/35100 (internal compiler error: in extract_insn, at recog.c:1990)
PR target/35100
	* gcc.target/powerpc/longcall-1.c: New test.

From-SVN: r138435
2008-07-31 22:37:21 +02:00
Chris Fairles
9d4e8554de chrono (duration): Use explicitly defaulted ctor, cctor, dtor and assignment.
2008-07-31  Chris Fairles <chris.fairles@gmail.com>

        * include/std/chrono (duration): Use explicitly defaulted ctor, cctor,
	 dtor and assignment. Add diagnostics as per 20.8.3 paragraphs 2, 3 
	 and 4 in WD. Other minor tweaks.
        * testsuite/20_util/duration/cons/1_neg.cc: Adjust line numbers.
	* testsuite/20_util/duration/requirements/typedefs_neg1.cc: New.
	* testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
	* testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.

From-SVN: r138434
2008-07-31 19:37:21 +00:00
Jakub Jelinek
affa55c67f re PR preprocessor/36649 (-H option doesn't work as expected)
PR preprocessor/36649
	* files.c (struct report_missing_guard_data): New type.
	(report_missing_guard): Put paths into an array instead of printing
	them right away.  Return 1 rather than 0.
	(report_missing_guard_cmp): New function.
	(_cpp_report_missing_guards): Sort and print paths gathered by
	report_missing_guard callback.

	* gcc.dg/pch/cpp-3.hs: Add include guards.
	* gcc.dg/pch/cpp-3a.h: Likewise.
	* gcc.dg/pch/cpp-3b.h: Likewise.
	* gcc.dg/cpp/mi8.c: New test.
	* gcc.dg/cpp/mi8a.h: New file.
	* gcc.dg/cpp/mi8b.h: New file.
	* gcc.dg/cpp/mi8c.h: New file.
	* gcc.dg/cpp/mi8d.h: New file.

From-SVN: r138432
2008-07-31 21:12:14 +02:00
Denys Vlasenko
a23eb008dc mkstemps.c (mkstemps): If open failed with errno other than EEXIST, return immediately.
* mkstemps.c (mkstemps): If open failed with errno other than
	EEXIST, return immediately.
	* make-temp-file.c: Include errno.h.
	(make_temp_file): If mkstemps failed, print an error message
	before aborting.

From-SVN: r138429
2008-07-31 20:56:35 +02:00
Paolo Carlini
93cc82d1f3 libstdc++.exp (libstdc++_init): Set v3-libgomp.
2008-07-31  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/lib/libstdc++.exp (libstdc++_init): Set v3-libgomp.
	(check_v3_target_parallel_mode): Robustify, just follow the
	structure of testsuite/Makefile.am.

From-SVN: r138428
2008-07-31 18:43:08 +00:00
Jakub Jelinek
88e2c8107b re PR rtl-optimization/36419 (Wrong unwind info with -Os -fasynchronous-unwind-tables)
PR rtl-optimization/36419
	* dwarf2out.c (barrier_args_size): New variable.
	(compute_barrier_args_size, compute_barrier_args_size_1): New
	functions.
	(dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
	if not called yet in the current function, use barrier_args_size
	array to find the new args_size value.
	(dwarf2out_frame_debug): Free and clear barrier_args_size.

	* g++.dg/eh/async-unwind2.C: New test.

From-SVN: r138427
2008-07-31 20:08:36 +02:00
Jakub Jelinek
41b059f3d8 re PR c++/36405 (ICE with typeid of member function)
PR c++/36405
	* rtti.c (get_tinfo_decl_dynamic, get_typeid): Call
	complete_type_or_else even for UNKNOWN_TYPE to get diagnostics.

	* g++.dg/rtti/typeid8.C: New test.

From-SVN: r138426
2008-07-31 20:07:20 +02:00
Jason Merrill
10ee5386ad re PR middle-end/36633 (warning "array subscript is below array bounds" on delete [] with -O2, -Wall)
PR c++/36633
        * init.c (build_new_1): Don't convert pointer to the data type
        until we're actually going to treat it as that type.

From-SVN: r138425
2008-07-31 13:38:08 -04:00
H.J. Lu
fc74cbc4bd re PR debug/36980 (Bootstrap broken with RTL checking on i586)
2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>

	PR debug/36980
	* dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
	rule 19.

From-SVN: r138424
2008-07-31 08:32:51 -07:00
Arnaud Charlet
964771d9e9 Resync.
From-SVN: r138422
2008-07-31 16:46:14 +02:00
Robert Dewar
1efe143b3e prj-env.adb: Minor reformatting
2008-07-31  Robert Dewar  <dewar@adacore.com>

	* prj-env.adb: Minor reformatting

From-SVN: r138421
2008-07-31 16:41:32 +02:00
Robert Dewar
eddab7cd5e makeutl.adb: Minor reformatting
2008-07-31  Robert Dewar  <dewar@adacore.com>

	* makeutl.adb: Minor reformatting

From-SVN: r138420
2008-07-31 16:41:22 +02:00
Robert Dewar
86038a882f exp_aggr.adb: Minor reformatting
2008-07-31  Robert Dewar  <dewar@adacore.com>

	* exp_aggr.adb: Minor reformatting

From-SVN: r138419
2008-07-31 16:41:10 +02:00
Jose Ruiz
d59214bd1c 2008-07-31 Jose Ruiz <ruiz@adacore.com>
* s-parame-vxworks.adb
	Document that this body is used for RTX in RTSS (kernel) mode.

	* gcc-interface/Makefile.in
	(LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
	s-parame-vxworks.adb body in order to have reasonable stack sizes in
	RTX RTSS kernel mode. Virtual memory is not used in that case, so we
	cannot ask for too big values.

From-SVN: r138418
2008-07-31 16:41:01 +02:00
Pascal Obry
289176c9bd prj-nmsc.adb: Keep Object and Exec directory casing.
2008-07-31  Pascal Obry  <obry@adacore.com>

	* prj-nmsc.adb: Keep Object and Exec directory casing.

From-SVN: r138417
2008-07-31 16:40:48 +02:00
H.J. Lu
d7831fdb1e re PR debug/36976 (FAIL: g++.dg/torture/stackalign/unwind-2.C)
2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>

	PR debug/36976
	* dwarf2out.c (dwarf2out_args_size_adjust): New.
	(dwarf2out_stack_adjust): Use it.
	(dwarf2out_frame_debug_expr): Likewise.

From-SVN: r138416
2008-07-31 07:33:43 -07:00
Richard Guenther
12aea97a8d re PR tree-optimization/36978 (ICE in gimple_cond_set_lhs for -O2 -funswitch-loops after tuples merge)
2008-07-31  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/36978
	* tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
	the generated condition.

	* gcc.dg/torture/pr36978.c: New testcase.

From-SVN: r138415
2008-07-31 14:12:24 +00:00