]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
15 years ago2010-10-11 Bob Duff <duff@adacore.com>
charlet [Mon, 11 Oct 2010 09:11:57 +0000 (09:11 +0000)] 
2010-10-11  Bob Duff  <duff@adacore.com>

* sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
(Ada_Version_Type).

2010-10-11  Javier Miranda  <miranda@adacore.com>

* exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
dereference then do not exclude dereferences of access-to-constant
types to handle them as constant view of variables (and hence remove
side effects when required).
* sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
are properly handled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165282 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 09:04:40 +0000 (09:04 +0000)] 
2010-10-11  Robert Dewar  <dewar@adacore.com>

* sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.

2010-10-11  Javier Miranda  <miranda@adacore.com>

* exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
to exp_ch6.
(Expand_N_Simple_Return_Statement): Moved to exp_ch6.
* exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
exp_ch6.
(Expand_Simple_Function_Return): Move to exp_ch6.
(Expand_N_Extended_Return_Statement): Moved to exp_ch6.
(Expand_N_Simple_Return_Statement): Moved to exp_ch6.

2010-10-11  Robert Dewar  <dewar@adacore.com>

* snames.ads-tmpl: Add names for aspects.
* aspects.ads, aspects.adb: New.
* gcc-interface/Make-lang.in: Update dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165281 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Ed Schonberg <schonberg@adacore.com>
charlet [Mon, 11 Oct 2010 08:48:19 +0000 (08:48 +0000)] 
2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
a task type, it must be replaced with a reference to Self.

2010-10-11  Vincent Celier  <celier@adacore.com>

* adaint.h: Add prototype for function __gnat_create_output_file_new.

2010-10-11  Javier Miranda  <miranda@adacore.com>

* sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
aggregate bounds.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165280 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Arnaud Charlet <charlet@adacore.com>
charlet [Mon, 11 Oct 2010 08:44:15 +0000 (08:44 +0000)] 
2010-10-11  Arnaud Charlet  <charlet@adacore.com>

        * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
        for AI05-0033 in CodePeer mode.

2010-10-11  Robert Dewar  <dewar@adacore.com>

        * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
        * csinfo.adb: Aspect_Specifications is a new special field
        * einfo.adb (Flag3): New unused flag
        * exp_util.adb (Insert_Actions): Add processing for
        N_Aspect_Specification.
        * sem.adb: Add entry for N_Aspect_Specification.
        * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
        (Has_Aspect_Specifications): New flag
        (Permits_Aspect_Specifications): New function
        (Aspect_Specifications): New function
        (Set_Aspect_Specifications): New procedure
        * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
        (Sprint_Node): Add dummy entry for N_Aspect_Specification
        * treepr.adb (Flag3): New flag to be listed

2010-10-11  Vincent Celier  <celier@adacore.com>

        * adaint.c: Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165279 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Arnaud Charlet <charlet@adacore.com>
charlet [Mon, 11 Oct 2010 08:41:22 +0000 (08:41 +0000)] 
2010-10-11  Arnaud Charlet  <charlet@adacore.com>

* sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
for AI05-0033 in CodePeer mode.

2010-10-11  Robert Dewar  <dewar@adacore.com>

* atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
* csinfo.adb: Aspect_Specifications is a new special field
* einfo.adb (Flag3): New unused flag
* exp_util.adb (Insert_Actions): Add processing for
N_Aspect_Specification.
* sem.adb: Add entry for N_Aspect_Specification.
* sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
(Has_Aspect_Specifications): New flag
(Permits_Aspect_Specifications): New function
(Aspect_Specifications): New function
(Set_Aspect_Specifications): New procedure
* sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
(Sprint_Node): Add dummy entry for N_Aspect_Specification
* treepr.adb (Flag3): New flag to be listed

2010-10-11  Vincent Celier  <celier@adacore.com>

* adaint.c: Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165278 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 08:28:58 +0000 (08:28 +0000)] 
2010-10-11  Robert Dewar  <dewar@adacore.com>

* sem_ch6.adb, s-htable.ads: Minor reformatting.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_ch4.adb (Analyze_Selected_Component): If the selector is
invisible in an instantiation, and both the formal and the actual are
private extensions of the same type, look for the desired component in
the proper view of the parent type.

2010-10-11  Vincent Celier  <celier@adacore.com>

* adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
AIX, Tru64, Darwin, IRIX and HP-UX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165277 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 08:23:31 +0000 (08:23 +0000)] 
2010-10-11  Robert Dewar  <dewar@adacore.com>

* a-textio.adb: Minor reformatting

2010-10-11  Robert Dewar  <dewar@adacore.com>

* a-suesen.ads, a-suenst.ads,
a-suesen.adb, a-suenst.adb,
a-suewse.adb, a-suewst.adb,
a-suewse.ads, a-suewst.ads,
a-suezse.ads, a-suezst.ads,
a-suezse.adb, a-suezst.adb: New name for string encoding packages.
* impunit.adb: New names for string encoding units
* Makefile.rtl: New names for string encoding units
* rtsfind.ads: Minor code reorganization.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* exp_ch5.adb: Code clean up.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
returns when in a generic context.
(Analyze_Function_Return): ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165276 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 07:30:09 +0000 (07:30 +0000)] 
2010-10-11  Robert Dewar  <dewar@adacore.com>

