aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2008-08-06predict.c (maybe_hot_frequency_p): When profile is absent, all frequencies ↵Jan Hubicka2-0/+7
might be hot. * predict.c (maybe_hot_frequency_p): When profile is absent, all frequencies might be hot. From-SVN: r138764
2008-08-06reload.c (find_reloads): Force constants into literal pool also if they are ↵Andreas Krebbel4-39/+93
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-06re PR target/35659 (Miscompiled code with -O2 (but not with -O2 ↵Maxim Kuvyrkov4-27/+50
-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-06haifa-sched.c (extend_global): Split to extend_global_data and ↵Maxim Kuvyrkov4-21/+57
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-06sched-rgn.c (new_ready): Check if instruction can be speculatively scheduled ↵Maxim Kuvyrkov2-3/+21
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-05re PR c++/37016 (member function pointer failure with optimization)Jason Merrill4-14/+18
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-06Daily bump.GCC Administrator1-1/+1
From-SVN: r138751
2008-08-05* config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.Bob Wilson2-1/+4
From-SVN: r138748
2008-08-05xtensa.c (xtensa_va_start): Unshare valist.Bob Wilson2-19/+32
* 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-05re PR c++/37016 (member function pointer failure with optimization)Jason Merrill3-2/+90
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-05configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.Richard Henderson3-0/+7
* configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality. * configure: Rebuild. From-SVN: r138738
2008-08-05re PR tree-optimization/37024 (bad tail call from tuples merge)Andrew Pinski4-1/+29
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-05Makefile.in (c-cppbuiltin.o): Depend on debug.h.Richard Henderson11-10/+519
* 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-05sem_ch3.adb (Process_Subtype): An allocator is a valid construct that can ↵Arnaud Charlet4-0/+44
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-05vms_data.ads: Translation for /POINTER_SIZE qualifier.Doug Rupp1-0/+31
2008-08-05 Doug Rupp <rupp@adacore.com> * vms_data.ads: Translation for /POINTER_SIZE qualifier. From-SVN: r138727
2008-08-05Makefile.rtl: Compile s-oscons.ads as part of the runtime library.Thomas Quinot1-0/+1
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-052008-08-05 Ed Schonberg <schonberg@adacore.com>Ed Schonberg1-1/+8
* freeze.adb: (Freeze_Entity): A deferred constant does not violate the restriction No_Default_Initialization, From-SVN: r138725
2008-08-05Remove test, premature.Arnaud Charlet2-31/+0
From-SVN: r138724
2008-08-05sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to right-hand ↵Arnaud Charlet2-6/+31
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-05sem_attr.adb: (Analyze_Attribute...Ed Schonberg1-32/+62
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-05adaint.c: Remove support for readable attribute on vxworks and nucleusPascal Obry1-2/+2
2008-08-05 Pascal Obry <obry@adacore.com> * adaint.c: Remove support for readable attribute on vxworks and nucleus From-SVN: r138721
2008-08-05gsocket.h: Make this file includable in a Nucleus environment, which does ↵Thomas Quinot2-5/+19
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* gnat.dg/post_block.adb: New test.Arnaud Charlet2-0/+31
From-SVN: r138719
2008-08-05invoke.texi: Document new ARM -mfpu= and -mcpu= options.Paul Brook7-13/+44
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
2008-08-05ug_words: Add entries for -gnatw.b/-gnatw.BArnaud Charlet3-0/+18
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
2008-08-05gnat_ugn.texi: Changing the description of the gnatcheck metrics rule ↵Sergey Rybin1-59/+40
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
2008-08-05spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.Ulrich Weigand2-38/+89
* 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
2008-08-05spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized SUBREG of ↵Ulrich Weigand3-3/+14
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
2008-08-05a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put (File).Vincent Celier3-8/+11
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
2008-08-05adaint.c, [...]: Add support for the readable attribute.Arnaud Charlet5-41/+120
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
2008-08-052008-08-05 Vincent Celier <celier@adacore.com>Vincent Celier2-7/+8
* 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
2008-08-05xoscons.adb, [...]: New files.Thomas Quinot7-2/+1776
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
2008-08-05opt.ads (Warn_On_Biased_Representation): New flagArnaud Charlet5-10/+76
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
2008-08-05adaint.c: In UNIX cases do not call __gnat_stat but stat directly.Pascal Obry1-12/+12
2008-08-05 Pascal Obry <obry@adacore.com> * adaint.c: In UNIX cases do not call __gnat_stat but stat directly. From-SVN: r138703
2008-08-05socket.c: Minor reformatting.Thomas Quinot1-1/+2
2008-08-05 Thomas Quinot <quinot@adacore.com> * socket.c: Minor reformatting. From-SVN: r138702
2008-08-05a-coinve.adb: Reorder the code to avoid uninitialized warning.Pascal Obry1-3/+2
2008-08-05 Pascal Obry <obry@adacore.com> * a-coinve.adb: Reorder the code to avoid uninitialized warning. From-SVN: r138701
2008-08-05re PR middle-end/37026 (GCC ICE in tree_to_gimple_tuple)Richard Guenther2-0/+17
2008-08-05 Richard Guenther <rguenther@suse.de> PR middle-end/37026 * gcc.c-torture/compile/pr37026.c: New testcase. From-SVN: r138700
2008-08-05sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex visibility ↵Arnaud Charlet2-3/+24
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
2008-08-05prj-nmsc.adb: Minor reformattingRobert Dewar1-20/+22
2008-08-05 Robert Dewar <dewar@adacore.com> * prj-nmsc.adb: Minor reformatting From-SVN: r138696
2008-08-05sem_ch3.adb: Minor reformattingRobert Dewar1-4/+3
2008-08-05 Robert Dewar <dewar@adacore.com> * sem_ch3.adb: Minor reformatting From-SVN: r138695
2008-08-05* gnat.dg/not_null.adb: New test.Arnaud Charlet2-0/+25
From-SVN: r138694
2008-08-05sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in ↵Arnaud Charlet2-0/+54
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
2008-08-05prj.ads: Minor reformattingRobert Dewar1-3/+2
2008-08-05 Robert Dewar <dewar@adacore.com> * prj.ads: Minor reformatting From-SVN: r138692
2008-08-05s-fileio.adb: Minor code reorganization Minor reformattingRobert Dewar1-3/+3
2008-08-05 Robert Dewar <dewar@adacore.com> * s-fileio.adb: Minor code reorganization Minor reformatting From-SVN: r138691
2008-08-05s-os_lib.adb: Minor reformattingRobert Dewar1-4/+2
2008-08-05 Robert Dewar <dewar@adacore.com> * s-os_lib.adb: Minor reformatting From-SVN: r138690
2008-08-05prj-attr.ads: Minor reformattingRobert Dewar1-2/+1
2008-08-05 Robert Dewar <dewar@adacore.com> * prj-attr.ads: Minor reformatting From-SVN: r138689
2008-08-05mlib.adb: Minor code reorganization Minor reformattingRobert Dewar1-4/+5
2008-08-05 Robert Dewar <dewar@adacore.com> * mlib.adb: Minor code reorganization Minor reformatting From-SVN: r138688
2008-08-05g-sercom.adb, [...] (Data_Bits): Change literals B7 and B8 to CS7 and CS8.Thomas Quinot4-6/+6
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
2008-08-05make.adb: Minor reformattingRobert Dewar1-25/+28
2008-08-05 Robert Dewar <dewar@adacore.com> * make.adb: Minor reformatting From-SVN: r138686
2008-08-05checks.ads: Minor comment fixBob Duff1-1/+1
2008-08-05 Bob Duff <duff@adacore.com> * checks.ads: Minor comment fix From-SVN: r138685