- 08 Oct, 2010 31 commits
-
-
2010-10-08 Robert Dewar <dewar@adacore.com> * sem_prag.adb (Check_Duplicate_Pragma): New procedure Add calls to this new procedure where appropriate 2010-10-08 Vincent Celier <celier@adacore.com> * a-textio.adb (Get_Chunk): Code clean up. 2010-10-08 Robert Dewar <dewar@adacore.com> * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads, a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads, a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads, a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads, a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From parameter. From-SVN: r165174
Arnaud Charlet committed -
* config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define. * config/fr30/fr30.md (leave_func): Rewrite without post_inc. From-SVN: r165173
Nathan Froyd committed -
sem_cat.adb (Check_Categorization_Dependencies): Remote types packages can depend on preleborated packages. 2010-10-08 Robert Dewar <dewar@adacore.com> * sem_cat.adb (Check_Categorization_Dependencies): Remote types packages can depend on preleborated packages. 2010-10-08 Robert Dewar <dewar@adacore.com> * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas Interrupt_Handler and Attach_Handler not allowed in generics. From-SVN: r165172
Robert Dewar committed -
2010-10-08 Robert Dewar <dewar@adacore.com> * ali.adb: Set Allocator_In_Body if AB parameter present on M line * ali.ads (Allocator_In_Body): New flag * bcheck.adb (Check_Consistent_Restrictions): Handle case of main program violating No_Allocators_After_Elaboration restriction. * gnatbind.adb (No_Restriction_List): Add entries for No_Anonymous_Allocators, and No_Allocators_After_Elaboration. * lib-load.adb: Initialize Has_Allocator flag * lib-writ.adb: Initialize Has_Allocator flag (M_Parameters): Set AB switch if Has_Allocator flag set * lib-writ.ads: Document AB flag on M line * lib.adb (Has_Allocator): New function (Set_Has_Allocator): New procedure * lib.ads (Has_Allocator): New function (Set_Has_Allocator): New procedure (Has_Allocator): New flag in Unit_Record * sem_ch4.adb (Analyze_Allocator): Add processing for No_Allocators_After_Elaboration. From-SVN: r165171
Robert Dewar committed -
2010-10-08 Geert Bosch <bosch@adacore.com> * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc. 2010-10-08 Javier Miranda <miranda@adacore.com> * sem_prag.adb (Analyze_Pragma): Relax semantic rule of Java_Constructors because in the JRE library we generate occurrences in which the "this" parameter is not the first formal. From-SVN: r165170
Arnaud Charlet committed -
2010-10-08 Robert Dewar <dewar@adacore.com> * par-ch3.adb: Minor reformatting. 2010-10-08 Javier Miranda <miranda@adacore.com> * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java types. 2010-10-08 Robert Dewar <dewar@adacore.com> * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012 mode. * sinfo.adb (Use_Type_Clause): Add All_Present flag. * sinfo.ads (Use_Type_Clause): Add All_Present flag. * s-rident.ads: Add entry for No_Allocators_After_Elaboration, No_Anonymous_Allocators. 2010-10-08 Vincent Celier <celier@adacore.com> * bindgen.adb (Gen_Restrictions_Ada): No new line after last restriction, so that the last comma is always replaced with a left parenthesis. 2010-10-08 Javier Miranda <miranda@adacore.com> * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the first formal of delegates. From-SVN: r165169
Arnaud Charlet committed -
2010-10-08 Robert Dewar <dewar@adacore.com> * sem_aggr.adb: Minor reformatting. 2010-10-08 Robert Dewar <dewar@adacore.com> * exp_imgv.adb (Expand_Image_Attribute): Handle special calling sequence for soft hyphen for Character'Image case. * rtsfind.ads (Image_Character_05): New entry * s-imgcha.adb (Image_Character_05): New procedurew * s-imgcha.ads (Image_Character_05): New procedure * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen case. * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD# * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name properly. From-SVN: r165168
Robert Dewar committed -
sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of pragmas CIL_Constructor and Java_Constructor. * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of pragmas CIL_Constructor and Java_Constructor. From-SVN: r165167
Javier Miranda committed -
sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop for case of Wide_[Wide_]Character. 2010-10-08 Robert Dewar <dewar@adacore.com> * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop for case of Wide_[Wide_]Character. 2010-10-08 Robert Dewar <dewar@adacore.com> * exp_ch3.adb: Minor reformating Minor code reorganization. From-SVN: r165166
Robert Dewar committed -
sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of pragmas CIL_Constructor and Java_Constructor. 2010-10-08 Javier Miranda <miranda@adacore.com> * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of pragmas CIL_Constructor and Java_Constructor. * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the predefined primitives for CIL/Java tagged types. From-SVN: r165165
Javier Miranda committed -
PR libstdc++/45403 * python/libstdcxx/v6/printers.py: Check for lazy_string support. From-SVN: r165163
Jonathan Wakely committed -
2010-10-08 Robert Dewar <dewar@adacore.com> * sem_ch6.adb: Minor reformatting. 2010-10-08 Robert Dewar <dewar@adacore.com> * gnat1drv.adb: Add call to Validate_Independence. * par-prag.adb: Add dummy entries for Independent, Independent_Componentsa. * sem_ch13.adb (Validate_Independence): New procedure (Initialize): Initialize address clause and independence check tables * sem_ch13.ads (Independence_Checks): New table (Validate_Independence): New procedure * sem_prag.adb: Add processing for pragma Independent[_Components] * snames.ads-tmpl: Add entries for pragma Independent[_Components] 2010-10-08 Ed Schonberg <schonberg@adacore.com> * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate component with box initialization, if the component is a variant record use the values of the discriminants to select the proper variant for further box initialization. From-SVN: r165162
Arnaud Charlet committed -
* config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define. * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define. From-SVN: r165161
Nathan Froyd committed -
2010-10-08 Thomas Quinot <quinot@adacore.com> * xsnames.adb: Remove obsolete file. * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting. 2010-10-08 Ed Schonberg <schonberg@adacore.com> * exp_aggr.adb: Complete previous change. 2010-10-08 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an extended return must match statically the return subtype of the enclosing function if the type is an elementary type or if it is constrained. 2010-10-08 Vincent Celier <celier@adacore.com> * prj-nmsc.adb (Add_Source): Report all duplicate units and source file names. Do not report the same duplicate unit several times. * prj.ads (Source_Data): New Boolean component Duplicate_Unit, defaulted to False, to avoid reporting the same unit as duplicate several times. From-SVN: r165160
Arnaud Charlet committed -
2010-10-08 Ed Schonberg <schonberg@adacore.com> * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an others choice is a literal analyze it now to enable later optimizations. * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size and components can be handled by the backend even if it is of a limited type. 2010-10-08 Arnaud Charlet <charlet@adacore.com> * a-rttiev.adb (task Timer): Since this package may be elaborated before System.Interrupt, we need to call Setup_Interrupt_Mask explicitly to ensure that this task has the proper signal mask. 2010-10-08 Robert Dewar <dewar@adacore.com> * freeze.adb (Freeze_Entity): For array case, move some processing for pragma Pack, Component_Size clause and atomic/volatile components here instead of trying to do the job in Sem_Ch13 and Freeze. * layout.adb: Use new Addressable function * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case Component_Size): Move some handling to freeze point in Freeze.Freeze_Entity. * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to freeze point in Freese.Freeze_Entity. * sem_util.ads, sem_util.adb (Addressable): New function. From-SVN: r165159
Arnaud Charlet committed -
2010-10-08 Robert Dewar <dewar@adacore.com> * sprint.adb: Minor reformatting. 2010-10-08 Javier Miranda <miranda@adacore.com> * exp_ch4.adb (Real_Range_Check): Declare temporary as constant. From-SVN: r165158
Arnaud Charlet committed -
2010-10-08 Robert Dewar <dewar@adacore.com> * sem_ch3.adb: Minor reformatting. 2010-10-08 Vincent Celier <celier@adacore.com> * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is not a reserved word. * prj-proc.adb (Expression): Process string list external references. * prj-strt.adb (External_Reference): Parse external_as_list external references. * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes (Set_Expression_Kind_Of): Ditto * prj.adb (Initialize): Set external_as_list as a reserved word * projects.texi: Document new string external reference external_as_list * scans.ads (Token_Type): New token Tok_External_As_List * snames.ads-tmpl: New standard name Name_External_As_List From-SVN: r165157
Arnaud Charlet committed -
2010-10-08 Thomas Quinot <quinot@adacore.com> * sem_prag.adb: Minor reformatting. 2010-10-08 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb (Derived_Type_Declaration): In the private part of an instance, it is legal to derive from a non-limited actual when the formal type is untagged limited. * sem_ch12.adb (Instantiate_Type): For a formal private type, use analyzed formal as Generic_Parent_Type, to simplify later checks. 2010-10-08 Ed Schonberg <schonberg@adacore.com> * sem_res.adb (Insert_Default): If default value is already a raise_constraint_error do not rewrite it as new raise node, to prevent infinite loops in the warning removal machinery. From-SVN: r165156
Arnaud Charlet committed -
2010-10-08 Robert Dewar <dewar@adacore.com> * sem_util.adb, sem_prag.adb: Minor reformatting 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com> * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry. Add section on pragma Implemented. 2010-10-08 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a concrete parent with a concrete constructor, the inherited constructor is abstract even if the derived type is a null extension. From-SVN: r165155
Arnaud Charlet committed -
2010-10-08 Thomas Quinot <quinot@adacore.com> * sem_ch4.adb: Minor reformatting. 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com> * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused. (Implemented_By_Entry): Removed. (Set_Implemented_By_Entry): Removed. (Write_Entity_Flags): Remove the output for Implemented_By_Entry. * einfo.ads: Remove flag Implemented_By_Entry and its usage in entities. (Implemented_By_Entry): Removed along with its associated pragma Inline. (Set_Implemented_By_Entry): Removed along with its associated pragma Inline. * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9. (Build_Dispatching_Call_Equivalent): New routine. (Build_Dispatching_Requeue): New routine. (Build_Dispatching_Requeue_To_Any): New routine. (Build_Normal_Requeue): New routine. (Build_Skip_Statement): New routine. (Expand_N_Requeue_Statement): Rewritten. The logic has been split into several subroutines. * par-prag.adb: Replace Pragma_Implemented_By_Entry by Pragma_Implemented. * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning pragma Implemented. (Check_Pragma_Implemented): New routines. (Inherit_Pragma_Implemented): New routine. * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a dispatching requeue. * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry and adding Implemented. (Ada_2012_Pragma): New routine. (Analyze_Pragma, case Implemented): Perform all necessary checks concerning pragma Implemented and register the pragma as a representation item with the procedure_LOCAL_NAME. (Analyze_Pragma, case Implemented_By_Entry): Removed. * sem_util.adb (Implementation_Kind): New routine. * sem_util.ads (Implementation_Kind): New routine. * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and add Pragma_Implemented. Add special names By_Any, By_Entry and By_Protected_Procedure. 2010-10-08 Javier Miranda <miranda@adacore.com> * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local variable Has_Static_DT by invocation of function Building_Static_DT. 2010-10-08 Vincent Celier <celier@adacore.com> * g-dirope.adb (Remove_Dir): Do not change the current directory when doing a recursive remove of a subdirectory. 2010-10-08 Javier Miranda <miranda@adacore.com> * exp_ch6.ad (Freeze_Subprogram): Factorize code. * exp_disp.adb (Make_Secondary_DT): Factorize code. (Make_DT): Factorize code. From-SVN: r165154
Arnaud Charlet committed -
2010-10-08 Robert Dewar <dewar@adacore.com> * sem_ch4.adb: Minor reformatting. 2010-10-08 Robert Dewar <dewar@adacore.com> * sem_ch6.adb (Check_Conformance): Check null exclusion match for full conformance. From-SVN: r165153
Robert Dewar committed -
2010-10-08 Thomas Quinot <quinot@adacore.com> * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for consistency with Gen_T in Instantiate_Type. Introduce constant A_Gen_Obj to avoid repeated queries for Defining_Identifier (Analyzed_Formal). 2010-10-08 Vincent Celier <celier@adacore.com> * prj-nmsc.adb: Minor comment fix. From-SVN: r165152
Arnaud Charlet committed -
2010-10-08 Paolo Carlini <paolo.carlini@oracle.com> * include/std/future (uses_allocator<packaged_task<>,>): Add; minor formatting tweaks. From-SVN: r165151
Paolo Carlini committed -
PR debug/45656 * cse.c (cse_extended_basic_block): Preserve cc0 info across debug isnsn. Skip them when searching for cc0 setter. (set_live_p): Skip debug insns when searching for cc0 user. From-SVN: r165150
Alexandre Oliva committed -
PR debug/45673 PR debug/45604 PR debug/45419 PR debug/45408 * tree-pretty-print.c (dump_generic_node): Explicitly dump the type of MEM_REFs to INTEGER_CSTs. From-SVN: r165149
Alexandre Oliva committed -
* config/m68hc11/m68hc11.c (m68hc11_print_operand): Call m68hc11_print_operand_address. From-SVN: r165148
Nathan Froyd committed -
* include/std/future: Enable allocator support. * testsuite/30_threads/packaged_task/cons/alloc.cc: Expect PASS. * testsuite/30_threads/promise/cons/alloc.cc: Expect PASS. From-SVN: r165147
Jonathan Wakely committed -
* builtins.c (rewrite_call_expr): Move code to... (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array. (rewrite_call_expr_array): New function. (fold_builtin_sprintf_chk_1): New function. (fold_builtin_sprintf_chk): Call it. (gimple_fold_builtin_sprintf_chk): Likewise. (fold_builtin_snprintf_chk_1): New function. (fold_builtin_snprintf_chk): Call it. (gimple_fold_builtin_snprintf_chk): Likewise. (gimple_rewrite_call_expr): Delete. From-SVN: r165146
Nathan Froyd committed -
From-SVN: r165145
Jan Hubicka committed -
2010-10-08 Jonathan Wakely <jwakely.gcc@gmail.com> PR libstdc++/45893 * include/std/functional (bind): Implement DR 817 and add support for volatile-qualified call wrappers. * include/std/mutex (call_once): Implement DR 891. * include/std/thread (thread::thread): Implement DR 929. * include/std/future: Optimise use of std::bind. * testsuite/20_util/bind/cv_quals.cc: Test volatile-qualification. * testsuite/20_util/bind/move.cc: New. From-SVN: r165144
Jonathan Wakely committed -
From-SVN: r165142
GCC Administrator committed
-
- 07 Oct, 2010 9 commits
-
-
In gcc/testsuite/: 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> * obj-c++.dg/encode-10.mm: New testcase. In gcc/cp/: 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> * cp-tree.def: Changed type of AT_ENCODE_EXPR from tcc_unary to tcc_expression. * cxx-pretty-print.c (pp_cxx_unary_expression): Added case for AT_ENCODE_EXPR. * error.c (dump_expr): Added case for AT_ENCODE_EXPR. * pt.c (tsubst_copy): Added case for AT_ENCODE_EXPR. (value_dependent_expression_p): Added case for AT_ENCODE_EXPR. (type_dependent_expression_p): Added case for AT_ENCODE_EXPR. * parser.c (cp_parser_objc_encode_expression): Updated comment. From-SVN: r165138
Nicola Pero committed -
In gcc/testsuite/: 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> PR objc++/23614 * obj-c++.dg/lookup-2.mm: Do not assign 'nil' to a pointer to a C++ class. Removed XFAIL. From-SVN: r165137
Nicola Pero committed -
PR libstdc++/45841 * testsuite/lib/libstdc++.exp (check_v3_target_fileio): Rewrite to use an actual testsuite file and machinery, not ".". Specifically check that incorrectly seeking backwards from 0 yields an error, and that reading, seeking backwards and reading again works. From-SVN: r165136
Hans-Peter Nilsson committed -
* testsuite/libstdc++-dg/conformance.exp: Apply check_v3_target_fileio as a gate for tests in subdirectories matching the substring _filebuf. From-SVN: r165135
Hans-Peter Nilsson committed -
* config.host: Update copyright year. From-SVN: r165134
Dave Korn committed -
ChangeLog: 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com> * configure.ac (build_lto_plugin): New shell variable. (--enable-lto): Turn on by default for all non-ELF platforms that have had LTO support added so far. Set build_lto_plugin appropriately for both ELF and non-ELF. (configdirs): Add lto-plugin or not based on build_lto_plugin. * configure: Regenerate. gcc/ChangeLog: 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com> * config.host (host_lto_plugin_soname): New shell variable. * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above. * config.in: Regenerate. * configure: Regenerate. * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of LTO plugin shared library. lto-plugin/ChangeLog: 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com> * configure.ac: Source config.gcc to determine lto_binary_reader. (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader. * Makefile.am (LTO_FORMAT): Import. (liblto_plugin_la_SOURCES): Add object format dependent module defined by LTO_FORMAT. (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty, and work around libtool warning. * configure: Regenerate. * Makefile.in: Likewise. * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h. (struct sym_aux): Likewise. (struct plugin_symtab): Likewise. (struct plugin_file_info): Likewise. (LTO_SECTION_PREFIX): Likewise. (add_symbols): Make non-static. (claimed_files): Likewise. (num_claimed_files): Likewise. (check): Likewise. (parse_table_entry): Likewise. (translate): Likewise. (resolve_conflicts): Likewise. (process_symtab): Move to new lto-plugin-elf.c object format dependent source file. (claim_file_handler): Likewise, and make non-static. (onload): Call new onload_format_checks function. * lto-plugin.h: New file. (LTO_SECTION_PREFIX): Move here. (struct sym_aux): Likewise. (struct plugin_symtab): Likewise. (struct plugin_file_info): Likewise. (claim_file_handler): Add new function prototype. (onload_format_checks): Likewise. (check): Declare extern. (translate): Likewise. (parse_table_entry): Likewise. (resolve_conflicts): Likewise. (add_symbols): Likewise. (claimed_files): Likewise. (num_claimed_files): Likewise. * lto-plugin-elf.c (process_symtab): Move here. (claim_file_handler): Likewise, and make non-static. (onload_format_checks): New function factored out from onload. * lto-plugin-coff.c (claim_file_handler): New function stub. (onload_format_checks): Likewise. From-SVN: r165133
Dave Korn committed -
From-SVN: r165131
Richard Henderson committed -
/: Sync from src: * configure.ac (v850 support): Remove target-libgloss from noconfigdirs. * configure: Regenerate. From-SVN: r165130
Ralf Wildenhues committed -
In gcc/: 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> * doc/objc.texi (Fast enumeration protocol): Mention that 'unsigned int' can also be used instead of 'unsigned long' in countByEnumeratingWithState:objects:count:. In gcc/objc/: 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> PR objc/45925 * objc-act.c (objc_finish_foreach_loop): Convert return value of countByEnumeratingWithState:objects:count: to long unsigned int. From-SVN: r165129
Nicola Pero committed
-