* s-multip.ads: Fix header.
* sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165275 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Vincent Celier <celier@adacore.com>
charlet [Mon, 11 Oct 2010 07:14:08 +0000 (07:14 +0000)] 
2010-10-11  Vincent Celier  <celier@adacore.com>

* Makefile.rtl: Add s-multip.
* adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
defaulting to 1 for other platforms.
* adaint.h: New function __gnat_number_of_cpus.
* impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
with a single component "s-multip".
* impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2012.
* rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
* s-multip.ads, s-multip.adb: New Ada 2012 package.
* sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165274 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoFix header.
charlet [Mon, 11 Oct 2010 07:09:07 +0000 (07:09 +0000)] 
Fix header.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165273 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Javier Miranda <miranda@adacore.com>
charlet [Mon, 11 Oct 2010 07:05:08 +0000 (07:05 +0000)] 
2010-10-11  Javier Miranda  <miranda@adacore.com>

* a-textio.adb: Move new implementation of Get_Line to a subunit.
* a-tigeli.adb: New subunit containing the implementation of Get_Line.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_aux.adb: Code clean up.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165272 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 06:59:29 +0000 (06:59 +0000)] 
2010-10-11  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting

2010-10-11  Robert Dewar  <dewar@adacore.com>

* einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
Flag248-Flag254.  Define new field Field29.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165271 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR target/45870
jakub [Mon, 11 Oct 2010 06:17:45 +0000 (06:17 +0000)] 
PR target/45870
* config/i386/i386.c (ix86_delegitimize_tls_address): New function.
(ix86_delegitimize_address): Use it.

* gcc.dg/tls/pr45870.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165270 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoIn libobjc/:
nicola [Mon, 11 Oct 2010 02:36:32 +0000 (02:36 +0000)] 
In libobjc/:
2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>

        * Makefile.in (C_SOURCE_FILES): Added ivars.c.
        * ivars.c: New.
        * objc/objc.h: Updated comments.
        * objc/runtime.h (object_getClass): New.
        (object_getClassName): New.
        (object_setClass): New.
        (class_getInstanceVariable): New.
        (object_getIndexedIvars): New.
        (object_getInstanceVariable): New.
        (object_setInstanceVariable): New.
        (object_getIvar): New.
        (object_setIvar): New.
        (ivar_getName): New.
        (ivar_getOffset): New.
        (ivar_getTypeEncoding): New.
        * objc-private/module-abi-8.h (struct objc_class): Added.
        * objects.c (object_getClassName): New.
        (object_setClass): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165269 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoDaily bump.
