Ed Schonberg [Wed, 6 Aug 2008 07:56:04 +0000 (09:56 +0200)]
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
Jan Hubicka [Wed, 6 Aug 2008 07:50:52 +0000 (09:50 +0200)]
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
Andreas Krebbel [Wed, 6 Aug 2008 06:51:11 +0000 (06:51 +0000)]
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
Maxim Kuvyrkov [Wed, 6 Aug 2008 06:23:47 +0000 (06:23 +0000)]
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
Maxim Kuvyrkov [Wed, 6 Aug 2008 06:22:33 +0000 (06:22 +0000)]
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
Maxim Kuvyrkov [Wed, 6 Aug 2008 06:20:02 +0000 (06:20 +0000)]
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
Jason Merrill [Wed, 6 Aug 2008 02:25:20 +0000 (22:25 -0400)]
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
GCC Administrator [Wed, 6 Aug 2008 00:16:51 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r138751
Bob Wilson [Tue, 5 Aug 2008 23:16:51 +0000 (23:16 +0000)]
* config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
From-SVN: r138748
Bob Wilson [Tue, 5 Aug 2008 23:06:33 +0000 (23:06 +0000)]
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
Jason Merrill [Tue, 5 Aug 2008 22:22:00 +0000 (18:22 -0400)]
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
Richard Henderson [Tue, 5 Aug 2008 21:25:48 +0000 (14:25 -0700)]
configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
* configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
* configure: Rebuild.
From-SVN: r138738
Paolo Carlini [Tue, 5 Aug 2008 20:39:48 +0000 (20:39 +0000)]
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
Andrew Pinski [Tue, 5 Aug 2008 18:23:07 +0000 (18:23 +0000)]
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
Richard Henderson [Tue, 5 Aug 2008 17:24:37 +0000 (10:24 -0700)]
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
Matthias Klose [Tue, 5 Aug 2008 15:46:22 +0000 (15:46 +0000)]
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
Arnaud Charlet [Tue, 5 Aug 2008 15:14:29 +0000 (17:14 +0200)]
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
Doug Rupp [Tue, 5 Aug 2008 15:13:25 +0000 (17:13 +0200)]
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
Thomas Quinot [Tue, 5 Aug 2008 15:13:05 +0000 (17:13 +0200)]
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
Ed Schonberg [Tue, 5 Aug 2008 15:11:19 +0000 (17:11 +0200)]
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
Arnaud Charlet [Tue, 5 Aug 2008 14:49:51 +0000 (16:49 +0200)]
Remove test, premature.
From-SVN: r138724
Arnaud Charlet [Tue, 5 Aug 2008 14:37:44 +0000 (16:37 +0200)]
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
Ed Schonberg [Tue, 5 Aug 2008 14:37:19 +0000 (16:37 +0200)]
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
Pascal Obry [Tue, 5 Aug 2008 14:37:10 +0000 (16:37 +0200)]
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
Thomas Quinot [Tue, 5 Aug 2008 14:37:01 +0000 (16:37 +0200)]
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
Arnaud Charlet [Tue, 5 Aug 2008 14:36:21 +0000 (14:36 +0000)]
* gnat.dg/post_block.adb: New test.
From-SVN: r138719
Paul Brook [Tue, 5 Aug 2008 14:24:08 +0000 (14:24 +0000)]
invoke.texi: Document new ARM -mfpu= and -mcpu= options.
2008-08-05 Paul Brook <paul@codesourcery.com>
gcc/
* doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
* config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
(fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
(arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
* config/arm/arm.h (TARGET_VFPD32): Define.
(TARGET_VFP3): Use TARGET_VFPD32.
(fputype): Add FPUTYPE_VFP3D16.
(LAST_VFP_REGNUM): Use TARGET_VFPD32.
* config/arm/constraints.md ("w"): Use TARGET_VFPD32.
* config/arm/arm-cores.def: Add cortex-r4f.
* config/arm/arm-tune.md: Regenerate.
From-SVN: r138718
Arnaud Charlet [Tue, 5 Aug 2008 14:10:54 +0000 (16:10 +0200)]
ug_words: Add entries for -gnatw.b/-gnatw.B
2008-08-05 Robert Dewar <dewar@adacore.com>
* ug_words: Add entries for -gnatw.b/-gnatw.B
* vms_data.ads: Add entries for -gnatw.b/-gnatw.B
From-SVN: r138717
Sergey Rybin [Tue, 5 Aug 2008 14:10:38 +0000 (16:10 +0200)]
gnat_ugn.texi: Changing the description of the gnatcheck metrics rule according to the change...
2008-08-05 Sergey Rybin <rybin@adacore.com>
* gnat_ugn.texi: Changing the description of the gnatcheck metrics
rule according to the change in the rule option.
Add documentation for -gnatw.b/-gnatw.B
From-SVN: r138716
Ulrich Weigand [Tue, 5 Aug 2008 14:04:56 +0000 (14:04 +0000)]
spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
* config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
Reword some comments throughout the file.
(MFC_MIN_DMA_LIST_ELEMENTS): New define.
(MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
(MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
(MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
(MFC_START_ENABLE): Remove PPU-only define.
(MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
(MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
(MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
(MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
(MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
(MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
(MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
(MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
(MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
(MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
(MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
(mfc_sdcrt, mfc_sdcrtst): Likewise.
(mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
(spu_read_machine_status): Fix typo.
From-SVN: r138714
Ulrich Weigand [Tue, 5 Aug 2008 13:53:20 +0000 (13:53 +0000)]
spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized SUBREG of multi-word hard register.
* config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
SUBREG of multi-word hard register.
* config/spu/spu.c (valid_subreg): Likewise.
(adjust_operand): Handle SUBREGs of multi-word hard registers.
From-SVN: r138711
Vincent Celier [Tue, 5 Aug 2008 13:53:04 +0000 (13:53 +0000)]
a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put (File).
2008-08-05 Vincent Celier <celier@adacore.com>
* a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
(File).
* a-ztdeio.adb: Ditto.
From-SVN: r138710
Arnaud Charlet [Tue, 5 Aug 2008 13:42:47 +0000 (15:42 +0200)]
adaint.c, [...]: Add support for the readable attribute.
2008-08-05 Pascal Obry <obry@adacore.com>
* adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
readable attribute.
From-SVN: r138709
Vincent Celier [Tue, 5 Aug 2008 13:42:08 +0000 (15:42 +0200)]
2008-08-05 Vincent Celier <celier@adacore.com>
* s-wchwts.adb:
(Wide_String_To_String): Returns a String with the same 'First as its
parameter S.
(Wide_Wide_String_To_String): Ditto
* s-wchwts.ads:
(Wide_String_To_String): Document that the lowest index of the returned
String is equal to S'First.
From-SVN: r138708
Thomas Quinot [Tue, 5 Aug 2008 13:29:05 +0000 (13:29 +0000)]
Makefile.in (gnatlib*): Now depend on oscons target.
* Makefile.in (gnatlib*): Now depend on oscons target.
(oscons): New target.
From-SVN: r138706
Thomas Quinot [Tue, 5 Aug 2008 13:26:24 +0000 (13:26 +0000)]
xoscons.adb, [...]: New files.
2008-08-05 Thomas Quinot <quinot@adacore.com>
* xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
* gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
s-oscons.ads
From-SVN: r138705
Arnaud Charlet [Tue, 5 Aug 2008 13:24:27 +0000 (15:24 +0200)]
opt.ads (Warn_On_Biased_Representation): New flag
2008-08-05 Robert Dewar <dewar@adacore.com>
* opt.ads (Warn_On_Biased_Representation): New flag
* sem_ch13.adb:
(Analyze_Attribute_Definition_Clause): Issue warning when biased
representation is required.
(Minimum_Size): Don't allow biasing if enum rep clause case
* sem_warn.adb:
(Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
(Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
* usage.adb: Add lines for -gnatw.b/B switches
From-SVN: r138704
Pascal Obry [Tue, 5 Aug 2008 13:24:02 +0000 (15:24 +0200)]
adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
2008-08-05 Pascal Obry <obry@adacore.com>
* adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
From-SVN: r138703
Thomas Quinot [Tue, 5 Aug 2008 13:23:53 +0000 (15:23 +0200)]
socket.c: Minor reformatting.
2008-08-05 Thomas Quinot <quinot@adacore.com>
* socket.c: Minor reformatting.
From-SVN: r138702
Pascal Obry [Tue, 5 Aug 2008 13:23:44 +0000 (15:23 +0200)]
a-coinve.adb: Reorder the code to avoid uninitialized warning.
2008-08-05 Pascal Obry <obry@adacore.com>
* a-coinve.adb: Reorder the code to avoid uninitialized warning.
From-SVN: r138701
Richard Guenther [Tue, 5 Aug 2008 11:42:33 +0000 (11:42 +0000)]
re PR middle-end/37026 (GCC ICE in tree_to_gimple_tuple)
2008-08-05 Richard Guenther <rguenther@suse.de>
PR middle-end/37026
* gcc.c-torture/compile/pr37026.c: New testcase.
From-SVN: r138700
Arnaud Charlet [Tue, 5 Aug 2008 09:40:19 +0000 (11:40 +0200)]
sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex visibility check on the component type if the simple test fails.
2008-08-05 Ed Schonberg <schonberg@adacore.com>
* sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
visibility check on the component type if the simple test fails.
From-SVN: r138697
Robert Dewar [Tue, 5 Aug 2008 09:39:23 +0000 (11:39 +0200)]
prj-nmsc.adb: Minor reformatting
2008-08-05 Robert Dewar <dewar@adacore.com>
* prj-nmsc.adb: Minor reformatting
From-SVN: r138696
Robert Dewar [Tue, 5 Aug 2008 09:39:05 +0000 (11:39 +0200)]
sem_ch3.adb: Minor reformatting
2008-08-05 Robert Dewar <dewar@adacore.com>
* sem_ch3.adb: Minor reformatting
From-SVN: r138695
Arnaud Charlet [Tue, 5 Aug 2008 09:33:21 +0000 (09:33 +0000)]
* gnat.dg/not_null.adb: New test.
From-SVN: r138694
Arnaud Charlet [Tue, 5 Aug 2008 09:30:53 +0000 (11:30 +0200)]
sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in unresolved initial value of "null"...
2008-08-05 Bob Duff <duff@adacore.com>
* sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
unresolved initial value of "null", because it causes implicitly
generated "=" operators to be ambiguous, and because this type should
not be passed to gigi.
From-SVN: r138693
Robert Dewar [Tue, 5 Aug 2008 09:29:28 +0000 (11:29 +0200)]
prj.ads: Minor reformatting
2008-08-05 Robert Dewar <dewar@adacore.com>
* prj.ads: Minor reformatting
From-SVN: r138692
Robert Dewar [Tue, 5 Aug 2008 09:29:20 +0000 (11:29 +0200)]
s-fileio.adb: Minor code reorganization Minor reformatting
2008-08-05 Robert Dewar <dewar@adacore.com>
* s-fileio.adb: Minor code reorganization
Minor reformatting
From-SVN: r138691
Robert Dewar [Tue, 5 Aug 2008 09:29:12 +0000 (11:29 +0200)]
s-os_lib.adb: Minor reformatting
2008-08-05 Robert Dewar <dewar@adacore.com>
* s-os_lib.adb: Minor reformatting
From-SVN: r138690
Robert Dewar [Tue, 5 Aug 2008 09:29:03 +0000 (11:29 +0200)]
prj-attr.ads: Minor reformatting
2008-08-05 Robert Dewar <dewar@adacore.com>
* prj-attr.ads: Minor reformatting
From-SVN: r138689
Robert Dewar [Tue, 5 Aug 2008 09:28:55 +0000 (11:28 +0200)]
mlib.adb: Minor code reorganization Minor reformatting
2008-08-05 Robert Dewar <dewar@adacore.com>
* mlib.adb: Minor code reorganization
Minor reformatting
From-SVN: r138688
Thomas Quinot [Tue, 5 Aug 2008 09:28:44 +0000 (11:28 +0200)]
g-sercom.adb, [...] (Data_Bits): Change literals B7 and B8 to CS7 and CS8.
2008-08-05 Thomas Quinot <quinot@adacore.com>
* g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
CS8.
From-SVN: r138687
Robert Dewar [Tue, 5 Aug 2008 09:28:12 +0000 (11:28 +0200)]
make.adb: Minor reformatting
2008-08-05 Robert Dewar <dewar@adacore.com>
* make.adb: Minor reformatting
From-SVN: r138686
Bob Duff [Tue, 5 Aug 2008 09:28:03 +0000 (11:28 +0200)]
checks.ads: Minor comment fix
2008-08-05 Bob Duff <duff@adacore.com>
* checks.ads: Minor comment fix
From-SVN: r138685
Jose Ruiz [Tue, 5 Aug 2008 09:27:49 +0000 (11:27 +0200)]
init.c (__gnat_install_handler for linux): If we are building the Xenomai run time then we need to do two additional things...
2008-08-05 Jose Ruiz <ruiz@adacore.com>
* init.c (__gnat_install_handler for linux): If we are building the
Xenomai run time then we need to do two additional things: avoid
memory swapping and transform the Linux environment task into a native
Xenomai task.
* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
time): Use interface to Xenomai native skin and avoid linux-specific
way of setting CPU affinity.
(EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
From-SVN: r138684
Arnaud Charlet [Tue, 5 Aug 2008 09:14:48 +0000 (11:14 +0200)]
make.adb (Switches_Of): Check for Switches (others), before checking for Default_Switches ("Ada").
2008-08-05 Vincent Celier <celier@adacore.com>
* make.adb (Switches_Of): Check for Switches (others), before checking
for Default_Switches ("Ada").
(Gnatmake): Use Builder'Switches (others) in preference to
Builder'Default_Switches ("Ada") if there are several mains.
* prj-attr-pm.adb:
(Add_Attribute): Add component Others_Allowed in Attribute_Record
aggregate.
* prj-attr.adb:
Add markers to indicates that attributes Switches allow others as index
(Others_Allowed_For): New Boolean function, returning True for
attributes with the mark.
(Initialize): Recognize optional letter 'O' as the marker for
associative array attributes where others is allowed as the index.
* prj-attr.ads:
(Others_Allowed_For): New Boolean function
(Attribute_Record): New Boolean component Others_Allowed
* prj-dect.adb:
(Parse_Attribute_Declaration): For associative array attribute where
others is allowed as the index, allow others as an index.
* prj-nmsc.adb:
(Process_Binder): Skip associative array attributes with index others
(Process_Compiler): Ditto
* prj-util.adb:
(Value_Of (Index, In_Array)): Make no attempt to put in lower case when
index is All_Other_Names.
* prj.ads:
(All_Other_Names): New constant
From-SVN: r138683
Vasiliy Fofanov [Tue, 5 Aug 2008 09:14:13 +0000 (11:14 +0200)]
gen-oscons.c: Adapt for VMS where termios.h is not available.
2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
* gen-oscons.c: Adapt for VMS where termios.h is not available.
From-SVN: r138682
Vincent Celier [Tue, 5 Aug 2008 09:14:03 +0000 (11:14 +0200)]
2008-08-05 Vincent Celier <celier@adacore.com>
* prj-proc.adb:
(Process_Declarative_Items): Skip associative array attribute when index
is reserved word "others".
From-SVN: r138681
Vincent Celier [Tue, 5 Aug 2008 09:13:53 +0000 (11:13 +0200)]
mlib.adb: Update comments.
2008-08-05 Vincent Celier <celier@adacore.com>
* mlib.adb: Update comments.
From-SVN: r138680
Thomas Quinot [Tue, 5 Aug 2008 09:05:08 +0000 (09:05 +0000)]
gen-soccon.c: Rename to gen-oscons.c
2008-08-05 Thomas Quinot <quinot@adacore.com>
* gen-soccon.c: Rename to gen-oscons.c
* gen-oscons.c: New file. Now generate System.OS_Constants instead of
GNAT.Sockets.Constants.
Add new constants for GNAT.Serial_Communications and System.File_IO.
From-SVN: r138679
Thomas Quinot [Tue, 5 Aug 2008 09:04:18 +0000 (11:04 +0200)]
a-rttiev.adb: Minor reformatting (comments)
2008-08-05 Thomas Quinot <quinot@adacore.com>
* a-rttiev.adb: Minor reformatting (comments)
From-SVN: r138678
Arnaud Charlet [Tue, 5 Aug 2008 08:41:30 +0000 (10:41 +0200)]
adaint.c, [...]: Fix the Set_Read_Only Win32 implementation.
2008-08-05 Pascal Obry <obry@adacore.com>
* adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
Set_Read_Only Win32 implementation.
From-SVN: r138676
Javier Miranda [Tue, 5 Aug 2008 08:41:07 +0000 (10:41 +0200)]
sem_util.adb (Collect_Interfaces_Info): Minor reformating.
2008-08-05 Javier Miranda <miranda@adacore.com>
* sem_util.adb (Collect_Interfaces_Info): Minor reformating.
* exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
implementation of this routine has been simplified.
From-SVN: r138675
Thomas Quinot [Tue, 5 Aug 2008 08:34:58 +0000 (08:34 +0000)]
exp_strm.adb: Minor reformatting (comments)
2008-08-05 Thomas Quinot <quinot@adacore.com>
* exp_strm.adb: Minor reformatting (comments)
* sem_ch12.adb: Minor reformatting.
From-SVN: r138674
Arnaud Charlet [Tue, 5 Aug 2008 08:21:05 +0000 (08:21 +0000)]
* gnat.dg/access_discr2.adb: New test.
From-SVN: r138673
Arnaud Charlet [Tue, 5 Aug 2008 08:17:24 +0000 (10:17 +0200)]
sem_res.adb (Resolve_Call): If this is a call to the predefined Abort_Task...
2008-08-05 Ed Schonberg <schonberg@adacore.com>
* sem_res.adb (Resolve_Call): If this is a call to the predefined
Abort_Task, warn if the call appears within a protected operation.
From-SVN: r138672
Ed Schonberg [Tue, 5 Aug 2008 08:17:02 +0000 (10:17 +0200)]
exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access discriminants...
2008-08-05 Ed Schonberg <schonberg@adacore.com>
* exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
discriminants, indicate that the corresponding object declaration has
no initialization, to prevent spurious warnings when the access type is
null-excluding.
From-SVN: r138671
Jerome Lambourg [Tue, 5 Aug 2008 08:16:44 +0000 (10:16 +0200)]
g-comlin.adb (Sort_Sections, [...]): New/Modified internal methods needed to handle switch sections when...
2008-08-05 Jerome Lambourg <lambourg@adacore.com>
* g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
methods needed to handle switch sections when building a command line.
(Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
Current_Section): New public methods or methods modified to handle
building command lines with sections.
(Set_Command_Line): Take into account sections when analysing a switch
string.
(Start): Sort the switches by sections before iterating the command line
elements.
* g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
Is_New_Section, Current_Section): New methods or methods modified to
handle building command lines with sections.
From-SVN: r138670
Thomas Quinot [Tue, 5 Aug 2008 08:16:33 +0000 (10:16 +0200)]
tbuild.ads (New_External_Name): Update spec to reflect relaxed restriction on Prefix.
2008-08-05 Thomas Quinot <quinot@adacore.com>
* tbuild.ads (New_External_Name): Update spec to reflect relaxed
restriction on Prefix.
From-SVN: r138669
Robert Dewar [Tue, 5 Aug 2008 08:16:22 +0000 (10:16 +0200)]
checks.adb: Minor reformatting
2008-08-05 Robert Dewar <dewar@adacore.com>
* checks.adb: Minor reformatting
From-SVN: r138668
Robert Dewar [Tue, 5 Aug 2008 08:16:11 +0000 (10:16 +0200)]
sem_ch3.adb: Minor reformatting
2008-08-05 Robert Dewar <dewar@adacore.com>
* sem_ch3.adb: Minor reformatting
From-SVN: r138667
Tom Tromey [Tue, 5 Aug 2008 01:28:26 +0000 (01:28 +0000)]
re PR libgcj/31890 (Java Namespace error - javaprims.h out of sync)
PR libgcj/31890:
* gcj/javaprims.h: Regenerate class list.
From-SVN: r138664
GCC Administrator [Tue, 5 Aug 2008 00:16:33 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r138661
Jason Merrill [Mon, 4 Aug 2008 19:53:57 +0000 (15:53 -0400)]
re PR c++/36963 (Bogus narrowing conversion error in initializer list with -std=c++0x)
PR c++/36963
* typeck2.c (check_narrowing): Allow narrowing conversion
from an explicit floating-point constant.
From-SVN: r138652
Arnaud Charlet [Mon, 4 Aug 2008 18:51:10 +0000 (20:51 +0200)]
2008-08-04 Robert Dewar <dewar@adacore.com>
* exp_ch5.adb:
(Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
at point of return.
From-SVN: r138651
Ed Schonberg [Mon, 4 Aug 2008 18:50:45 +0000 (20:50 +0200)]
2008-08-04 Ed Schonberg <schonberg@adacore.com>
* sem_ch3.adb:
(Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
anonymous access to protected subprogram that is the return type of the
specification of a subprogram body.
* sem_ch6.adb:
(Analyze_Subprogram_Body): if the return type is an anonymous access to
subprogram, freeze it now to prevent access anomalies in the back-end.
* exp_ch9.adb: Minor code cleanup.
Make sure that new declarations are inserted into the tree before
analysis (from code reading).
From-SVN: r138650
Robert Dewar [Mon, 4 Aug 2008 18:50:33 +0000 (20:50 +0200)]
exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
2008-08-04 Robert Dewar <dewar@adacore.com>
* exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
From-SVN: r138649
Jason Merrill [Mon, 4 Aug 2008 18:39:16 +0000 (14:39 -0400)]
re PR c++/37006 (explicitly deleted inline function gives warning "used but never defined")
PR c++/37006
* pt.c (tsubst_decl): Leave DECL_INITIAL set on deleted
instantiations.
From-SVN: r138648
Richard Guenther [Mon, 4 Aug 2008 18:35:20 +0000 (18:35 +0000)]
tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add the candidate with the stripped base if...
2008-08-04 Richard Guenther <rguenther@suse.de>
* tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
the candidate with the stripped base if that base is different
from the original base even for offset zero.
From-SVN: r138647
Richard Guenther [Mon, 4 Aug 2008 18:29:08 +0000 (18:29 +0000)]
re PR middle-end/36691 (wrong value left in induction variable)
2008-08-04 Richard Guenther <rguenther@suse.de>
PR middle-end/36691
* tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
check for no_overflow.
* gcc.c-torture/execute/pr36691.c: New testcase.
From-SVN: r138645
Victor Kaplansky [Mon, 4 Aug 2008 17:25:13 +0000 (17:25 +0000)]
vect-complex-5.c: New test.
2008-08-04 Victor Kaplansky <victork@il.ibm.com>
* gcc.dg/vect/vect-complex-5.c: New test.
From-SVN: r138643
Richard Guenther [Mon, 4 Aug 2008 17:22:17 +0000 (17:22 +0000)]
tree-vect-transform.c (vectorizable_call): Fix tuplification.
2008-08-04 Richard Guenther <rguenther@suse.de>
* tree-vect-transform.c (vectorizable_call): Fix tuplification.
From-SVN: r138642
Paul Brook [Mon, 4 Aug 2008 16:27:17 +0000 (16:27 +0000)]
arm.c (thumb_core_reg_alloc_order): New.
2008-08-04 Paul Brook <paul@codesourcery.com>
gcc/
* cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
(arm_order_regs_for_local_alloc): New function.
* config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
prototype.
* config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
From-SVN: r138640
Arnaud Charlet [Mon, 4 Aug 2008 15:34:39 +0000 (17:34 +0200)]
exp_ch4.adb: Minor reformatting
2008-08-04 Robert Dewar <dewar@adacore.com>
* exp_ch4.adb: Minor reformatting
From-SVN: r138638
Javier Miranda [Mon, 4 Aug 2008 15:34:13 +0000 (17:34 +0200)]
sem_prag.adb (Process_Convention): Add missing support for N_Private_Extension_Declaration nodes.
2008-08-04 Javier Miranda <miranda@adacore.com>
* sem_prag.adb (Process_Convention): Add missing support for
N_Private_Extension_Declaration nodes.
From-SVN: r138637
Vasiliy Fofanov [Mon, 4 Aug 2008 15:34:04 +0000 (17:34 +0200)]
g-soccon-mingw.ads: Fix value for MSG_WAITALL
2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
* g-soccon-mingw.ads: Fix value for MSG_WAITALL
From-SVN: r138636
Thomas Quinot [Mon, 4 Aug 2008 15:33:55 +0000 (17:33 +0200)]
sem_type.adb, [...]: Minor reformatting
2008-08-04 Thomas Quinot <quinot@adacore.com>
* sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
From-SVN: r138635
Simon Baldwin [Mon, 4 Aug 2008 15:09:56 +0000 (15:09 +0000)]
re PR c++/36999 (Erroneous "declaration 'class ...' does not declare anything" warnings possible)
PR c++/36999
* parser.c (cp_parser_elaborated_type_specifier): Warn only when
the declaration's id is followed by a semicolon.
* g++.dg/warn/pr36999.C: New.
From-SVN: r138633
H.J. Lu [Mon, 4 Aug 2008 14:56:12 +0000 (14:56 +0000)]
re PR c++/37012 (numerous stackalign related testsuite failures on i686-apple-darwin9)
2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
PR target/37012
* config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
(ix86_expand_epilogue): Likewise.
From-SVN: r138631
Arnaud Charlet [Mon, 4 Aug 2008 12:52:38 +0000 (14:52 +0200)]
adaint.c: Refine support for Windows file attributes.
2008-08-04 Pascal Obry <obry@adacore.com>
* adaint.c: Refine support for Windows file attributes.
From-SVN: r138620
Thomas Quinot [Mon, 4 Aug 2008 12:51:41 +0000 (14:51 +0200)]
sem_ch4.adb: Minor reformatting.
2008-08-04 Thomas Quinot <quinot@adacore.com>
* sem_ch4.adb: Minor reformatting.
From-SVN: r138619
Thomas Quinot [Mon, 4 Aug 2008 12:51:30 +0000 (14:51 +0200)]
exp_ch6.adb: Minor comment fix.
2008-08-04 Thomas Quinot <quinot@adacore.com>
* exp_ch6.adb: Minor comment fix.
From-SVN: r138618
Robert Dewar [Mon, 4 Aug 2008 12:51:19 +0000 (14:51 +0200)]
2008-08-04 Robert Dewar <dewar@adacore.com>
* freeze.adb:
(Freeze_Entity): Only check No_Default_Initialization restriction for
constructs that come from source
From-SVN: r138617
Javier Miranda [Mon, 4 Aug 2008 12:51:10 +0000 (14:51 +0200)]
sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch added in previous patch to handle access to subprograms.
2008-08-04 Javier Miranda <miranda@adacore.com>
* sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
added in previous patch to handle access to subprograms.
From-SVN: r138616
Robert Dewar [Mon, 4 Aug 2008 12:51:00 +0000 (14:51 +0200)]
2008-08-04 Robert Dewar <dewar@adacore.com>
* sem_res.adb:
(Valid_Conversion): Catch case of designated types having different
sizes, even though they statically match.
From-SVN: r138615
Pascal Obry [Mon, 4 Aug 2008 12:50:41 +0000 (14:50 +0200)]
adaint.h: Add missing prototype.
2008-08-04 Pascal Obry <obry@adacore.com>
* adaint.h: Add missing prototype.
From-SVN: r138614
Arnaud Charlet [Mon, 4 Aug 2008 12:35:08 +0000 (14:35 +0200)]
adaint.c, [...]: Use Windows ACL to deal with file attributes.
2008-08-04 Pascal Obry <obry@adacore.com>
* adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
file attributes.
From-SVN: r138613
Robert Dewar [Mon, 4 Aug 2008 12:34:16 +0000 (14:34 +0200)]
sem_ch13.ads: Minor comment update
2008-08-04 Robert Dewar <dewar@adacore.com>
* sem_ch13.ads: Minor comment update
* sem_res.adb: (Large_Storage_Type): Improve previous change.
From-SVN: r138612
H.J. Lu [Mon, 4 Aug 2008 12:29:08 +0000 (12:29 +0000)]
i386.c (ix86_compute_frame_layout): Fix a typo in comments.
2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
in comments.
From-SVN: r138611
Javier Miranda [Mon, 4 Aug 2008 12:14:25 +0000 (12:14 +0000)]
sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support for N_Formal_Object_Declaration nodes.
2008-08-04 Javier Miranda <miranda@adacore.com>
* sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
for N_Formal_Object_Declaration nodes. Adding kludge required by
First_Formal to provide its functionality with access to functions.
(Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
for anonymous access types returned by functions.
* sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
conversion of null-excluding access types (required only once to force
the generation of the required runtime check).
* sem_type.adb (Covers): minor reformating
* checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
with internally generated nodes. Avoid generating the error inside init
procs.
* sem_res.adb (Resolve_Membership_Test): Minor reformating.
(Resolve_Null): Generate the null-excluding check in case of assignment
to a null-excluding object.
(Valid_Conversion): Add missing support for anonymous access to
subprograms.
* sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
anonymous access types whose designated type is an itype. This case
occurs with anonymous access to protected subprograms types.
(Analyze_Return_Type): Add missing support for anonymous access to
protected subprogram.
* sem_eval.adb (Subtypes_Statically_Match): In case of access to
subprograms addition of missing check on matching convention. Required
to properly handle access to protected subprogram types.
* exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
null excluding access types.
From-SVN: r138610