aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2008-08-01s-ststop.adb: Add some ??? commentsRobert Dewar1-0/+4
2008-08-01 Robert Dewar <dewar@adacore.com> * s-ststop.adb: Add some ??? comments From-SVN: r138456
2008-08-01gnat_ugn.texi: Minor editing, remove uncomfortable use of semicolonRobert Dewar1-2/+2
2008-08-01 Robert Dewar <dewar@adacore.com> * gnat_ugn.texi: Minor editing, remove uncomfortable use of semicolon From-SVN: r138455
2008-08-01tree-pass.h: Added comment about not dumping passes with name starting with ↵Basile Starynkevitch4-2/+16
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-01config.gcc (mipsisa64*-*-linux*): New configuration.Adam Nemet7-36/+121
* 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-07-31darwin.h (MAIN_STACK_BOUNDARY): Define to 128.H.J. Lu2-0/+7
2008-07-31 H.J. Lu <hongjiu.lu@intel.com> * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128. From-SVN: r138446
2008-08-01Daily bump.GCC Administrator1-1/+1
From-SVN: r138444
2008-07-31decl.c (gnat_to_gnu_entity): Fix formatting.Eric Botcazou6-2/+42
* 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* expr.c (expand_assignment): Check for complete type.Steve Ellcey2-0/+5
From-SVN: r138439
2008-07-31re PR debug/36977 (Incorrect debug info for stack variables with stack ↵H.J. Lu4-8/+24
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-31sh.c (sh_canonical_va_list_type): Remove.Kaz Kojima2-11/+5
* config/sh/sh.c (sh_canonical_va_list_type): Remove. (TARGET_CANONICAL_VA_LIST_TYPE): Remove. From-SVN: r138437
2008-07-31re PR target/35100 (internal compiler error: in extract_insn, at recog.c:1990)Jakub Jelinek2-0/+17
PR target/35100 * gcc.target/powerpc/longcall-1.c: New test. From-SVN: r138435
2008-07-31re PR preprocessor/36649 (-H option doesn't work as expected)Jakub Jelinek9-0/+37
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-31re PR rtl-optimization/36419 (Wrong unwind info with -Os ↵Jakub Jelinek4-7/+439
-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-31re PR c++/36405 (ICE with typeid of member function)Jakub Jelinek4-2/+41
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-31re PR middle-end/36633 (warning "array subscript is below array bounds" on ↵Jason Merrill3-18/+68
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-31re PR debug/36980 (Bootstrap broken with RTL checking on i586)H.J. Lu2-6/+13
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-31Resync.Arnaud Charlet1-0/+31
From-SVN: r138422
2008-07-31prj-env.adb: Minor reformattingRobert Dewar1-7/+7
2008-07-31 Robert Dewar <dewar@adacore.com> * prj-env.adb: Minor reformatting From-SVN: r138421
2008-07-31makeutl.adb: Minor reformattingRobert Dewar1-2/+0
2008-07-31 Robert Dewar <dewar@adacore.com> * makeutl.adb: Minor reformatting From-SVN: r138420
2008-07-31exp_aggr.adb: Minor reformattingRobert Dewar1-8/+8
2008-07-31 Robert Dewar <dewar@adacore.com> * exp_aggr.adb: Minor reformatting From-SVN: r138419
2008-07-312008-07-31 Jose Ruiz <ruiz@adacore.com>Jose Ruiz2-3/+5
* 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-31prj-nmsc.adb: Keep Object and Exec directory casing.Pascal Obry1-10/+9
2008-07-31 Pascal Obry <obry@adacore.com> * prj-nmsc.adb: Keep Object and Exec directory casing. From-SVN: r138417
2008-07-31re PR debug/36976 (FAIL: g++.dg/torture/stackalign/unwind-2.C)H.J. Lu2-17/+21
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-31re PR tree-optimization/36978 (ICE in gimple_cond_set_lhs for -O2 ↵Richard Guenther4-2/+27
-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-31Resync.Arnaud Charlet1-0/+13
From-SVN: r138414
2008-07-31* gnat.dg/specs/null_aggr_bug.ads: New test.Arnaud Charlet2-0/+21
From-SVN: r138413
2008-07-312008-07-31 Gary Dismukes <dismukes@adacore.com>Gary Dismukes1-1/+11
* sem_aggr.adb: (Resolve_Record_Aggregate): Bypass error that a type without components must have a "null record" aggregate when compiling for Ada 2005, since it's legal to give an aggregate of form (others => <>) for such a type. From-SVN: r138412
2008-07-31exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private tagged ↵Hristian Kirtchev1-0/+7
type is completed by a concurrent type. 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com> * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private tagged type is completed by a concurrent type. From-SVN: r138411
2008-07-31* gnat.dg/sync_iface_test.ad[s,b]: New test.Arnaud Charlet3-0/+32
From-SVN: r138410
2008-07-31Resync.Arnaud Charlet1-0/+62
From-SVN: r138409
2008-07-31sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause has the ↵Ed Schonberg1-3/+30
form A.B.C and B is a unit renaming... 2008-07-31 Ed Schonberg <schonberg@adacore.com> * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause has the form A.B.C and B is a unit renaming, analyze its compilation unit and add a with_clause on A.b to the context. From-SVN: r138408
2008-07-312008-07-31 Hristian Kirtchev <kirtchev@adacore.com>Hristian Kirtchev11-866/+954
* bindgen.adb Comment reformatting. Update the list of run-time globals. (Gen_Adainit_Ada): Add the declaration, import and value set for configuration flag Canonical_Streams. (Gen_Adainit_C): Add the declaration and initial value of external symbol __gl_canonical_streams. * init.c: Update the list of global values computed by the binder. * opt.ads: Add flag Canonical_Streams. * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of semantically handled pragmas. * sem_prag.adb: Add an entry into enumeration type Sig_Flags. (Analyze_Pragma): Add case for pragma Canonical_Streams. * snames.adb: Add character value for name Canonical_Streams. * snames.ads: Add Name_Canonical_Streams to the list of configuration pragmas. Add Pragma_Canonical_Streams to enumeration type Pragma_Id. * snames.h: Add a definition for Pragma_Canonical_Streams. * s-ststop.adb: Add a flag and import to seize the value of external symbol __gl_canonical_streams. Update comment and initial value of constant Use_Block_IO. * gnat_rm.texi: Add section of pragma Canonical_Streams. * gnat_ugn.texi: Add pragma Canonical_Streams to the list of configuration pragmas. From-SVN: r138407
2008-07-31sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the ↵Hristian Kirtchev1-2/+7
corresponding spec is a primitive wrapper. 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com> * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the corresponding spec is a primitive wrapper. Update comment. From-SVN: r138406
2008-07-312008-07-31 Quentin Ochem <ochem@adacore.com>Quentin Ochem2-22/+40
* s-stausa.ad? (Fill_Stack): Stack_Used_When_Filling is now stored anymore - just used internally. Added handling of very small tasks - when the theoretical size is already full at the point of the call. (Report_Result): Fixed result computation, Stack_Used_When_Filling does not need to be added to the result. From-SVN: r138405
2008-07-31sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to handle ↵Javier Miranda1-1/+7
synchronized types. 2008-07-31 Javier Miranda <miranda@adacore.com> * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to handle synchronized types. Required to handle well the object.operation notation applied to synchronized types. From-SVN: r138404
2008-07-31* gnat.dg/specs/sync_iface_test.ads: New test.Arnaud Charlet2-0/+18
From-SVN: r138402
2008-07-31Resync.Arnaud Charlet1-0/+42
From-SVN: r138401
2008-07-31sem_type.adb (Has_Compatible_Type): Complete support for synchronized types ↵Javier Miranda4-93/+100
when... 2008-07-31 Javier Miranda <miranda@adacore.com> * sem_type.adb (Has_Compatible_Type): Complete support for synchronized types when the candidate type is a synchronized type. * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized types, and complete management of synchronized types adding missing code to handle formal that is a synchronized type. * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that are not available and cause the compiler to blowup. Found compiling test with switch -gnatc * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram Has_Correct_Formal_Mode plus code cleanup. From-SVN: r138400
2008-07-31checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.Gary Dismukes4-11/+24
2008-07-31 Gary Dismukes <dismukes@adacore.com> * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node. * checks.adb (Apply_Accessibility_Check): Insert the check on Insert_Node. * exp_attr.adb: (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node to new parameter Insert_Node on call to Apply_Accessibility_Check. Necessary to distinguish the insertion node because the dereferenced formal may come from a rename, but the check must be inserted in front of the attribute. * exp_ch4.adb: (Expand_N_Allocator): Pass actual for new Insert_Node parameter on call to Apply_Accessibility_Check. (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter on call to Apply_Accessibility_Check. Minor reformatting From-SVN: r138399
2008-07-31makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails...Vincent Celier1-1/+11
2008-07-31 Vincent Celier <celier@adacore.com> * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails, return the empty string, instead of raising Constraint_Error. From-SVN: r138398
2008-07-31pr16660-1.c: Include "check.h".H.J. Lu2-2/+9
2008-07-31 H.J. Lu <hongjiu.lu@intel.com> * gcc.dg/torture/stackalign/pr16660-1.c: Include "check.h". (f): Align to 64 byte. Use check instead of asm statement. From-SVN: r138397
2008-07-31Resync.Arnaud Charlet1-0/+78
From-SVN: r138396
2008-07-31Resync.Arnaud Charlet1-0/+28
From-SVN: r138395
2008-07-31prj-part.adb, [...]: Move back spec of Parse_Single_Project to body...Vincent Celier5-78/+52
2008-07-31 Vincent Celier <celier@adacore.com> * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb: Move back spec of Parse_Single_Project to body, as it is not called outside of package Prj.Part. (Project_Data): Remove components Linker_Name, Linker_Path and Minimum_Linker_Options as they are no longer set. Remove function There_Are_Ada_Sources from package Prj and move code in the only place it was used, in Prj.Env.Set_Ada_Paths. From-SVN: r138394
2008-07-31exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component and the ↵Ed Schonberg1-4/+45
context is an object... 2008-07-31 Ed Schonberg <schonberg@adacore.com> * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component and the context is an object declaration with non-static bounds, treat the aggregate as non-static. From-SVN: r138393
2008-07-31tbuild.ads: Fix several occurrences of incorrectly referring to Name_Find as ↵Thomas Quinot1-2/+2
Find_Name. 2008-07-31 Thomas Quinot <quinot@adacore.com> * tbuild.ads: Fix several occurrences of incorrectly referring to Name_Find as Find_Name. From-SVN: r138392
2008-07-31exp_ch9.adb: Minor reformattingThomas Quinot1-1/+1
2008-07-31 Thomas Quinot <quinot@adacore.com> * exp_ch9.adb: Minor reformatting From-SVN: r138391
2008-07-31sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was ↵Bob Duff1-1/+1
recognized as two end-of-lines... 2008-07-31 Bob Duff <duff@adacore.com> * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was recognized as two end-of-lines, but it should be just one. From-SVN: r138390
2008-07-31* gnat.dg/missing_acc_check.adb: New test.Arnaud Charlet2-0/+43
From-SVN: r138389
2008-07-31exp_attr.adb (Enclosing_Object): New function local to handling of access ↵Gary Dismukes2-52/+90
attributes... 2008-07-31 Gary Dismukes <dismukes@adacore.com> * exp_attr.adb (Enclosing_Object): New function local to handling of access attributes, for retrieving the innermost enclosing object prefix of a compound name. (Expand_N_Attribute_Reference, N_Attribute_Access): In the case where an Access attribute has a prefix that is a dereference of an access parameter (or the prefix is a subcomponent selected from such a dereference), apply an accessibility check to the access parameter. Replaces code that rewrote the prefix as a type conversion (and that didn't handle subcomponent cases). Also, this is now only applied in the case of 'Access. * exp_ch6.adb (Expand_Call): Add handling for the case of an access discriminant passed as an actual to an access formal, passing the Object_Access_Level of the object containing the access discriminant. From-SVN: r138388