gccadmin [Mon, 11 Oct 2010 00:18:39 +0000 (00:18 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165268 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
nicola [Sun, 10 Oct 2010 23:28:12 +0000 (23:28 +0000)] 
2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc/objc.h: Updated comments.
        * objc/objc-api.h: (object_copy): Added one argument; use a
        #define to maintain backwards-compatibility.  Moved
        _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
        objc_get_uninstalled_dtable into
        objc/deprecated/objc_get_uninstalled_dtable.h and
        objc/deprecated/objc_object_alloc.h.  Include these files.
        * objc/deprecated/objc_get_uninstalled_dtable.h: New.
        * objc/deprecated/objc_object_alloc.h: New.
        * objc/runtime.h (set_getName): New.
        (sel_getType): New.
        (sel_getUid): New.
        (sel_registerName): New.
        (sel_registerTypedName): New.
        (sel_isEqual): New.
        (class_createInstance): New.
        (object_copy): New.
        (object_dispose): New.
        * objects.c: Do not include tconfig.h.  Include gc_typed.h if
        building the garbage collection version.
        (__objc_object_alloc): Removed.
        (__objc_object_copy): Removed.
        (__objc_object_dispose): Removed.
        (class_createInstance): New from code in class_create_instance.
        Cast second argument of GC_malloc_explicitly_typed.  Use
        objc_calloc.  Do not call _objc_object_alloc.
        (class_create_instance): Call class_createInstance.
        (object_copy): Added extraBytes argument.  Do not call
        _objc_object_copy.
        (object_dispose): Do not call _objc_object_dispose.
        * memory.c (objc_free): When using garbage collection, mark the
        argument as unused.
        * selector.c (sel_getName): New.
        (sel_get_name): Call sel_getName.
        (sel_getType): New.
        (sel_get_type): Call sel_getType.
        (sel_registerName): New.
        (sel_register_name): Call sel_registerName.
        (sel_registerTypedName): New.
        (sel_register_typed_name): Call sel_registerTypedName.
        (sel_getUid): New.
        (sel_get_uid): Call sel_getUid.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165264 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-10 Janus Weil <janus@gcc.gnu.org>
janus [Sun, 10 Oct 2010 21:35:10 +0000 (21:35 +0000)] 
2010-10-10  Janus Weil  <janus@gcc.gnu.org>

PR fortran/45961
* resolve.c (resolve_typebound_function): Bugfix for type-bound
operators.

2010-10-10  Janus Weil  <janus@gcc.gnu.org>

PR fortran/45961
* gfortran.dg/typebound_operator_6.f03: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165263 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10.10 Kai Tietz <kai.tietz@onevision.com>
ktietz [Sun, 10 Oct 2010 19:25:09 +0000 (19:25 +0000)] 
2010-10.10  Kai Tietz  <kai.tietz@onevision.com>

* g++.dg/ext/dllexport-MI1.C: Enable for x86_64 mingw
and adjust -export symbol scanning.
* g++.dg/ext/dllexport1.C: Likewise.
* g++.dg/ext/dllexport3.C: Likewise.
* gcc.dg/dll-3.c: Likewise.
* gcc.dg/dll-4.c: Likewise.
* gcc.dg/dll-5.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165261 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc.dg/tree-prof/ic-misattribution-1a.c: Cleanup tree_profile_ipa
uros [Sun, 10 Oct 2010 18:24:59 +0000 (18:24 +0000)] 
* gcc.dg/tree-prof/ic-misattribution-1a.c: Cleanup tree_profile_ipa
instead of tree_profile dump file.
* g++.dg/tree-prof/inline_mismatch_args.C: Cleanup einline dump file.
* gfortran.dg/derived_array_intrinisics_1.f90: Cleanup original
dump file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165259 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc.dg/lto/20101009-1_0.c (bar): Fix asm constraints.
uros [Sun, 10 Oct 2010 18:02:44 +0000 (18:02 +0000)] 
* gcc.dg/lto/20101009-1_0.c (bar): Fix asm constraints.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165257 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoIn libobjc/:
nicola [Sun, 10 Oct 2010 17:43:07 +0000 (17:43 +0000)] 
In libobjc/:
2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc/objc-api.h: Define Method, Method_t, Category and
        Category_t.  Prevent including this file at the same time as
        objc/runtime.h.  Updated comments.
        * objc/deprecated/struct_objc_method.h: Do not define Method,
        Method_t.
        * objc/deprecated/struct_objc_category.h: Do not define Category,
        Category_t.
        * objc-private/module-abi-8.h: New file containing a copy of all
        the structure definitions.  Not used yet.
        * objc/encoding.h (objc_aligned_size): Removed duplicate
        declaration.  Updated comments.
        * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
        Category, struct objc_method_description, _C_ID and similar,
        _C_CONST and similar and _F_CONST and similar.  Added
        objc_sizeof_type, objc_alignof_type, objc_aligned_size,
        objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
        objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
        struct objc_struct_layout, objc_layout_structure,
        objc_layout_structure_next_member, objc_layout_finish_structure,
        objc_layout_structure_get_info.  Prevent including this file at
        the same time as objc/objc-api.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165256 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
ebotcazou [Sun, 10 Oct 2010 17:05:07 +0000 (17:05 +0000)] 
* opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165255 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc-interface/lang.opt (gdwarf+): Remove.
ebotcazou [Sun, 10 Oct 2010 13:25:19 +0000 (13:25 +0000)] 
* gcc-interface/lang.opt (gdwarf+): Remove.
* gcc-interface/gigi.h (get_parallel_type): Likewise
* gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
(gnat_handle_option): Remove OPT_gdwarfplus case.
(gnat_post_options): Remove setting of use_gnu_debug_info_extensions
from gnat_dwarf_extensions.
* gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
* gcc-interface/utils.c (get_parallel_type): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165254 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
ebotcazou [Sun, 10 Oct 2010 12:29:16 +0000 (12:29 +0000)] 
* gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
invert_truthvalue_loc instead of invert_truthvalue.
* gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
(build_unary_op) <TRUTH_NOT_EXPR>: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165253 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-10 Uros Bizjak <ubizjak@gmail.com>
uros [Sun, 10 Oct 2010 12:26:25 +0000 (12:26 +0000)] 
2010-10-10  Uros Bizjak  <ubizjak@gmail.com>

* config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
to cum struct in the call to function_arg_advance.
(alpha_function_arg_advance): Mark named as unused.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165252 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
ebotcazou [Sun, 10 Oct 2010 11:47:29 +0000 (11:47 +0000)] 
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
assertion on the types of the parameters.  Use KIND local variable.
<E_Incomplete_Type>: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165251 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
ebotcazou [Sun, 10 Oct 2010 11:26:16 +0000 (11:26 +0000)] 
* gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
* gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
* gcc-interface/decl.c (annotate_object): Likewise and handle it.
(gnat_to_gnu_entity): Adjust calls to annotate_object.
(gnat_to_gnu_param): If fat pointer types are passed by reference on
the target, pass them by explicit reference.
* gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
* gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
(Subprogram_Body_to_gnu): Adjust call to annotate_object.
(call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
* gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
and handle it.
(build_function_stub): Iterate on the parameters of the subprogram in
lieu of on the argument types.  Adjust call to convert_vms_descriptor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165250 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoIn libobjc/:
nicola [Sun, 10 Oct 2010 11:18:57 +0000 (11:18 +0000)] 
In libobjc/:
2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>

        * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
        struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
        struct_objc_method_list.h, struct_objc_module.h,
        struct_objc_protocol_list.h, struct_objc_symtab.h.
        * objc/deprecated/struct_objc_category.h: New.
        * objc/deprecated/struct_objc_ivar.h: New.
        * objc/deprecated/struct_objc_ivar_list.h: New.
        * objc/deprecated/struct_objc_method.h: New.
        * objc/deprecated/struct_objc_method_list.h: New.
        * objc/deprecated/struct_objc_module.h: New.
        * objc/deprecated/struct_objc_protocol_list.h: New.
        * objc/deprecated/struct_objc_symtab.h: New.
        * objc/deprecated/struct_objc_static_instances.h: New.
        * objc/objc-api.h: Definitions of deprecated structures moved into
        the above header fragment files in objc/deprecated/.  Include the
        files instead of definition the structures here.  Updated
        comments.
        * objc/runtime.h: Updated comments.  Do not include objc-api.h.
        (objc_set_enumeration_mutation_handler): Renamed to
        objc_setEnumerationMutationHandler.
        * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
        to objc_setEnumerationMutationHandler.
        * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
        objc_setExceptionMatcher.
        (objc_set_uncaught_exception_handler): Renamed to
        objc_setUncaughtExceptionHandler.
        * exception.c: Same changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165249 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-09 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Sun, 10 Oct 2010 09:52:46 +0000 (09:52 +0000)] 
2010-10-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

* frontend-passes.c:  Include opts.h.
(optimize_comparison):  Renamed from optimize_equality.
Change second argument to operation to be compared.
Use flag_finite_math_only to avoid comparing REAL and
COMPLEX only when NANs are honored.  Simplify comparing
of string concatenations where left or right operands are
equal.  Simplify all comparison operations, based on the result
of gfc_dep_compare_expr.
* dependency.c:  Include arith.h.
(gfc_are_identical_variables):  Volatile variables should not
compare equal to themselves.
(gfc_dep_compare_expr):  Handle string constants and string
concatenations.

2010-10-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

* gfortran.dg/character_comparison_4.f90:  New test.
* gfortran.dg/character_comparison_5.f90:  New test.
* gfortran.dg/character_comparison_6.f90:  New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165248 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agogcc/
rsandifo [Sun, 10 Oct 2010 09:18:11 +0000 (09:18 +0000)] 
gcc/
* config/mips/mips.c (mips_handle_option): Make "value" with
ATTRIBUTE_UNUSED.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165247 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoDaily bump.
gccadmin [Sun, 10 Oct 2010 00:18:22 +0000 (00:18 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165246 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoIn libobjc/:
nicola [Sat, 9 Oct 2010 22:30:20 +0000 (22:30 +0000)] 
In libobjc/:
2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc-sync.c: Include objc-private/common.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165242 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoIn libobjc/:
nicola [Sat, 9 Oct 2010 22:22:23 +0000 (22:22 +0000)] 
In libobjc/:
2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc-foreach.c: Include objc-private/common.h.
        * objc/deprecated/METHOD_NULL.h: New file.
        * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
        defining METHOD_NULL here.
        * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
        * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
        METHOD_NULL.
        ([-respondsTo:]): Same change.
        * objc/objc-api.h (method_get_imp): Converted it into a normal
        function so that we can hide the internals of struct objc_method.
        * sendmsg.c (method_get_imp): Implemented.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165241 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR rtl-opt/33721
rth [Sat, 9 Oct 2010 22:05:51 +0000 (22:05 +0000)] 
PR rtl-opt/33721
* explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
required_align, tidy the code a bit.  Emit split_stack code in the
right place.  Mark the return value with the alignment properly.
* expr.h (allocate_dynamic_stack_space): Update decl.
* builtins.c (expand_builtin_apply): Update call to
allocate_dynamic_stack_space.
(expand_builtin_alloca): Likewise.  Remove TARGET parameter.
* calls.c (initialize_argument_information): Update call to
allocate_dynamic_stack_space.
(expand_call): Likewise.

* cfgexpand.c (get_decl_align_unit): Don't limit alignment.
Don't update_stack_alignment here.
(alloc_stack_frame_space): Make ALIGN unsigned.
(stack_var_cmp): Sort by alignment too.
(partition_stack_vars): Don't merge large and small alignment vars.
(expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
Take care when BASE is not virtual_stack_vars_rtx.
(expand_stack_vars): Allocate dynamic stack space for large
alignment variables.
(expand_one_stack_var): Update all to expand_one_stack_var_at.
(defer_stack_allocation): True for large alignment vars.
(update_stack_alignment): Merge into ...
(expand_one_var): ... here.
(gimple_expand_cfg): Place code from expand_stack_vars.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165240 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
froydnj [Sat, 9 Oct 2010 21:13:29 +0000 (21:13 +0000)] 
* config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/pdp11/pdp11.c (pdp11_function_arg): New function.
(pdp11_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165239 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
froydnj [Sat, 9 Oct 2010 21:12:56 +0000 (21:12 +0000)] 
* libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
* libgcc2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165238 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gcc-interface/misc.c: Delete prototypes.
ebotcazou [Sat, 9 Oct 2010 20:23:05 +0000 (20:23 +0000)] 
* gcc-interface/misc.c: Delete prototypes.
(gnat_init_options): Use local variable.
(lang_hooks): Move to the end of the file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165237 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoIn libobjc/:
nicola [Sat, 9 Oct 2010 20:11:02 +0000 (20:11 +0000)] 
In libobjc/:
2010-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc/objc-api.h (struct objc_super, Super, Super_t,
        objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
        objc_msg_forward2): Declarations moved to objc/message.h.  Include
        message.h here.
        * objc/message.h: Added such declarations; updated comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165236 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-09 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 9 Oct 2010 18:28:16 +0000 (18:28 +0000)] 
2010-10-09  Richard Guenther  <rguenther@suse.de>

PR lto/45956
* lto-streamer-in.c (lto_register_var_decl_in_symtab):
Properly check if a decl is an automatic var.

* gcc.dg/lto/20101009-2_0.c: New testcase.
* gcc.dg/lto/20101009-2_1.c: Likewise.
* gcc.dg/lto/20101009-2_2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165235 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-09 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 9 Oct 2010 15:59:50 +0000 (15:59 +0000)] 
2010-10-09  Richard Guenther  <rguenther@suse.de>

PR lto/45947
* tree.c (free_lang_data_in_cgraph): Properly walk the varpool.

* g++.dg/lto/20101009-1_0.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165234 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
froydnj [Sat, 9 Oct 2010 14:22:30 +0000 (14:22 +0000)] 
* config/mmix/mmix-protos.h (mmix_function_arg): Delete.
* config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/mmix/mmix.c (mmix_function_arg): Rename to...
(mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
bool arguments.
(mmix_function_arg): New function.
(mmix_function_incoming_arg): New function.
(mmix_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
(TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165230 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
froydnj [Sat, 9 Oct 2010 14:21:47 +0000 (14:21 +0000)] 
* config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/vax/vax.c (vax_function_arg): New function.
(vax_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165229 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/pa/pa-protos.h (function_arg): Delete.
froydnj [Sat, 9 Oct 2010 14:21:10 +0000 (14:21 +0000)] 
* config/pa/pa-protos.h (function_arg): Delete.
* config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/pa/pa.c (function_arg): Rename to...
(pa_function_arg): ...this.  Make static.  Take a const_tree and
a bool.
(pa_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165228 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
froydnj [Sat, 9 Oct 2010 14:20:08 +0000 (14:20 +0000)] 
* config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/m68k/m68k.c (m68k_function_arg): New function.
(m68k_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165227 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/avr/avr-protos.h (function_arg): Delete.
froydnj [Sat, 9 Oct 2010 14:18:51 +0000 (14:18 +0000)] 
* config/avr/avr-protos.h (function_arg): Delete.
(function_arg_advance): Delete.
* config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/avr/avr.c (function_arg): Rename to...
(avr_function_arg): ...this.  Make static.  Take a const_tree and
a bool.
(function_arg_advance): Rename to...
(avr_function_arg_advance): ...this.  Make static.  Take a
const_tree and a bool.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165226 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/alpha/alpha-protos.h (function_arg): Delete.
froydnj [Sat, 9 Oct 2010 14:17:48 +0000 (14:17 +0000)] 
* config/alpha/alpha-protos.h (function_arg): Delete.
* config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
* config/alpha/alpha.c (function_arg): Rename to...
(alpha_function_arg): ...this.  Make static.  Take a const_tree and
a bool.  Delete TARGET_ABI_UNICOSMK code.
(alpha_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165225 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/mep/mep-protos.h (mep_function_arg): Delete.
froydnj [Sat, 9 Oct 2010 14:16:42 +0000 (14:16 +0000)] 
* config/mep/mep-protos.h (mep_function_arg): Delete.
(mep_function_arg_advance): Delete.
* config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/mep/mep.c (mep_function_arg): Make static.  Take a
const_tree and a bool.
(mep_function_arg_advance): Likewise.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165224 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-09 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 9 Oct 2010 12:45:09 +0000 (12:45 +0000)] 
2010-10-09  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45945
* tree-ssa.c (execute_update_addresses_taken): Fixup LHS
scanning.

* gcc.dg/lto/20101009-1_0.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165222 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR tree-optimization/45612
ebotcazou [Sat, 9 Oct 2010 12:15:31 +0000 (12:15 +0000)] 
PR tree-optimization/45612
* ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
Test LABEL_DECLs as well.  Fix formatting issues.
(verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
whose label is present in NON_SSA_VARS.
(mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
as well.  Fix formatting issues.
(visit_bb): Fix typos and formatting issue.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165221 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR tree-optimization/45950
froydnj [Sat, 9 Oct 2010 11:44:00 +0000 (11:44 +0000)] 
PR tree-optimization/45950
* tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
before initializing vno->op.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165220 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoFix more long lines
ebotcazou [Sat, 9 Oct 2010 11:33:18 +0000 (11:33 +0000)] 
Fix more long lines

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165219 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoFix long lines
ebotcazou [Sat, 9 Oct 2010 10:16:19 +0000 (10:16 +0000)] 
Fix long lines

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165218 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
corsepiu [Sat, 9 Oct 2010 09:31:21 +0000 (09:31 +0000)] 
2010-10-09  Ralf Corsépius <ralf.corsepius@rtems.org>

* config.gcc (bfin*-rtems*): Add newlib-stdint.h.
* config.gcc (lm32*-rtems*): Add newlib-stdint.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165216 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoSupport "andhi/andsi/anddi" as a zero-extending move.
hjl [Sat, 9 Oct 2010 05:34:10 +0000 (05:34 +0000)] 
Support "andhi/andsi/anddi" as a zero-extending move.

gcc/

2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>

PR target/45913
* config/i386/i386.c (ix86_binary_operator_ok): Support
"andhi/andsi/anddi" as a zero-extending move.

gcc/testsuite/

2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>

PR target/45913
* gcc.target/i386/pr45913.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165215 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoAdd AC_CANONICAL_SYSTEM to configure.ac.
hjl [Sat, 9 Oct 2010 05:06:21 +0000 (05:06 +0000)] 
Add AC_CANONICAL_SYSTEM to configure.ac.

2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>

PR bootstrap/45951
* configure.ac: Add AC_CANONICAL_SYSTEM.
* configure: Regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165214 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * builtins.c (fold_call_stmt): Don't copy gimple call arguments
froydnj [Sat, 9 Oct 2010 00:44:46 +0000 (00:44 +0000)] 
* builtins.c (fold_call_stmt): Don't copy gimple call arguments
into a temporary array.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165213 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoDaily bump.
gccadmin [Sat, 9 Oct 2010 00:17:19 +0000 (00:17 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165212 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Fri, 8 Oct 2010 22:28:49 +0000 (22:28 +0000)] 
2010-10-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/45943
* gfortran.dg/streamio_16.f90: Update test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165208 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR tree-optimization/45903
jakub [Fri, 8 Oct 2010 20:49:44 +0000 (20:49 +0000)] 
PR tree-optimization/45903
* simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
of *SHIFTRT of MEM.

* gcc.target/i386/pr45903.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165202 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR tree-optimization/45903
jakub [Fri, 8 Oct 2010 20:49:19 +0000 (20:49 +0000)] 
PR tree-optimization/45903
* simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
of *SHIFTRT of MEM.

* gcc.target/i386/pr45903.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165200 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 8 Oct 2010 20:30:44 +0000 (20:30 +0000)] 
2010-10-08  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/future (_Result_alloc): Derive from _Alloc,
exploit the Empty Base Optimization.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165194 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 8 Oct 2010 15:21:29 +0000 (15:21 +0000)] 
2010-10-08  Richard Guenther  <rguenther@suse.de>

* lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
Re-construct BLOCK_VARS.
(lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
* lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
* tree.c (free_lang_data_in_block): Remove.
(free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
Do not touch the BLOCK tree.
* expr.c (expand_expr_real_1): Allow externals.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165191 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 8 Oct 2010 15:20:13 +0000 (15:20 +0000)] 
2010-10-08  Richard Guenther  <rguenther@suse.de>

* lto-streamer-out.c (lto_output_ts_block_tree_pointers):
Do not output BLOCK_SUBBLOCKS.
* lto-streamer-in.c (lto_input_ts_block_tree_pointers):
Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
Re-construct BLOCK_SUBBLOCKS of parent block.
(lto_input_ts_binfo_tree_pointers): Reserve exact space needed
for BINFO_BASE_ACCESSES.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165190 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
jsm28 [Fri, 8 Oct 2010 15:17:32 +0000 (15:17 +0000)] 
* Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
(TREE_H): Include $(FLAGS_H) instead of options.h.
(opts-common.o): Depend on $(FLAGS_H) instead of options.h.
* c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
* common.opt (flag_complex_method, flag_evaluation_order,
flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
Variable declarations.
* configure.ac (tm_include_list): Include flags.h instead of
options.h.
* configure: Regenerate.
* flags.h: Condition out contents for target libraries.  Include
options.h at end of file.
(flag_complex_method, flag_ira_algorithm, flag_ira_region,
flag_evaluation_order, flag_warn_unused_result): Remove.
* gcc.c (main): Intialize global_options with global_options_init.
* langhooks-def.h (lhd_init_options_struct): Declare.
(LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
(LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
* langhooks.c (lhd_init_options_struct): New.
* langhooks.h (struct lang_hooks): Add init_options_struct.
Update comment on init_options.
* optc-gen.awk: Generate initializer for global_options_init, not
global_options.
* opth-gen.awk: Condition out structure declarations for target
libraries.  Declare global_options_init.
* opts-common.c: Include flags.h instead of options.h.
* opts.c (flag_warn_unused_result): Remove.
(read_cmdline_options): Take gcc_options parameters.  Pass them to
read_cmdline_option.
(initial_lang_mask, initial_min_crossjump_insns,
initial_max_fields_for_field_sensitive,
initial_loop_invariant_max_bbs_in_loop): Define at file scope.
(init_options_once): New.  Split out of decode_options.
(init_options_struct): New.  Split out of decode_options.
(decode_cmdline_options_to_array_default_mask): New.
(default_options_optimization): New.  Split out of decode_options.
(decode_options): Move most code to other functions.  Update call
to read_cmdline_options.
(finish_options): New.  Split out of decode_options.
* opts.h (decode_options): Add gcc_options parameters.
(init_options_once, init_options_struct,
decode_cmdline_options_to_array_default_mask): New.
* toplev.c (flag_complex_method, flag_ira_algorithm,
flag_ira_region, flag_evaluation_order): Remove.
(general_init): Use global_options_init for initial flag values
for global_dc.
(toplev_main): Call init_options_once, init_options_struct,
lang_hooks.init_options_struct,
decode_cmdline_options_to_array_default_mask and
lang_hooks.init_option before decode_options.  Update arguments to
decode_options.
* tree.h: Include flags.h instead of options.h.

ada:
* gcc-interface/misc.c (gnat_init_options_struct): New.  Split out
from gnat_init_options.
(LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.

c-family:
* c-common.c (parse_optimize_options): Call
decode_cmdline_options_to_array_default_mask before
decode_options.  Update arguments to decode_options.
* c-common.h (c_common_init_options_struct): Declare.
* c-opts.c (c_common_init_options_struct): New.  Split out from
c_common_init_options.

cp:
* cp-objcp-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.

fortran:
* f95-lang.c (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
* gfortran.h (gfc_init_options_struct): Declare.
* options.c (gfc_init_options_struct): New.  Split out from
gfc_init_options.

java:
* lang.c (java_init_options_struct): New.  Split out from
java_init_options.
(LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.

lto:
* lto-lang.c (lto_init_options): Change to
lto_init_options_struct.  Update parameters.
(LANG_HOOKS_INIT_OPTIONS): Don't define.
(LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165189 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * gnat.dg/interface5.adb: Compile with warnings disabled.
charlet [Fri, 8 Oct 2010 14:32:54 +0000 (14:32 +0000)] 
* gnat.dg/interface5.adb: Compile with warnings disabled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165186 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
froydnj [Fri, 8 Oct 2010 13:41:54 +0000 (13:41 +0000)] 
* config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165184 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
froydnj [Fri, 8 Oct 2010 13:29:29 +0000 (13:29 +0000)] 
* config/sparc/sparc-protos.h (function_arg_advance, function-arg):
Delete.
* config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
(FUNCTION_INCOMING_ARG): Delete.
* config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
(function_arg_slotno): Likewise.  Take bool arguments.
(sparc_arg_partial_bytes): Update call to it.
(function_arg): Rename to...
(sparc_function_arg_1): ...this.  Take bool arguments.
(sparc_function_arg, sparc_function_incoming_arg): New functions.
(function_arg_advance): Rename to...
(sparc_function_arg_advance): ...this.  Take bool argument.
(TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
(TARGET_FUNCTION_INCOMING_ARG): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165183 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
froydnj [Fri, 8 Oct 2010 13:22:00 +0000 (13:22 +0000)] 
* config/bfin/bfin-protos.h (function_arg, function_arg_advance):
Delete.
* config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/bfin/bfin.c (function_arg_advance): Rename to...
(bfin_function_arg_advance): ...this.  Make static.  Take const_tree
and bool arguments.
(function_arg): Rename to...
(bfin_function_arg): ...this.  Make static.  Take const_tree and bool
arguments.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165182 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/score/score-protos.h (score_function_arg): Delete.
froydnj [Fri, 8 Oct 2010 13:20:07 +0000 (13:20 +0000)] 
* config/score/score-protos.h (score_function_arg): Delete.
(score_function_arg_advance): Delete.
* config/score/score3.h (score3_function_arg_advance): Take a
const_tree and a bool.
(score3_function_arg): Likewise.
* config/score/score7.h (score7_function_arg_advance): Likewise.
(score7_function_arg): Likewise.
* config/score/score3.c (score3_classify_arg): Likewise.
(score3_function_arg_advance, score3_function_arg): Likewise.
* config/score/score7.c (score7_classify_arg): Likewise.
(score7_function_arg_advance, score7_function_arg): Likewise.
* config/score/score.c (score_function_arg_advance): Likewise.
(score_function_arg): Likewise.  De-const-ify `cum' argument.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165181 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
froydnj [Fri, 8 Oct 2010 13:18:51 +0000 (13:18 +0000)] 
* config/s390/s390-protos.h (s390_function_arg_advance): Delete.
(s390_function_arg): Delete.
* config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/s390/s390.c (s390_function_arg_float): Take a const_tree.
(s390_function_arg_integer): Likewise.
(s390_function_arg_advance): Make static.  Take a const_tree and
a bool.
(s390_function_arg): Likewise.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165180 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/spu/spu-protos.h (spu_function_arg): Delete.
froydnj [Fri, 8 Oct 2010 13:16:43 +0000 (13:16 +0000)] 
* config/spu/spu-protos.h (spu_function_arg): Delete.
* config/spu/spu.h (FUNCTION_ARG): Delete.
(FUNCTION_ARG_ADVANCE): Move code to ...
* config/spu/spu.c (spu_function_arg_advance): New function.
(spu_function_arg): Make static.  Take a const_tree and a bool.
(spu_setup_incoming_varargs): Call spu_function_arg_advance.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165179 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
froydnj [Fri, 8 Oct 2010 13:10:47 +0000 (13:10 +0000)] 
* tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
(init_vn_nary_op_from_op): New function.
(init_vn_nary_op_from_stmt): New function.
(vn_nary_op_lookup_1): New function.
(sizeof_vn_nary_op): New function.
(alloc_vn_nary_op_noinit): New function.
(alloc_vn_nary_op): New function.
(vn_nary_op_insert_into): New function.
(vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
(vn_nary_op_lookup): Likewise.
(vn_nary_op_lookup_stmt): Likewise.
(vn_nary_op_insert_pieces): Likewise.
(vn_nary_op_insert): Likewise.
(vn_nary_op_insert_stmt): Likewise.
(copy_nary): Likewise.
(set_value_id_for_result): New function.
(set_hashtable_value_ids): Call it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165178 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Ed Schonberg <schonberg@adacore.com>
charlet [Fri, 8 Oct 2010 13:10:27 +0000 (13:10 +0000)] 
2010-10-08  Ed Schonberg  <schonberg@adacore.com>

* sem_aux.adb: Cleanup Is_Immutably_Limited_Type.

2010-10-08  Robert Dewar  <dewar@adacore.com>

* exp_ch3.adb: Minor reformatting.
* exp_ch5.adb: Add comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165177 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoAdd PR buzilla numbers to ChangeLog
belagod [Fri, 8 Oct 2010 13:08:24 +0000 (13:08 +0000)] 
Add PR buzilla numbers to ChangeLog

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165176 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 13:08:03 +0000 (13:08 +0000)] 
2010-10-08  Robert Dewar  <dewar@adacore.com>

* sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
* gcc-interface/Make-lang.in: Update dependencies.
* einfo.ads: Minor reformatting.

2010-10-08  Ed Schonberg  <schonberg@adacore.com>

* exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
exp_ch3.adb: Change Is_Inherently_Limited_Type to
Is_Immutably_Limited_Type to accord with new RM terminology.
* sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
of a formal limited private type is not immutably limited in a generic
body.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165175 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 13:02:55 +0000 (13:02 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165174 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
froydnj [Fri, 8 Oct 2010 13:01:54 +0000 (13:01 +0000)] 
* config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
* config/fr30/fr30.md (leave_func): Rewrite without post_inc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165173 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 12:57:10 +0000 (12:57 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165172 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 12:54:03 +0000 (12:54 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165171 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Geert Bosch <bosch@adacore.com>
charlet [Fri, 8 Oct 2010 12:49:46 +0000 (12:49 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165170 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 12:40:25 +0000 (12:40 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165169 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 12:34:08 +0000 (12:34 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165168 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
charlet [Fri, 8 Oct 2010 12:30:52 +0000 (12:30 +0000)] 
* sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
pragmas CIL_Constructor and Java_Constructor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165167 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 12:30:30 +0000 (12:30 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165166 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Javier Miranda <miranda@adacore.com>
charlet [Fri, 8 Oct 2010 12:27:41 +0000 (12:27 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165165 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago PR libstdc++/45403
redi [Fri, 8 Oct 2010 11:31:56 +0000 (11:31 +0000)] 
PR libstdc++/45403
* python/libstdcxx/v6/printers.py: Check for lazy_string support.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165163 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 10:51:09 +0000 (10:51 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165162 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
froydnj [Fri, 8 Oct 2010 10:46:38 +0000 (10:46 +0000)] 
* config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
* config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165161 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Thomas Quinot <quinot@adacore.com>
charlet [Fri, 8 Oct 2010 10:45:13 +0000 (10:45 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165160 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Ed Schonberg <schonberg@adacore.com>
charlet [Fri, 8 Oct 2010 10:32:07 +0000 (10:32 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165159 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 10:25:23 +0000 (10:25 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165158 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 10:22:31 +0000 (10:22 +0000)] 
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165157 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Thomas Quinot <quinot@adacore.com>
charlet [Fri, 8 Oct 2010 10:17:10 +0000 (10:17 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165156 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 10:13:14 +0000 (10:13 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165155 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Thomas Quinot <quinot@adacore.com>
charlet [Fri, 8 Oct 2010 10:04:58 +0000 (10:04 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165154 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Robert Dewar <dewar@adacore.com>
charlet [Fri, 8 Oct 2010 09:46:51 +0000 (09:46 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165153 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Thomas Quinot <quinot@adacore.com>
charlet [Fri, 8 Oct 2010 09:40:32 +0000 (09:40 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165152 138bc75d-0d04-0410-961f-82ee72b054a4

15 years ago2010-10-08 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 8 Oct 2010 09:22:16 +0000 (09:22 +0000)] 
2010-10-08  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/future (uses_allocator<packaged_task<>,>): Add;
minor formatting tweaks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165151 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoPR debug/45656
aoliva [Fri, 8 Oct 2010 04:41:14 +0000 (04:41 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165150 138bc75d-0d04-0410-961f-82ee72b054a4

15 years agoPR debug/45673
aoliva [Fri, 8 Oct 2010 04:40:59 +0000 (04:40 +0000)] 
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165149 138bc75d-0d04-0410-961f-82ee72b054a4